FaxWizardDialogResources.py 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. class FaxWizardDialogResources(object):
  19. def __init__(self):
  20. import sys, os
  21. # imp is deprecated since Python v.3.4
  22. if sys.version_info >= (3,3):
  23. from importlib.machinery import SourceFileLoader
  24. SourceFileLoader('strings', os.path.join(os.path.dirname(__file__), '../common/strings.hrc')).load_module()
  25. else:
  26. import imp
  27. imp.load_source('strings', os.path.join(os.path.dirname(__file__), '../common/strings.hrc'))
  28. import strings
  29. self.resFaxWizardDialog_title = strings.RID_FAXWIZARDDIALOG_START_1
  30. self.resoptBusinessFax_value = strings.RID_FAXWIZARDDIALOG_START_3
  31. self.resoptPrivateFax_value = strings.RID_FAXWIZARDDIALOG_START_4
  32. self.reschkUseLogo_value = strings.RID_FAXWIZARDDIALOG_START_5
  33. self.reschkUseSubject_value = strings.RID_FAXWIZARDDIALOG_START_6
  34. self.reschkUseSalutation_value = strings.RID_FAXWIZARDDIALOG_START_7
  35. self.reschkUseGreeting_value = strings.RID_FAXWIZARDDIALOG_START_8
  36. self.reschkUseFooter_value = strings.RID_FAXWIZARDDIALOG_START_9
  37. self.resoptSenderPlaceholder_value = strings.RID_FAXWIZARDDIALOG_START_10
  38. self.resoptSenderDefine_value = strings.RID_FAXWIZARDDIALOG_START_11
  39. self.restxtTemplateName_value = strings.RID_FAXWIZARDDIALOG_START_12
  40. self.resoptCreateFax_value = strings.RID_FAXWIZARDDIALOG_START_13
  41. self.resoptMakeChanges_value = strings.RID_FAXWIZARDDIALOG_START_14
  42. self.reslblBusinessStyle_value = strings.RID_FAXWIZARDDIALOG_START_15
  43. self.reslblPrivateStyle_value = strings.RID_FAXWIZARDDIALOG_START_16
  44. self.reslblIntroduction_value = strings.RID_FAXWIZARDDIALOG_START_17
  45. self.reslblSenderAddress_value = strings.RID_FAXWIZARDDIALOG_START_18
  46. self.reslblSenderName_value = strings.RID_FAXWIZARDDIALOG_START_19
  47. self.reslblSenderStreet_value = strings.RID_FAXWIZARDDIALOG_START_20
  48. self.reslblPostCodeCity_value = strings.RID_FAXWIZARDDIALOG_START_21
  49. self.reslblFooter_value = strings.RID_FAXWIZARDDIALOG_START_22
  50. self.reslblFinalExplanation1_value = strings.RID_FAXWIZARDDIALOG_START_23
  51. self.reslblFinalExplanation2_value = strings.RID_FAXWIZARDDIALOG_START_24
  52. self.reslblTemplateName_value = strings.RID_FAXWIZARDDIALOG_START_25
  53. self.reslblTemplatePath_value = strings.RID_FAXWIZARDDIALOG_START_26
  54. self.reslblProceed_value = strings.RID_FAXWIZARDDIALOG_START_27
  55. self.reslblTitle1_value = strings.RID_FAXWIZARDDIALOG_START_28
  56. self.reslblTitle3_value = strings.RID_FAXWIZARDDIALOG_START_29
  57. self.reslblTitle4_value = strings.RID_FAXWIZARDDIALOG_START_30
  58. self.reslblTitle5_value = strings.RID_FAXWIZARDDIALOG_START_31
  59. self.reslblTitle6_value = strings.RID_FAXWIZARDDIALOG_START_32
  60. self.reschkFooterNextPages_value = strings.RID_FAXWIZARDDIALOG_START_33
  61. self.reschkFooterPageNumbers_value = strings.RID_FAXWIZARDDIALOG_START_34
  62. self.reschkUseDate_value = strings.RID_FAXWIZARDDIALOG_START_35
  63. self.reschkUseCommunicationType_value = strings.RID_FAXWIZARDDIALOG_START_36
  64. self.resLabel1_value = strings.RID_FAXWIZARDDIALOG_START_37
  65. self.resoptReceiverPlaceholder_value = strings.RID_FAXWIZARDDIALOG_START_38
  66. self.resoptReceiverDatabase_value = strings.RID_FAXWIZARDDIALOG_START_39
  67. self.resLabel2_value = strings.RID_FAXWIZARDDIALOG_START_40
  68. #Create a Dictionary for the constants values.
  69. self.dictConstants = {
  70. "#to#" : strings.RID_FAXWIZARDDIALOG_START_41,
  71. "#from#" : strings.RID_FAXWIZARDDIALOG_START_42,
  72. "#faxconst#" : strings.RID_FAXWIZARDDIALOG_START_43,
  73. "#telconst#" : strings.RID_FAXWIZARDDIALOG_START_44,
  74. "#emailconst#" : strings.RID_FAXWIZARDDIALOG_START_45,
  75. "#consist1#" : strings.RID_FAXWIZARDDIALOG_START_46,
  76. "#consist2#" : strings.RID_FAXWIZARDDIALOG_START_47,
  77. "#consist3#" : strings.RID_FAXWIZARDDIALOG_START_48}
  78. #Create a dictionary for localising the private template
  79. self.dictPrivateTemplate = {
  80. "Bottle" : strings.RID_FAXWIZARDDIALOG_START_49,
  81. "Fax" : strings.RID_FAXWIZARDDIALOG_START_56,
  82. "Lines" : strings.RID_FAXWIZARDDIALOG_START_50,
  83. "Marine" : strings.RID_FAXWIZARDDIALOG_START_51}
  84. #Create a dictionary for localising the business template
  85. self.dictBusinessTemplate = {
  86. "Classic Fax" : strings.RID_FAXWIZARDDIALOG_START_52,
  87. "Classic Fax from Private" : strings.RID_FAXWIZARDDIALOG_START_53,
  88. "Modern Fax" : strings.RID_FAXWIZARDDIALOG_START_54,
  89. "Modern Fax from Private" : strings.RID_FAXWIZARDDIALOG_START_55}
  90. #Common Resources
  91. self.resOverwriteWarning = strings.RID_COMMON_START_19
  92. self.resTemplateDescription = strings.RID_COMMON_START_20
  93. self.RoadmapLabels = []
  94. self.RoadmapLabels.append(strings.RID_FAXWIZARDROADMAP_START_1)
  95. self.RoadmapLabels.append(strings.RID_FAXWIZARDROADMAP_START_2)
  96. self.RoadmapLabels.append(strings.RID_FAXWIZARDROADMAP_START_3)
  97. self.RoadmapLabels.append(strings.RID_FAXWIZARDROADMAP_START_4)
  98. self.RoadmapLabels.append(strings.RID_FAXWIZARDROADMAP_START_5)
  99. self.SalutationLabels = []
  100. self.SalutationLabels.append(strings.RID_FAXWIZARDSALUTATION_START_1)
  101. self.SalutationLabels.append(strings.RID_FAXWIZARDSALUTATION_START_2)
  102. self.SalutationLabels.append(strings.RID_FAXWIZARDSALUTATION_START_3)
  103. self.SalutationLabels.append(strings.RID_FAXWIZARDSALUTATION_START_4)
  104. self.GreetingLabels = []
  105. self.GreetingLabels.append(strings.RID_FAXWIZARDGREETING_START_1)
  106. self.GreetingLabels.append(strings.RID_FAXWIZARDGREETING_START_2)
  107. self.GreetingLabels.append(strings.RID_FAXWIZARDGREETING_START_3)
  108. self.GreetingLabels.append(strings.RID_FAXWIZARDGREETING_START_4)
  109. self.CommunicationLabels = []
  110. self.CommunicationLabels.append(strings.RID_FAXWIZARDCOMMUNICATION_START_1)
  111. self.CommunicationLabels.append(strings.RID_FAXWIZARDCOMMUNICATION_START_2)
  112. self.CommunicationLabels.append(strings.RID_FAXWIZARDCOMMUNICATION_START_3)