LayOut.cs
上传用户:chizxy
上传日期:2014-11-29
资源大小:407k
文件大小:25k
源码类别:

其他行业

开发平台:

C#

  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6. namespace MKIms3
  7. {
  8. /// <summary>
  9. /// LayOut 的摘要说明。
  10. /// </summary>
  11. public class LayOut : System.Windows.Forms.Form
  12. {
  13. public AxSuperLayoutLib.AxSuperLayout axSuperLayout1;
  14. private System.Windows.Forms.MainMenu mainMenu1;
  15. private System.Windows.Forms.MenuItem menuItem1;
  16. private System.Windows.Forms.MenuItem menuItem6;
  17. private System.Windows.Forms.MenuItem m_page_set;
  18. private System.Windows.Forms.MenuItem m_print_set;
  19. private System.Windows.Forms.MenuItem m_out_bmp;
  20. private System.Windows.Forms.MenuItem m_out_print;
  21. private System.Windows.Forms.MenuItem m_exit;
  22. private System.Windows.Forms.MenuItem menuItem8;
  23. private System.Windows.Forms.MenuItem m_draw_point;
  24. private System.Windows.Forms.MenuItem menuItem13;
  25. private System.Windows.Forms.MenuItem m_draw_linesect;
  26. private System.Windows.Forms.MenuItem m_draw_polyline;
  27. private System.Windows.Forms.MenuItem m_draw_arc;
  28. private System.Windows.Forms.MenuItem menuItem14;
  29. private System.Windows.Forms.MenuItem m_draw_rect;
  30. private System.Windows.Forms.MenuItem m_draw_roundrect;
  31. private System.Windows.Forms.MenuItem m_draw_ellipse;
  32. private System.Windows.Forms.MenuItem m_draw_polygon;
  33. private System.Windows.Forms.MenuItem menuItem19;
  34. private System.Windows.Forms.MenuItem m_draw_text;
  35. private System.Windows.Forms.MenuItem m_draw_arttext;
  36. private System.Windows.Forms.MenuItem menuItem22;
  37. private System.Windows.Forms.MenuItem m_draw_map;
  38. private System.Windows.Forms.MenuItem m_draw_legend;
  39. private System.Windows.Forms.MenuItem m_draw_scale;
  40. private System.Windows.Forms.MenuItem m_draw_direaction;
  41. private System.Windows.Forms.MenuItem m_draw_table;
  42. private System.Windows.Forms.MenuItem m_draw_picture;
  43. private System.Windows.Forms.MenuItem menuItem29;
  44. private System.Windows.Forms.MenuItem m_null;
  45. private System.Windows.Forms.MenuItem m_zoomout;
  46. private System.Windows.Forms.MenuItem m_zoomin;
  47. private System.Windows.Forms.MenuItem m_pan;
  48. private System.Windows.Forms.MenuItem m_height;
  49. private System.Windows.Forms.MenuItem m_with;
  50. private System.Windows.Forms.MenuItem menuItem2;
  51. private Crownwood.DotNetMagic.Controls.ToolControl toolControl1;
  52. private Crownwood.DotNetMagic.Controls.Command.ButtonCommand buttonCommand_print;
  53. private Crownwood.DotNetMagic.Controls.Command.ButtonCommand buttonCommand_in;
  54. private Crownwood.DotNetMagic.Controls.Command.ButtonCommand buttonCommand_out;
  55. private Crownwood.DotNetMagic.Controls.Command.ButtonCommand buttonCommand_pan;
  56. private System.Windows.Forms.MenuItem menuItem3;
  57. private System.Windows.Forms.MenuItem m_select;
  58. private Crownwood.DotNetMagic.Controls.Command.ButtonCommand buttonCommand_select;
  59. private Crownwood.DotNetMagic.Controls.Command.SeparatorCommand separatorCommand1;
  60. private Crownwood.DotNetMagic.Controls.Command.SeparatorCommand separatorCommand2;
  61. private System.Windows.Forms.MenuItem menuItem4;
  62. /// <summary>
  63. /// 必需的设计器变量。
  64. /// </summary>
  65. private System.ComponentModel.Container components = null;
  66. public LayOut()
  67. {
  68. //
  69. // Windows 窗体设计器支持所必需的
  70. //
  71. InitializeComponent();
  72. //
  73. // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
  74. //
  75. }
  76. /// <summary>
  77. /// 清理所有正在使用的资源。
  78. /// </summary>
  79. protected override void Dispose( bool disposing )
  80. {
  81. if( disposing )
  82. {
  83. if(components != null)
  84. {
  85. components.Dispose();
  86. }
  87. }
  88. base.Dispose( disposing );
  89. }
  90. #region Windows 窗体设计器生成的代码
  91. /// <summary>
  92. /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  93. /// 此方法的内容。
  94. /// </summary>
  95. private void InitializeComponent()
  96. {
  97. System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(LayOut));
  98. this.axSuperLayout1 = new AxSuperLayoutLib.AxSuperLayout();
  99. this.mainMenu1 = new System.Windows.Forms.MainMenu();
  100. this.menuItem1 = new System.Windows.Forms.MenuItem();
  101. this.m_page_set = new System.Windows.Forms.MenuItem();
  102. this.m_print_set = new System.Windows.Forms.MenuItem();
  103. this.m_out_bmp = new System.Windows.Forms.MenuItem();
  104. this.m_out_print = new System.Windows.Forms.MenuItem();
  105. this.menuItem6 = new System.Windows.Forms.MenuItem();
  106. this.m_exit = new System.Windows.Forms.MenuItem();
  107. this.menuItem8 = new System.Windows.Forms.MenuItem();
  108. this.m_draw_point = new System.Windows.Forms.MenuItem();
  109. this.menuItem13 = new System.Windows.Forms.MenuItem();
  110. this.m_draw_linesect = new System.Windows.Forms.MenuItem();
  111. this.m_draw_polyline = new System.Windows.Forms.MenuItem();
  112. this.m_draw_arc = new System.Windows.Forms.MenuItem();
  113. this.menuItem14 = new System.Windows.Forms.MenuItem();
  114. this.m_draw_rect = new System.Windows.Forms.MenuItem();
  115. this.m_draw_roundrect = new System.Windows.Forms.MenuItem();
  116. this.m_draw_ellipse = new System.Windows.Forms.MenuItem();
  117. this.m_draw_polygon = new System.Windows.Forms.MenuItem();
  118. this.menuItem19 = new System.Windows.Forms.MenuItem();
  119. this.m_draw_text = new System.Windows.Forms.MenuItem();
  120. this.m_draw_arttext = new System.Windows.Forms.MenuItem();
  121. this.menuItem22 = new System.Windows.Forms.MenuItem();
  122. this.m_draw_map = new System.Windows.Forms.MenuItem();
  123. this.m_draw_legend = new System.Windows.Forms.MenuItem();
  124. this.m_draw_scale = new System.Windows.Forms.MenuItem();
  125. this.m_draw_direaction = new System.Windows.Forms.MenuItem();
  126. this.m_draw_table = new System.Windows.Forms.MenuItem();
  127. this.m_draw_picture = new System.Windows.Forms.MenuItem();
  128. this.menuItem29 = new System.Windows.Forms.MenuItem();
  129. this.m_select = new System.Windows.Forms.MenuItem();
  130. this.m_null = new System.Windows.Forms.MenuItem();
  131. this.m_zoomout = new System.Windows.Forms.MenuItem();
  132. this.m_zoomin = new System.Windows.Forms.MenuItem();
  133. this.m_pan = new System.Windows.Forms.MenuItem();
  134. this.m_height = new System.Windows.Forms.MenuItem();
  135. this.m_with = new System.Windows.Forms.MenuItem();
  136. this.menuItem3 = new System.Windows.Forms.MenuItem();
  137. this.menuItem2 = new System.Windows.Forms.MenuItem();
  138. this.menuItem4 = new System.Windows.Forms.MenuItem();
  139. this.toolControl1 = new Crownwood.DotNetMagic.Controls.ToolControl();
  140. this.buttonCommand_print = new Crownwood.DotNetMagic.Controls.Command.ButtonCommand();
  141. this.separatorCommand1 = new Crownwood.DotNetMagic.Controls.Command.SeparatorCommand();
  142. this.buttonCommand_out = new Crownwood.DotNetMagic.Controls.Command.ButtonCommand();
  143. this.buttonCommand_in = new Crownwood.DotNetMagic.Controls.Command.ButtonCommand();
  144. this.buttonCommand_pan = new Crownwood.DotNetMagic.Controls.Command.ButtonCommand();
  145. this.separatorCommand2 = new Crownwood.DotNetMagic.Controls.Command.SeparatorCommand();
  146. this.buttonCommand_select = new Crownwood.DotNetMagic.Controls.Command.ButtonCommand();
  147. ((System.ComponentModel.ISupportInitialize)(this.axSuperLayout1)).BeginInit();
  148. ((System.ComponentModel.ISupportInitialize)(this.toolControl1)).BeginInit();
  149. this.SuspendLayout();
  150. // 
  151. // axSuperLayout1
  152. // 
  153. this.axSuperLayout1.Dock = System.Windows.Forms.DockStyle.Fill;
  154. this.axSuperLayout1.Enabled = true;
  155. this.axSuperLayout1.Location = new System.Drawing.Point(0, 27);
  156. this.axSuperLayout1.Name = "axSuperLayout1";
  157. this.axSuperLayout1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSuperLayout1.OcxState")));
  158. this.axSuperLayout1.Size = new System.Drawing.Size(480, 270);
  159. this.axSuperLayout1.TabIndex = 1;
  160. // 
  161. // mainMenu1
  162. // 
  163. this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  164.   this.menuItem1,
  165.   this.menuItem8,
  166.   this.menuItem29,
  167.   this.menuItem2});
  168. // 
  169. // menuItem1
  170. // 
  171. this.menuItem1.Index = 0;
  172. this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  173.   this.m_page_set,
  174.   this.m_print_set,
  175.   this.m_out_bmp,
  176.   this.m_out_print,
  177.   this.menuItem6,
  178.   this.m_exit});
  179. this.menuItem1.Text = "打印 (&P)";
  180. // 
  181. // m_page_set
  182. // 
  183. this.m_page_set.Index = 0;
  184. this.m_page_set.Text = "页面设置";
  185. this.m_page_set.Click += new System.EventHandler(this.m_page_set_Click);
  186. // 
  187. // m_print_set
  188. // 
  189. this.m_print_set.Index = 1;
  190. this.m_print_set.Text = "打印设置";
  191. this.m_print_set.Click += new System.EventHandler(this.m_print_set_Click);
  192. // 
  193. // m_out_bmp
  194. // 
  195. this.m_out_bmp.Index = 2;
  196. this.m_out_bmp.Text = "输出为图片";
  197. this.m_out_bmp.Click += new System.EventHandler(this.m_out_bmp_Click);
  198. // 
  199. // m_out_print
  200. // 
  201. this.m_out_print.Index = 3;
  202. this.m_out_print.Text = "输出到打印机";
  203. this.m_out_print.Click += new System.EventHandler(this.m_out_print_Click);
  204. // 
  205. // menuItem6
  206. // 
  207. this.menuItem6.Index = 4;
  208. this.menuItem6.Text = "-";
  209. // 
  210. // m_exit
  211. // 
  212. this.m_exit.Index = 5;
  213. this.m_exit.Text = "退出";
  214. this.m_exit.Click += new System.EventHandler(this.m_exit_Click);
  215. // 
  216. // menuItem8
  217. // 
  218. this.menuItem8.Index = 1;
  219. this.menuItem8.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  220.   this.m_draw_point,
  221.   this.menuItem13,
  222.   this.menuItem14,
  223.   this.menuItem19,
  224.   this.menuItem22,
  225.   this.m_draw_table,
  226.   this.m_draw_picture});
  227. this.menuItem8.Text = "绘制对象 (&D)";
  228. // 
  229. // m_draw_point
  230. // 
  231. this.m_draw_point.Index = 0;
  232. this.m_draw_point.Text = "点对象";
  233. this.m_draw_point.Click += new System.EventHandler(this.m_draw_point_Click);
  234. // 
  235. // menuItem13
  236. // 
  237. this.menuItem13.Index = 1;
  238. this.menuItem13.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  239.    this.m_draw_linesect,
  240.    this.m_draw_polyline,
  241.    this.m_draw_arc});
  242. this.menuItem13.Text = "线对象";
  243. // 
  244. // m_draw_linesect
  245. // 
  246. this.m_draw_linesect.Index = 0;
  247. this.m_draw_linesect.Text = "直线";
  248. this.m_draw_linesect.Click += new System.EventHandler(this.m_draw_linesect_Click);
  249. // 
  250. // m_draw_polyline
  251. // 
  252. this.m_draw_polyline.Index = 1;
  253. this.m_draw_polyline.Text = "折线";
  254. this.m_draw_polyline.Click += new System.EventHandler(this.m_draw_polyline_Click);
  255. // 
  256. // m_draw_arc
  257. // 
  258. this.m_draw_arc.Index = 2;
  259. this.m_draw_arc.Text = "弧线";
  260. this.m_draw_arc.Click += new System.EventHandler(this.m_draw_arc_Click);
  261. // 
  262. // menuItem14
  263. // 
  264. this.menuItem14.Index = 2;
  265. this.menuItem14.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  266.    this.m_draw_rect,
  267.    this.m_draw_roundrect,
  268.    this.m_draw_ellipse,
  269.    this.m_draw_polygon});
  270. this.menuItem14.Text = "面对象";
  271. // 
  272. // m_draw_rect
  273. // 
  274. this.m_draw_rect.Index = 0;
  275. this.m_draw_rect.Text = "矩形";
  276. this.m_draw_rect.Click += new System.EventHandler(this.m_draw_rect_Click);
  277. // 
  278. // m_draw_roundrect
  279. // 
  280. this.m_draw_roundrect.Index = 1;
  281. this.m_draw_roundrect.Text = "圆角矩形";
  282. this.m_draw_roundrect.Click += new System.EventHandler(this.m_draw_roundrect_Click);
  283. // 
  284. // m_draw_ellipse
  285. // 
  286. this.m_draw_ellipse.Index = 2;
  287. this.m_draw_ellipse.Text = "椭圆";
  288. this.m_draw_ellipse.Click += new System.EventHandler(this.m_draw_ellipse_Click);
  289. // 
  290. // m_draw_polygon
  291. // 
  292. this.m_draw_polygon.Index = 3;
  293. this.m_draw_polygon.Text = "多边形";
  294. this.m_draw_polygon.Click += new System.EventHandler(this.m_draw_polygon_Click);
  295. // 
  296. // menuItem19
  297. // 
  298. this.menuItem19.Index = 3;
  299. this.menuItem19.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  300.    this.m_draw_text,
  301.    this.m_draw_arttext});
  302. this.menuItem19.Text = "文字";
  303. // 
  304. // m_draw_text
  305. // 
  306. this.m_draw_text.Index = 0;
  307. this.m_draw_text.Text = "普通文本";
  308. this.m_draw_text.Click += new System.EventHandler(this.m_draw_text_Click);
  309. // 
  310. // m_draw_arttext
  311. // 
  312. this.m_draw_arttext.Index = 1;
  313. this.m_draw_arttext.Text = "艺术字";
  314. this.m_draw_arttext.Click += new System.EventHandler(this.m_draw_arttext_Click);
  315. // 
  316. // menuItem22
  317. // 
  318. this.menuItem22.Index = 4;
  319. this.menuItem22.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  320.    this.m_draw_map,
  321.    this.m_draw_legend,
  322.    this.m_draw_scale,
  323.    this.m_draw_direaction});
  324. this.menuItem22.Text = "地图对象";
  325. // 
  326. // m_draw_map
  327. // 
  328. this.m_draw_map.Index = 0;
  329. this.m_draw_map.Text = "地图";
  330. this.m_draw_map.Click += new System.EventHandler(this.m_draw_map_Click);
  331. // 
  332. // m_draw_legend
  333. // 
  334. this.m_draw_legend.Index = 1;
  335. this.m_draw_legend.Text = "图例";
  336. this.m_draw_legend.Click += new System.EventHandler(this.m_draw_legend_Click);
  337. // 
  338. // m_draw_scale
  339. // 
  340. this.m_draw_scale.Index = 2;
  341. this.m_draw_scale.Text = "比例尺";
  342. this.m_draw_scale.Click += new System.EventHandler(this.m_draw_scale_Click);
  343. // 
  344. // m_draw_direaction
  345. // 
  346. this.m_draw_direaction.Index = 3;
  347. this.m_draw_direaction.Text = "方向标";
  348. this.m_draw_direaction.Click += new System.EventHandler(this.m_draw_direaction_Click);
  349. // 
  350. // m_draw_table
  351. // 
  352. this.m_draw_table.Index = 5;
  353. this.m_draw_table.Text = "表格";
  354. this.m_draw_table.Click += new System.EventHandler(this.m_draw_table_Click);
  355. // 
  356. // m_draw_picture
  357. // 
  358. this.m_draw_picture.Index = 6;
  359. this.m_draw_picture.Text = "图片";
  360. this.m_draw_picture.Click += new System.EventHandler(this.m_draw_picture_Click);
  361. // 
  362. // menuItem29
  363. // 
  364. this.menuItem29.Index = 2;
  365. this.menuItem29.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  366.    this.m_select,
  367.    this.m_null,
  368.    this.m_zoomout,
  369.    this.m_zoomin,
  370.    this.m_pan,
  371.    this.m_height,
  372.    this.m_with,
  373.    this.menuItem3});
  374. this.menuItem29.Text = "页面操作 (&O)";
  375. // 
  376. // m_select
  377. // 
  378. this.m_select.Index = 0;
  379. this.m_select.Text = "选择对象";
  380. this.m_select.Click += new System.EventHandler(this.m_select_Click);
  381. // 
  382. // m_null
  383. // 
  384. this.m_null.Index = 1;
  385. this.m_null.Text = "置空";
  386. this.m_null.Click += new System.EventHandler(this.m_null_Click);
  387. // 
  388. // m_zoomout
  389. // 
  390. this.m_zoomout.Index = 2;
  391. this.m_zoomout.Text = "放大";
  392. this.m_zoomout.Click += new System.EventHandler(this.m_zoomout_Click);
  393. // 
  394. // m_zoomin
  395. // 
  396. this.m_zoomin.Index = 3;
  397. this.m_zoomin.Text = "缩小";
  398. this.m_zoomin.Click += new System.EventHandler(this.m_zoomin_Click);
  399. // 
  400. // m_pan
  401. // 
  402. this.m_pan.Index = 4;
  403. this.m_pan.Text = "平移";
  404. this.m_pan.Click += new System.EventHandler(this.m_pan_Click);
  405. // 
  406. // m_height
  407. // 
  408. this.m_height.Index = 5;
  409. this.m_height.Text = "适合高度";
  410. this.m_height.Click += new System.EventHandler(this.m_height_Click);
  411. // 
  412. // m_with
  413. // 
  414. this.m_with.Index = 6;
  415. this.m_with.Text = "适合宽度";
  416. this.m_with.Click += new System.EventHandler(this.m_with_Click);
  417. // 
  418. // menuItem3
  419. // 
  420. this.menuItem3.Index = 7;
  421. this.menuItem3.Text = "全部显示";
  422. this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
  423. // 
  424. // menuItem2
  425. // 
  426. this.menuItem2.Index = 3;
  427. this.menuItem2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  428.   this.menuItem4});
  429. this.menuItem2.Text = "帮助 (&H)";
  430. // 
  431. // menuItem4
  432. // 
  433. this.menuItem4.Index = 0;
  434. this.menuItem4.Shortcut = System.Windows.Forms.Shortcut.F1;
  435. this.menuItem4.Text = "系统帮助";
  436. this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
  437. // 
  438. // toolControl1
  439. // 
  440. this.toolControl1.Commands.AddRange(new Crownwood.DotNetMagic.Controls.Command.CommandBase[] {
  441.  this.buttonCommand_print,
  442.  this.separatorCommand1,
  443.  this.buttonCommand_out,
  444.  this.buttonCommand_in,
  445.  this.buttonCommand_pan,
  446.  this.separatorCommand2,
  447.  this.buttonCommand_select});
  448. this.toolControl1.Location = new System.Drawing.Point(0, 0);
  449. this.toolControl1.Name = "toolControl1";
  450. this.toolControl1.Size = new System.Drawing.Size(480, 27);
  451. this.toolControl1.TabIndex = 2;
  452. // 
  453. // buttonCommand_print
  454. // 
  455. this.buttonCommand_print.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_print.Image")));
  456. this.buttonCommand_print.Tag = null;
  457. this.buttonCommand_print.Text = "";
  458. this.buttonCommand_print.Tooltip = "打印";
  459. this.buttonCommand_print.Click += new System.EventHandler(this.m_out_print_Click);
  460. // 
  461. // separatorCommand1
  462. // 
  463. this.separatorCommand1.Tag = null;
  464. // 
  465. // buttonCommand_out
  466. // 
  467. this.buttonCommand_out.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_out.Image")));
  468. this.buttonCommand_out.Tag = null;
  469. this.buttonCommand_out.Text = "";
  470. this.buttonCommand_out.Tooltip = "放大";
  471. this.buttonCommand_out.Click += new System.EventHandler(this.m_zoomout_Click);
  472. // 
  473. // buttonCommand_in
  474. // 
  475. this.buttonCommand_in.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_in.Image")));
  476. this.buttonCommand_in.Tag = null;
  477. this.buttonCommand_in.Text = "";
  478. this.buttonCommand_in.Tooltip = "缩小";
  479. this.buttonCommand_in.Click += new System.EventHandler(this.m_zoomin_Click);
  480. // 
  481. // buttonCommand_pan
  482. // 
  483. this.buttonCommand_pan.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_pan.Image")));
  484. this.buttonCommand_pan.Tag = null;
  485. this.buttonCommand_pan.Text = "";
  486. this.buttonCommand_pan.Tooltip = "平移";
  487. this.buttonCommand_pan.Click += new System.EventHandler(this.m_pan_Click);
  488. // 
  489. // separatorCommand2
  490. // 
  491. this.separatorCommand2.Tag = null;
  492. // 
  493. // buttonCommand_select
  494. // 
  495. this.buttonCommand_select.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_select.Image")));
  496. this.buttonCommand_select.Tag = null;
  497. this.buttonCommand_select.Text = "";
  498. this.buttonCommand_select.Tooltip = "选择";
  499. this.buttonCommand_select.Click += new System.EventHandler(this.buttonCommand_select_Click);
  500. // 
  501. // LayOut
  502. // 
  503. this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
  504. this.ClientSize = new System.Drawing.Size(480, 297);
  505. this.Controls.Add(this.axSuperLayout1);
  506. this.Controls.Add(this.toolControl1);
  507. this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  508. this.Menu = this.mainMenu1;
  509. this.Name = "LayOut";
  510. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  511. this.Text = "地图打印输出";
  512. this.Closing += new System.ComponentModel.CancelEventHandler(this.LayOut_Closing);
  513. ((System.ComponentModel.ISupportInitialize)(this.axSuperLayout1)).EndInit();
  514. ((System.ComponentModel.ISupportInitialize)(this.toolControl1)).EndInit();
  515. this.ResumeLayout(false);
  516. }
  517. #endregion
  518. private void m_page_set_Click(object sender, System.EventArgs e)
  519. {
  520. this.axSuperLayout1.PageSetup();
  521. }
  522. private void m_print_set_Click(object sender, System.EventArgs e)
  523. {
  524. this.axSuperLayout1.LayoutSetup();
  525. }
  526. private void m_out_bmp_Click(object sender, System.EventArgs e)
  527. {
  528.             SaveFileDialog mysave = new SaveFileDialog();
  529. mysave.Title="输出图片";
  530. mysave.Filter="位图文件(*.bmp)|*.bmp";
  531. if(mysave.ShowDialog() == DialogResult.OK)
  532. this.axSuperLayout1.OutputToFile(mysave.FileName,SuperMapLib.seFileType.scfBMP);
  533. }
  534. private void m_out_print_Click(object sender, System.EventArgs e)
  535. {
  536. this.axSuperLayout1.PrintLayout(true);
  537. }
  538. private void m_exit_Click(object sender, System.EventArgs e)
  539. {
  540. this.Close();
  541. }
  542. private void m_draw_point_Click(object sender, System.EventArgs e)
  543. {
  544. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActPoint;
  545. }
  546. private void m_draw_linesect_Click(object sender, System.EventArgs e)
  547. {
  548. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActLinesect;
  549. }
  550. private void m_draw_polyline_Click(object sender, System.EventArgs e)
  551. {
  552. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActPolyline;
  553. }
  554. private void m_draw_arc_Click(object sender, System.EventArgs e)
  555. {
  556. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActArc;
  557. }
  558. private void m_draw_rect_Click(object sender, System.EventArgs e)
  559. {
  560. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActRect;
  561. }
  562. private void m_draw_roundrect_Click(object sender, System.EventArgs e)
  563. {
  564. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActRoundRect;
  565. }
  566. private void m_draw_ellipse_Click(object sender, System.EventArgs e)
  567. {
  568. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActEllipse;
  569. }
  570. private void m_draw_polygon_Click(object sender, System.EventArgs e)
  571. {
  572. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActPolygon;
  573. }
  574. private void m_draw_text_Click(object sender, System.EventArgs e)
  575. {
  576. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActText;
  577. }
  578. private void m_draw_arttext_Click(object sender, System.EventArgs e)
  579. {
  580. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActText;
  581. }
  582. private void m_draw_map_Click(object sender, System.EventArgs e)
  583. {
  584. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActMap;
  585. }
  586. private void m_draw_legend_Click(object sender, System.EventArgs e)
  587. {
  588. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActLegend;
  589. }
  590. private void m_draw_scale_Click(object sender, System.EventArgs e)
  591. {
  592. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActScale;
  593. }
  594. private void m_draw_direaction_Click(object sender, System.EventArgs e)
  595. {
  596. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActDirection;
  597. }
  598. private void m_draw_table_Click(object sender, System.EventArgs e)
  599. {
  600. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActTable;
  601. }
  602. private void m_draw_picture_Click(object sender, System.EventArgs e)
  603. {
  604. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActMap;
  605. }
  606. private void m_null_Click(object sender, System.EventArgs e)
  607. {
  608. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActNull;
  609. }
  610. private void m_zoomout_Click(object sender, System.EventArgs e)
  611. {
  612. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActZoomIn;
  613. }
  614. private void m_zoomin_Click(object sender, System.EventArgs e)
  615. {
  616. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActZoomOut;
  617. }
  618. private void m_pan_Click(object sender, System.EventArgs e)
  619. {
  620. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActPalm;
  621. }
  622. private void m_height_Click(object sender, System.EventArgs e)
  623. {
  624. this.axSuperLayout1.ZoomToPageHeight();
  625. }
  626. private void menuItem3_Click(object sender, System.EventArgs e)
  627. {
  628. this.axSuperLayout1.ZoomToPage();
  629. }
  630. private void m_with_Click(object sender, System.EventArgs e)
  631. {
  632. this.axSuperLayout1.ZoomToPageWidth();
  633. }
  634. private void m_select_Click(object sender, System.EventArgs e)
  635. {
  636. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActSel;
  637. }
  638. private void buttonCommand_select_Click(object sender, System.EventArgs e)
  639. {
  640. this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActSel;
  641. }
  642. private void LayOut_Closing(object sender, System.ComponentModel.CancelEventArgs e)
  643. {
  644. this.axSuperLayout1.Disconnect();
  645. }
  646. private void m_layout_set_Click(object sender, System.EventArgs e)
  647. {
  648. this.axSuperLayout1.LayoutSetup();
  649. }
  650. private void menuItem4_Click(object sender, System.EventArgs e)
  651. {
  652. string helpfile = "help.chm";
  653. Help.ShowHelp(this, helpfile);
  654. }
  655. }
  656. }