LayOut.cs
上传用户:chizxy
上传日期:2014-11-29
资源大小:407k
文件大小:25k
- using System;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
- namespace MKIms3
- {
- /// <summary>
- /// LayOut 的摘要说明。
- /// </summary>
- public class LayOut : System.Windows.Forms.Form
- {
- public AxSuperLayoutLib.AxSuperLayout axSuperLayout1;
- private System.Windows.Forms.MainMenu mainMenu1;
- private System.Windows.Forms.MenuItem menuItem1;
- private System.Windows.Forms.MenuItem menuItem6;
- private System.Windows.Forms.MenuItem m_page_set;
- private System.Windows.Forms.MenuItem m_print_set;
- private System.Windows.Forms.MenuItem m_out_bmp;
- private System.Windows.Forms.MenuItem m_out_print;
- private System.Windows.Forms.MenuItem m_exit;
- private System.Windows.Forms.MenuItem menuItem8;
- private System.Windows.Forms.MenuItem m_draw_point;
- private System.Windows.Forms.MenuItem menuItem13;
- private System.Windows.Forms.MenuItem m_draw_linesect;
- private System.Windows.Forms.MenuItem m_draw_polyline;
- private System.Windows.Forms.MenuItem m_draw_arc;
- private System.Windows.Forms.MenuItem menuItem14;
- private System.Windows.Forms.MenuItem m_draw_rect;
- private System.Windows.Forms.MenuItem m_draw_roundrect;
- private System.Windows.Forms.MenuItem m_draw_ellipse;
- private System.Windows.Forms.MenuItem m_draw_polygon;
- private System.Windows.Forms.MenuItem menuItem19;
- private System.Windows.Forms.MenuItem m_draw_text;
- private System.Windows.Forms.MenuItem m_draw_arttext;
- private System.Windows.Forms.MenuItem menuItem22;
- private System.Windows.Forms.MenuItem m_draw_map;
- private System.Windows.Forms.MenuItem m_draw_legend;
- private System.Windows.Forms.MenuItem m_draw_scale;
- private System.Windows.Forms.MenuItem m_draw_direaction;
- private System.Windows.Forms.MenuItem m_draw_table;
- private System.Windows.Forms.MenuItem m_draw_picture;
- private System.Windows.Forms.MenuItem menuItem29;
- private System.Windows.Forms.MenuItem m_null;
- private System.Windows.Forms.MenuItem m_zoomout;
- private System.Windows.Forms.MenuItem m_zoomin;
- private System.Windows.Forms.MenuItem m_pan;
- private System.Windows.Forms.MenuItem m_height;
- private System.Windows.Forms.MenuItem m_with;
- private System.Windows.Forms.MenuItem menuItem2;
- private Crownwood.DotNetMagic.Controls.ToolControl toolControl1;
- private Crownwood.DotNetMagic.Controls.Command.ButtonCommand buttonCommand_print;
- private Crownwood.DotNetMagic.Controls.Command.ButtonCommand buttonCommand_in;
- private Crownwood.DotNetMagic.Controls.Command.ButtonCommand buttonCommand_out;
- private Crownwood.DotNetMagic.Controls.Command.ButtonCommand buttonCommand_pan;
- private System.Windows.Forms.MenuItem menuItem3;
- private System.Windows.Forms.MenuItem m_select;
- private Crownwood.DotNetMagic.Controls.Command.ButtonCommand buttonCommand_select;
- private Crownwood.DotNetMagic.Controls.Command.SeparatorCommand separatorCommand1;
- private Crownwood.DotNetMagic.Controls.Command.SeparatorCommand separatorCommand2;
- private System.Windows.Forms.MenuItem menuItem4;
- /// <summary>
- /// 必需的设计器变量。
- /// </summary>
- private System.ComponentModel.Container components = null;
- public LayOut()
- {
- //
- // Windows 窗体设计器支持所必需的
- //
- InitializeComponent();
- //
- // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
- //
- }
- /// <summary>
- /// 清理所有正在使用的资源。
- /// </summary>
- protected override void Dispose( bool disposing )
- {
- if( disposing )
- {
- if(components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose( disposing );
- }
- #region Windows 窗体设计器生成的代码
- /// <summary>
- /// 设计器支持所需的方法 - 不要使用代码编辑器修改
- /// 此方法的内容。
- /// </summary>
- private void InitializeComponent()
- {
- System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(LayOut));
- this.axSuperLayout1 = new AxSuperLayoutLib.AxSuperLayout();
- this.mainMenu1 = new System.Windows.Forms.MainMenu();
- this.menuItem1 = new System.Windows.Forms.MenuItem();
- this.m_page_set = new System.Windows.Forms.MenuItem();
- this.m_print_set = new System.Windows.Forms.MenuItem();
- this.m_out_bmp = new System.Windows.Forms.MenuItem();
- this.m_out_print = new System.Windows.Forms.MenuItem();
- this.menuItem6 = new System.Windows.Forms.MenuItem();
- this.m_exit = new System.Windows.Forms.MenuItem();
- this.menuItem8 = new System.Windows.Forms.MenuItem();
- this.m_draw_point = new System.Windows.Forms.MenuItem();
- this.menuItem13 = new System.Windows.Forms.MenuItem();
- this.m_draw_linesect = new System.Windows.Forms.MenuItem();
- this.m_draw_polyline = new System.Windows.Forms.MenuItem();
- this.m_draw_arc = new System.Windows.Forms.MenuItem();
- this.menuItem14 = new System.Windows.Forms.MenuItem();
- this.m_draw_rect = new System.Windows.Forms.MenuItem();
- this.m_draw_roundrect = new System.Windows.Forms.MenuItem();
- this.m_draw_ellipse = new System.Windows.Forms.MenuItem();
- this.m_draw_polygon = new System.Windows.Forms.MenuItem();
- this.menuItem19 = new System.Windows.Forms.MenuItem();
- this.m_draw_text = new System.Windows.Forms.MenuItem();
- this.m_draw_arttext = new System.Windows.Forms.MenuItem();
- this.menuItem22 = new System.Windows.Forms.MenuItem();
- this.m_draw_map = new System.Windows.Forms.MenuItem();
- this.m_draw_legend = new System.Windows.Forms.MenuItem();
- this.m_draw_scale = new System.Windows.Forms.MenuItem();
- this.m_draw_direaction = new System.Windows.Forms.MenuItem();
- this.m_draw_table = new System.Windows.Forms.MenuItem();
- this.m_draw_picture = new System.Windows.Forms.MenuItem();
- this.menuItem29 = new System.Windows.Forms.MenuItem();
- this.m_select = new System.Windows.Forms.MenuItem();
- this.m_null = new System.Windows.Forms.MenuItem();
- this.m_zoomout = new System.Windows.Forms.MenuItem();
- this.m_zoomin = new System.Windows.Forms.MenuItem();
- this.m_pan = new System.Windows.Forms.MenuItem();
- this.m_height = new System.Windows.Forms.MenuItem();
- this.m_with = new System.Windows.Forms.MenuItem();
- this.menuItem3 = new System.Windows.Forms.MenuItem();
- this.menuItem2 = new System.Windows.Forms.MenuItem();
- this.menuItem4 = new System.Windows.Forms.MenuItem();
- this.toolControl1 = new Crownwood.DotNetMagic.Controls.ToolControl();
- this.buttonCommand_print = new Crownwood.DotNetMagic.Controls.Command.ButtonCommand();
- this.separatorCommand1 = new Crownwood.DotNetMagic.Controls.Command.SeparatorCommand();
- this.buttonCommand_out = new Crownwood.DotNetMagic.Controls.Command.ButtonCommand();
- this.buttonCommand_in = new Crownwood.DotNetMagic.Controls.Command.ButtonCommand();
- this.buttonCommand_pan = new Crownwood.DotNetMagic.Controls.Command.ButtonCommand();
- this.separatorCommand2 = new Crownwood.DotNetMagic.Controls.Command.SeparatorCommand();
- this.buttonCommand_select = new Crownwood.DotNetMagic.Controls.Command.ButtonCommand();
- ((System.ComponentModel.ISupportInitialize)(this.axSuperLayout1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.toolControl1)).BeginInit();
- this.SuspendLayout();
- //
- // axSuperLayout1
- //
- this.axSuperLayout1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.axSuperLayout1.Enabled = true;
- this.axSuperLayout1.Location = new System.Drawing.Point(0, 27);
- this.axSuperLayout1.Name = "axSuperLayout1";
- this.axSuperLayout1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSuperLayout1.OcxState")));
- this.axSuperLayout1.Size = new System.Drawing.Size(480, 270);
- this.axSuperLayout1.TabIndex = 1;
- //
- // mainMenu1
- //
- this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem1,
- this.menuItem8,
- this.menuItem29,
- this.menuItem2});
- //
- // menuItem1
- //
- this.menuItem1.Index = 0;
- this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.m_page_set,
- this.m_print_set,
- this.m_out_bmp,
- this.m_out_print,
- this.menuItem6,
- this.m_exit});
- this.menuItem1.Text = "打印 (&P)";
- //
- // m_page_set
- //
- this.m_page_set.Index = 0;
- this.m_page_set.Text = "页面设置";
- this.m_page_set.Click += new System.EventHandler(this.m_page_set_Click);
- //
- // m_print_set
- //
- this.m_print_set.Index = 1;
- this.m_print_set.Text = "打印设置";
- this.m_print_set.Click += new System.EventHandler(this.m_print_set_Click);
- //
- // m_out_bmp
- //
- this.m_out_bmp.Index = 2;
- this.m_out_bmp.Text = "输出为图片";
- this.m_out_bmp.Click += new System.EventHandler(this.m_out_bmp_Click);
- //
- // m_out_print
- //
- this.m_out_print.Index = 3;
- this.m_out_print.Text = "输出到打印机";
- this.m_out_print.Click += new System.EventHandler(this.m_out_print_Click);
- //
- // menuItem6
- //
- this.menuItem6.Index = 4;
- this.menuItem6.Text = "-";
- //
- // m_exit
- //
- this.m_exit.Index = 5;
- this.m_exit.Text = "退出";
- this.m_exit.Click += new System.EventHandler(this.m_exit_Click);
- //
- // menuItem8
- //
- this.menuItem8.Index = 1;
- this.menuItem8.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.m_draw_point,
- this.menuItem13,
- this.menuItem14,
- this.menuItem19,
- this.menuItem22,
- this.m_draw_table,
- this.m_draw_picture});
- this.menuItem8.Text = "绘制对象 (&D)";
- //
- // m_draw_point
- //
- this.m_draw_point.Index = 0;
- this.m_draw_point.Text = "点对象";
- this.m_draw_point.Click += new System.EventHandler(this.m_draw_point_Click);
- //
- // menuItem13
- //
- this.menuItem13.Index = 1;
- this.menuItem13.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.m_draw_linesect,
- this.m_draw_polyline,
- this.m_draw_arc});
- this.menuItem13.Text = "线对象";
- //
- // m_draw_linesect
- //
- this.m_draw_linesect.Index = 0;
- this.m_draw_linesect.Text = "直线";
- this.m_draw_linesect.Click += new System.EventHandler(this.m_draw_linesect_Click);
- //
- // m_draw_polyline
- //
- this.m_draw_polyline.Index = 1;
- this.m_draw_polyline.Text = "折线";
- this.m_draw_polyline.Click += new System.EventHandler(this.m_draw_polyline_Click);
- //
- // m_draw_arc
- //
- this.m_draw_arc.Index = 2;
- this.m_draw_arc.Text = "弧线";
- this.m_draw_arc.Click += new System.EventHandler(this.m_draw_arc_Click);
- //
- // menuItem14
- //
- this.menuItem14.Index = 2;
- this.menuItem14.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.m_draw_rect,
- this.m_draw_roundrect,
- this.m_draw_ellipse,
- this.m_draw_polygon});
- this.menuItem14.Text = "面对象";
- //
- // m_draw_rect
- //
- this.m_draw_rect.Index = 0;
- this.m_draw_rect.Text = "矩形";
- this.m_draw_rect.Click += new System.EventHandler(this.m_draw_rect_Click);
- //
- // m_draw_roundrect
- //
- this.m_draw_roundrect.Index = 1;
- this.m_draw_roundrect.Text = "圆角矩形";
- this.m_draw_roundrect.Click += new System.EventHandler(this.m_draw_roundrect_Click);
- //
- // m_draw_ellipse
- //
- this.m_draw_ellipse.Index = 2;
- this.m_draw_ellipse.Text = "椭圆";
- this.m_draw_ellipse.Click += new System.EventHandler(this.m_draw_ellipse_Click);
- //
- // m_draw_polygon
- //
- this.m_draw_polygon.Index = 3;
- this.m_draw_polygon.Text = "多边形";
- this.m_draw_polygon.Click += new System.EventHandler(this.m_draw_polygon_Click);
- //
- // menuItem19
- //
- this.menuItem19.Index = 3;
- this.menuItem19.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.m_draw_text,
- this.m_draw_arttext});
- this.menuItem19.Text = "文字";
- //
- // m_draw_text
- //
- this.m_draw_text.Index = 0;
- this.m_draw_text.Text = "普通文本";
- this.m_draw_text.Click += new System.EventHandler(this.m_draw_text_Click);
- //
- // m_draw_arttext
- //
- this.m_draw_arttext.Index = 1;
- this.m_draw_arttext.Text = "艺术字";
- this.m_draw_arttext.Click += new System.EventHandler(this.m_draw_arttext_Click);
- //
- // menuItem22
- //
- this.menuItem22.Index = 4;
- this.menuItem22.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.m_draw_map,
- this.m_draw_legend,
- this.m_draw_scale,
- this.m_draw_direaction});
- this.menuItem22.Text = "地图对象";
- //
- // m_draw_map
- //
- this.m_draw_map.Index = 0;
- this.m_draw_map.Text = "地图";
- this.m_draw_map.Click += new System.EventHandler(this.m_draw_map_Click);
- //
- // m_draw_legend
- //
- this.m_draw_legend.Index = 1;
- this.m_draw_legend.Text = "图例";
- this.m_draw_legend.Click += new System.EventHandler(this.m_draw_legend_Click);
- //
- // m_draw_scale
- //
- this.m_draw_scale.Index = 2;
- this.m_draw_scale.Text = "比例尺";
- this.m_draw_scale.Click += new System.EventHandler(this.m_draw_scale_Click);
- //
- // m_draw_direaction
- //
- this.m_draw_direaction.Index = 3;
- this.m_draw_direaction.Text = "方向标";
- this.m_draw_direaction.Click += new System.EventHandler(this.m_draw_direaction_Click);
- //
- // m_draw_table
- //
- this.m_draw_table.Index = 5;
- this.m_draw_table.Text = "表格";
- this.m_draw_table.Click += new System.EventHandler(this.m_draw_table_Click);
- //
- // m_draw_picture
- //
- this.m_draw_picture.Index = 6;
- this.m_draw_picture.Text = "图片";
- this.m_draw_picture.Click += new System.EventHandler(this.m_draw_picture_Click);
- //
- // menuItem29
- //
- this.menuItem29.Index = 2;
- this.menuItem29.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.m_select,
- this.m_null,
- this.m_zoomout,
- this.m_zoomin,
- this.m_pan,
- this.m_height,
- this.m_with,
- this.menuItem3});
- this.menuItem29.Text = "页面操作 (&O)";
- //
- // m_select
- //
- this.m_select.Index = 0;
- this.m_select.Text = "选择对象";
- this.m_select.Click += new System.EventHandler(this.m_select_Click);
- //
- // m_null
- //
- this.m_null.Index = 1;
- this.m_null.Text = "置空";
- this.m_null.Click += new System.EventHandler(this.m_null_Click);
- //
- // m_zoomout
- //
- this.m_zoomout.Index = 2;
- this.m_zoomout.Text = "放大";
- this.m_zoomout.Click += new System.EventHandler(this.m_zoomout_Click);
- //
- // m_zoomin
- //
- this.m_zoomin.Index = 3;
- this.m_zoomin.Text = "缩小";
- this.m_zoomin.Click += new System.EventHandler(this.m_zoomin_Click);
- //
- // m_pan
- //
- this.m_pan.Index = 4;
- this.m_pan.Text = "平移";
- this.m_pan.Click += new System.EventHandler(this.m_pan_Click);
- //
- // m_height
- //
- this.m_height.Index = 5;
- this.m_height.Text = "适合高度";
- this.m_height.Click += new System.EventHandler(this.m_height_Click);
- //
- // m_with
- //
- this.m_with.Index = 6;
- this.m_with.Text = "适合宽度";
- this.m_with.Click += new System.EventHandler(this.m_with_Click);
- //
- // menuItem3
- //
- this.menuItem3.Index = 7;
- this.menuItem3.Text = "全部显示";
- this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
- //
- // menuItem2
- //
- this.menuItem2.Index = 3;
- this.menuItem2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem4});
- this.menuItem2.Text = "帮助 (&H)";
- //
- // menuItem4
- //
- this.menuItem4.Index = 0;
- this.menuItem4.Shortcut = System.Windows.Forms.Shortcut.F1;
- this.menuItem4.Text = "系统帮助";
- this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
- //
- // toolControl1
- //
- this.toolControl1.Commands.AddRange(new Crownwood.DotNetMagic.Controls.Command.CommandBase[] {
- this.buttonCommand_print,
- this.separatorCommand1,
- this.buttonCommand_out,
- this.buttonCommand_in,
- this.buttonCommand_pan,
- this.separatorCommand2,
- this.buttonCommand_select});
- this.toolControl1.Location = new System.Drawing.Point(0, 0);
- this.toolControl1.Name = "toolControl1";
- this.toolControl1.Size = new System.Drawing.Size(480, 27);
- this.toolControl1.TabIndex = 2;
- //
- // buttonCommand_print
- //
- this.buttonCommand_print.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_print.Image")));
- this.buttonCommand_print.Tag = null;
- this.buttonCommand_print.Text = "";
- this.buttonCommand_print.Tooltip = "打印";
- this.buttonCommand_print.Click += new System.EventHandler(this.m_out_print_Click);
- //
- // separatorCommand1
- //
- this.separatorCommand1.Tag = null;
- //
- // buttonCommand_out
- //
- this.buttonCommand_out.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_out.Image")));
- this.buttonCommand_out.Tag = null;
- this.buttonCommand_out.Text = "";
- this.buttonCommand_out.Tooltip = "放大";
- this.buttonCommand_out.Click += new System.EventHandler(this.m_zoomout_Click);
- //
- // buttonCommand_in
- //
- this.buttonCommand_in.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_in.Image")));
- this.buttonCommand_in.Tag = null;
- this.buttonCommand_in.Text = "";
- this.buttonCommand_in.Tooltip = "缩小";
- this.buttonCommand_in.Click += new System.EventHandler(this.m_zoomin_Click);
- //
- // buttonCommand_pan
- //
- this.buttonCommand_pan.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_pan.Image")));
- this.buttonCommand_pan.Tag = null;
- this.buttonCommand_pan.Text = "";
- this.buttonCommand_pan.Tooltip = "平移";
- this.buttonCommand_pan.Click += new System.EventHandler(this.m_pan_Click);
- //
- // separatorCommand2
- //
- this.separatorCommand2.Tag = null;
- //
- // buttonCommand_select
- //
- this.buttonCommand_select.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_select.Image")));
- this.buttonCommand_select.Tag = null;
- this.buttonCommand_select.Text = "";
- this.buttonCommand_select.Tooltip = "选择";
- this.buttonCommand_select.Click += new System.EventHandler(this.buttonCommand_select_Click);
- //
- // LayOut
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
- this.ClientSize = new System.Drawing.Size(480, 297);
- this.Controls.Add(this.axSuperLayout1);
- this.Controls.Add(this.toolControl1);
- this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
- this.Menu = this.mainMenu1;
- this.Name = "LayOut";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "地图打印输出";
- this.Closing += new System.ComponentModel.CancelEventHandler(this.LayOut_Closing);
- ((System.ComponentModel.ISupportInitialize)(this.axSuperLayout1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.toolControl1)).EndInit();
- this.ResumeLayout(false);
- }
- #endregion
- private void m_page_set_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.PageSetup();
- }
- private void m_print_set_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LayoutSetup();
-
- }
- private void m_out_bmp_Click(object sender, System.EventArgs e)
- {
- SaveFileDialog mysave = new SaveFileDialog();
- mysave.Title="输出图片";
- mysave.Filter="位图文件(*.bmp)|*.bmp";
- if(mysave.ShowDialog() == DialogResult.OK)
- this.axSuperLayout1.OutputToFile(mysave.FileName,SuperMapLib.seFileType.scfBMP);
- }
- private void m_out_print_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.PrintLayout(true);
- }
- private void m_exit_Click(object sender, System.EventArgs e)
- {
- this.Close();
- }
- private void m_draw_point_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActPoint;
- }
- private void m_draw_linesect_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActLinesect;
- }
- private void m_draw_polyline_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActPolyline;
- }
- private void m_draw_arc_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActArc;
- }
- private void m_draw_rect_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActRect;
- }
- private void m_draw_roundrect_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActRoundRect;
- }
- private void m_draw_ellipse_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActEllipse;
- }
- private void m_draw_polygon_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActPolygon;
- }
- private void m_draw_text_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActText;
- }
- private void m_draw_arttext_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActText;
- }
- private void m_draw_map_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActMap;
- }
- private void m_draw_legend_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActLegend;
- }
- private void m_draw_scale_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActScale;
- }
- private void m_draw_direaction_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActDirection;
- }
- private void m_draw_table_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActTable;
- }
- private void m_draw_picture_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActMap;
- }
- private void m_null_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActNull;
- }
- private void m_zoomout_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActZoomIn;
- }
- private void m_zoomin_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActZoomOut;
- }
- private void m_pan_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActPalm;
- }
- private void m_height_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.ZoomToPageHeight();
- }
- private void menuItem3_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.ZoomToPage();
- }
- private void m_with_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.ZoomToPageWidth();
- }
- private void m_select_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActSel;
- }
- private void buttonCommand_select_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActSel;
- }
- private void LayOut_Closing(object sender, System.ComponentModel.CancelEventArgs e)
- {
- this.axSuperLayout1.Disconnect();
- }
- private void m_layout_set_Click(object sender, System.EventArgs e)
- {
- this.axSuperLayout1.LayoutSetup();
- }
- private void menuItem4_Click(object sender, System.EventArgs e)
- {
- string helpfile = "help.chm";
- Help.ShowHelp(this, helpfile);
- }
-
- }
- }