Exemple #1
0
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    private void InitializeComponent()
    {
      this.components = new System.ComponentModel.Container();
      this.mainMenu = new System.Windows.Forms.MainMenu(this.components);
      this.miFile = new System.Windows.Forms.MenuItem();
      this.miSample1 = new System.Windows.Forms.MenuItem();
      this.miSample2 = new System.Windows.Forms.MenuItem();
      this.miOpen = new System.Windows.Forms.MenuItem();
      this.menuItem22 = new System.Windows.Forms.MenuItem();
      this.miPrinterSetup = new System.Windows.Forms.MenuItem();
      this.miPreview = new System.Windows.Forms.MenuItem();
      this.miPrint = new System.Windows.Forms.MenuItem();
      this.menuItem24 = new System.Windows.Forms.MenuItem();
      this.miExit = new System.Windows.Forms.MenuItem();
      this.miZoom = new System.Windows.Forms.MenuItem();
      this.miZoom800 = new System.Windows.Forms.MenuItem();
      this.miZoom600 = new System.Windows.Forms.MenuItem();
      this.miZoom400 = new System.Windows.Forms.MenuItem();
      this.miZoom200 = new System.Windows.Forms.MenuItem();
      this.miZoom150 = new System.Windows.Forms.MenuItem();
      this.miZoom100 = new System.Windows.Forms.MenuItem();
      this.miZoom50 = new System.Windows.Forms.MenuItem();
      this.miZoom25 = new System.Windows.Forms.MenuItem();
      this.miZoom10 = new System.Windows.Forms.MenuItem();
      this.menuItem18 = new System.Windows.Forms.MenuItem();
      this.miBestFit = new System.Windows.Forms.MenuItem();
      this.miFullPage = new System.Windows.Forms.MenuItem();
      this.miOriginalSize = new System.Windows.Forms.MenuItem();
      this.miDemonstrate = new System.Windows.Forms.MenuItem();
      this.miPdf = new System.Windows.Forms.MenuItem();
      this.miRtf = new System.Windows.Forms.MenuItem();
      this.miBmp = new System.Windows.Forms.MenuItem();
      this.miMetaFile = new System.Windows.Forms.MenuItem();
      this.miFirst = new System.Windows.Forms.MenuItem();
      this.miPrev = new System.Windows.Forms.MenuItem();
      this.miNext = new System.Windows.Forms.MenuItem();
      this.miLast = new System.Windows.Forms.MenuItem();
      this.menuItem1 = new System.Windows.Forms.MenuItem();
      this.menuItem2 = new System.Windows.Forms.MenuItem();
      this.statusBar = new System.Windows.Forms.StatusBar();
      this.pagePreview = new MigraDoc.Rendering.Forms.DocumentPreview();
      this.SuspendLayout();
      // 
      // mainMenu
      // 
      this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.miFile,
            this.miZoom,
            this.miDemonstrate,
            this.miFirst,
            this.miPrev,
            this.miNext,
            this.miLast});
      // 
      // miFile
      // 
      this.miFile.Index = 0;
      this.miFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.miSample1,
            this.miSample2,
            this.miOpen,
            this.menuItem22,
            this.miPrinterSetup,
            this.miPreview,
            this.miPrint,
            this.menuItem24,
            this.miExit});
      this.miFile.Text = "&File";
      // 
      // miSample1
      // 
      this.miSample1.Index = 0;
      this.miSample1.Text = "Create Sample 1";
      this.miSample1.Click += new System.EventHandler(this.miSample1_Click);
      // 
      // miSample2
      // 
      this.miSample2.Index = 1;
      this.miSample2.Text = "Create Sample 2";
      this.miSample2.Click += new System.EventHandler(this.miSample2_Click);
      // 
      // miOpen
      // 
      this.miOpen.Index = 2;
      this.miOpen.ShowShortcut = false;
      this.miOpen.Text = "&Open DDL File";
      this.miOpen.Click += new System.EventHandler(this.miOpen_Click);
      // 
      // menuItem22
      // 
      this.menuItem22.Index = 3;
      this.menuItem22.Text = "-";
      // 
      // miPrinterSetup
      // 
      this.miPrinterSetup.Index = 4;
      this.miPrinterSetup.Text = "Printer Setup";
      this.miPrinterSetup.Click += new System.EventHandler(this.miPrinterSetup_Click);
      // 
      // miPreview
      // 
      this.miPreview.Index = 5;
      this.miPreview.Text = "Preview";
      this.miPreview.Click += new System.EventHandler(this.miPreview_Click);
      // 
      // miPrint
      // 
      this.miPrint.Index = 6;
      this.miPrint.Text = "&Print";
      this.miPrint.Click += new System.EventHandler(this.miPrint_Click);
      // 
      // menuItem24
      // 
      this.menuItem24.Index = 7;
      this.menuItem24.Text = "-";
      // 
      // miExit
      // 
      this.miExit.Index = 8;
      this.miExit.Text = "&Exit";
      this.miExit.Click += new System.EventHandler(this.miExit_Click);
      // 
      // miZoom
      // 
      this.miZoom.Index = 1;
      this.miZoom.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.miZoom800,
            this.miZoom600,
            this.miZoom400,
            this.miZoom200,
            this.miZoom150,
            this.miZoom100,
            this.miZoom50,
            this.miZoom25,
            this.miZoom10,
            this.menuItem18,
            this.miBestFit,
            this.miFullPage,
            this.miOriginalSize});
      this.miZoom.Text = "&Zoom";
      // 
      // miZoom800
      // 
      this.miZoom800.Index = 0;
      this.miZoom800.Text = "800%";
      this.miZoom800.Click += new System.EventHandler(this.miZoom_Click);
      // 
      // miZoom600
      // 
      this.miZoom600.Index = 1;
      this.miZoom600.Text = "600%";
      this.miZoom600.Click += new System.EventHandler(this.miZoom_Click);
      // 
      // miZoom400
      // 
      this.miZoom400.Index = 2;
      this.miZoom400.Text = "400%";
      this.miZoom400.Click += new System.EventHandler(this.miZoom_Click);
      // 
      // miZoom200
      // 
      this.miZoom200.Index = 3;
      this.miZoom200.Text = "200%";
      this.miZoom200.Click += new System.EventHandler(this.miZoom_Click);
      // 
      // miZoom150
      // 
      this.miZoom150.Index = 4;
      this.miZoom150.Text = "150%";
      this.miZoom150.Click += new System.EventHandler(this.miZoom_Click);
      // 
      // miZoom100
      // 
      this.miZoom100.Index = 5;
      this.miZoom100.Text = "100%";
      this.miZoom100.Click += new System.EventHandler(this.miZoom_Click);
      // 
      // miZoom50
      // 
      this.miZoom50.Index = 6;
      this.miZoom50.Text = "50%";
      this.miZoom50.Click += new System.EventHandler(this.miZoom_Click);
      // 
      // miZoom25
      // 
      this.miZoom25.Index = 7;
      this.miZoom25.Text = "25%";
      this.miZoom25.Click += new System.EventHandler(this.miZoom_Click);
      // 
      // miZoom10
      // 
      this.miZoom10.Index = 8;
      this.miZoom10.Text = "10%";
      this.miZoom10.Click += new System.EventHandler(this.miZoom_Click);
      // 
      // menuItem18
      // 
      this.menuItem18.Index = 9;
      this.menuItem18.Text = "-";
      // 
      // miBestFit
      // 
      this.miBestFit.Index = 10;
      this.miBestFit.Text = "Best Fit";
      this.miBestFit.Click += new System.EventHandler(this.miBestFit_Click);
      // 
      // miFullPage
      // 
      this.miFullPage.Index = 11;
      this.miFullPage.Text = "Full Page";
      this.miFullPage.Click += new System.EventHandler(this.miFullPage_Click);
      // 
      // miOriginalSize
      // 
      this.miOriginalSize.Index = 12;
      this.miOriginalSize.Text = "OriginalSize";
      this.miOriginalSize.Click += new System.EventHandler(this.miOriginalSize_Click);
      // 
      // miDemonstrate
      // 
      this.miDemonstrate.Index = 2;
      this.miDemonstrate.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.miPdf,
            this.miRtf,
            this.miBmp,
            this.miMetaFile});
      this.miDemonstrate.Text = "&Demonstrate";
      // 
      // miPdf
      // 
      this.miPdf.Index = 0;
      this.miPdf.Text = "Create PDF File";
      this.miPdf.Click += new System.EventHandler(this.miPdf_Click);
      // 
      // miRtf
      // 
      this.miRtf.Index = 1;
      this.miRtf.Text = "Create Word/RTF File";
      this.miRtf.Click += new System.EventHandler(this.miRtf_Click);
      // 
      // miBmp
      // 
      this.miBmp.Index = 2;
      this.miBmp.Text = "Create Image File";
      this.miBmp.Click += new System.EventHandler(this.miBmp_Click);
      // 
      // miMetaFile
      // 
      this.miMetaFile.Index = 3;
      this.miMetaFile.Text = "Create Meta File";
      this.miMetaFile.Click += new System.EventHandler(this.miMetaFile_Click);
      // 
      // miFirst
      // 
      this.miFirst.Index = 3;
      this.miFirst.Text = "<<";
      this.miFirst.Click += new System.EventHandler(this.miFirst_Click);
      // 
      // miPrev
      // 
      this.miPrev.Index = 4;
      this.miPrev.Text = "<";
      this.miPrev.Click += new System.EventHandler(this.miPrev_Click);
      // 
      // miNext
      // 
      this.miNext.Index = 5;
      this.miNext.Text = ">";
      this.miNext.Click += new System.EventHandler(this.miNext_Click);
      // 
      // miLast
      // 
      this.miLast.Index = 6;
      this.miLast.Text = ">>";
      this.miLast.Click += new System.EventHandler(this.miLast_Click);
      // 
      // menuItem1
      // 
      this.menuItem1.Index = -1;
      this.menuItem1.Text = "";
      // 
      // menuItem2
      // 
      this.menuItem2.Index = -1;
      this.menuItem2.Text = ",,";
      // 
      // statusBar
      // 
      this.statusBar.Location = new System.Drawing.Point(0, 491);
      this.statusBar.Name = "statusBar";
      this.statusBar.Size = new System.Drawing.Size(760, 22);
      this.statusBar.TabIndex = 2;
      // 
      // pagePreview
      // 
      this.pagePreview.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
      this.pagePreview.Ddl = null;
      this.pagePreview.DesktopColor = System.Drawing.SystemColors.ControlDark;
      this.pagePreview.Dock = System.Windows.Forms.DockStyle.Fill;
      this.pagePreview.Document = null;
      this.pagePreview.Location = new System.Drawing.Point(0, 0);
      this.pagePreview.Name = "pagePreview";
      this.pagePreview.Page = 0;
      this.pagePreview.PageColor = System.Drawing.Color.Snow;
      this.pagePreview.PageSize = new System.Drawing.Size(595, 842);
      this.pagePreview.PrivateFonts = null;
      this.pagePreview.Size = new System.Drawing.Size(760, 491);
      this.pagePreview.TabIndex = 3;
      this.pagePreview.Zoom = MigraDoc.Rendering.Forms.Zoom.FullPage;
      this.pagePreview.ZoomPercent = 41;
      this.pagePreview.PageChanged += new MigraDoc.Rendering.Forms.PagePreviewEventHandler(this.pagePreview_Changed);
      this.pagePreview.ZoomChanged += new MigraDoc.Rendering.Forms.PagePreviewEventHandler(this.pagePreview_Changed);
      // 
      // Viewer
      // 
      this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
      this.ClientSize = new System.Drawing.Size(760, 513);
      this.Controls.Add(this.pagePreview);
      this.Controls.Add(this.statusBar);
      this.Menu = this.mainMenu;
      this.Name = "Viewer";
      this.Text = "MigraDoc Document Viewer (for demonstration only)";
      this.ResumeLayout(false);

    }
