FaxWizardDialog.py 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  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 .FaxWizardDialogResources import FaxWizardDialogResources
  19. from .FaxWizardDialogConst import FaxWizardDialogConst, HIDMAIN, HID
  20. from ..ui.WizardDialog import WizardDialog, uno, UIConsts, PropertyNames
  21. from com.sun.star.awt.FontUnderline import SINGLE
  22. class FaxWizardDialog(WizardDialog):
  23. def __init__(self, xmsf):
  24. super(FaxWizardDialog,self).__init__(xmsf, HIDMAIN )
  25. #Load Resources
  26. self.resources = FaxWizardDialogResources()
  27. #set dialog properties...
  28. self.setDialogProperties(True, 210, True, 104, 52, 1, 1,
  29. self.resources.resFaxWizardDialog_title, 310)
  30. self.fontDescriptor4 = \
  31. uno.createUnoStruct('com.sun.star.awt.FontDescriptor')
  32. self.fontDescriptor5 = \
  33. uno.createUnoStruct('com.sun.star.awt.FontDescriptor')
  34. self.fontDescriptor4.Weight = 100
  35. self.fontDescriptor5.Weight = 150
  36. def buildStep1(self):
  37. self.optBusinessFax = self.insertRadioButton("optBusinessFax",
  38. FaxWizardDialogConst.OPTBUSINESSFAX_ITEM_CHANGED,
  39. (PropertyNames.PROPERTY_HEIGHT,
  40. PropertyNames.PROPERTY_HELPURL,
  41. PropertyNames.PROPERTY_LABEL,
  42. PropertyNames.PROPERTY_POSITION_X,
  43. PropertyNames.PROPERTY_POSITION_Y,
  44. PropertyNames.PROPERTY_STEP,
  45. PropertyNames.PROPERTY_TABINDEX,
  46. PropertyNames.PROPERTY_WIDTH),
  47. (8, FaxWizardDialogConst.OPTBUSINESSFAX_HID,
  48. self.resources.resoptBusinessFax_value, 97, 28, 1, 1, 184),
  49. self)
  50. self.lstBusinessStyle = self.insertListBox("lstBusinessStyle",
  51. FaxWizardDialogConst.LSTBUSINESSSTYLE_ACTION_PERFORMED,
  52. FaxWizardDialogConst.LSTBUSINESSSTYLE_ITEM_CHANGED,
  53. ("Dropdown", PropertyNames.PROPERTY_HEIGHT,
  54. PropertyNames.PROPERTY_HELPURL,
  55. PropertyNames.PROPERTY_POSITION_X,
  56. PropertyNames.PROPERTY_POSITION_Y,
  57. PropertyNames.PROPERTY_STEP,
  58. PropertyNames.PROPERTY_TABINDEX,
  59. PropertyNames.PROPERTY_WIDTH),
  60. (True, 12, FaxWizardDialogConst.LSTBUSINESSSTYLE_HID,
  61. 180, 40, 1, 3, 74), self)
  62. self.optPrivateFax = self.insertRadioButton("optPrivateFax",
  63. FaxWizardDialogConst.OPTPRIVATEFAX_ITEM_CHANGED,
  64. (PropertyNames.PROPERTY_HEIGHT,
  65. PropertyNames.PROPERTY_HELPURL,
  66. PropertyNames.PROPERTY_LABEL,
  67. PropertyNames.PROPERTY_POSITION_X,
  68. PropertyNames.PROPERTY_POSITION_Y,
  69. PropertyNames.PROPERTY_STEP,
  70. PropertyNames.PROPERTY_TABINDEX,
  71. PropertyNames.PROPERTY_WIDTH),
  72. (8, FaxWizardDialogConst.OPTPRIVATEFAX_HID,
  73. self.resources.resoptPrivateFax_value,97, 81, 1, 2, 184), self)
  74. self.lstPrivateStyle = self.insertListBox("lstPrivateStyle",
  75. FaxWizardDialogConst.LSTPRIVATESTYLE_ACTION_PERFORMED,
  76. FaxWizardDialogConst.LSTPRIVATESTYLE_ITEM_CHANGED,
  77. ("Dropdown", PropertyNames.PROPERTY_HEIGHT,
  78. PropertyNames.PROPERTY_HELPURL,
  79. PropertyNames.PROPERTY_POSITION_X,
  80. PropertyNames.PROPERTY_POSITION_Y,
  81. PropertyNames.PROPERTY_STEP,
  82. PropertyNames.PROPERTY_TABINDEX,
  83. PropertyNames.PROPERTY_WIDTH),
  84. (True, 12, FaxWizardDialogConst.LSTPRIVATESTYLE_HID,
  85. 180, 95, 1, 4, 74), self)
  86. self.insertLabel("lblBusinessStyle",
  87. (PropertyNames.PROPERTY_HEIGHT,
  88. PropertyNames.PROPERTY_LABEL,
  89. PropertyNames.PROPERTY_POSITION_X,
  90. PropertyNames.PROPERTY_POSITION_Y,
  91. PropertyNames.PROPERTY_STEP,
  92. PropertyNames.PROPERTY_TABINDEX,
  93. PropertyNames.PROPERTY_WIDTH),
  94. (8, self.resources.reslblBusinessStyle_value,
  95. 110, 42, 1, 32, 60))
  96. self.insertLabel("lblTitle1",
  97. ("FontDescriptor", PropertyNames.PROPERTY_HEIGHT,
  98. PropertyNames.PROPERTY_LABEL,
  99. PropertyNames.PROPERTY_MULTILINE,
  100. PropertyNames.PROPERTY_POSITION_X,
  101. PropertyNames.PROPERTY_POSITION_Y,
  102. PropertyNames.PROPERTY_STEP,
  103. PropertyNames.PROPERTY_TABINDEX,
  104. PropertyNames.PROPERTY_WIDTH),
  105. (self.fontDescriptor5, 16, self.resources.reslblTitle1_value,
  106. True, 91, 8, 1, 37, 212))
  107. self.insertLabel("lblPrivateStyle",
  108. (PropertyNames.PROPERTY_HEIGHT,
  109. PropertyNames.PROPERTY_LABEL,
  110. PropertyNames.PROPERTY_POSITION_X,
  111. PropertyNames.PROPERTY_POSITION_Y,
  112. PropertyNames.PROPERTY_STEP,
  113. PropertyNames.PROPERTY_TABINDEX,
  114. PropertyNames.PROPERTY_WIDTH),
  115. (8, self.resources.reslblPrivateStyle_value, 110, 95, 1, 50, 60))
  116. self.insertLabel("lblIntroduction",
  117. (PropertyNames.PROPERTY_HEIGHT,
  118. PropertyNames.PROPERTY_LABEL,
  119. PropertyNames.PROPERTY_MULTILINE,
  120. PropertyNames.PROPERTY_POSITION_X,
  121. PropertyNames.PROPERTY_POSITION_Y,
  122. PropertyNames.PROPERTY_STEP,
  123. PropertyNames.PROPERTY_TABINDEX,
  124. PropertyNames.PROPERTY_WIDTH),
  125. (39, self.resources.reslblIntroduction_value,
  126. True, 104, 145, 1, 55, 199))
  127. self.ImageControl3 = self.insertInfoImage(92, 145, 1)
  128. def buildStep2(self):
  129. self.chkUseLogo = self.insertCheckBox("chkUseLogo",
  130. FaxWizardDialogConst.CHKUSELOGO_ITEM_CHANGED,
  131. (PropertyNames.PROPERTY_HEIGHT,
  132. PropertyNames.PROPERTY_HELPURL,
  133. PropertyNames.PROPERTY_LABEL,
  134. PropertyNames.PROPERTY_POSITION_X,
  135. PropertyNames.PROPERTY_POSITION_Y,
  136. PropertyNames.PROPERTY_STATE,
  137. PropertyNames.PROPERTY_STEP,
  138. PropertyNames.PROPERTY_TABINDEX,
  139. PropertyNames.PROPERTY_WIDTH),
  140. (8, FaxWizardDialogConst.CHKUSELOGO_HID,
  141. self.resources.reschkUseLogo_value, 97, 28, 0, 2, 5, 212),
  142. self)
  143. self.chkUseDate = self.insertCheckBox("chkUseDate",
  144. FaxWizardDialogConst.CHKUSEDATE_ITEM_CHANGED,
  145. (PropertyNames.PROPERTY_HEIGHT,
  146. PropertyNames.PROPERTY_HELPURL,
  147. PropertyNames.PROPERTY_LABEL,
  148. PropertyNames.PROPERTY_POSITION_X,
  149. PropertyNames.PROPERTY_POSITION_Y,
  150. PropertyNames.PROPERTY_STATE,
  151. PropertyNames.PROPERTY_STEP,
  152. PropertyNames.PROPERTY_TABINDEX,
  153. PropertyNames.PROPERTY_WIDTH),
  154. (8, FaxWizardDialogConst.CHKUSEDATE_HID,
  155. self.resources.reschkUseDate_value, 97, 43, 0, 2, 6, 212),
  156. self)
  157. self.chkUseCommunicationType = self.insertCheckBox(
  158. "chkUseCommunicationType",
  159. FaxWizardDialogConst.CHKUSECOMMUNICATIONTYPE_ITEM_CHANGED,
  160. (PropertyNames.PROPERTY_HEIGHT,
  161. PropertyNames.PROPERTY_HELPURL,
  162. PropertyNames.PROPERTY_LABEL,
  163. PropertyNames.PROPERTY_POSITION_X,
  164. PropertyNames.PROPERTY_POSITION_Y,
  165. PropertyNames.PROPERTY_STATE,
  166. PropertyNames.PROPERTY_STEP,
  167. PropertyNames.PROPERTY_TABINDEX,
  168. PropertyNames.PROPERTY_WIDTH),
  169. (8, FaxWizardDialogConst.CHKUSECOMMUNICATIONTYPE_HID,
  170. self.resources.reschkUseCommunicationType_value,
  171. 97, 57, 0, 2, 7, 100), self)
  172. self.lstCommunicationType = self.insertComboBox(
  173. "lstCommunicationType",
  174. FaxWizardDialogConst.LSTCOMMUNICATIONTYPE_ACTION_PERFORMED,
  175. FaxWizardDialogConst.LSTCOMMUNICATIONTYPE_ITEM_CHANGED,
  176. FaxWizardDialogConst.LSTCOMMUNICATIONTYPE_TEXT_CHANGED,
  177. ("Dropdown", PropertyNames.PROPERTY_HEIGHT,
  178. PropertyNames.PROPERTY_HELPURL,
  179. PropertyNames.PROPERTY_POSITION_X,
  180. PropertyNames.PROPERTY_POSITION_Y,
  181. PropertyNames.PROPERTY_STEP,
  182. PropertyNames.PROPERTY_TABINDEX,
  183. PropertyNames.PROPERTY_WIDTH),
  184. (True, 12, FaxWizardDialogConst.LSTCOMMUNICATIONTYPE_HID,
  185. 105, 68, 2, 8, 174), self)
  186. self.chkUseSubject = self.insertCheckBox("chkUseSubject",
  187. FaxWizardDialogConst.CHKUSESUBJECT_ITEM_CHANGED,
  188. (PropertyNames.PROPERTY_HEIGHT,
  189. PropertyNames.PROPERTY_HELPURL,
  190. PropertyNames.PROPERTY_LABEL,
  191. PropertyNames.PROPERTY_POSITION_X,
  192. PropertyNames.PROPERTY_POSITION_Y,
  193. PropertyNames.PROPERTY_STATE,
  194. PropertyNames.PROPERTY_STEP,
  195. PropertyNames.PROPERTY_TABINDEX,
  196. PropertyNames.PROPERTY_WIDTH),
  197. (8, FaxWizardDialogConst.CHKUSESUBJECT_HID,
  198. self.resources.reschkUseSubject_value, 97, 87, 0, 2, 9, 212),
  199. self)
  200. self.chkUseSalutation = self.insertCheckBox("chkUseSalutation",
  201. FaxWizardDialogConst.CHKUSESALUTATION_ITEM_CHANGED,
  202. (PropertyNames.PROPERTY_HEIGHT,
  203. PropertyNames.PROPERTY_HELPURL,
  204. PropertyNames.PROPERTY_LABEL,
  205. PropertyNames.PROPERTY_POSITION_X,
  206. PropertyNames.PROPERTY_POSITION_Y,
  207. PropertyNames.PROPERTY_STATE,
  208. PropertyNames.PROPERTY_STEP,
  209. PropertyNames.PROPERTY_TABINDEX,
  210. PropertyNames.PROPERTY_WIDTH),
  211. (8, FaxWizardDialogConst.CHKUSESALUTATION_HID,
  212. self.resources.reschkUseSalutation_value,
  213. 97, 102, 0, 2, 10, 100), self)
  214. self.lstSalutation = self.insertComboBox("lstSalutation",
  215. FaxWizardDialogConst.LSTSALUTATION_ACTION_PERFORMED,
  216. FaxWizardDialogConst.LSTSALUTATION_ITEM_CHANGED,
  217. FaxWizardDialogConst.LSTSALUTATION_TEXT_CHANGED,
  218. ("Dropdown", PropertyNames.PROPERTY_HEIGHT,
  219. PropertyNames.PROPERTY_HELPURL,
  220. PropertyNames.PROPERTY_POSITION_X,
  221. PropertyNames.PROPERTY_POSITION_Y,
  222. PropertyNames.PROPERTY_STEP,
  223. PropertyNames.PROPERTY_TABINDEX,
  224. PropertyNames.PROPERTY_WIDTH),
  225. (True, 12, FaxWizardDialogConst.LSTSALUTATION_HID,
  226. 105, 113, 2, 11, 174), self)
  227. self.chkUseGreeting = self.insertCheckBox("chkUseGreeting",
  228. FaxWizardDialogConst.CHKUSEGREETING_ITEM_CHANGED,
  229. (PropertyNames.PROPERTY_HEIGHT,
  230. PropertyNames.PROPERTY_HELPURL,
  231. PropertyNames.PROPERTY_LABEL,
  232. PropertyNames.PROPERTY_POSITION_X,
  233. PropertyNames.PROPERTY_POSITION_Y,
  234. PropertyNames.PROPERTY_STATE,
  235. PropertyNames.PROPERTY_STEP,
  236. PropertyNames.PROPERTY_TABINDEX,
  237. PropertyNames.PROPERTY_WIDTH),
  238. (8, FaxWizardDialogConst.CHKUSEGREETING_HID,
  239. self.resources.reschkUseGreeting_value,
  240. 97, 132, 0, 2, 12, 100), self)
  241. self.lstGreeting = self.insertComboBox("lstGreeting",
  242. FaxWizardDialogConst.LSTGREETING_ACTION_PERFORMED,
  243. FaxWizardDialogConst.LSTGREETING_ITEM_CHANGED,
  244. FaxWizardDialogConst.LSTGREETING_TEXT_CHANGED,
  245. ("Dropdown", PropertyNames.PROPERTY_HEIGHT,
  246. PropertyNames.PROPERTY_HELPURL,
  247. PropertyNames.PROPERTY_POSITION_X,
  248. PropertyNames.PROPERTY_POSITION_Y,
  249. PropertyNames.PROPERTY_STEP,
  250. PropertyNames.PROPERTY_TABINDEX,
  251. PropertyNames.PROPERTY_WIDTH),
  252. (True, 12, FaxWizardDialogConst.LSTGREETING_HID,
  253. 105, 143, 2, 13, 174), self)
  254. self.chkUseFooter = self.insertCheckBox("chkUseFooter",
  255. FaxWizardDialogConst.CHKUSEFOOTER_ITEM_CHANGED,
  256. (PropertyNames.PROPERTY_HEIGHT,
  257. PropertyNames.PROPERTY_HELPURL,
  258. PropertyNames.PROPERTY_LABEL,
  259. PropertyNames.PROPERTY_POSITION_X,
  260. PropertyNames.PROPERTY_POSITION_Y,
  261. PropertyNames.PROPERTY_STATE,
  262. PropertyNames.PROPERTY_STEP,
  263. PropertyNames.PROPERTY_TABINDEX,
  264. PropertyNames.PROPERTY_WIDTH),
  265. (8, FaxWizardDialogConst.CHKUSEFOOTER_HID,
  266. self.resources.reschkUseFooter_value, 97, 163,
  267. 0, 2, 14, 212), self)
  268. self.insertLabel("lblTitle3",
  269. ("FontDescriptor", PropertyNames.PROPERTY_HEIGHT,
  270. PropertyNames.PROPERTY_LABEL,
  271. PropertyNames.PROPERTY_MULTILINE,
  272. PropertyNames.PROPERTY_POSITION_X,
  273. PropertyNames.PROPERTY_POSITION_Y,
  274. PropertyNames.PROPERTY_STEP,
  275. PropertyNames.PROPERTY_TABINDEX,
  276. PropertyNames.PROPERTY_WIDTH),
  277. (self.fontDescriptor5, 16, self.resources.reslblTitle3_value,
  278. True, 91, 8, 2, 59, 212))
  279. def buildStep3(self):
  280. self.optSenderPlaceholder = self.insertRadioButton(
  281. "optSenderPlaceholder",
  282. FaxWizardDialogConst.OPTSENDERPLACEHOLDER_ITEM_CHANGED,
  283. (PropertyNames.PROPERTY_HEIGHT,
  284. PropertyNames.PROPERTY_HELPURL,
  285. PropertyNames.PROPERTY_LABEL,
  286. PropertyNames.PROPERTY_POSITION_X,
  287. PropertyNames.PROPERTY_POSITION_Y,
  288. PropertyNames.PROPERTY_STEP,
  289. PropertyNames.PROPERTY_TABINDEX,
  290. PropertyNames.PROPERTY_WIDTH),
  291. (8, FaxWizardDialogConst.OPTSENDERPLACEHOLDER_HID,
  292. self.resources.resoptSenderPlaceholder_value,
  293. 104, 42, 3, 15, 149), self)
  294. self.optSenderDefine = self.insertRadioButton("optSenderDefine",
  295. FaxWizardDialogConst.OPTSENDERDEFINE_ITEM_CHANGED,
  296. (PropertyNames.PROPERTY_HEIGHT,
  297. PropertyNames.PROPERTY_HELPURL,
  298. PropertyNames.PROPERTY_LABEL,
  299. PropertyNames.PROPERTY_POSITION_X,
  300. PropertyNames.PROPERTY_POSITION_Y,
  301. PropertyNames.PROPERTY_STEP,
  302. PropertyNames.PROPERTY_TABINDEX,
  303. PropertyNames.PROPERTY_WIDTH),
  304. (8, FaxWizardDialogConst.OPTSENDERDEFINE_HID,
  305. self.resources.resoptSenderDefine_value,
  306. 104, 54, 3, 16, 149), self)
  307. self.txtSenderName = self.insertTextField("txtSenderName",
  308. FaxWizardDialogConst.TXTSENDERNAME_TEXT_CHANGED,
  309. (PropertyNames.PROPERTY_HEIGHT,
  310. PropertyNames.PROPERTY_HELPURL,
  311. PropertyNames.PROPERTY_POSITION_X,
  312. PropertyNames.PROPERTY_POSITION_Y,
  313. PropertyNames.PROPERTY_STEP,
  314. PropertyNames.PROPERTY_TABINDEX,
  315. PropertyNames.PROPERTY_WIDTH),
  316. (12, FaxWizardDialogConst.TXTSENDERNAME_HID,
  317. 182, 67, 3, 17, 119), self)
  318. self.txtSenderStreet = self.insertTextField("txtSenderStreet",
  319. FaxWizardDialogConst.TXTSENDERSTREET_TEXT_CHANGED,
  320. (PropertyNames.PROPERTY_HEIGHT,
  321. PropertyNames.PROPERTY_HELPURL,
  322. PropertyNames.PROPERTY_POSITION_X,
  323. PropertyNames.PROPERTY_POSITION_Y,
  324. PropertyNames.PROPERTY_STEP,
  325. PropertyNames.PROPERTY_TABINDEX,
  326. PropertyNames.PROPERTY_WIDTH),
  327. (12, FaxWizardDialogConst.TXTSENDERSTREET_HID,
  328. 182, 81, 3, 18, 119), self)
  329. self.txtSenderPostCode = self.insertTextField("txtSenderPostCode",
  330. FaxWizardDialogConst.TXTSENDERPOSTCODE_TEXT_CHANGED,
  331. (PropertyNames.PROPERTY_HEIGHT,
  332. PropertyNames.PROPERTY_HELPURL,
  333. PropertyNames.PROPERTY_POSITION_X,
  334. PropertyNames.PROPERTY_POSITION_Y,
  335. PropertyNames.PROPERTY_STEP,
  336. PropertyNames.PROPERTY_TABINDEX,
  337. PropertyNames.PROPERTY_WIDTH),
  338. (12, FaxWizardDialogConst.TXTSENDERPOSTCODE_HID,
  339. 182, 95, 3, 19, 25), self)
  340. self.txtSenderState = self.insertTextField("txtSenderState",
  341. FaxWizardDialogConst.TXTSENDERSTATE_TEXT_CHANGED,
  342. (PropertyNames.PROPERTY_HEIGHT,
  343. PropertyNames.PROPERTY_HELPURL,
  344. PropertyNames.PROPERTY_POSITION_X,
  345. PropertyNames.PROPERTY_POSITION_Y,
  346. PropertyNames.PROPERTY_STEP,
  347. PropertyNames.PROPERTY_TABINDEX,
  348. PropertyNames.PROPERTY_WIDTH),
  349. (12, FaxWizardDialogConst.TXTSENDERSTATE_HID,
  350. 211, 95, 3, 20, 21), self)
  351. self.txtSenderCity = self.insertTextField("txtSenderCity",
  352. FaxWizardDialogConst.TXTSENDERCITY_TEXT_CHANGED,
  353. (PropertyNames.PROPERTY_HEIGHT,
  354. PropertyNames.PROPERTY_HELPURL,
  355. PropertyNames.PROPERTY_POSITION_X,
  356. PropertyNames.PROPERTY_POSITION_Y,
  357. PropertyNames.PROPERTY_STEP,
  358. PropertyNames.PROPERTY_TABINDEX,
  359. PropertyNames.PROPERTY_WIDTH),
  360. (12, FaxWizardDialogConst.TXTSENDERCITY_HID,
  361. 236, 95, 3, 21, 65), self)
  362. self.txtSenderFax = self.insertTextField("txtSenderFax",
  363. FaxWizardDialogConst.TXTSENDERFAX_TEXT_CHANGED,
  364. (PropertyNames.PROPERTY_HEIGHT,
  365. PropertyNames.PROPERTY_HELPURL,
  366. PropertyNames.PROPERTY_POSITION_X,
  367. PropertyNames.PROPERTY_POSITION_Y,
  368. PropertyNames.PROPERTY_STEP,
  369. PropertyNames.PROPERTY_TABINDEX,
  370. PropertyNames.PROPERTY_WIDTH),
  371. (12, FaxWizardDialogConst.TXTSENDERFAX_HID,
  372. 182, 109, 3, 22, 119), self)
  373. self.optReceiverPlaceholder = self.insertRadioButton(
  374. "optReceiverPlaceholder",
  375. FaxWizardDialogConst.OPTRECEIVERPLACEHOLDER_ITEM_CHANGED,
  376. (PropertyNames.PROPERTY_HEIGHT,
  377. PropertyNames.PROPERTY_HELPURL,
  378. PropertyNames.PROPERTY_LABEL,
  379. PropertyNames.PROPERTY_POSITION_X,
  380. PropertyNames.PROPERTY_POSITION_Y,
  381. PropertyNames.PROPERTY_STEP,
  382. PropertyNames.PROPERTY_TABINDEX,
  383. PropertyNames.PROPERTY_WIDTH),
  384. (8, FaxWizardDialogConst.OPTRECEIVERPLACEHOLDER_HID,
  385. self.resources.resoptReceiverPlaceholder_value,
  386. 104, 148, 3, 23, 200), self)
  387. self.optReceiverDatabase = self.insertRadioButton(
  388. "optReceiverDatabase",
  389. FaxWizardDialogConst.OPTRECEIVERDATABASE_ITEM_CHANGED,
  390. (PropertyNames.PROPERTY_HEIGHT,
  391. PropertyNames.PROPERTY_HELPURL,
  392. PropertyNames.PROPERTY_LABEL,
  393. PropertyNames.PROPERTY_POSITION_X,
  394. PropertyNames.PROPERTY_POSITION_Y,
  395. PropertyNames.PROPERTY_STEP,
  396. PropertyNames.PROPERTY_TABINDEX,
  397. PropertyNames.PROPERTY_WIDTH),
  398. (8, FaxWizardDialogConst.OPTRECEIVERDATABASE_HID,
  399. self.resources.resoptReceiverDatabase_value,
  400. 104, 160, 3, 24, 200), self)
  401. self.insertLabel("lblSenderAddress",
  402. (PropertyNames.PROPERTY_HEIGHT,
  403. PropertyNames.PROPERTY_LABEL,
  404. PropertyNames.PROPERTY_POSITION_X,
  405. PropertyNames.PROPERTY_POSITION_Y,
  406. PropertyNames.PROPERTY_STEP,
  407. PropertyNames.PROPERTY_TABINDEX,
  408. PropertyNames.PROPERTY_WIDTH),
  409. (8, self.resources.reslblSenderAddress_value,
  410. 97, 28, 3, 46, 136))
  411. self.insertFixedLine("FixedLine2", (PropertyNames.PROPERTY_HEIGHT,
  412. PropertyNames.PROPERTY_POSITION_X,
  413. PropertyNames.PROPERTY_POSITION_Y,
  414. PropertyNames.PROPERTY_STEP,
  415. PropertyNames.PROPERTY_TABINDEX,
  416. PropertyNames.PROPERTY_WIDTH),
  417. (5, 90, 126, 3, 51, 212))
  418. self.insertLabel("lblSenderName",
  419. (PropertyNames.PROPERTY_HEIGHT,
  420. PropertyNames.PROPERTY_LABEL,
  421. PropertyNames.PROPERTY_POSITION_X,
  422. PropertyNames.PROPERTY_POSITION_Y,
  423. PropertyNames.PROPERTY_STEP,
  424. PropertyNames.PROPERTY_TABINDEX,
  425. PropertyNames.PROPERTY_WIDTH),
  426. (8, self.resources.reslblSenderName_value,
  427. 113, 69, 3, 52, 68))
  428. self.insertLabel("lblSenderStreet",
  429. (PropertyNames.PROPERTY_HEIGHT,
  430. PropertyNames.PROPERTY_LABEL,
  431. PropertyNames.PROPERTY_POSITION_X,
  432. PropertyNames.PROPERTY_POSITION_Y,
  433. PropertyNames.PROPERTY_STEP,
  434. PropertyNames.PROPERTY_TABINDEX,
  435. PropertyNames.PROPERTY_WIDTH),
  436. (8, self.resources.reslblSenderStreet_value,
  437. 113, 82, 3, 53, 68))
  438. self.insertLabel("lblPostCodeCity",
  439. (PropertyNames.PROPERTY_HEIGHT,
  440. PropertyNames.PROPERTY_LABEL,
  441. PropertyNames.PROPERTY_POSITION_X,
  442. PropertyNames.PROPERTY_POSITION_Y,
  443. PropertyNames.PROPERTY_STEP,
  444. PropertyNames.PROPERTY_TABINDEX,
  445. PropertyNames.PROPERTY_WIDTH),
  446. (8, self.resources.reslblPostCodeCity_value,
  447. 113, 97, 3, 54, 68))
  448. self.insertLabel("lblTitle4",
  449. ("FontDescriptor",
  450. PropertyNames.PROPERTY_HEIGHT,
  451. PropertyNames.PROPERTY_LABEL,
  452. PropertyNames.PROPERTY_MULTILINE,
  453. PropertyNames.PROPERTY_POSITION_X,
  454. PropertyNames.PROPERTY_POSITION_Y,
  455. PropertyNames.PROPERTY_STEP,
  456. PropertyNames.PROPERTY_TABINDEX,
  457. PropertyNames.PROPERTY_WIDTH),
  458. (self.fontDescriptor5, 16, self.resources.reslblTitle4_value,
  459. True, 91, 8, 3, 60, 212))
  460. self.insertLabel("lblSenderFax",
  461. (PropertyNames.PROPERTY_HEIGHT,
  462. PropertyNames.PROPERTY_LABEL,
  463. PropertyNames.PROPERTY_POSITION_X,
  464. PropertyNames.PROPERTY_POSITION_Y,
  465. PropertyNames.PROPERTY_STEP,
  466. PropertyNames.PROPERTY_TABINDEX,
  467. PropertyNames.PROPERTY_WIDTH),
  468. (8, self.resources.resLabel1_value, 113, 111, 3, 68, 68))
  469. self.insertLabel("Label2",
  470. (PropertyNames.PROPERTY_HEIGHT,
  471. PropertyNames.PROPERTY_LABEL,
  472. PropertyNames.PROPERTY_POSITION_X,
  473. PropertyNames.PROPERTY_POSITION_Y,
  474. PropertyNames.PROPERTY_STEP,
  475. PropertyNames.PROPERTY_TABINDEX,
  476. PropertyNames.PROPERTY_WIDTH),
  477. (8, self.resources.resLabel2_value, 97, 137, 3, 69, 136))
  478. def buildStep4(self):
  479. self.txtFooter = self.insertTextField("txtFooter",
  480. FaxWizardDialogConst.TXTFOOTER_TEXT_CHANGED,
  481. (PropertyNames.PROPERTY_HEIGHT,
  482. PropertyNames.PROPERTY_HELPURL,
  483. PropertyNames.PROPERTY_MULTILINE,
  484. PropertyNames.PROPERTY_POSITION_X,
  485. PropertyNames.PROPERTY_POSITION_Y,
  486. PropertyNames.PROPERTY_STEP,
  487. PropertyNames.PROPERTY_TABINDEX,
  488. PropertyNames.PROPERTY_WIDTH),
  489. (47, FaxWizardDialogConst.TXTFOOTER_HID,
  490. True, 97, 40, 4, 25, 203), self)
  491. self.chkFooterNextPages = self.insertCheckBox("chkFooterNextPages",
  492. FaxWizardDialogConst.CHKFOOTERNEXTPAGES_ITEM_CHANGED,
  493. (PropertyNames.PROPERTY_HEIGHT,
  494. PropertyNames.PROPERTY_HELPURL,
  495. PropertyNames.PROPERTY_LABEL,
  496. PropertyNames.PROPERTY_POSITION_X,
  497. PropertyNames.PROPERTY_POSITION_Y,
  498. PropertyNames.PROPERTY_STATE,
  499. PropertyNames.PROPERTY_STEP,
  500. PropertyNames.PROPERTY_TABINDEX,
  501. PropertyNames.PROPERTY_WIDTH),
  502. (8, FaxWizardDialogConst.CHKFOOTERNEXTPAGES_HID,
  503. self.resources.reschkFooterNextPages_value,
  504. 97, 92, 0, 4, 26, 202), self)
  505. self.chkFooterPageNumbers = self.insertCheckBox("chkFooterPageNumbers",
  506. FaxWizardDialogConst.CHKFOOTERPAGENUMBERS_ITEM_CHANGED,
  507. (PropertyNames.PROPERTY_HEIGHT,
  508. PropertyNames.PROPERTY_HELPURL,
  509. PropertyNames.PROPERTY_LABEL,
  510. PropertyNames.PROPERTY_POSITION_X,
  511. PropertyNames.PROPERTY_POSITION_Y,
  512. PropertyNames.PROPERTY_STATE,
  513. PropertyNames.PROPERTY_STEP,
  514. PropertyNames.PROPERTY_TABINDEX,
  515. PropertyNames.PROPERTY_WIDTH),
  516. (8, FaxWizardDialogConst.CHKFOOTERPAGENUMBERS_HID,
  517. self.resources.reschkFooterPageNumbers_value,
  518. 97, 106, 0, 4, 27, 201), self)
  519. self.insertLabel("lblFooter",
  520. ("FontDescriptor",
  521. PropertyNames.PROPERTY_HEIGHT,
  522. PropertyNames.PROPERTY_LABEL,
  523. PropertyNames.PROPERTY_POSITION_X,
  524. PropertyNames.PROPERTY_POSITION_Y,
  525. PropertyNames.PROPERTY_STEP,
  526. PropertyNames.PROPERTY_TABINDEX,
  527. PropertyNames.PROPERTY_WIDTH),
  528. (self.fontDescriptor4, 8, self.resources.reslblFooter_value,
  529. 97, 28, 4, 33, 116))
  530. self.insertLabel("lblTitle5",
  531. ("FontDescriptor",
  532. PropertyNames.PROPERTY_HEIGHT,
  533. PropertyNames.PROPERTY_LABEL,
  534. PropertyNames.PROPERTY_MULTILINE,
  535. PropertyNames.PROPERTY_POSITION_X,
  536. PropertyNames.PROPERTY_POSITION_Y,
  537. PropertyNames.PROPERTY_STEP,
  538. PropertyNames.PROPERTY_TABINDEX,
  539. PropertyNames.PROPERTY_WIDTH),
  540. (self.fontDescriptor5, 16, self.resources.reslblTitle5_value,
  541. True, 91, 8, 4, 61, 212))
  542. def buildStep5(self):
  543. self.txtTemplateName = self.insertTextField("txtTemplateName",
  544. FaxWizardDialogConst.TXTTEMPLATENAME_TEXT_CHANGED,
  545. (PropertyNames.PROPERTY_HEIGHT,
  546. PropertyNames.PROPERTY_HELPURL,
  547. PropertyNames.PROPERTY_POSITION_X,
  548. PropertyNames.PROPERTY_POSITION_Y,
  549. PropertyNames.PROPERTY_STEP,
  550. PropertyNames.PROPERTY_TABINDEX,
  551. "Text",
  552. PropertyNames.PROPERTY_WIDTH),
  553. (12, FaxWizardDialogConst.TXTTEMPLATENAME_HID, 202, 56, 5, 28,
  554. self.resources.restxtTemplateName_value, 100), self)
  555. self.optCreateFax = self.insertRadioButton("optCreateFax",
  556. FaxWizardDialogConst.OPTCREATEFAX_ITEM_CHANGED,
  557. (PropertyNames.PROPERTY_HEIGHT,
  558. PropertyNames.PROPERTY_HELPURL,
  559. PropertyNames.PROPERTY_LABEL,
  560. PropertyNames.PROPERTY_POSITION_X,
  561. PropertyNames.PROPERTY_POSITION_Y,
  562. PropertyNames.PROPERTY_STEP,
  563. PropertyNames.PROPERTY_TABINDEX,
  564. PropertyNames.PROPERTY_WIDTH),
  565. (8, FaxWizardDialogConst.OPTCREATEFAX_HID,
  566. self.resources.resoptCreateFax_value,
  567. 104, 111, 5, 30, 198), self)
  568. self.optMakeChanges = self.insertRadioButton("optMakeChanges",
  569. FaxWizardDialogConst.OPTMAKECHANGES_ITEM_CHANGED,
  570. (PropertyNames.PROPERTY_HEIGHT,
  571. PropertyNames.PROPERTY_HELPURL,
  572. PropertyNames.PROPERTY_LABEL,
  573. PropertyNames.PROPERTY_POSITION_X,
  574. PropertyNames.PROPERTY_POSITION_Y,
  575. PropertyNames.PROPERTY_STEP,
  576. PropertyNames.PROPERTY_TABINDEX,
  577. PropertyNames.PROPERTY_WIDTH),
  578. (8, FaxWizardDialogConst.OPTMAKECHANGES_HID,
  579. self.resources.resoptMakeChanges_value,
  580. 104, 123, 5, 31, 198), self)
  581. self.insertLabel("lblFinalExplanation1",
  582. (PropertyNames.PROPERTY_HEIGHT,
  583. PropertyNames.PROPERTY_LABEL,
  584. PropertyNames.PROPERTY_MULTILINE,
  585. PropertyNames.PROPERTY_POSITION_X,
  586. PropertyNames.PROPERTY_POSITION_Y,
  587. PropertyNames.PROPERTY_STEP,
  588. PropertyNames.PROPERTY_TABINDEX,
  589. PropertyNames.PROPERTY_WIDTH),
  590. (28, self.resources.reslblFinalExplanation1_value,
  591. True, 97, 28, 5, 34, 205))
  592. self.insertLabel("lblProceed",
  593. (PropertyNames.PROPERTY_HEIGHT,
  594. PropertyNames.PROPERTY_LABEL,
  595. PropertyNames.PROPERTY_POSITION_X,
  596. PropertyNames.PROPERTY_POSITION_Y,
  597. PropertyNames.PROPERTY_STEP,
  598. PropertyNames.PROPERTY_TABINDEX,
  599. PropertyNames.PROPERTY_WIDTH),
  600. (8, self.resources.reslblProceed_value, 97, 100, 5,
  601. 35, 204))
  602. self.insertLabel("lblFinalExplanation2",
  603. (PropertyNames.PROPERTY_HEIGHT,
  604. PropertyNames.PROPERTY_LABEL,
  605. PropertyNames.PROPERTY_MULTILINE,
  606. PropertyNames.PROPERTY_POSITION_X,
  607. PropertyNames.PROPERTY_POSITION_Y,
  608. PropertyNames.PROPERTY_STEP,
  609. PropertyNames.PROPERTY_TABINDEX,
  610. PropertyNames.PROPERTY_WIDTH),
  611. (33, self.resources.reslblFinalExplanation2_value,
  612. True, 104, 145, 5, 36, 199))
  613. self.insertImage("ImageControl2",
  614. ("Border",
  615. PropertyNames.PROPERTY_HEIGHT,
  616. PropertyNames.PROPERTY_IMAGEURL,
  617. PropertyNames.PROPERTY_POSITION_X,
  618. PropertyNames.PROPERTY_POSITION_Y,
  619. "ScaleImage",
  620. PropertyNames.PROPERTY_STEP,
  621. PropertyNames.PROPERTY_TABINDEX,
  622. PropertyNames.PROPERTY_WIDTH),
  623. (0, 10, UIConsts.INFOIMAGEURL, 92, 145,
  624. False, 5, 47, 10))
  625. self.insertLabel("lblTemplateName",
  626. (PropertyNames.PROPERTY_HEIGHT,
  627. PropertyNames.PROPERTY_LABEL,
  628. PropertyNames.PROPERTY_POSITION_X,
  629. PropertyNames.PROPERTY_POSITION_Y,
  630. PropertyNames.PROPERTY_STEP,
  631. PropertyNames.PROPERTY_TABINDEX,
  632. PropertyNames.PROPERTY_WIDTH),
  633. (8, self.resources.reslblTemplateName_value, 97, 58, 5,
  634. 57, 101))
  635. self.insertLabel("lblTitle6",
  636. ("FontDescriptor",
  637. PropertyNames.PROPERTY_HEIGHT,
  638. PropertyNames.PROPERTY_LABEL,
  639. PropertyNames.PROPERTY_MULTILINE,
  640. PropertyNames.PROPERTY_POSITION_X,
  641. PropertyNames.PROPERTY_POSITION_Y,
  642. PropertyNames.PROPERTY_STEP,
  643. PropertyNames.PROPERTY_TABINDEX,
  644. PropertyNames.PROPERTY_WIDTH),
  645. (self.fontDescriptor5, 16, self.resources.reslblTitle6_value,
  646. True, 91, 8, 5, 62, 212))