LetterWizardDialog.py 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122
  1. #
  2. # This file is part of the LibreOffice project.
  3. #
  4. # This Source Code Form is subject to the terms of the Mozilla Public
  5. # License, v. 2.0. If a copy of the MPL was not distributed with this
  6. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. #
  8. # This file incorporates work covered by the following license notice:
  9. #
  10. # Licensed to the Apache Software Foundation (ASF) under one or more
  11. # contributor license agreements. See the NOTICE file distributed
  12. # with this work for additional information regarding copyright
  13. # ownership. The ASF licenses this file to you under the Apache
  14. # License, Version 2.0 (the "License"); you may not use this file
  15. # except in compliance with the License. You may obtain a copy of
  16. # the License at http://www.apache.org/licenses/LICENSE-2.0 .
  17. #
  18. from .LetterWizardDialogConst import LetterWizardDialogConst, HIDMAIN, HID
  19. from .LetterWizardDialogResources import LetterWizardDialogResources
  20. from ..common.HelpIds import HelpIds
  21. from ..ui.WizardDialog import WizardDialog, uno, UIConsts, PropertyNames
  22. from com.sun.star.awt.FontUnderline import SINGLE
  23. class LetterWizardDialog(WizardDialog):
  24. def __init__(self, xmsf):
  25. super(LetterWizardDialog, self).__init__(xmsf, HIDMAIN )
  26. #Load Resources
  27. self.resources = LetterWizardDialogResources()
  28. #set dialog properties...
  29. self.setDialogProperties(True, 210, True, 104, 52, 1, 1,
  30. self.resources.resLetterWizardDialog_title, 350)
  31. self.fontDescriptor5 = \
  32. uno.createUnoStruct('com.sun.star.awt.FontDescriptor')
  33. self.fontDescriptor6 = \
  34. uno.createUnoStruct('com.sun.star.awt.FontDescriptor')
  35. self.fontDescriptor5.Weight = 100
  36. self.fontDescriptor6.Weight = 150
  37. def buildStep1(self):
  38. self.optBusinessLetter = self.insertRadioButton(
  39. "optBusinessLetter",
  40. LetterWizardDialogConst.OPTBUSINESSLETTER_ITEM_CHANGED,
  41. (PropertyNames.PROPERTY_HEIGHT,
  42. PropertyNames.PROPERTY_HELPURL,
  43. PropertyNames.PROPERTY_LABEL,
  44. PropertyNames.PROPERTY_NAME,
  45. PropertyNames.PROPERTY_POSITION_X,
  46. PropertyNames.PROPERTY_POSITION_Y,
  47. PropertyNames.PROPERTY_STEP,
  48. PropertyNames.PROPERTY_TABINDEX,
  49. PropertyNames.PROPERTY_WIDTH),
  50. (8, HelpIds.getHelpIdString(HID + 1),
  51. self.resources.resoptBusinessLetter_value,
  52. "optBusinessLetter", 97, 28, 1, 1, 184), self)
  53. self.optPrivOfficialLetter = self.insertRadioButton(
  54. "optPrivOfficialLetter",
  55. LetterWizardDialogConst.OPTPRIVOFFICIALLETTER_ITEM_CHANGED,
  56. (PropertyNames.PROPERTY_HEIGHT,
  57. PropertyNames.PROPERTY_HELPURL,
  58. PropertyNames.PROPERTY_LABEL,
  59. PropertyNames.PROPERTY_NAME,
  60. PropertyNames.PROPERTY_POSITION_X,
  61. PropertyNames.PROPERTY_POSITION_Y,
  62. PropertyNames.PROPERTY_STEP,
  63. PropertyNames.PROPERTY_TABINDEX,
  64. PropertyNames.PROPERTY_WIDTH),
  65. (8, HelpIds.getHelpIdString(HID + 2),
  66. self.resources.resoptPrivOfficialLetter_value,
  67. "optPrivOfficialLetter", 97, 74, 1, 2, 184), self)
  68. self.optPrivateLetter = self.insertRadioButton(
  69. "optPrivateLetter",
  70. LetterWizardDialogConst.OPTPRIVATELETTER_ITEM_CHANGED,
  71. (PropertyNames.PROPERTY_HEIGHT,
  72. PropertyNames.PROPERTY_HELPURL,
  73. PropertyNames.PROPERTY_LABEL,
  74. PropertyNames.PROPERTY_NAME,
  75. PropertyNames.PROPERTY_POSITION_X,
  76. PropertyNames.PROPERTY_POSITION_Y,
  77. PropertyNames.PROPERTY_STEP,
  78. PropertyNames.PROPERTY_TABINDEX,
  79. PropertyNames.PROPERTY_WIDTH),
  80. (8, HelpIds.getHelpIdString(HID + 3),
  81. self.resources.resoptPrivateLetter_value,
  82. "optPrivateLetter", 97, 106, 1, 3, 184), self)
  83. self.lstBusinessStyle = self.insertListBox(
  84. "lstBusinessStyle",
  85. LetterWizardDialogConst.LSTBUSINESSSTYLE_ACTION_PERFORMED,
  86. LetterWizardDialogConst.LSTBUSINESSSTYLE_ITEM_CHANGED,
  87. ("Dropdown",
  88. PropertyNames.PROPERTY_HEIGHT,
  89. PropertyNames.PROPERTY_HELPURL,
  90. PropertyNames.PROPERTY_NAME,
  91. PropertyNames.PROPERTY_POSITION_X,
  92. PropertyNames.PROPERTY_POSITION_Y,
  93. PropertyNames.PROPERTY_STEP,
  94. PropertyNames.PROPERTY_TABINDEX,
  95. PropertyNames.PROPERTY_WIDTH),
  96. (True, 12, HelpIds.getHelpIdString(HID + 4),
  97. "lstBusinessStyle",
  98. 180, 40, 1, 4, 74), self)
  99. self.chkBusinessPaper = self.insertCheckBox(
  100. "chkBusinessPaper",
  101. LetterWizardDialogConst.CHKBUSINESSPAPER_ITEM_CHANGED,
  102. (PropertyNames.PROPERTY_HEIGHT,
  103. PropertyNames.PROPERTY_HELPURL,
  104. PropertyNames.PROPERTY_LABEL,
  105. PropertyNames.PROPERTY_NAME,
  106. PropertyNames.PROPERTY_POSITION_X,
  107. PropertyNames.PROPERTY_POSITION_Y,
  108. PropertyNames.PROPERTY_STATE,
  109. PropertyNames.PROPERTY_STEP,
  110. PropertyNames.PROPERTY_TABINDEX,
  111. PropertyNames.PROPERTY_WIDTH),
  112. (8, HelpIds.getHelpIdString(HID + 5),
  113. self.resources.reschkBusinessPaper_value,
  114. "chkBusinessPaper", 110, 56, 0, 1, 5, 168), self)
  115. self.lstPrivOfficialStyle = self.insertListBox(
  116. "lstPrivOfficialStyle",
  117. LetterWizardDialogConst.LSTPRIVOFFICIALSTYLE_ACTION_PERFORMED,
  118. LetterWizardDialogConst.LSTPRIVOFFICIALSTYLE_ITEM_CHANGED,
  119. ("Dropdown",
  120. PropertyNames.PROPERTY_HEIGHT,
  121. PropertyNames.PROPERTY_HELPURL,
  122. PropertyNames.PROPERTY_NAME,
  123. PropertyNames.PROPERTY_POSITION_X,
  124. PropertyNames.PROPERTY_POSITION_Y,
  125. PropertyNames.PROPERTY_STEP,
  126. PropertyNames.PROPERTY_TABINDEX,
  127. PropertyNames.PROPERTY_WIDTH),
  128. (True, 12, HelpIds.getHelpIdString(HID + 6),
  129. "lstPrivOfficialStyle", 180, 86, 1, 6, 74), self)
  130. self.lstPrivateStyle = self.insertListBox(
  131. "lstPrivateStyle",
  132. LetterWizardDialogConst.LSTPRIVATESTYLE_ACTION_PERFORMED,
  133. LetterWizardDialogConst.LSTPRIVATESTYLE_ITEM_CHANGED,
  134. ("Dropdown",
  135. PropertyNames.PROPERTY_HEIGHT,
  136. PropertyNames.PROPERTY_HELPURL,
  137. PropertyNames.PROPERTY_NAME,
  138. PropertyNames.PROPERTY_POSITION_X,
  139. PropertyNames.PROPERTY_POSITION_Y,
  140. PropertyNames.PROPERTY_STEP,
  141. PropertyNames.PROPERTY_TABINDEX,
  142. PropertyNames.PROPERTY_WIDTH),
  143. (True, 12, HelpIds.getHelpIdString(HID + 7),
  144. "lstPrivateStyle", 180, 118, 1, 7, 74), self)
  145. self.insertLabel("lblBusinessStyle",
  146. (PropertyNames.PROPERTY_HEIGHT,
  147. PropertyNames.PROPERTY_LABEL,
  148. PropertyNames.PROPERTY_NAME,
  149. PropertyNames.PROPERTY_POSITION_X,
  150. PropertyNames.PROPERTY_POSITION_Y,
  151. PropertyNames.PROPERTY_STEP,
  152. PropertyNames.PROPERTY_TABINDEX,
  153. PropertyNames.PROPERTY_WIDTH),
  154. (8, self.resources.reslblBusinessStyle_value,
  155. "lblBusinessStyle", 110, 42, 1, 48, 60))
  156. self.insertLabel("lblPrivOfficialStyle",
  157. (PropertyNames.PROPERTY_HEIGHT,
  158. PropertyNames.PROPERTY_LABEL,
  159. PropertyNames.PROPERTY_NAME,
  160. PropertyNames.PROPERTY_POSITION_X,
  161. PropertyNames.PROPERTY_POSITION_Y,
  162. PropertyNames.PROPERTY_STEP,
  163. PropertyNames.PROPERTY_TABINDEX,
  164. PropertyNames.PROPERTY_WIDTH),
  165. (8, self.resources.reslblPrivOfficialStyle_value,
  166. "lblPrivOfficialStyle", 110, 88, 1, 49, 60))
  167. self.insertLabel("lblTitle1",
  168. ("FontDescriptor",
  169. PropertyNames.PROPERTY_HEIGHT,
  170. PropertyNames.PROPERTY_LABEL,
  171. PropertyNames.PROPERTY_MULTILINE,
  172. PropertyNames.PROPERTY_NAME,
  173. PropertyNames.PROPERTY_POSITION_X,
  174. PropertyNames.PROPERTY_POSITION_Y,
  175. PropertyNames.PROPERTY_STEP,
  176. PropertyNames.PROPERTY_TABINDEX,
  177. PropertyNames.PROPERTY_WIDTH),
  178. (self.fontDescriptor6, 16,
  179. self.resources.reslblTitle1_value, True,
  180. "lblTitle1", 91, 8, 1, 55, 212))
  181. self.insertLabel("lblPrivateStyle",
  182. (PropertyNames.PROPERTY_HEIGHT,
  183. PropertyNames.PROPERTY_LABEL,
  184. PropertyNames.PROPERTY_NAME,
  185. PropertyNames.PROPERTY_POSITION_X,
  186. PropertyNames.PROPERTY_POSITION_Y,
  187. PropertyNames.PROPERTY_STEP,
  188. PropertyNames.PROPERTY_TABINDEX,
  189. PropertyNames.PROPERTY_WIDTH),
  190. (8, self.resources.reslblPrivateStyle_value,
  191. "lblPrivateStyle", 110, 120, 1, 74, 60))
  192. self.insertLabel("lblIntroduction",
  193. (PropertyNames.PROPERTY_HEIGHT,
  194. PropertyNames.PROPERTY_LABEL,
  195. PropertyNames.PROPERTY_MULTILINE,
  196. PropertyNames.PROPERTY_NAME,
  197. PropertyNames.PROPERTY_POSITION_X,
  198. PropertyNames.PROPERTY_POSITION_Y,
  199. PropertyNames.PROPERTY_STEP,
  200. PropertyNames.PROPERTY_TABINDEX,
  201. PropertyNames.PROPERTY_WIDTH),
  202. (39, self.resources.reslblIntroduction_value,
  203. True,
  204. "lblIntroduction", 104, 145, 1, 80, 199))
  205. self.ImageControl3 = self.insertInfoImage(92, 145, 1)
  206. def buildStep2(self):
  207. self.chkPaperCompanyLogo = self.insertCheckBox(
  208. "chkPaperCompanyLogo",
  209. LetterWizardDialogConst.CHKPAPERCOMPANYLOGO_ITEM_CHANGED,
  210. (PropertyNames.PROPERTY_HEIGHT,
  211. PropertyNames.PROPERTY_HELPURL,
  212. PropertyNames.PROPERTY_LABEL,
  213. PropertyNames.PROPERTY_NAME,
  214. PropertyNames.PROPERTY_POSITION_X,
  215. PropertyNames.PROPERTY_POSITION_Y,
  216. PropertyNames.PROPERTY_STATE,
  217. PropertyNames.PROPERTY_STEP,
  218. PropertyNames.PROPERTY_TABINDEX,
  219. PropertyNames.PROPERTY_WIDTH),
  220. (8, HelpIds.getHelpIdString(HID + 8),
  221. self.resources.reschkPaperCompanyLogo_value,
  222. "chkPaperCompanyLogo", 97, 28, 0, 2, 8, 68), self)
  223. self.numLogoHeight = self.insertNumericField(
  224. "numLogoHeight",
  225. LetterWizardDialogConst.NUMLOGOHEIGHT_TEXT_CHANGED,
  226. (PropertyNames.PROPERTY_HEIGHT,
  227. PropertyNames.PROPERTY_HELPURL,
  228. PropertyNames.PROPERTY_NAME,
  229. PropertyNames.PROPERTY_POSITION_X,
  230. PropertyNames.PROPERTY_POSITION_Y,
  231. "Spin",
  232. PropertyNames.PROPERTY_STEP,
  233. "StrictFormat",
  234. PropertyNames.PROPERTY_TABINDEX,
  235. "Value",
  236. PropertyNames.PROPERTY_WIDTH),
  237. (12, HelpIds.getHelpIdString(HID + 9),
  238. "numLogoHeight", 138, 40, True, 2, True, 9, 3, 50), self)
  239. self.numLogoX = self.insertNumericField(
  240. "numLogoX",
  241. LetterWizardDialogConst.NUMLOGOX_TEXT_CHANGED,
  242. (PropertyNames.PROPERTY_HEIGHT,
  243. PropertyNames.PROPERTY_HELPURL,
  244. PropertyNames.PROPERTY_NAME,
  245. PropertyNames.PROPERTY_POSITION_X,
  246. PropertyNames.PROPERTY_POSITION_Y,
  247. "Spin",
  248. PropertyNames.PROPERTY_STEP,
  249. PropertyNames.PROPERTY_TABINDEX,
  250. "Value",
  251. PropertyNames.PROPERTY_WIDTH),
  252. (12, HelpIds.getHelpIdString(HID + 10),
  253. "numLogoX", 286, 40, True, 2, 10, 0, 50), self)
  254. self.numLogoWidth = self.insertNumericField(
  255. "numLogoWidth",
  256. LetterWizardDialogConst.NUMLOGOWIDTH_TEXT_CHANGED,
  257. (PropertyNames.PROPERTY_HEIGHT,
  258. PropertyNames.PROPERTY_HELPURL,
  259. PropertyNames.PROPERTY_NAME,
  260. PropertyNames.PROPERTY_POSITION_X,
  261. PropertyNames.PROPERTY_POSITION_Y,
  262. "Spin",
  263. PropertyNames.PROPERTY_STEP,
  264. PropertyNames.PROPERTY_TABINDEX,
  265. "Value",
  266. PropertyNames.PROPERTY_WIDTH),
  267. (12, HelpIds.getHelpIdString(HID + 11),
  268. "numLogoWidth", 138, 56, True, 2, 11, 3.8, 50), self)
  269. self.numLogoY = self.insertNumericField(
  270. "numLogoY",
  271. LetterWizardDialogConst.NUMLOGOY_TEXT_CHANGED,
  272. (PropertyNames.PROPERTY_HEIGHT,
  273. PropertyNames.PROPERTY_HELPURL,
  274. PropertyNames.PROPERTY_NAME,
  275. PropertyNames.PROPERTY_POSITION_X,
  276. PropertyNames.PROPERTY_POSITION_Y,
  277. "Spin",
  278. PropertyNames.PROPERTY_STEP,
  279. PropertyNames.PROPERTY_TABINDEX,
  280. "Value",
  281. PropertyNames.PROPERTY_WIDTH),
  282. (12, HelpIds.getHelpIdString(HID + 12),
  283. "numLogoY", 286, 56, True, 2, 12, -3.4, 50), self)
  284. self.chkPaperCompanyAddress = self.insertCheckBox(
  285. "chkPaperCompanyAddress",
  286. LetterWizardDialogConst.CHKPAPERCOMPANYADDRESS_ITEM_CHANGED,
  287. (PropertyNames.PROPERTY_HEIGHT,
  288. PropertyNames.PROPERTY_HELPURL,
  289. PropertyNames.PROPERTY_LABEL,
  290. PropertyNames.PROPERTY_NAME,
  291. PropertyNames.PROPERTY_POSITION_X,
  292. PropertyNames.PROPERTY_POSITION_Y,
  293. PropertyNames.PROPERTY_STATE,
  294. PropertyNames.PROPERTY_STEP,
  295. PropertyNames.PROPERTY_TABINDEX,
  296. PropertyNames.PROPERTY_WIDTH),
  297. (8, HelpIds.getHelpIdString(HID + 13),
  298. self.resources.reschkPaperCompanyAddress_value,
  299. "chkPaperCompanyAddress", 98, 84, 0, 2, 13, 68), self)
  300. self.numAddressHeight = self.insertNumericField(
  301. "numAddressHeight",
  302. LetterWizardDialogConst.NUMADDRESSHEIGHT_TEXT_CHANGED,
  303. (PropertyNames.PROPERTY_HEIGHT,
  304. PropertyNames.PROPERTY_HELPURL,
  305. PropertyNames.PROPERTY_NAME,
  306. PropertyNames.PROPERTY_POSITION_X,
  307. PropertyNames.PROPERTY_POSITION_Y,
  308. "Spin",
  309. PropertyNames.PROPERTY_STEP,
  310. "StrictFormat",
  311. PropertyNames.PROPERTY_TABINDEX,
  312. "Value",
  313. PropertyNames.PROPERTY_WIDTH),
  314. (12, HelpIds.getHelpIdString(HID + 14),
  315. "numAddressHeight", 138, 96, True, 2, True, 14, 3, 50), self)
  316. self.numAddressX = self.insertNumericField(
  317. "numAddressX",
  318. LetterWizardDialogConst.NUMADDRESSX_TEXT_CHANGED,
  319. (PropertyNames.PROPERTY_HEIGHT,
  320. PropertyNames.PROPERTY_HELPURL,
  321. PropertyNames.PROPERTY_NAME,
  322. PropertyNames.PROPERTY_POSITION_X,
  323. PropertyNames.PROPERTY_POSITION_Y,
  324. "Spin",
  325. PropertyNames.PROPERTY_STEP,
  326. PropertyNames.PROPERTY_TABINDEX,
  327. "Value",
  328. PropertyNames.PROPERTY_WIDTH),
  329. (12, HelpIds.getHelpIdString(HID + 15),
  330. "numAddressX", 286, 96, True, 2, 15, 3.8, 50), self)
  331. self.numAddressWidth = self.insertNumericField(
  332. "numAddressWidth",
  333. LetterWizardDialogConst.NUMADDRESSWIDTH_TEXT_CHANGED,
  334. (PropertyNames.PROPERTY_HEIGHT,
  335. PropertyNames.PROPERTY_HELPURL,
  336. PropertyNames.PROPERTY_NAME,
  337. PropertyNames.PROPERTY_POSITION_X,
  338. PropertyNames.PROPERTY_POSITION_Y,
  339. "Spin",
  340. PropertyNames.PROPERTY_STEP,
  341. PropertyNames.PROPERTY_TABINDEX,
  342. "Value",
  343. PropertyNames.PROPERTY_WIDTH),
  344. (12, HelpIds.getHelpIdString(HID + 16),
  345. "numAddressWidth", 138, 112, True, 2, 16, 13.8, 50), self)
  346. self.numAddressY = self.insertNumericField(
  347. "numAddressY",
  348. LetterWizardDialogConst.NUMADDRESSY_TEXT_CHANGED,
  349. (PropertyNames.PROPERTY_HEIGHT,
  350. PropertyNames.PROPERTY_HELPURL,
  351. PropertyNames.PROPERTY_NAME,
  352. PropertyNames.PROPERTY_POSITION_X,
  353. PropertyNames.PROPERTY_POSITION_Y,
  354. "Spin",
  355. PropertyNames.PROPERTY_STEP,
  356. PropertyNames.PROPERTY_TABINDEX,
  357. "Value",
  358. PropertyNames.PROPERTY_WIDTH),
  359. (12, HelpIds.getHelpIdString(HID + 17),
  360. "numAddressY", 286, 112, True, 2, 17, -3.4, 50), self)
  361. self.chkCompanyReceiver = self.insertCheckBox(
  362. "chkCompanyReceiver",
  363. LetterWizardDialogConst.CHKCOMPANYRECEIVER_ITEM_CHANGED,
  364. (PropertyNames.PROPERTY_HEIGHT,
  365. PropertyNames.PROPERTY_HELPURL,
  366. PropertyNames.PROPERTY_LABEL,
  367. PropertyNames.PROPERTY_NAME,
  368. PropertyNames.PROPERTY_POSITION_X,
  369. PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STATE,
  370. PropertyNames.PROPERTY_STEP,
  371. PropertyNames.PROPERTY_TABINDEX,
  372. PropertyNames.PROPERTY_WIDTH),
  373. (8, HelpIds.getHelpIdString(HID + 18),
  374. self.resources.reschkCompanyReceiver_value,
  375. "chkCompanyReceiver", 103, 131, 0, 2, 18, 185), self)
  376. self.chkPaperFooter = self.insertCheckBox(
  377. "chkPaperFooter",
  378. LetterWizardDialogConst.CHKPAPERFOOTER_ITEM_CHANGED,
  379. (PropertyNames.PROPERTY_HEIGHT,
  380. PropertyNames.PROPERTY_HELPURL,
  381. PropertyNames.PROPERTY_LABEL,
  382. PropertyNames.PROPERTY_NAME,
  383. PropertyNames.PROPERTY_POSITION_X,
  384. PropertyNames.PROPERTY_POSITION_Y,
  385. PropertyNames.PROPERTY_STATE,
  386. PropertyNames.PROPERTY_STEP,
  387. PropertyNames.PROPERTY_TABINDEX,
  388. PropertyNames.PROPERTY_WIDTH),
  389. (8, HelpIds.getHelpIdString(HID + 19),
  390. self.resources.reschkPaperFooter_value,
  391. "chkPaperFooter", 97, 158, 0, 2, 19, 68), self)
  392. self.numFooterHeight = self.insertNumericField(
  393. "numFooterHeight",
  394. LetterWizardDialogConst.NUMFOOTERHEIGHT_TEXT_CHANGED,
  395. (PropertyNames.PROPERTY_HEIGHT,
  396. PropertyNames.PROPERTY_HELPURL,
  397. PropertyNames.PROPERTY_NAME,
  398. PropertyNames.PROPERTY_POSITION_X,
  399. PropertyNames.PROPERTY_POSITION_Y,
  400. "Spin",
  401. PropertyNames.PROPERTY_STEP,
  402. PropertyNames.PROPERTY_TABINDEX,
  403. "Value",
  404. PropertyNames.PROPERTY_WIDTH),
  405. (12, HelpIds.getHelpIdString(HID + 20),
  406. "numFooterHeight", 236, 156, True, 2, 20, 5, 50), self)
  407. self.insertLabel("lblLogoHeight",
  408. (PropertyNames.PROPERTY_HEIGHT,
  409. PropertyNames.PROPERTY_LABEL,
  410. PropertyNames.PROPERTY_NAME,
  411. PropertyNames.PROPERTY_POSITION_X,
  412. PropertyNames.PROPERTY_POSITION_Y,
  413. PropertyNames.PROPERTY_STEP,
  414. PropertyNames.PROPERTY_TABINDEX,
  415. PropertyNames.PROPERTY_WIDTH),
  416. (8, self.resources.reslblLogoHeight_value,
  417. "lblLogoHeight", 103, 42, 2, 68, 32))
  418. self.insertLabel("lblLogoWidth",
  419. (PropertyNames.PROPERTY_HEIGHT,
  420. PropertyNames.PROPERTY_LABEL,
  421. PropertyNames.PROPERTY_NAME,
  422. PropertyNames.PROPERTY_POSITION_X,
  423. PropertyNames.PROPERTY_POSITION_Y,
  424. PropertyNames.PROPERTY_STEP,
  425. PropertyNames.PROPERTY_TABINDEX,
  426. PropertyNames.PROPERTY_WIDTH),
  427. (8, self.resources.reslblLogoWidth_value,
  428. "lblLogoWidth", 103, 58, 2, 69, 32))
  429. self.insertFixedLine(
  430. "FixedLine5",
  431. (PropertyNames.PROPERTY_HEIGHT,
  432. PropertyNames.PROPERTY_NAME,
  433. PropertyNames.PROPERTY_POSITION_X,
  434. PropertyNames.PROPERTY_POSITION_Y,
  435. PropertyNames.PROPERTY_STEP,
  436. PropertyNames.PROPERTY_TABINDEX,
  437. PropertyNames.PROPERTY_WIDTH),
  438. (2,
  439. "FixedLine5", 90, 78, 2, 70, 255))
  440. self.insertFixedLine(
  441. "FixedLine6",
  442. (PropertyNames.PROPERTY_HEIGHT,
  443. PropertyNames.PROPERTY_NAME,
  444. PropertyNames.PROPERTY_POSITION_X,
  445. PropertyNames.PROPERTY_POSITION_Y,
  446. PropertyNames.PROPERTY_STEP,
  447. PropertyNames.PROPERTY_TABINDEX,
  448. PropertyNames.PROPERTY_WIDTH),
  449. (2,
  450. "FixedLine6", 90, 150, 2, 71, 255))
  451. self.insertLabel("lblFooterHeight",
  452. (PropertyNames.PROPERTY_HEIGHT,
  453. PropertyNames.PROPERTY_LABEL,
  454. PropertyNames.PROPERTY_NAME,
  455. PropertyNames.PROPERTY_POSITION_X,
  456. PropertyNames.PROPERTY_POSITION_Y,
  457. PropertyNames.PROPERTY_STEP,
  458. PropertyNames.PROPERTY_TABINDEX,
  459. PropertyNames.PROPERTY_WIDTH),
  460. (8, self.resources.reslblFooterHeight_value,
  461. "lblFooterHeight", 200, 158, 2, 72, 32))
  462. self.insertLabel("lblLogoX",
  463. (PropertyNames.PROPERTY_HEIGHT,
  464. PropertyNames.PROPERTY_LABEL,
  465. PropertyNames.PROPERTY_NAME,
  466. PropertyNames.PROPERTY_POSITION_X,
  467. PropertyNames.PROPERTY_POSITION_Y,
  468. PropertyNames.PROPERTY_STEP,
  469. PropertyNames.PROPERTY_TABINDEX,
  470. PropertyNames.PROPERTY_WIDTH),
  471. (8, self.resources.reslblLogoX_value,
  472. "lblLogoX", 190, 42, 2, 84, 94))
  473. self.insertLabel("lblLogoY",
  474. (PropertyNames.PROPERTY_HEIGHT,
  475. PropertyNames.PROPERTY_LABEL,
  476. PropertyNames.PROPERTY_NAME,
  477. PropertyNames.PROPERTY_POSITION_X,
  478. PropertyNames.PROPERTY_POSITION_Y,
  479. PropertyNames.PROPERTY_STEP,
  480. PropertyNames.PROPERTY_TABINDEX,
  481. PropertyNames.PROPERTY_WIDTH),
  482. (8, self.resources.reslblLogoY_value,
  483. "lblLogoY", 190, 58, 2, 85, 94))
  484. self.insertLabel("lblAddressHeight",
  485. (PropertyNames.PROPERTY_HEIGHT,
  486. PropertyNames.PROPERTY_LABEL,
  487. PropertyNames.PROPERTY_NAME,
  488. PropertyNames.PROPERTY_POSITION_X,
  489. PropertyNames.PROPERTY_POSITION_Y,
  490. PropertyNames.PROPERTY_STEP,
  491. PropertyNames.PROPERTY_TABINDEX,
  492. PropertyNames.PROPERTY_WIDTH),
  493. (8, self.resources.reslblAddressHeight_value,
  494. "lblAddressHeight", 103, 98, 2, 86, 32))
  495. self.insertLabel("lblAddressWidth",
  496. (PropertyNames.PROPERTY_HEIGHT,
  497. PropertyNames.PROPERTY_LABEL,
  498. PropertyNames.PROPERTY_NAME,
  499. PropertyNames.PROPERTY_POSITION_X,
  500. PropertyNames.PROPERTY_POSITION_Y,
  501. PropertyNames.PROPERTY_STEP,
  502. PropertyNames.PROPERTY_TABINDEX,
  503. PropertyNames.PROPERTY_WIDTH),
  504. (8, self.resources.reslblAddressWidth_value,
  505. "lblAddressWidth", 103, 114, 2, 87, 32))
  506. self.insertLabel("lblAddressX",
  507. (PropertyNames.PROPERTY_HEIGHT,
  508. PropertyNames.PROPERTY_LABEL,
  509. PropertyNames.PROPERTY_NAME,
  510. PropertyNames.PROPERTY_POSITION_X,
  511. PropertyNames.PROPERTY_POSITION_Y,
  512. PropertyNames.PROPERTY_STEP,
  513. PropertyNames.PROPERTY_TABINDEX,
  514. PropertyNames.PROPERTY_WIDTH),
  515. (8, self.resources.reslblAddressX_value,
  516. "lblAddressX", 190, 98, 2, 88, 94))
  517. self.insertLabel("lblAddressY",
  518. (PropertyNames.PROPERTY_HEIGHT,
  519. PropertyNames.PROPERTY_LABEL,
  520. PropertyNames.PROPERTY_NAME,
  521. PropertyNames.PROPERTY_POSITION_X,
  522. PropertyNames.PROPERTY_POSITION_Y,
  523. PropertyNames.PROPERTY_STEP,
  524. PropertyNames.PROPERTY_TABINDEX,
  525. PropertyNames.PROPERTY_WIDTH),
  526. (8, self.resources.reslblAddressY_value,
  527. "lblAddressY", 190, 114, 2, 89, 94))
  528. self.insertLabel("lblTitle2",
  529. ("FontDescriptor",
  530. PropertyNames.PROPERTY_HEIGHT,
  531. PropertyNames.PROPERTY_LABEL,
  532. PropertyNames.PROPERTY_MULTILINE,
  533. PropertyNames.PROPERTY_NAME,
  534. PropertyNames.PROPERTY_POSITION_X,
  535. PropertyNames.PROPERTY_POSITION_Y,
  536. PropertyNames.PROPERTY_STEP,
  537. PropertyNames.PROPERTY_TABINDEX,
  538. PropertyNames.PROPERTY_WIDTH),
  539. (self.fontDescriptor6, 16,
  540. self.resources.reslblTitle2_value, True,
  541. "lblTitle2", 91, 8, 2, 91, 212))
  542. def buildStep3(self):
  543. self.chkUseLogo = self.insertCheckBox(
  544. "chkUseLogo",
  545. LetterWizardDialogConst.CHKUSELOGO_ITEM_CHANGED,
  546. (PropertyNames.PROPERTY_HEIGHT,
  547. PropertyNames.PROPERTY_HELPURL,
  548. PropertyNames.PROPERTY_LABEL,
  549. PropertyNames.PROPERTY_NAME,
  550. PropertyNames.PROPERTY_POSITION_X,
  551. PropertyNames.PROPERTY_POSITION_Y,
  552. PropertyNames.PROPERTY_STATE,
  553. PropertyNames.PROPERTY_STEP,
  554. PropertyNames.PROPERTY_TABINDEX,
  555. PropertyNames.PROPERTY_WIDTH),
  556. (8, HelpIds.getHelpIdString(HID + 22),
  557. self.resources.reschkUseLogo_value,
  558. "chkUseLogo", 97, 34, 0, 3, 22, 212), self)
  559. self.chkUseAddressReceiver = self.insertCheckBox(
  560. "chkUseAddressReceiver",
  561. LetterWizardDialogConst.CHKUSEADDRESSRECEIVER_ITEM_CHANGED,
  562. (PropertyNames.PROPERTY_HEIGHT,
  563. PropertyNames.PROPERTY_HELPURL,
  564. PropertyNames.PROPERTY_LABEL,
  565. PropertyNames.PROPERTY_NAME,
  566. PropertyNames.PROPERTY_POSITION_X,
  567. PropertyNames.PROPERTY_POSITION_Y,
  568. PropertyNames.PROPERTY_STATE,
  569. PropertyNames.PROPERTY_STEP,
  570. PropertyNames.PROPERTY_TABINDEX,
  571. PropertyNames.PROPERTY_WIDTH),
  572. (8, HelpIds.getHelpIdString(HID + 23),
  573. self.resources.reschkUseAddressReceiver_value,
  574. "chkUseAddressReceiver", 97, 49, 0, 3, 23, 212), self)
  575. self.chkUseSigns = self.insertCheckBox(
  576. "chkUseSigns",
  577. LetterWizardDialogConst.CHKUSESIGNS_ITEM_CHANGED,
  578. (PropertyNames.PROPERTY_HEIGHT,
  579. PropertyNames.PROPERTY_HELPURL,
  580. PropertyNames.PROPERTY_LABEL,
  581. PropertyNames.PROPERTY_NAME,
  582. PropertyNames.PROPERTY_POSITION_X,
  583. PropertyNames.PROPERTY_POSITION_Y,
  584. PropertyNames.PROPERTY_STATE,
  585. PropertyNames.PROPERTY_STEP,
  586. PropertyNames.PROPERTY_TABINDEX,
  587. PropertyNames.PROPERTY_WIDTH),
  588. (8, HelpIds.getHelpIdString(HID + 24),
  589. self.resources.reschkUseSigns_value,
  590. "chkUseSigns", 97, 62, 0, 3, 24, 212), self)
  591. self.chkUseSubject = self.insertCheckBox(
  592. "chkUseSubject",
  593. LetterWizardDialogConst.CHKUSESUBJECT_ITEM_CHANGED,
  594. (PropertyNames.PROPERTY_HEIGHT,
  595. PropertyNames.PROPERTY_HELPURL,
  596. PropertyNames.PROPERTY_LABEL,
  597. PropertyNames.PROPERTY_NAME,
  598. PropertyNames.PROPERTY_POSITION_X,
  599. PropertyNames.PROPERTY_POSITION_Y,
  600. PropertyNames.PROPERTY_STATE,
  601. PropertyNames.PROPERTY_STEP,
  602. PropertyNames.PROPERTY_TABINDEX,
  603. PropertyNames.PROPERTY_WIDTH),
  604. (8, HelpIds.getHelpIdString(HID + 25),
  605. self.resources.reschkUseSubject_value,
  606. "chkUseSubject", 97, 78, 0, 3, 25, 212), self)
  607. self.chkUseSalutation = self.insertCheckBox(
  608. "chkUseSalutation",
  609. LetterWizardDialogConst.CHKUSESALUTATION_ITEM_CHANGED,
  610. (PropertyNames.PROPERTY_HEIGHT,
  611. PropertyNames.PROPERTY_HELPURL,
  612. PropertyNames.PROPERTY_LABEL,
  613. PropertyNames.PROPERTY_NAME,
  614. PropertyNames.PROPERTY_POSITION_X,
  615. PropertyNames.PROPERTY_POSITION_Y,
  616. PropertyNames.PROPERTY_STATE,
  617. PropertyNames.PROPERTY_STEP,
  618. PropertyNames.PROPERTY_TABINDEX,
  619. PropertyNames.PROPERTY_WIDTH),
  620. (8, HelpIds.getHelpIdString(HID + 26),
  621. self.resources.reschkUseSalutation_value,
  622. "chkUseSalutation", 97, 93, 0, 3, 26, 66), self)
  623. self.lstSalutation = self.insertComboBox(
  624. "lstSalutation",
  625. LetterWizardDialogConst.LSTSALUTATION_ACTION_PERFORMED,
  626. LetterWizardDialogConst.LSTSALUTATION_ITEM_CHANGED,
  627. LetterWizardDialogConst.LSTSALUTATION_TEXT_CHANGED,
  628. ("Dropdown",
  629. PropertyNames.PROPERTY_HEIGHT,
  630. PropertyNames.PROPERTY_HELPURL,
  631. PropertyNames.PROPERTY_NAME,
  632. PropertyNames.PROPERTY_POSITION_X,
  633. PropertyNames.PROPERTY_POSITION_Y,
  634. PropertyNames.PROPERTY_STEP,
  635. PropertyNames.PROPERTY_TABINDEX,
  636. PropertyNames.PROPERTY_WIDTH),
  637. (True, 12, HelpIds.getHelpIdString(HID + 27),
  638. "lstSalutation", 210, 90, 3, 27, 74), self)
  639. self.chkUseBendMarks = self.insertCheckBox(
  640. "chkUseBendMarks",
  641. LetterWizardDialogConst.CHKUSEBENDMARKS_ITEM_CHANGED,
  642. (PropertyNames.PROPERTY_HEIGHT,
  643. PropertyNames.PROPERTY_HELPURL,
  644. PropertyNames.PROPERTY_LABEL,
  645. PropertyNames.PROPERTY_NAME,
  646. PropertyNames.PROPERTY_POSITION_X,
  647. PropertyNames.PROPERTY_POSITION_Y,
  648. PropertyNames.PROPERTY_STATE,
  649. PropertyNames.PROPERTY_STEP,
  650. PropertyNames.PROPERTY_TABINDEX,
  651. PropertyNames.PROPERTY_WIDTH),
  652. (8, HelpIds.getHelpIdString(HID + 28),
  653. self.resources.reschkUseBendMarks_value,
  654. "chkUseBendMarks", 97, 107, 0, 3, 28, 212), self)
  655. self.chkUseGreeting = self.insertCheckBox(
  656. "chkUseGreeting",
  657. LetterWizardDialogConst.CHKUSEGREETING_ITEM_CHANGED,
  658. (PropertyNames.PROPERTY_HEIGHT,
  659. PropertyNames.PROPERTY_HELPURL,
  660. PropertyNames.PROPERTY_LABEL,
  661. PropertyNames.PROPERTY_NAME,
  662. PropertyNames.PROPERTY_POSITION_X,
  663. PropertyNames.PROPERTY_POSITION_Y,
  664. PropertyNames.PROPERTY_STATE,
  665. PropertyNames.PROPERTY_STEP,
  666. PropertyNames.PROPERTY_TABINDEX,
  667. PropertyNames.PROPERTY_WIDTH),
  668. (8, HelpIds.getHelpIdString(HID + 29),
  669. self.resources.reschkUseGreeting_value,
  670. "chkUseGreeting", 97, 122, 0, 3, 29, 66), self)
  671. self.lstGreeting = self.insertComboBox(
  672. "lstGreeting",
  673. LetterWizardDialogConst.LSTGREETING_ACTION_PERFORMED,
  674. LetterWizardDialogConst.LSTGREETING_ITEM_CHANGED,
  675. LetterWizardDialogConst.LSTGREETING_TEXT_CHANGED,
  676. ("Dropdown",
  677. PropertyNames.PROPERTY_HEIGHT,
  678. PropertyNames.PROPERTY_HELPURL,
  679. PropertyNames.PROPERTY_NAME,
  680. PropertyNames.PROPERTY_POSITION_X,
  681. PropertyNames.PROPERTY_POSITION_Y,
  682. PropertyNames.PROPERTY_STEP,
  683. PropertyNames.PROPERTY_TABINDEX,
  684. PropertyNames.PROPERTY_WIDTH),
  685. (True, 12, HelpIds.getHelpIdString(HID + 30),
  686. "lstGreeting", 210, 121, 3, 30, 74), self)
  687. self.chkUseFooter = self.insertCheckBox(
  688. "chkUseFooter",
  689. LetterWizardDialogConst.CHKUSEFOOTER_ITEM_CHANGED,
  690. (PropertyNames.PROPERTY_HEIGHT,
  691. PropertyNames.PROPERTY_HELPURL,
  692. PropertyNames.PROPERTY_LABEL,
  693. PropertyNames.PROPERTY_NAME,
  694. PropertyNames.PROPERTY_POSITION_X,
  695. PropertyNames.PROPERTY_POSITION_Y,
  696. PropertyNames.PROPERTY_STATE,
  697. PropertyNames.PROPERTY_STEP,
  698. PropertyNames.PROPERTY_TABINDEX,
  699. PropertyNames.PROPERTY_WIDTH),
  700. (8, HelpIds.getHelpIdString(HID + 31),
  701. self.resources.reschkUseFooter_value,
  702. "chkUseFooter", 97, 138, 0, 3, 31, 212), self)
  703. self.insertLabel("lblTitle3",
  704. (
  705. "FontDescriptor", PropertyNames.PROPERTY_HEIGHT,
  706. PropertyNames.PROPERTY_LABEL,
  707. PropertyNames.PROPERTY_MULTILINE,
  708. PropertyNames.PROPERTY_NAME,
  709. PropertyNames.PROPERTY_POSITION_X,
  710. PropertyNames.PROPERTY_POSITION_Y,
  711. PropertyNames.PROPERTY_STEP,
  712. PropertyNames.PROPERTY_TABINDEX,
  713. PropertyNames.PROPERTY_WIDTH),
  714. (self.fontDescriptor6, 16,
  715. self.resources.reslblTitle3_value, True,
  716. "lblTitle3", 91, 8, 3, 90, 212))
  717. def buildStep4(self):
  718. self.optSenderPlaceholder = self.insertRadioButton(
  719. "optSenderPlaceholder",
  720. LetterWizardDialogConst.OPTSENDERPLACEHOLDER_ITEM_CHANGED,
  721. (PropertyNames.PROPERTY_HEIGHT,
  722. PropertyNames.PROPERTY_HELPURL,
  723. PropertyNames.PROPERTY_LABEL,
  724. PropertyNames.PROPERTY_NAME,
  725. PropertyNames.PROPERTY_POSITION_X,
  726. PropertyNames.PROPERTY_POSITION_Y,
  727. PropertyNames.PROPERTY_STEP,
  728. PropertyNames.PROPERTY_TABINDEX,
  729. PropertyNames.PROPERTY_WIDTH),
  730. (8, HelpIds.getHelpIdString(HID + 32),
  731. self.resources.resoptSenderPlaceholder_value,
  732. "optSenderPlaceholder", 104, 42, 4, 32, 149), self)
  733. self.optSenderDefine = self.insertRadioButton(
  734. "optSenderDefine",
  735. LetterWizardDialogConst.OPTSENDERDEFINE_ITEM_CHANGED,
  736. (PropertyNames.PROPERTY_HEIGHT,
  737. PropertyNames.PROPERTY_HELPURL,
  738. PropertyNames.PROPERTY_LABEL,
  739. PropertyNames.PROPERTY_NAME,
  740. PropertyNames.PROPERTY_POSITION_X,
  741. PropertyNames.PROPERTY_POSITION_Y,
  742. PropertyNames.PROPERTY_STEP,
  743. PropertyNames.PROPERTY_TABINDEX,
  744. PropertyNames.PROPERTY_WIDTH),
  745. (8, HelpIds.getHelpIdString(HID + 33),
  746. self.resources.resoptSenderDefine_value,
  747. "optSenderDefine", 104, 54, 4, 33, 149), self)
  748. self.txtSenderName = self.insertTextField(
  749. "txtSenderName",
  750. LetterWizardDialogConst.TXTSENDERNAME_TEXT_CHANGED,
  751. (PropertyNames.PROPERTY_HEIGHT,
  752. PropertyNames.PROPERTY_HELPURL,
  753. PropertyNames.PROPERTY_NAME,
  754. PropertyNames.PROPERTY_POSITION_X,
  755. PropertyNames.PROPERTY_POSITION_Y,
  756. PropertyNames.PROPERTY_STEP,
  757. PropertyNames.PROPERTY_TABINDEX,
  758. PropertyNames.PROPERTY_WIDTH),
  759. (12, HelpIds.getHelpIdString(HID + 34),
  760. "txtSenderName", 182, 67, 4, 34, 119), self)
  761. self.txtSenderStreet = self.insertTextField(
  762. "txtSenderStreet",
  763. LetterWizardDialogConst.TXTSENDERSTREET_TEXT_CHANGED,
  764. (PropertyNames.PROPERTY_HEIGHT,
  765. PropertyNames.PROPERTY_HELPURL,
  766. PropertyNames.PROPERTY_NAME,
  767. PropertyNames.PROPERTY_POSITION_X,
  768. PropertyNames.PROPERTY_POSITION_Y,
  769. PropertyNames.PROPERTY_STEP,
  770. PropertyNames.PROPERTY_TABINDEX,
  771. PropertyNames.PROPERTY_WIDTH),
  772. (12, HelpIds.getHelpIdString(HID + 35),
  773. "txtSenderStreet", 182, 81, 4, 35, 119), self)
  774. self.txtSenderPostCode = self.insertTextField(
  775. "txtSenderPostCode",
  776. LetterWizardDialogConst.TXTSENDERPOSTCODE_TEXT_CHANGED,
  777. (PropertyNames.PROPERTY_HEIGHT,
  778. PropertyNames.PROPERTY_HELPURL,
  779. PropertyNames.PROPERTY_NAME,
  780. PropertyNames.PROPERTY_POSITION_X,
  781. PropertyNames.PROPERTY_POSITION_Y,
  782. PropertyNames.PROPERTY_STEP,
  783. PropertyNames.PROPERTY_TABINDEX,
  784. PropertyNames.PROPERTY_WIDTH),
  785. (12, HelpIds.getHelpIdString(HID + 36),
  786. "txtSenderPostCode", 182, 95, 4, 36, 25), self)
  787. self.txtSenderState = self.insertTextField(
  788. "txtSenderState",
  789. LetterWizardDialogConst.TXTSENDERSTATE_TEXT_CHANGED,
  790. (PropertyNames.PROPERTY_HEIGHT,
  791. PropertyNames.PROPERTY_HELPURL,
  792. PropertyNames.PROPERTY_NAME,
  793. PropertyNames.PROPERTY_POSITION_X,
  794. PropertyNames.PROPERTY_POSITION_Y,
  795. PropertyNames.PROPERTY_STEP,
  796. PropertyNames.PROPERTY_TABINDEX,
  797. PropertyNames.PROPERTY_WIDTH),
  798. (12, HelpIds.getHelpIdString(HID + 37),
  799. "txtSenderState", 211, 95, 4, 37, 21), self)
  800. self.txtSenderCity = self.insertTextField(
  801. "txtSenderCity",
  802. LetterWizardDialogConst.TXTSENDERCITY_TEXT_CHANGED,
  803. (PropertyNames.PROPERTY_HEIGHT,
  804. PropertyNames.PROPERTY_HELPURL,
  805. PropertyNames.PROPERTY_NAME,
  806. PropertyNames.PROPERTY_POSITION_X,
  807. PropertyNames.PROPERTY_POSITION_Y,
  808. PropertyNames.PROPERTY_STEP,
  809. PropertyNames.PROPERTY_TABINDEX,
  810. PropertyNames.PROPERTY_WIDTH),
  811. (12, HelpIds.getHelpIdString(HID + 38),
  812. "txtSenderCity", 236, 95, 4, 38, 65), self)
  813. self.optReceiverPlaceholder = self.insertRadioButton(
  814. "optReceiverPlaceholder",
  815. LetterWizardDialogConst.OPTRECEIVERPLACEHOLDER_ITEM_CHANGED,
  816. (PropertyNames.PROPERTY_HEIGHT,
  817. PropertyNames.PROPERTY_HELPURL,
  818. PropertyNames.PROPERTY_LABEL,
  819. PropertyNames.PROPERTY_NAME,
  820. PropertyNames.PROPERTY_POSITION_X,
  821. PropertyNames.PROPERTY_POSITION_Y,
  822. PropertyNames.PROPERTY_STEP,
  823. PropertyNames.PROPERTY_TABINDEX,
  824. PropertyNames.PROPERTY_WIDTH),
  825. (8, HelpIds.getHelpIdString(HID + 39),
  826. self.resources.resoptReceiverPlaceholder_value,
  827. "optReceiverPlaceholder", 104, 145, 4, 39, 200), self)
  828. self.optReceiverDatabase = self.insertRadioButton(
  829. "optReceiverDatabase",
  830. LetterWizardDialogConst.OPTRECEIVERDATABASE_ITEM_CHANGED,
  831. (PropertyNames.PROPERTY_HEIGHT,
  832. PropertyNames.PROPERTY_HELPURL,
  833. PropertyNames.PROPERTY_LABEL,
  834. PropertyNames.PROPERTY_NAME,
  835. PropertyNames.PROPERTY_POSITION_X,
  836. PropertyNames.PROPERTY_POSITION_Y,
  837. PropertyNames.PROPERTY_STEP,
  838. PropertyNames.PROPERTY_TABINDEX,
  839. PropertyNames.PROPERTY_WIDTH),
  840. (8, HelpIds.getHelpIdString(HID + 40),
  841. self.resources.resoptReceiverDatabase_value,
  842. "optReceiverDatabase", 104, 157, 4, 40, 200), self)
  843. self.insertLabel("lblSenderAddress",
  844. (PropertyNames.PROPERTY_HEIGHT,
  845. PropertyNames.PROPERTY_LABEL,
  846. PropertyNames.PROPERTY_NAME,
  847. PropertyNames.PROPERTY_POSITION_X,
  848. PropertyNames.PROPERTY_POSITION_Y,
  849. PropertyNames.PROPERTY_STEP,
  850. PropertyNames.PROPERTY_TABINDEX,
  851. PropertyNames.PROPERTY_WIDTH),
  852. (8, self.resources.reslblSenderAddress_value,
  853. "lblSenderAddress", 97, 28, 4, 64, 136))
  854. self.insertFixedLine("FixedLine2",
  855. (PropertyNames.PROPERTY_HEIGHT,
  856. PropertyNames.PROPERTY_NAME,
  857. PropertyNames.PROPERTY_POSITION_X,
  858. PropertyNames.PROPERTY_POSITION_Y,
  859. PropertyNames.PROPERTY_STEP,
  860. PropertyNames.PROPERTY_TABINDEX,
  861. PropertyNames.PROPERTY_WIDTH),
  862. (5,
  863. "FixedLine2", 90, 126, 4, 75, 212))
  864. self.insertLabel("lblReceiverAddress",
  865. (PropertyNames.PROPERTY_HEIGHT,
  866. PropertyNames.PROPERTY_LABEL,
  867. PropertyNames.PROPERTY_NAME,
  868. PropertyNames.PROPERTY_POSITION_X,
  869. PropertyNames.PROPERTY_POSITION_Y,
  870. PropertyNames.PROPERTY_STEP,
  871. PropertyNames.PROPERTY_TABINDEX,
  872. PropertyNames.PROPERTY_WIDTH),
  873. (8, self.resources.reslblReceiverAddress_value,
  874. "lblReceiverAddress", 97, 134, 4, 76, 136))
  875. self.insertLabel("lblSenderName",
  876. (PropertyNames.PROPERTY_HEIGHT,
  877. PropertyNames.PROPERTY_LABEL,
  878. PropertyNames.PROPERTY_NAME,
  879. PropertyNames.PROPERTY_POSITION_X,
  880. PropertyNames.PROPERTY_POSITION_Y,
  881. PropertyNames.PROPERTY_STEP,
  882. PropertyNames.PROPERTY_TABINDEX,
  883. PropertyNames.PROPERTY_WIDTH),
  884. (8, self.resources.reslblSenderName_value,
  885. "lblSenderName", 113, 69, 4, 77, 68))
  886. self.insertLabel("lblSenderStreet",
  887. (PropertyNames.PROPERTY_HEIGHT,
  888. PropertyNames.PROPERTY_LABEL,
  889. PropertyNames.PROPERTY_NAME,
  890. PropertyNames.PROPERTY_POSITION_X,
  891. PropertyNames.PROPERTY_POSITION_Y,
  892. PropertyNames.PROPERTY_STEP,
  893. PropertyNames.PROPERTY_TABINDEX,
  894. PropertyNames.PROPERTY_WIDTH),
  895. (8, self.resources.reslblSenderStreet_value,
  896. "lblSenderStreet", 113, 82, 4, 78, 68))
  897. self.insertLabel("lblPostCodeCity",
  898. (PropertyNames.PROPERTY_HEIGHT,
  899. PropertyNames.PROPERTY_LABEL,
  900. PropertyNames.PROPERTY_NAME,
  901. PropertyNames.PROPERTY_POSITION_X,
  902. PropertyNames.PROPERTY_POSITION_Y,
  903. PropertyNames.PROPERTY_STEP,
  904. PropertyNames.PROPERTY_TABINDEX,
  905. PropertyNames.PROPERTY_WIDTH),
  906. (8, self.resources.reslblPostCodeCity_value,
  907. "lblPostCodeCity", 113, 97, 4, 79, 68))
  908. self.insertLabel("lblTitle4",
  909. ("FontDescriptor", PropertyNames.PROPERTY_HEIGHT,
  910. PropertyNames.PROPERTY_LABEL,
  911. PropertyNames.PROPERTY_MULTILINE,
  912. PropertyNames.PROPERTY_NAME,
  913. PropertyNames.PROPERTY_POSITION_X,
  914. PropertyNames.PROPERTY_POSITION_Y,
  915. PropertyNames.PROPERTY_STEP,
  916. PropertyNames.PROPERTY_TABINDEX,
  917. PropertyNames.PROPERTY_WIDTH),
  918. (self.fontDescriptor6, 16,
  919. self.resources.reslblTitle4_value, True,
  920. "lblTitle4", 91, 8, 4, 92, 212))
  921. def buildStep5(self):
  922. self.txtFooter = self.insertTextField(
  923. "txtFooter",
  924. LetterWizardDialogConst.TXTFOOTER_TEXT_CHANGED,
  925. (PropertyNames.PROPERTY_HEIGHT,
  926. PropertyNames.PROPERTY_HELPURL,
  927. PropertyNames.PROPERTY_MULTILINE,
  928. PropertyNames.PROPERTY_NAME,
  929. PropertyNames.PROPERTY_POSITION_X,
  930. PropertyNames.PROPERTY_POSITION_Y,
  931. PropertyNames.PROPERTY_STEP,
  932. PropertyNames.PROPERTY_TABINDEX,
  933. PropertyNames.PROPERTY_WIDTH),
  934. (47, HelpIds.getHelpIdString(HID + 41), True,
  935. "txtFooter", 97, 40, 5, 41, 203), self)
  936. self.chkFooterNextPages = self.insertCheckBox(
  937. "chkFooterNextPages",
  938. LetterWizardDialogConst.CHKFOOTERNEXTPAGES_ITEM_CHANGED,
  939. (PropertyNames.PROPERTY_HEIGHT,
  940. PropertyNames.PROPERTY_HELPURL,
  941. PropertyNames.PROPERTY_LABEL,
  942. PropertyNames.PROPERTY_NAME,
  943. PropertyNames.PROPERTY_POSITION_X,
  944. PropertyNames.PROPERTY_POSITION_Y,
  945. PropertyNames.PROPERTY_STATE,
  946. PropertyNames.PROPERTY_STEP,
  947. PropertyNames.PROPERTY_TABINDEX,
  948. PropertyNames.PROPERTY_WIDTH),
  949. (8, HelpIds.getHelpIdString(HID + 42),
  950. self.resources.reschkFooterNextPages_value,
  951. "chkFooterNextPages", 97, 92, 0, 5, 42, 202), self)
  952. self.chkFooterPageNumbers = self.insertCheckBox(
  953. "chkFooterPageNumbers",
  954. LetterWizardDialogConst.CHKFOOTERPAGENUMBERS_ITEM_CHANGED,
  955. (PropertyNames.PROPERTY_HEIGHT,
  956. PropertyNames.PROPERTY_HELPURL,
  957. PropertyNames.PROPERTY_LABEL,
  958. PropertyNames.PROPERTY_NAME,
  959. PropertyNames.PROPERTY_POSITION_X,
  960. PropertyNames.PROPERTY_POSITION_Y,
  961. PropertyNames.PROPERTY_STATE,
  962. PropertyNames.PROPERTY_STEP,
  963. PropertyNames.PROPERTY_TABINDEX,
  964. PropertyNames.PROPERTY_WIDTH),
  965. (8, HelpIds.getHelpIdString(HID + 43),
  966. self.resources.reschkFooterPageNumbers_value,
  967. "chkFooterPageNumbers", 97, 106, 0, 5, 43, 201), self)
  968. self.insertLabel("lblFooter",
  969. ("FontDescriptor", PropertyNames.PROPERTY_HEIGHT,
  970. PropertyNames.PROPERTY_LABEL,
  971. PropertyNames.PROPERTY_NAME,
  972. PropertyNames.PROPERTY_POSITION_X,
  973. PropertyNames.PROPERTY_POSITION_Y,
  974. PropertyNames.PROPERTY_STEP,
  975. PropertyNames.PROPERTY_TABINDEX,
  976. PropertyNames.PROPERTY_WIDTH),
  977. (self.fontDescriptor5, 8, self.resources.reslblFooter_value,
  978. "lblFooter", 97, 28, 5, 52, 116))
  979. self.insertLabel("lblTitle5",
  980. ("FontDescriptor", PropertyNames.PROPERTY_HEIGHT,
  981. PropertyNames.PROPERTY_LABEL,
  982. PropertyNames.PROPERTY_MULTILINE,
  983. PropertyNames.PROPERTY_NAME,
  984. PropertyNames.PROPERTY_POSITION_X,
  985. PropertyNames.PROPERTY_POSITION_Y,
  986. PropertyNames.PROPERTY_STEP,
  987. PropertyNames.PROPERTY_TABINDEX,
  988. PropertyNames.PROPERTY_WIDTH),
  989. (self.fontDescriptor6, 16,
  990. self.resources.reslblTitle5_value, True,
  991. "lblTitle5", 91, 8, 5, 93, 212))
  992. def buildStep6(self):
  993. self.txtTemplateName = self.insertTextField(
  994. "txtTemplateName",
  995. LetterWizardDialogConst.TXTTEMPLATENAME_TEXT_CHANGED,
  996. (PropertyNames.PROPERTY_HEIGHT,
  997. PropertyNames.PROPERTY_HELPURL,
  998. PropertyNames.PROPERTY_NAME,
  999. PropertyNames.PROPERTY_POSITION_X,
  1000. PropertyNames.PROPERTY_POSITION_Y,
  1001. PropertyNames.PROPERTY_STEP,
  1002. PropertyNames.PROPERTY_TABINDEX,
  1003. "Text",
  1004. PropertyNames.PROPERTY_WIDTH),
  1005. (12, HelpIds.getHelpIdString(HID + 44),
  1006. "txtTemplateName", 202, 56, 6, 44,
  1007. self.resources.restxtTemplateName_value, 100), self)
  1008. self.optCreateLetter = self.insertRadioButton(
  1009. "optCreateLetter",
  1010. LetterWizardDialogConst.OPTCREATELETTER_ITEM_CHANGED,
  1011. (PropertyNames.PROPERTY_HEIGHT,
  1012. PropertyNames.PROPERTY_HELPURL,
  1013. PropertyNames.PROPERTY_LABEL,
  1014. PropertyNames.PROPERTY_NAME,
  1015. PropertyNames.PROPERTY_POSITION_X,
  1016. PropertyNames.PROPERTY_POSITION_Y,
  1017. PropertyNames.PROPERTY_STEP,
  1018. PropertyNames.PROPERTY_TABINDEX,
  1019. PropertyNames.PROPERTY_WIDTH),
  1020. (8, HelpIds.getHelpIdString(HID + 45),
  1021. self.resources.resoptCreateLetter_value,
  1022. "optCreateLetter", 104, 111, 6, 50, 198), self)
  1023. self.optMakeChanges = self.insertRadioButton(
  1024. "optMakeChanges",
  1025. LetterWizardDialogConst.OPTMAKECHANGES_ITEM_CHANGED,
  1026. (PropertyNames.PROPERTY_HEIGHT,
  1027. PropertyNames.PROPERTY_HELPURL,
  1028. PropertyNames.PROPERTY_LABEL,
  1029. PropertyNames.PROPERTY_NAME,
  1030. PropertyNames.PROPERTY_POSITION_X,
  1031. PropertyNames.PROPERTY_POSITION_Y,
  1032. PropertyNames.PROPERTY_STEP,
  1033. PropertyNames.PROPERTY_TABINDEX,
  1034. PropertyNames.PROPERTY_WIDTH),
  1035. (8, HelpIds.getHelpIdString(HID + 46),
  1036. self.resources.resoptMakeChanges_value,
  1037. "optMakeChanges", 104, 123, 6, 51, 198), self)
  1038. self.insertLabel("lblFinalExplanation1",
  1039. (PropertyNames.PROPERTY_HEIGHT,
  1040. PropertyNames.PROPERTY_LABEL,
  1041. PropertyNames.PROPERTY_MULTILINE,
  1042. PropertyNames.PROPERTY_NAME,
  1043. PropertyNames.PROPERTY_POSITION_X,
  1044. PropertyNames.PROPERTY_POSITION_Y,
  1045. PropertyNames.PROPERTY_STEP,
  1046. PropertyNames.PROPERTY_TABINDEX,
  1047. PropertyNames.PROPERTY_WIDTH),
  1048. (26, self.resources.reslblFinalExplanation1_value, True,
  1049. "lblFinalExplanation1", 97, 28, 6, 52, 205))
  1050. self.insertLabel("lblProceed",
  1051. (PropertyNames.PROPERTY_HEIGHT,
  1052. PropertyNames.PROPERTY_LABEL,
  1053. PropertyNames.PROPERTY_NAME,
  1054. PropertyNames.PROPERTY_POSITION_X,
  1055. PropertyNames.PROPERTY_POSITION_Y,
  1056. PropertyNames.PROPERTY_STEP,
  1057. PropertyNames.PROPERTY_TABINDEX,
  1058. PropertyNames.PROPERTY_WIDTH),
  1059. (8, self.resources.reslblProceed_value,
  1060. "lblProceed", 97, 100, 6, 53, 204))
  1061. self.insertLabel("lblFinalExplanation2",
  1062. (PropertyNames.PROPERTY_HEIGHT,
  1063. PropertyNames.PROPERTY_LABEL,
  1064. PropertyNames.PROPERTY_MULTILINE,
  1065. PropertyNames.PROPERTY_NAME,
  1066. PropertyNames.PROPERTY_POSITION_X,
  1067. PropertyNames.PROPERTY_POSITION_Y,
  1068. PropertyNames.PROPERTY_STEP,
  1069. PropertyNames.PROPERTY_TABINDEX,
  1070. PropertyNames.PROPERTY_WIDTH),
  1071. (33, self.resources.reslblFinalExplanation2_value, True,
  1072. "lblFinalExplanation2", 104, 145, 6, 54, 199))
  1073. self.insertImage(
  1074. "ImageControl2",
  1075. ("Border", PropertyNames.PROPERTY_HEIGHT,
  1076. PropertyNames.PROPERTY_IMAGEURL,
  1077. PropertyNames.PROPERTY_NAME,
  1078. PropertyNames.PROPERTY_POSITION_X,
  1079. PropertyNames.PROPERTY_POSITION_Y,
  1080. "ScaleImage",
  1081. PropertyNames.PROPERTY_STEP,
  1082. PropertyNames.PROPERTY_TABINDEX,
  1083. PropertyNames.PROPERTY_WIDTH),
  1084. (0, 10,
  1085. UIConsts.INFOIMAGEURL,
  1086. "ImageControl2", 92, 145, False, 6, 66, 10))
  1087. self.insertLabel("lblTemplateName",
  1088. (PropertyNames.PROPERTY_HEIGHT,
  1089. PropertyNames.PROPERTY_LABEL,
  1090. PropertyNames.PROPERTY_NAME,
  1091. PropertyNames.PROPERTY_POSITION_X,
  1092. PropertyNames.PROPERTY_POSITION_Y,
  1093. PropertyNames.PROPERTY_STEP,
  1094. PropertyNames.PROPERTY_TABINDEX,
  1095. PropertyNames.PROPERTY_WIDTH),
  1096. (8, self.resources.reslblTemplateName_value,
  1097. "lblTemplateName", 97, 58, 6, 82, 101))
  1098. self.insertLabel("lblTitle6",
  1099. ("FontDescriptor", PropertyNames.PROPERTY_HEIGHT,
  1100. PropertyNames.PROPERTY_LABEL,
  1101. PropertyNames.PROPERTY_MULTILINE,
  1102. PropertyNames.PROPERTY_NAME,
  1103. PropertyNames.PROPERTY_POSITION_X,
  1104. PropertyNames.PROPERTY_POSITION_Y,
  1105. PropertyNames.PROPERTY_STEP,
  1106. PropertyNames.PROPERTY_TABINDEX,
  1107. PropertyNames.PROPERTY_WIDTH),
  1108. (self.fontDescriptor6, 16,
  1109. self.resources.reslblTitle6_value, True,
  1110. "lblTitle6", 91, 8, 6, 94, 212))