Exemple #2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components     = new System.ComponentModel.Container();
     this.mainMenu       = new System.Windows.Forms.MainMenu(this.components);
     this.miFile         = new System.Windows.Forms.MenuItem();
     this.miSample1      = new System.Windows.Forms.MenuItem();
     this.miSample2      = new System.Windows.Forms.MenuItem();
     this.miOpen         = new System.Windows.Forms.MenuItem();
     this.menuItem22     = new System.Windows.Forms.MenuItem();
     this.miPrinterSetup = new System.Windows.Forms.MenuItem();
     this.miPreview      = new System.Windows.Forms.MenuItem();
     this.miPrint        = new System.Windows.Forms.MenuItem();
     this.menuItem24     = new System.Windows.Forms.MenuItem();
     this.miExit         = new System.Windows.Forms.MenuItem();
     this.miZoom         = new System.Windows.Forms.MenuItem();
     this.miZoom800      = new System.Windows.Forms.MenuItem();
     this.miZoom600      = new System.Windows.Forms.MenuItem();
     this.miZoom400      = new System.Windows.Forms.MenuItem();
     this.miZoom200      = new System.Windows.Forms.MenuItem();
     this.miZoom150      = new System.Windows.Forms.MenuItem();
     this.miZoom100      = new System.Windows.Forms.MenuItem();
     this.miZoom50       = new System.Windows.Forms.MenuItem();
     this.miZoom25       = new System.Windows.Forms.MenuItem();
     this.miZoom10       = new System.Windows.Forms.MenuItem();
     this.menuItem18     = new System.Windows.Forms.MenuItem();
     this.miBestFit      = new System.Windows.Forms.MenuItem();
     this.miFullPage     = new System.Windows.Forms.MenuItem();
     this.miOriginalSize = new System.Windows.Forms.MenuItem();
     this.miDemonstrate  = new System.Windows.Forms.MenuItem();
     this.miPdf          = new System.Windows.Forms.MenuItem();
     this.miRtf          = new System.Windows.Forms.MenuItem();
     this.miBmp          = new System.Windows.Forms.MenuItem();
     this.miMetaFile     = new System.Windows.Forms.MenuItem();
     this.miFirst        = new System.Windows.Forms.MenuItem();
     this.miPrev         = new System.Windows.Forms.MenuItem();
     this.miNext         = new System.Windows.Forms.MenuItem();
     this.miLast         = new System.Windows.Forms.MenuItem();
     this.menuItem1      = new System.Windows.Forms.MenuItem();
     this.menuItem2      = new System.Windows.Forms.MenuItem();
     this.statusBar      = new System.Windows.Forms.StatusBar();
     this.pagePreview    = new MigraDoc.Rendering.Forms.DocumentPreview();
     this.SuspendLayout();
     //
     // mainMenu
     //
     this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miFile,
         this.miZoom,
         this.miDemonstrate,
         this.miFirst,
         this.miPrev,
         this.miNext,
         this.miLast
     });
     //
     // miFile
     //
     this.miFile.Index = 0;
     this.miFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miSample1,
         this.miSample2,
         this.miOpen,
         this.menuItem22,
         this.miPrinterSetup,
         this.miPreview,
         this.miPrint,
         this.menuItem24,
         this.miExit
     });
     this.miFile.Text = "&File";
     //
     // miSample1
     //
     this.miSample1.Index  = 0;
     this.miSample1.Text   = "Create Sample 1";
     this.miSample1.Click += new System.EventHandler(this.miSample1_Click);
     //
     // miSample2
     //
     this.miSample2.Index  = 1;
     this.miSample2.Text   = "Create Sample 2";
     this.miSample2.Click += new System.EventHandler(this.miSample2_Click);
     //
     // miOpen
     //
     this.miOpen.Index        = 2;
     this.miOpen.ShowShortcut = false;
     this.miOpen.Text         = "&Open DDL File";
     this.miOpen.Click       += new System.EventHandler(this.miOpen_Click);
     //
     // menuItem22
     //
     this.menuItem22.Index = 3;
     this.menuItem22.Text  = "-";
     //
     // miPrinterSetup
     //
     this.miPrinterSetup.Index  = 4;
     this.miPrinterSetup.Text   = "Printer Setup";
     this.miPrinterSetup.Click += new System.EventHandler(this.miPrinterSetup_Click);
     //
     // miPreview
     //
     this.miPreview.Index  = 5;
     this.miPreview.Text   = "Preview";
     this.miPreview.Click += new System.EventHandler(this.miPreview_Click);
     //
     // miPrint
     //
     this.miPrint.Index  = 6;
     this.miPrint.Text   = "&Print";
     this.miPrint.Click += new System.EventHandler(this.miPrint_Click);
     //
     // menuItem24
     //
     this.menuItem24.Index = 7;
     this.menuItem24.Text  = "-";
     //
     // miExit
     //
     this.miExit.Index  = 8;
     this.miExit.Text   = "&Exit";
     this.miExit.Click += new System.EventHandler(this.miExit_Click);
     //
     // miZoom
     //
     this.miZoom.Index = 1;
     this.miZoom.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miZoom800,
         this.miZoom600,
         this.miZoom400,
         this.miZoom200,
         this.miZoom150,
         this.miZoom100,
         this.miZoom50,
         this.miZoom25,
         this.miZoom10,
         this.menuItem18,
         this.miBestFit,
         this.miFullPage,
         this.miOriginalSize
     });
     this.miZoom.Text = "&Zoom";
     //
     // miZoom800
     //
     this.miZoom800.Index  = 0;
     this.miZoom800.Text   = "800%";
     this.miZoom800.Click += new System.EventHandler(this.miZoom_Click);
     //
     // miZoom600
     //
     this.miZoom600.Index  = 1;
     this.miZoom600.Text   = "600%";
     this.miZoom600.Click += new System.EventHandler(this.miZoom_Click);
     //
     // miZoom400
     //
     this.miZoom400.Index  = 2;
     this.miZoom400.Text   = "400%";
     this.miZoom400.Click += new System.EventHandler(this.miZoom_Click);
     //
     // miZoom200
     //
     this.miZoom200.Index  = 3;
     this.miZoom200.Text   = "200%";
     this.miZoom200.Click += new System.EventHandler(this.miZoom_Click);
     //
     // miZoom150
     //
     this.miZoom150.Index  = 4;
     this.miZoom150.Text   = "150%";
     this.miZoom150.Click += new System.EventHandler(this.miZoom_Click);
     //
     // miZoom100
     //
     this.miZoom100.Index  = 5;
     this.miZoom100.Text   = "100%";
     this.miZoom100.Click += new System.EventHandler(this.miZoom_Click);
     //
     // miZoom50
     //
     this.miZoom50.Index  = 6;
     this.miZoom50.Text   = "50%";
     this.miZoom50.Click += new System.EventHandler(this.miZoom_Click);
     //
     // miZoom25
     //
     this.miZoom25.Index  = 7;
     this.miZoom25.Text   = "25%";
     this.miZoom25.Click += new System.EventHandler(this.miZoom_Click);
     //
     // miZoom10
     //
     this.miZoom10.Index  = 8;
     this.miZoom10.Text   = "10%";
     this.miZoom10.Click += new System.EventHandler(this.miZoom_Click);
     //
     // menuItem18
     //
     this.menuItem18.Index = 9;
     this.menuItem18.Text  = "-";
     //
     // miBestFit
     //
     this.miBestFit.Index  = 10;
     this.miBestFit.Text   = "Best Fit";
     this.miBestFit.Click += new System.EventHandler(this.miBestFit_Click);
     //
     // miFullPage
     //
     this.miFullPage.Index  = 11;
     this.miFullPage.Text   = "Full Page";
     this.miFullPage.Click += new System.EventHandler(this.miFullPage_Click);
     //
     // miOriginalSize
     //
     this.miOriginalSize.Index  = 12;
     this.miOriginalSize.Text   = "OriginalSize";
     this.miOriginalSize.Click += new System.EventHandler(this.miOriginalSize_Click);
     //
     // miDemonstrate
     //
     this.miDemonstrate.Index = 2;
     this.miDemonstrate.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miPdf,
         this.miRtf,
         this.miBmp,
         this.miMetaFile
     });
     this.miDemonstrate.Text = "&Demonstrate";
     //
     // miPdf
     //
     this.miPdf.Index  = 0;
     this.miPdf.Text   = "Create PDF File";
     this.miPdf.Click += new System.EventHandler(this.miPdf_Click);
     //
     // miRtf
     //
     this.miRtf.Index  = 1;
     this.miRtf.Text   = "Create Word/RTF File";
     this.miRtf.Click += new System.EventHandler(this.miRtf_Click);
     //
     // miBmp
     //
     this.miBmp.Index  = 2;
     this.miBmp.Text   = "Create Image File";
     this.miBmp.Click += new System.EventHandler(this.miBmp_Click);
     //
     // miMetaFile
     //
     this.miMetaFile.Index  = 3;
     this.miMetaFile.Text   = "Create Meta File";
     this.miMetaFile.Click += new System.EventHandler(this.miMetaFile_Click);
     //
     // miFirst
     //
     this.miFirst.Index  = 3;
     this.miFirst.Text   = "<<";
     this.miFirst.Click += new System.EventHandler(this.miFirst_Click);
     //
     // miPrev
     //
     this.miPrev.Index  = 4;
     this.miPrev.Text   = "<";
     this.miPrev.Click += new System.EventHandler(this.miPrev_Click);
     //
     // miNext
     //
     this.miNext.Index  = 5;
     this.miNext.Text   = ">";
     this.miNext.Click += new System.EventHandler(this.miNext_Click);
     //
     // miLast
     //
     this.miLast.Index  = 6;
     this.miLast.Text   = ">>";
     this.miLast.Click += new System.EventHandler(this.miLast_Click);
     //
     // menuItem1
     //
     this.menuItem1.Index = -1;
     this.menuItem1.Text  = "";
     //
     // menuItem2
     //
     this.menuItem2.Index = -1;
     this.menuItem2.Text  = ",,";
     //
     // statusBar
     //
     this.statusBar.Location = new System.Drawing.Point(0, 491);
     this.statusBar.Name     = "statusBar";
     this.statusBar.Size     = new System.Drawing.Size(760, 22);
     this.statusBar.TabIndex = 2;
     //
     // pagePreview
     //
     this.pagePreview.BorderStyle  = System.Windows.Forms.BorderStyle.Fixed3D;
     this.pagePreview.Ddl          = null;
     this.pagePreview.DesktopColor = System.Drawing.SystemColors.ControlDark;
     this.pagePreview.Dock         = System.Windows.Forms.DockStyle.Fill;
     this.pagePreview.Document     = null;
     this.pagePreview.Location     = new System.Drawing.Point(0, 0);
     this.pagePreview.Name         = "pagePreview";
     this.pagePreview.Page         = 0;
     this.pagePreview.PageColor    = System.Drawing.Color.Snow;
     this.pagePreview.PageSize     = new System.Drawing.Size(595, 842);
     this.pagePreview.PrivateFonts = null;
     this.pagePreview.Size         = new System.Drawing.Size(760, 491);
     this.pagePreview.TabIndex     = 3;
     this.pagePreview.Zoom         = MigraDoc.Rendering.Forms.Zoom.FullPage;
     this.pagePreview.ZoomPercent  = 41;
     this.pagePreview.PageChanged += new MigraDoc.Rendering.Forms.PagePreviewEventHandler(this.pagePreview_Changed);
     this.pagePreview.ZoomChanged += new MigraDoc.Rendering.Forms.PagePreviewEventHandler(this.pagePreview_Changed);
     //
     // Viewer
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(760, 513);
     this.Controls.Add(this.pagePreview);
     this.Controls.Add(this.statusBar);
     this.Menu = this.mainMenu;
     this.Name = "Viewer";
     this.Text = "MigraDoc Document Viewer (for demonstration only)";
     this.ResumeLayout(false);
 }