Пример #1
0
        public virtual void Initialize(ImagePrintDocument document, PrintPageEventArgs e)
        {
            if (document == null)
            {
                throw new ArgumentNullException("pDocument");
            }

            _document           = document;
            _eventHasMoreImages = true;
        }
 public override void Initialize(ImagePrintDocument document, PrintPageEventArgs e)
 {
     base.Initialize(document, e);
     _nonPlacedItems.Clear();
 }
Пример #3
0
 [System.Diagnostics.DebuggerStepThrough()] private void InitializeComponent()
 {
     this.ButtonPrint      = new System.Windows.Forms.Button();
     this.ButtonPageSetup  = new System.Windows.Forms.Button();
     this.ButtonCancel     = new System.Windows.Forms.Button();
     this.TextBoxPositionX = new System.Windows.Forms.TextBox();
     this.TextBoxPositionY = new System.Windows.Forms.TextBox();
     this.Label1           = new System.Windows.Forms.Label();
     this.Label2           = new System.Windows.Forms.Label();
     this.TextBoxWidth     = new System.Windows.Forms.TextBox();
     this.TextBoxHeight    = new System.Windows.Forms.TextBox();
     this.Label3           = new System.Windows.Forms.Label();
     this.Label4           = new System.Windows.Forms.Label();
     this.BitmapViewer1    = new Aurigma.GraphicsMill.WinControls.BitmapViewer();
     this.PageSetupDialog1 = new System.Windows.Forms.PageSetupDialog();
     this._printDocument   = new Aurigma.GraphicsMill.WinControls.ImagePrintDocument();
     this.SuspendLayout();
     //
     // ButtonPrint
     //
     this.ButtonPrint.Location = new System.Drawing.Point(512, 16);
     this.ButtonPrint.Name     = "ButtonPrint";
     this.ButtonPrint.Size     = new System.Drawing.Size(88, 24);
     this.ButtonPrint.TabIndex = 0;
     this.ButtonPrint.Text     = "Print";
     this.ButtonPrint.Click   += new System.EventHandler(this.ButtonPrint_Click);
     //
     // ButtonPageSetup
     //
     this.ButtonPageSetup.Location = new System.Drawing.Point(512, 48);
     this.ButtonPageSetup.Name     = "ButtonPageSetup";
     this.ButtonPageSetup.Size     = new System.Drawing.Size(88, 24);
     this.ButtonPageSetup.TabIndex = 1;
     this.ButtonPageSetup.Text     = "Page Setup...";
     this.ButtonPageSetup.Click   += new System.EventHandler(this.ButtonPageSetup_Click);
     //
     // ButtonCancel
     //
     this.ButtonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.ButtonCancel.Location     = new System.Drawing.Point(512, 80);
     this.ButtonCancel.Name         = "ButtonCancel";
     this.ButtonCancel.Size         = new System.Drawing.Size(88, 24);
     this.ButtonCancel.TabIndex     = 2;
     this.ButtonCancel.Text         = "Cancel";
     this.ButtonCancel.Click       += new System.EventHandler(this.ButtonCancel_Click);
     //
     // TextBoxPositionX
     //
     this.TextBoxPositionX.Location   = new System.Drawing.Point(328, 22);
     this.TextBoxPositionX.MaxLength  = 4;
     this.TextBoxPositionX.Name       = "TextBoxPositionX";
     this.TextBoxPositionX.Size       = new System.Drawing.Size(40, 20);
     this.TextBoxPositionX.TabIndex   = 4;
     this.TextBoxPositionX.Text       = "0";
     this.TextBoxPositionX.Validated += new System.EventHandler(this.TextBox_TextChanged);
     //
     // TextBoxPositionY
     //
     this.TextBoxPositionY.Location   = new System.Drawing.Point(328, 44);
     this.TextBoxPositionY.MaxLength  = 4;
     this.TextBoxPositionY.Name       = "TextBoxPositionY";
     this.TextBoxPositionY.Size       = new System.Drawing.Size(40, 20);
     this.TextBoxPositionY.TabIndex   = 5;
     this.TextBoxPositionY.Text       = "0";
     this.TextBoxPositionY.Validated += new System.EventHandler(this.TextBox_TextChanged);
     //
     // Label1
     //
     this.Label1.Location = new System.Drawing.Point(264, 25);
     this.Label1.Name     = "Label1";
     this.Label1.Size     = new System.Drawing.Size(64, 16);
     this.Label1.TabIndex = 6;
     this.Label1.Text     = "Position X:";
     //
     // Label2
     //
     this.Label2.Location = new System.Drawing.Point(264, 47);
     this.Label2.Name     = "Label2";
     this.Label2.Size     = new System.Drawing.Size(64, 16);
     this.Label2.TabIndex = 7;
     this.Label2.Text     = "Position Y:";
     //
     // TextBoxWidth
     //
     this.TextBoxWidth.Location   = new System.Drawing.Point(448, 22);
     this.TextBoxWidth.MaxLength  = 4;
     this.TextBoxWidth.Name       = "TextBoxWidth";
     this.TextBoxWidth.Size       = new System.Drawing.Size(40, 20);
     this.TextBoxWidth.TabIndex   = 8;
     this.TextBoxWidth.Text       = "0";
     this.TextBoxWidth.Validated += new System.EventHandler(this.TextBox_TextChanged);
     //
     // TextBoxHeight
     //
     this.TextBoxHeight.Location   = new System.Drawing.Point(448, 44);
     this.TextBoxHeight.MaxLength  = 4;
     this.TextBoxHeight.Name       = "TextBoxHeight";
     this.TextBoxHeight.Size       = new System.Drawing.Size(40, 20);
     this.TextBoxHeight.TabIndex   = 9;
     this.TextBoxHeight.Text       = "0";
     this.TextBoxHeight.Validated += new System.EventHandler(this.TextBox_TextChanged);
     //
     // Label3
     //
     this.Label3.Location = new System.Drawing.Point(400, 25);
     this.Label3.Name     = "Label3";
     this.Label3.Size     = new System.Drawing.Size(40, 16);
     this.Label3.TabIndex = 10;
     this.Label3.Text     = "Width:";
     //
     // Label4
     //
     this.Label4.Location = new System.Drawing.Point(400, 47);
     this.Label4.Name     = "Label4";
     this.Label4.Size     = new System.Drawing.Size(40, 16);
     this.Label4.TabIndex = 11;
     this.Label4.Text     = "Height:";
     //
     // BitmapViewer1
     //
     this.BitmapViewer1.AlphaEnabled         = false;
     this.BitmapViewer1.BackColor            = System.Drawing.Color.Silver;
     this.BitmapViewer1.Location             = new System.Drawing.Point(8, 8);
     this.BitmapViewer1.MaxZoom              = 1F;
     this.BitmapViewer1.MinZoom              = 1F;
     this.BitmapViewer1.Name                 = "BitmapViewer1";
     this.BitmapViewer1.ScrollingPosition    = new System.Drawing.Point(0, 0);
     this.BitmapViewer1.Size                 = new System.Drawing.Size(248, 312);
     this.BitmapViewer1.TabIndex             = 13;
     this.BitmapViewer1.Text                 = "BitmapViewer1";
     this.BitmapViewer1.WorkspaceBorderColor = System.Drawing.Color.Black;
     this.BitmapViewer1.WorkspaceBorderWidth = 1;
     this.BitmapViewer1.ZoomMode             = Aurigma.GraphicsMill.WinControls.ZoomMode.None;
     //
     // PageSetupDialog1
     //
     this.PageSetupDialog1.Document = this._printDocument;
     //
     // _printDocument
     //
     this._printDocument.PlacementMode                = Aurigma.GraphicsMill.WinControls.PlacementMode.Manual;
     this._printDocument.PrintOptions.FooterFont      = new System.Drawing.Font("Arial", 10F);
     this._printDocument.PrintOptions.HeaderFont      = new System.Drawing.Font("Arial", 10F);
     this._printDocument.PrintOptions.ImageAutoRotate = false;
     this._printDocument.PrintOptions.PlaceholderSize = new System.Drawing.Size(0, 0);
     this._printDocument.Source = null;
     //
     // PrintImageDialog
     //
     this.AcceptButton      = this.ButtonPrint;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.ButtonCancel;
     this.ClientSize        = new System.Drawing.Size(608, 333);
     this.Controls.Add(this.BitmapViewer1);
     this.Controls.Add(this.TextBoxHeight);
     this.Controls.Add(this.TextBoxWidth);
     this.Controls.Add(this.TextBoxPositionY);
     this.Controls.Add(this.TextBoxPositionX);
     this.Controls.Add(this.Label4);
     this.Controls.Add(this.Label3);
     this.Controls.Add(this.Label2);
     this.Controls.Add(this.Label1);
     this.Controls.Add(this.ButtonCancel);
     this.Controls.Add(this.ButtonPageSetup);
     this.Controls.Add(this.ButtonPrint);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Name            = "PrintImageDialog";
     this.Text            = "PrintImageDialog";
     this.ResumeLayout(false);
     this.PerformLayout();
 }