summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2012-10-16 22:18:13 +0200
committerXisco Fauli <anistenis@gmail.com>2012-10-16 23:40:39 +0200
commit0d8e34f6f6287d61a7381987baafaa3166264a4e (patch)
tree708241a0ca08956e31d117418adab07753644ccf /wizards/com/sun/star
parent2330695f0582a270c05fa19d45fc21c0dc6b62d1 (diff)
pyletter: get rid of import *
Change-Id: Ice6299ebae3ff9a477f272fff3473c446f927f7f
Diffstat (limited to 'wizards/com/sun/star')
-rw-r--r--wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py1
-rw-r--r--wizards/com/sun/star/wizards/letter/CGLetter.py5
-rw-r--r--wizards/com/sun/star/wizards/letter/CGLetterWizard.py5
-rw-r--r--wizards/com/sun/star/wizards/letter/CGPaperElementLocation.py3
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterDocument.py8
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterWizardDialog.py152
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterWizardDialogConst.py116
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py32
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.py2
9 files changed, 183 insertions, 141 deletions
diff --git a/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py b/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py
index b33ded00ef41..3c82a5681473 100644
--- a/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py
+++ b/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py
@@ -36,7 +36,6 @@ from ..common.TextElement import TextElement
from ..document.OfficeDocument import OfficeDocument
from com.sun.star.awt.VclWindowPeerAttribute import YES_NO, DEF_NO
-from com.sun.star.uno import RuntimeException
from com.sun.star.util import CloseVetoException
from com.sun.star.view.DocumentZoomType import OPTIMAL
from com.sun.star.document.UpdateDocMode import FULL_UPDATE
diff --git a/wizards/com/sun/star/wizards/letter/CGLetter.py b/wizards/com/sun/star/wizards/letter/CGLetter.py
index 0a464cb7c870..abed25080715 100644
--- a/wizards/com/sun/star/wizards/letter/CGLetter.py
+++ b/wizards/com/sun/star/wizards/letter/CGLetter.py
@@ -15,9 +15,8 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
-from wizards.common.ConfigGroup import *
-from wizards.common.ConfigGroup import *
-from CGPaperElementLocation import CGPaperElementLocation
+from .CGPaperElementLocation import CGPaperElementLocation
+from ..common.ConfigGroup import ConfigGroup
class CGLetter(ConfigGroup):
diff --git a/wizards/com/sun/star/wizards/letter/CGLetterWizard.py b/wizards/com/sun/star/wizards/letter/CGLetterWizard.py
index 508ee51d2758..eb1051c44696 100644
--- a/wizards/com/sun/star/wizards/letter/CGLetterWizard.py
+++ b/wizards/com/sun/star/wizards/letter/CGLetterWizard.py
@@ -15,9 +15,8 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
-from wizards.common.ConfigGroup import *
-from wizards.common.ConfigGroup import *
-from CGLetter import CGLetter
+from ..common.ConfigGroup import ConfigGroup
+from .CGLetter import CGLetter
class CGLetterWizard (ConfigGroup):
diff --git a/wizards/com/sun/star/wizards/letter/CGPaperElementLocation.py b/wizards/com/sun/star/wizards/letter/CGPaperElementLocation.py
index 3b30f0db2673..c57dde909919 100644
--- a/wizards/com/sun/star/wizards/letter/CGPaperElementLocation.py
+++ b/wizards/com/sun/star/wizards/letter/CGPaperElementLocation.py
@@ -15,8 +15,7 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
-from wizards.common.ConfigGroup import *
-from wizards.common.ConfigGroup import *
+from ..common.ConfigGroup import ConfigGroup
class CGPaperElementLocation(ConfigGroup):
diff --git a/wizards/com/sun/star/wizards/letter/LetterDocument.py b/wizards/com/sun/star/wizards/letter/LetterDocument.py
index 0502b7dcf565..61baa5b643f7 100644
--- a/wizards/com/sun/star/wizards/letter/LetterDocument.py
+++ b/wizards/com/sun/star/wizards/letter/LetterDocument.py
@@ -15,10 +15,10 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
-from wizards.text.TextDocument import *
-from wizards.text.TextDocument import *
-from wizards.text.TextSectionHandler import TextSectionHandler
-from wizards.common.PropertyNames import PropertyNames
+from ..text.TextDocument import TextDocument, traceback, Helper, \
+ TextFieldHandler, Configuration
+from ..text.TextSectionHandler import TextSectionHandler
+from ..common.PropertyNames import PropertyNames
from com.sun.star.table import BorderLine
from com.sun.star.text.ControlCharacter import PARAGRAPH_BREAK
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialog.py b/wizards/com/sun/star/wizards/letter/LetterWizardDialog.py
index b53a32ce585a..76c74a4109f0 100644
--- a/wizards/com/sun/star/wizards/letter/LetterWizardDialog.py
+++ b/wizards/com/sun/star/wizards/letter/LetterWizardDialog.py
@@ -15,10 +15,10 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
-from wizards.ui.WizardDialog import *
-from wizards.ui.WizardDialog import *
-from LetterWizardDialogConst import *
-from LetterWizardDialogResources import LetterWizardDialogResources
+from .LetterWizardDialogConst import LetterWizardDialogConst, HIDMAIN, HID
+from .LetterWizardDialogResources import LetterWizardDialogResources
+from ..common.HelpIds import HelpIds
+from ..ui.WizardDialog import WizardDialog, uno, Helper, PropertyNames
from com.sun.star.awt.FontUnderline import SINGLE
@@ -59,7 +59,8 @@ class LetterWizardDialog(WizardDialog):
def buildStep1(self):
self.optBusinessLetter = self.insertRadioButton(
- "optBusinessLetter", OPTBUSINESSLETTER_ITEM_CHANGED,
+ "optBusinessLetter",
+ LetterWizardDialogConst.OPTBUSINESSLETTER_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -73,7 +74,8 @@ class LetterWizardDialog(WizardDialog):
self.resources.resoptBusinessLetter_value,
"optBusinessLetter", 97, 28, 1, 1, 184), self)
self.optPrivOfficialLetter = self.insertRadioButton(
- "optPrivOfficialLetter", OPTPRIVOFFICIALLETTER_ITEM_CHANGED,
+ "optPrivOfficialLetter",
+ LetterWizardDialogConst.OPTPRIVOFFICIALLETTER_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -87,7 +89,8 @@ class LetterWizardDialog(WizardDialog):
self.resources.resoptPrivOfficialLetter_value,
"optPrivOfficialLetter", 97, 74, 1, 2, 184), self)
self.optPrivateLetter = self.insertRadioButton(
- "optPrivateLetter", OPTPRIVATELETTER_ITEM_CHANGED,
+ "optPrivateLetter",
+ LetterWizardDialogConst.OPTPRIVATELETTER_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -101,8 +104,9 @@ class LetterWizardDialog(WizardDialog):
self.resources.resoptPrivateLetter_value,
"optPrivateLetter", 97, 106, 1, 3, 184), self)
self.lstBusinessStyle = self.insertListBox(
- "lstBusinessStyle", LSTBUSINESSSTYLE_ACTION_PERFORMED,
- LSTBUSINESSSTYLE_ITEM_CHANGED,
+ "lstBusinessStyle",
+ LetterWizardDialogConst.LSTBUSINESSSTYLE_ACTION_PERFORMED,
+ LetterWizardDialogConst.LSTBUSINESSSTYLE_ITEM_CHANGED,
("Dropdown",
PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
@@ -116,7 +120,8 @@ class LetterWizardDialog(WizardDialog):
"lstBusinessStyle",
180, 40, 1, 4, 74), self)
self.chkBusinessPaper = self.insertCheckBox(
- "chkBusinessPaper", CHKBUSINESSPAPER_ITEM_CHANGED,
+ "chkBusinessPaper",
+ LetterWizardDialogConst.CHKBUSINESSPAPER_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -131,8 +136,9 @@ class LetterWizardDialog(WizardDialog):
self.resources.reschkBusinessPaper_value,
"chkBusinessPaper", 110, 56, 0, 1, 5, 168), self)
self.lstPrivOfficialStyle = self.insertListBox(
- "lstPrivOfficialStyle", LSTPRIVOFFICIALSTYLE_ACTION_PERFORMED,
- LSTPRIVOFFICIALSTYLE_ITEM_CHANGED,
+ "lstPrivOfficialStyle",
+ LetterWizardDialogConst.LSTPRIVOFFICIALSTYLE_ACTION_PERFORMED,
+ LetterWizardDialogConst.LSTPRIVOFFICIALSTYLE_ITEM_CHANGED,
("Dropdown",
PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
@@ -145,8 +151,9 @@ class LetterWizardDialog(WizardDialog):
(True, 12, HelpIds.getHelpIdString(HID + 6),
"lstPrivOfficialStyle", 180, 86, 1, 6, 74), self)
self.lstPrivateStyle = self.insertListBox(
- "lstPrivateStyle", LSTPRIVATESTYLE_ACTION_PERFORMED,
- LSTPRIVATESTYLE_ITEM_CHANGED,
+ "lstPrivateStyle",
+ LetterWizardDialogConst.LSTPRIVATESTYLE_ACTION_PERFORMED,
+ LetterWizardDialogConst.LSTPRIVATESTYLE_ITEM_CHANGED,
("Dropdown",
PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
@@ -223,7 +230,7 @@ class LetterWizardDialog(WizardDialog):
def buildStep2(self):
self.chkPaperCompanyLogo = self.insertCheckBox(
"chkPaperCompanyLogo",
- CHKPAPERCOMPANYLOGO_ITEM_CHANGED,
+ LetterWizardDialogConst.CHKPAPERCOMPANYLOGO_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -239,7 +246,7 @@ class LetterWizardDialog(WizardDialog):
"chkPaperCompanyLogo", 97, 28, 0, 2, 8, 68), self)
self.numLogoHeight = self.insertNumericField(
"numLogoHeight",
- NUMLOGOHEIGHT_TEXT_CHANGED,
+ LetterWizardDialogConst.NUMLOGOHEIGHT_TEXT_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_NAME,
@@ -254,7 +261,8 @@ class LetterWizardDialog(WizardDialog):
(12, HelpIds.getHelpIdString(HID + 9),
"numLogoHeight", 138, 40, True, 2, True, 9, 3, 30), self)
self.numLogoX = self.insertNumericField(
- "numLogoX", NUMLOGOX_TEXT_CHANGED,
+ "numLogoX",
+ LetterWizardDialogConst.NUMLOGOX_TEXT_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_NAME,
@@ -268,7 +276,8 @@ class LetterWizardDialog(WizardDialog):
(12, HelpIds.getHelpIdString(HID + 10),
"numLogoX", 266, 40, True, 2, 10, 0, 30), self)
self.numLogoWidth = self.insertNumericField(
- "numLogoWidth", NUMLOGOWIDTH_TEXT_CHANGED,
+ "numLogoWidth",
+ LetterWizardDialogConst.NUMLOGOWIDTH_TEXT_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_NAME,
@@ -282,7 +291,8 @@ class LetterWizardDialog(WizardDialog):
(12, HelpIds.getHelpIdString(HID + 11),
"numLogoWidth", 138, 56, True, 2, 11, 3.8, 30), self)
self.numLogoY = self.insertNumericField(
- "numLogoY", NUMLOGOY_TEXT_CHANGED,
+ "numLogoY",
+ LetterWizardDialogConst.NUMLOGOY_TEXT_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_NAME,
@@ -296,7 +306,8 @@ class LetterWizardDialog(WizardDialog):
(12, HelpIds.getHelpIdString(HID + 12),
"numLogoY", 266, 56, True, 2, 12, -3.4, 30), self)
self.chkPaperCompanyAddress = self.insertCheckBox(
- "chkPaperCompanyAddress", CHKPAPERCOMPANYADDRESS_ITEM_CHANGED,
+ "chkPaperCompanyAddress",
+ LetterWizardDialogConst.CHKPAPERCOMPANYADDRESS_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -311,7 +322,8 @@ class LetterWizardDialog(WizardDialog):
self.resources.reschkPaperCompanyAddress_value,
"chkPaperCompanyAddress", 98, 84, 0, 2, 13, 68), self)
self.numAddressHeight = self.insertNumericField(
- "numAddressHeight", NUMADDRESSHEIGHT_TEXT_CHANGED,
+ "numAddressHeight",
+ LetterWizardDialogConst.NUMADDRESSHEIGHT_TEXT_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_NAME,
@@ -326,7 +338,8 @@ class LetterWizardDialog(WizardDialog):
(12, HelpIds.getHelpIdString(HID + 14),
"numAddressHeight", 138, 96, True, 2, True, 14, 3, 30), self)
self.numAddressX = self.insertNumericField(
- "numAddressX", NUMADDRESSX_TEXT_CHANGED,
+ "numAddressX",
+ LetterWizardDialogConst.NUMADDRESSX_TEXT_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_NAME,
@@ -340,7 +353,8 @@ class LetterWizardDialog(WizardDialog):
(12, HelpIds.getHelpIdString(HID + 15),
"numAddressX", 266, 96, True, 2, 15, 3.8, 30), self)
self.numAddressWidth = self.insertNumericField(
- "numAddressWidth", NUMADDRESSWIDTH_TEXT_CHANGED,
+ "numAddressWidth",
+ LetterWizardDialogConst.NUMADDRESSWIDTH_TEXT_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_NAME,
@@ -354,7 +368,8 @@ class LetterWizardDialog(WizardDialog):
(12, HelpIds.getHelpIdString(HID + 16),
"numAddressWidth", 138, 112, True, 2, 16, 13.8, 30), self)
self.numAddressY = self.insertNumericField(
- "numAddressY", NUMADDRESSY_TEXT_CHANGED,
+ "numAddressY",
+ LetterWizardDialogConst.NUMADDRESSY_TEXT_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_NAME,
@@ -368,7 +383,8 @@ class LetterWizardDialog(WizardDialog):
(12, HelpIds.getHelpIdString(HID + 17),
"numAddressY", 266, 112, True, 2, 17, -3.4, 30), self)
self.chkCompanyReceiver = self.insertCheckBox(
- "chkCompanyReceiver", CHKCOMPANYRECEIVER_ITEM_CHANGED,
+ "chkCompanyReceiver",
+ LetterWizardDialogConst.CHKCOMPANYRECEIVER_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -382,7 +398,8 @@ class LetterWizardDialog(WizardDialog):
self.resources.reschkCompanyReceiver_value,
"chkCompanyReceiver", 103, 131, 0, 2, 18, 185), self)
self.chkPaperFooter = self.insertCheckBox(
- "chkPaperFooter", CHKPAPERFOOTER_ITEM_CHANGED,
+ "chkPaperFooter",
+ LetterWizardDialogConst.CHKPAPERFOOTER_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -397,7 +414,8 @@ class LetterWizardDialog(WizardDialog):
self.resources.reschkPaperFooter_value,
"chkPaperFooter", 97, 158, 0, 2, 19, 68), self)
self.numFooterHeight = self.insertNumericField(
- "numFooterHeight", NUMFOOTERHEIGHT_TEXT_CHANGED,
+ "numFooterHeight",
+ LetterWizardDialogConst.NUMFOOTERHEIGHT_TEXT_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_NAME,
@@ -548,7 +566,8 @@ class LetterWizardDialog(WizardDialog):
def buildStep3(self):
self.chkUseLogo = self.insertCheckBox(
- "chkUseLogo", CHKUSELOGO_ITEM_CHANGED,
+ "chkUseLogo",
+ LetterWizardDialogConst.CHKUSELOGO_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -564,7 +583,7 @@ class LetterWizardDialog(WizardDialog):
"chkUseLogo", 97, 54, 0, 3, 22, 212), self)
self.chkUseAddressReceiver = self.insertCheckBox(
"chkUseAddressReceiver",
- CHKUSEADDRESSRECEIVER_ITEM_CHANGED,
+ LetterWizardDialogConst.CHKUSEADDRESSRECEIVER_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -579,7 +598,8 @@ class LetterWizardDialog(WizardDialog):
self.resources.reschkUseAddressReceiver_value,
"chkUseAddressReceiver", 97, 69, 0, 3, 23, 212), self)
self.chkUseSigns = self.insertCheckBox(
- "chkUseSigns", CHKUSESIGNS_ITEM_CHANGED,
+ "chkUseSigns",
+ LetterWizardDialogConst.CHKUSESIGNS_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -594,7 +614,8 @@ class LetterWizardDialog(WizardDialog):
self.resources.reschkUseSigns_value,
"chkUseSigns", 97, 82, 0, 3, 24, 212), self)
self.chkUseSubject = self.insertCheckBox(
- "chkUseSubject", CHKUSESUBJECT_ITEM_CHANGED,
+ "chkUseSubject",
+ LetterWizardDialogConst.CHKUSESUBJECT_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -609,7 +630,8 @@ class LetterWizardDialog(WizardDialog):
self.resources.reschkUseSubject_value,
"chkUseSubject", 97, 98, 0, 3, 25, 212), self)
self.chkUseSalutation = self.insertCheckBox(
- "chkUseSalutation", CHKUSESALUTATION_ITEM_CHANGED,
+ "chkUseSalutation",
+ LetterWizardDialogConst.CHKUSESALUTATION_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -625,9 +647,9 @@ class LetterWizardDialog(WizardDialog):
"chkUseSalutation", 97, 113, 0, 3, 26, 66), self)
self.lstSalutation = self.insertComboBox(
"lstSalutation",
- LSTSALUTATION_ACTION_PERFORMED,
- LSTSALUTATION_ITEM_CHANGED,
- LSTSALUTATION_TEXT_CHANGED,
+ LetterWizardDialogConst.LSTSALUTATION_ACTION_PERFORMED,
+ LetterWizardDialogConst.LSTSALUTATION_ITEM_CHANGED,
+ LetterWizardDialogConst.LSTSALUTATION_TEXT_CHANGED,
("Dropdown",
PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
@@ -640,7 +662,8 @@ class LetterWizardDialog(WizardDialog):
(True, 12, HelpIds.getHelpIdString(HID + 27),
"lstSalutation", 210, 110, 3, 27, 74), self)
self.chkUseBendMarks = self.insertCheckBox(
- "chkUseBendMarks", CHKUSEBENDMARKS_ITEM_CHANGED,
+ "chkUseBendMarks",
+ LetterWizardDialogConst.CHKUSEBENDMARKS_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -655,7 +678,8 @@ class LetterWizardDialog(WizardDialog):
self.resources.reschkUseBendMarks_value,
"chkUseBendMarks", 97, 127, 0, 3, 28, 212), self)
self.chkUseGreeting = self.insertCheckBox(
- "chkUseGreeting", CHKUSEGREETING_ITEM_CHANGED,
+ "chkUseGreeting",
+ LetterWizardDialogConst.CHKUSEGREETING_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -670,8 +694,10 @@ class LetterWizardDialog(WizardDialog):
self.resources.reschkUseGreeting_value,
"chkUseGreeting", 97, 142, 0, 3, 29, 66), self)
self.lstGreeting = self.insertComboBox(
- "lstGreeting", LSTGREETING_ACTION_PERFORMED,
- LSTGREETING_ITEM_CHANGED, LSTGREETING_TEXT_CHANGED,
+ "lstGreeting",
+ LetterWizardDialogConst.LSTGREETING_ACTION_PERFORMED,
+ LetterWizardDialogConst.LSTGREETING_ITEM_CHANGED,
+ LetterWizardDialogConst.LSTGREETING_TEXT_CHANGED,
("Dropdown",
PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
@@ -684,7 +710,8 @@ class LetterWizardDialog(WizardDialog):
(True, 12, HelpIds.getHelpIdString(HID + 30),
"lstGreeting", 210, 141, 3, 30, 74), self)
self.chkUseFooter = self.insertCheckBox(
- "chkUseFooter", CHKUSEFOOTER_ITEM_CHANGED,
+ "chkUseFooter",
+ LetterWizardDialogConst.CHKUSEFOOTER_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -727,7 +754,8 @@ class LetterWizardDialog(WizardDialog):
def buildStep4(self):
self.optSenderPlaceholder = self.insertRadioButton(
- "optSenderPlaceholder", OPTSENDERPLACEHOLDER_ITEM_CHANGED,
+ "optSenderPlaceholder",
+ LetterWizardDialogConst.OPTSENDERPLACEHOLDER_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -741,7 +769,8 @@ class LetterWizardDialog(WizardDialog):
self.resources.resoptSenderPlaceholder_value,
"optSenderPlaceholder", 104, 42, 4, 32, 149), self)
self.optSenderDefine = self.insertRadioButton(
- "optSenderDefine", OPTSENDERDEFINE_ITEM_CHANGED,
+ "optSenderDefine",
+ LetterWizardDialogConst.OPTSENDERDEFINE_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -755,7 +784,8 @@ class LetterWizardDialog(WizardDialog):
self.resources.resoptSenderDefine_value,
"optSenderDefine", 104, 54, 4, 33, 149), self)
self.txtSenderName = self.insertTextField(
- "txtSenderName", TXTSENDERNAME_TEXT_CHANGED,
+ "txtSenderName",
+ LetterWizardDialogConst.TXTSENDERNAME_TEXT_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_NAME,
@@ -767,7 +797,8 @@ class LetterWizardDialog(WizardDialog):
(12, HelpIds.getHelpIdString(HID + 34),
"txtSenderName", 182, 67, 4, 34, 119), self)
self.txtSenderStreet = self.insertTextField(
- "txtSenderStreet", TXTSENDERSTREET_TEXT_CHANGED,
+ "txtSenderStreet",
+ LetterWizardDialogConst.TXTSENDERSTREET_TEXT_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_NAME,
@@ -779,7 +810,8 @@ class LetterWizardDialog(WizardDialog):
(12, HelpIds.getHelpIdString(HID + 35),
"txtSenderStreet", 182, 81, 4, 35, 119), self)
self.txtSenderPostCode = self.insertTextField(
- "txtSenderPostCode", TXTSENDERPOSTCODE_TEXT_CHANGED,
+ "txtSenderPostCode",
+ LetterWizardDialogConst.TXTSENDERPOSTCODE_TEXT_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_NAME,
@@ -791,7 +823,8 @@ class LetterWizardDialog(WizardDialog):
(12, HelpIds.getHelpIdString(HID + 36),
"txtSenderPostCode", 182, 95, 4, 36, 25), self)
self.txtSenderState = self.insertTextField(
- "txtSenderState", TXTSENDERSTATE_TEXT_CHANGED,
+ "txtSenderState",
+ LetterWizardDialogConst.TXTSENDERSTATE_TEXT_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_NAME,
@@ -803,7 +836,8 @@ class LetterWizardDialog(WizardDialog):
(12, HelpIds.getHelpIdString(HID + 37),
"txtSenderState", 211, 95, 4, 37, 21), self)
self.txtSenderCity = self.insertTextField(
- "txtSenderCity", TXTSENDERCITY_TEXT_CHANGED,
+ "txtSenderCity",
+ LetterWizardDialogConst.TXTSENDERCITY_TEXT_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_NAME,
@@ -815,7 +849,8 @@ class LetterWizardDialog(WizardDialog):
(12, HelpIds.getHelpIdString(HID + 38),
"txtSenderCity", 236, 95, 4, 38, 65), self)
self.optReceiverPlaceholder = self.insertRadioButton(
- "optReceiverPlaceholder", OPTRECEIVERPLACEHOLDER_ITEM_CHANGED,
+ "optReceiverPlaceholder",
+ LetterWizardDialogConst.OPTRECEIVERPLACEHOLDER_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -829,7 +864,8 @@ class LetterWizardDialog(WizardDialog):
self.resources.resoptReceiverPlaceholder_value,
"optReceiverPlaceholder", 104, 145, 4, 39, 200), self)
self.optReceiverDatabase = self.insertRadioButton(
- "optReceiverDatabase", OPTRECEIVERDATABASE_ITEM_CHANGED,
+ "optReceiverDatabase",
+ LetterWizardDialogConst.OPTRECEIVERDATABASE_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -923,7 +959,8 @@ class LetterWizardDialog(WizardDialog):
def buildStep5(self):
self.txtFooter = self.insertTextField(
- "txtFooter", TXTFOOTER_TEXT_CHANGED,
+ "txtFooter",
+ LetterWizardDialogConst.TXTFOOTER_TEXT_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_MULTILINE,
@@ -936,7 +973,8 @@ class LetterWizardDialog(WizardDialog):
(47, HelpIds.getHelpIdString(HID + 41), True,
"txtFooter", 97, 40, 5, 41, 203), self)
self.chkFooterNextPages = self.insertCheckBox(
- "chkFooterNextPages", CHKFOOTERNEXTPAGES_ITEM_CHANGED,
+ "chkFooterNextPages",
+ LetterWizardDialogConst.CHKFOOTERNEXTPAGES_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -951,7 +989,8 @@ class LetterWizardDialog(WizardDialog):
self.resources.reschkFooterNextPages_value,
"chkFooterNextPages", 97, 92, 0, 5, 42, 202), self)
self.chkFooterPageNumbers = self.insertCheckBox(
- "chkFooterPageNumbers", CHKFOOTERPAGENUMBERS_ITEM_CHANGED,
+ "chkFooterPageNumbers",
+ LetterWizardDialogConst.CHKFOOTERPAGENUMBERS_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -992,7 +1031,8 @@ class LetterWizardDialog(WizardDialog):
def buildStep6(self):
self.txtTemplateName = self.insertTextField(
- "txtTemplateName", TXTTEMPLATENAME_TEXT_CHANGED,
+ "txtTemplateName",
+ LetterWizardDialogConst.TXTTEMPLATENAME_TEXT_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_NAME,
@@ -1006,7 +1046,8 @@ class LetterWizardDialog(WizardDialog):
"txtTemplateName", 202, 56, 6, 44,
self.resources.restxtTemplateName_value, 100), self)
self.optCreateLetter = self.insertRadioButton(
- "optCreateLetter", OPTCREATELETTER_ITEM_CHANGED,
+ "optCreateLetter",
+ LetterWizardDialogConst.OPTCREATELETTER_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
@@ -1020,7 +1061,8 @@ class LetterWizardDialog(WizardDialog):
self.resources.resoptCreateLetter_value,
"optCreateLetter", 104, 111, 6, 50, 198), self)
self.optMakeChanges = self.insertRadioButton(
- "optMakeChanges", OPTMAKECHANGES_ITEM_CHANGED,
+ "optMakeChanges",
+ LetterWizardDialogConst.OPTMAKECHANGES_ITEM_CHANGED,
(PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
PropertyNames.PROPERTY_LABEL,
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogConst.py b/wizards/com/sun/star/wizards/letter/LetterWizardDialogConst.py
index acfb7d19a6e4..8517b700eb99 100644
--- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogConst.py
+++ b/wizards/com/sun/star/wizards/letter/LetterWizardDialogConst.py
@@ -15,64 +15,62 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
-OPTBUSINESSLETTER_ITEM_CHANGED = "optBusinessLetterItemChanged"
-OPTBUSINESSLETTER_ITEM_CHANGED = "optBusinessLetterItemChanged"
-OPTPRIVOFFICIALLETTER_ITEM_CHANGED = "optPrivOfficialLetterItemChanged"
-OPTPRIVATELETTER_ITEM_CHANGED = "optPrivateLetterItemChanged"
-LSTBUSINESSSTYLE_ACTION_PERFORMED = None
-LSTBUSINESSSTYLE_ITEM_CHANGED = "lstBusinessStyleItemChanged"
-LSTPRIVOFFICIALSTYLE_ACTION_PERFORMED = None
-LSTPRIVOFFICIALSTYLE_ITEM_CHANGED = "lstPrivOfficialStyleItemChanged"
-CHKBUSINESSPAPER_ITEM_CHANGED = "chkBusinessPaperItemChanged"
-LSTPRIVATESTYLE_ACTION_PERFORMED = None
-LSTPRIVATESTYLE_ITEM_CHANGED = "lstPrivateStyleItemChanged"
-CHKPAPERCOMPANYLOGO_ITEM_CHANGED = "chkPaperCompanyLogoItemChanged"
-NUMLOGOHEIGHT_TEXT_CHANGED = "numLogoHeightTextChanged"
-NUMLOGOX_TEXT_CHANGED = "numLogoXTextChanged"
-NUMLOGOWIDTH_TEXT_CHANGED = "numLogoWidthTextChanged"
-NUMLOGOY_TEXT_CHANGED = "numLogoYTextChanged"
-CHKCOMPANYRECEIVER_ITEM_CHANGED = "chkCompanyReceiverItemChanged"
-CHKPAPERFOOTER_ITEM_CHANGED = "chkPaperFooterItemChanged"
-NUMFOOTERHEIGHT_TEXT_CHANGED = "numFooterHeightTextChanged"
-CHKPAPERCOMPANYADDRESS_ITEM_CHANGED = "chkPaperCompanyAddressItemChanged"
-NUMADDRESSHEIGHT_TEXT_CHANGED = "numAddressHeightTextChanged"
-NUMADDRESSX_TEXT_CHANGED = "numAddressXTextChanged"
-NUMADDRESSWIDTH_TEXT_CHANGED = "numAddressWidthTextChanged"
-NUMADDRESSY_TEXT_CHANGED = "numAddressYTextChanged"
-LSTLETTERNORM_ACTION_PERFORMED = None
-LSTLETTERNORM_ITEM_CHANGED = "lstLetterNormItemChanged"
-CHKUSELOGO_ITEM_CHANGED = "chkUseLogoItemChanged"
-CHKUSEADDRESSRECEIVER_ITEM_CHANGED = "chkUseAddressReceiverItemChanged"
-CHKUSESIGNS_ITEM_CHANGED = "chkUseSignsItemChanged"
-CHKUSESUBJECT_ITEM_CHANGED = "chkUseSubjectItemChanged"
-CHKUSEBENDMARKS_ITEM_CHANGED = "chkUseBendMarksItemChanged"
-CHKUSEFOOTER_ITEM_CHANGED = "chkUseFooterItemChanged"
-CHKUSESALUTATION_ITEM_CHANGED = "chkUseSalutationItemChanged"
-CHKUSEGREETING_ITEM_CHANGED = "chkUseGreetingItemChanged"
-LSTSALUTATION_ACTION_PERFORMED = None
-LSTSALUTATION_ITEM_CHANGED = "lstSalutationItemChanged"
-LSTSALUTATION_TEXT_CHANGED = "lstSalutationItemChanged"
-LSTGREETING_ACTION_PERFORMED = None
-LSTGREETING_ITEM_CHANGED = "lstGreetingItemChanged"
-LSTGREETING_TEXT_CHANGED = "lstGreetingItemChanged"
-OPTSENDERPLACEHOLDER_ITEM_CHANGED = "optSenderPlaceholderItemChanged"
-OPTSENDERDEFINE_ITEM_CHANGED = "optSenderDefineItemChanged"
-OPTRECEIVERPLACEHOLDER_ITEM_CHANGED = "optReceiverPlaceholderItemChanged"
-OPTRECEIVERDATABASE_ITEM_CHANGED = "optReceiverDatabaseItemChanged"
-TXTSENDERNAME_TEXT_CHANGED = "txtSenderNameTextChanged"
-TXTSENDERSTREET_TEXT_CHANGED = "txtSenderStreetTextChanged"
-TXTSENDERCITY_TEXT_CHANGED = "txtSenderCityTextChanged"
-TXTSENDERPOSTCODE_TEXT_CHANGED = "txtSenderPostCodeTextChanged"
-TXTSENDERSTATE_TEXT_CHANGED = "txtSenderStateTextChanged"
-TXTFOOTER_TEXT_CHANGED = "txtFooterTextChanged"
-CHKFOOTERNEXTPAGES_ITEM_CHANGED = "chkFooterNextPagesItemChanged"
-CHKFOOTERPAGENUMBERS_ITEM_CHANGED = "chkFooterPageNumbersItemChanged"
-TXTTEMPLATENAME_TEXT_CHANGED = "txtTemplateNameTextChanged"
-OPTCREATELETTER_ITEM_CHANGED = "optCreateFromTemplateItemChanged"
-OPTMAKECHANGES_ITEM_CHANGED = "optMakeChangesItemChanged"
-FILETEMPLATEPATH_TEXT_CHANGED = None
-imageURLImageControl1 = None
-imageURLImageControl2 = None
-imageURLImageControl3 = None
+
HID = 40768
HIDMAIN = 40820
+
+class LetterWizardDialogConst:
+ OPTBUSINESSLETTER_ITEM_CHANGED = "optBusinessLetterItemChanged"
+ OPTBUSINESSLETTER_ITEM_CHANGED = "optBusinessLetterItemChanged"
+ OPTPRIVOFFICIALLETTER_ITEM_CHANGED = "optPrivOfficialLetterItemChanged"
+ OPTPRIVATELETTER_ITEM_CHANGED = "optPrivateLetterItemChanged"
+ LSTBUSINESSSTYLE_ACTION_PERFORMED = None
+ LSTBUSINESSSTYLE_ITEM_CHANGED = "lstBusinessStyleItemChanged"
+ LSTPRIVOFFICIALSTYLE_ACTION_PERFORMED = None
+ LSTPRIVOFFICIALSTYLE_ITEM_CHANGED = "lstPrivOfficialStyleItemChanged"
+ CHKBUSINESSPAPER_ITEM_CHANGED = "chkBusinessPaperItemChanged"
+ LSTPRIVATESTYLE_ACTION_PERFORMED = None
+ LSTPRIVATESTYLE_ITEM_CHANGED = "lstPrivateStyleItemChanged"
+ CHKPAPERCOMPANYLOGO_ITEM_CHANGED = "chkPaperCompanyLogoItemChanged"
+ NUMLOGOHEIGHT_TEXT_CHANGED = "numLogoHeightTextChanged"
+ NUMLOGOX_TEXT_CHANGED = "numLogoXTextChanged"
+ NUMLOGOWIDTH_TEXT_CHANGED = "numLogoWidthTextChanged"
+ NUMLOGOY_TEXT_CHANGED = "numLogoYTextChanged"
+ CHKCOMPANYRECEIVER_ITEM_CHANGED = "chkCompanyReceiverItemChanged"
+ CHKPAPERFOOTER_ITEM_CHANGED = "chkPaperFooterItemChanged"
+ NUMFOOTERHEIGHT_TEXT_CHANGED = "numFooterHeightTextChanged"
+ CHKPAPERCOMPANYADDRESS_ITEM_CHANGED = "chkPaperCompanyAddressItemChanged"
+ NUMADDRESSHEIGHT_TEXT_CHANGED = "numAddressHeightTextChanged"
+ NUMADDRESSX_TEXT_CHANGED = "numAddressXTextChanged"
+ NUMADDRESSWIDTH_TEXT_CHANGED = "numAddressWidthTextChanged"
+ NUMADDRESSY_TEXT_CHANGED = "numAddressYTextChanged"
+ CHKUSELOGO_ITEM_CHANGED = "chkUseLogoItemChanged"
+ CHKUSEADDRESSRECEIVER_ITEM_CHANGED = "chkUseAddressReceiverItemChanged"
+ CHKUSESIGNS_ITEM_CHANGED = "chkUseSignsItemChanged"
+ CHKUSESUBJECT_ITEM_CHANGED = "chkUseSubjectItemChanged"
+ CHKUSEBENDMARKS_ITEM_CHANGED = "chkUseBendMarksItemChanged"
+ CHKUSEFOOTER_ITEM_CHANGED = "chkUseFooterItemChanged"
+ CHKUSESALUTATION_ITEM_CHANGED = "chkUseSalutationItemChanged"
+ CHKUSEGREETING_ITEM_CHANGED = "chkUseGreetingItemChanged"
+ LSTSALUTATION_ACTION_PERFORMED = None
+ LSTSALUTATION_ITEM_CHANGED = "lstSalutationItemChanged"
+ LSTSALUTATION_TEXT_CHANGED = "lstSalutationItemChanged"
+ LSTGREETING_ACTION_PERFORMED = None
+ LSTGREETING_ITEM_CHANGED = "lstGreetingItemChanged"
+ LSTGREETING_TEXT_CHANGED = "lstGreetingItemChanged"
+ OPTSENDERPLACEHOLDER_ITEM_CHANGED = "optSenderPlaceholderItemChanged"
+ OPTSENDERDEFINE_ITEM_CHANGED = "optSenderDefineItemChanged"
+ OPTRECEIVERPLACEHOLDER_ITEM_CHANGED = "optReceiverPlaceholderItemChanged"
+ OPTRECEIVERDATABASE_ITEM_CHANGED = "optReceiverDatabaseItemChanged"
+ TXTSENDERNAME_TEXT_CHANGED = "txtSenderNameTextChanged"
+ TXTSENDERSTREET_TEXT_CHANGED = "txtSenderStreetTextChanged"
+ TXTSENDERCITY_TEXT_CHANGED = "txtSenderCityTextChanged"
+ TXTSENDERPOSTCODE_TEXT_CHANGED = "txtSenderPostCodeTextChanged"
+ TXTSENDERSTATE_TEXT_CHANGED = "txtSenderStateTextChanged"
+ TXTFOOTER_TEXT_CHANGED = "txtFooterTextChanged"
+ CHKFOOTERNEXTPAGES_ITEM_CHANGED = "chkFooterNextPagesItemChanged"
+ CHKFOOTERPAGENUMBERS_ITEM_CHANGED = "chkFooterPageNumbersItemChanged"
+ TXTTEMPLATENAME_TEXT_CHANGED = "txtTemplateNameTextChanged"
+ OPTCREATELETTER_ITEM_CHANGED = "optCreateFromTemplateItemChanged"
+ OPTMAKECHANGES_ITEM_CHANGED = "optMakeChangesItemChanged"
+ FILETEMPLATEPATH_TEXT_CHANGED = None
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
index f977132d003f..eb299880275c 100644
--- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
+++ b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
@@ -15,25 +15,31 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
-from LetterWizardDialog import *
-from LetterWizardDialog import *
-from LetterDocument import *
-from wizards.common.NoValidPathException import NoValidPathException
-from wizards.common.FileAccess import FileAccess
-from LocaleCodes import LocaleCodes
-from wizards.ui.PathSelection import PathSelection
-from wizards.common.Configuration import Configuration
-from CGLetterWizard import CGLetterWizard
-from wizards.ui.event.UnoDataAware import UnoDataAware
-from wizards.ui.event.RadioDataAware import RadioDataAware
-from wizards.text.TextFieldHandler import TextFieldHandler
-from wizards.common.SystemDialog import SystemDialog
+import traceback
+from .LetterWizardDialog import LetterWizardDialog, Helper, \
+ PropertyNames, uno, HelpIds, HID
+from .LetterDocument import LetterDocument
+from .CGLetterWizard import CGLetterWizard
+from ..common.NoValidPathException import NoValidPathException
+from ..common.FileAccess import FileAccess
+from ..common.Configuration import Configuration
+from ..common.SystemDialog import SystemDialog
+from ..common.Desktop import Desktop
+from ..ui.PathSelection import PathSelection
+from ..ui.event.UnoDataAware import UnoDataAware
+from ..ui.event.RadioDataAware import RadioDataAware
+from ..text.TextDocument import TextDocument
+from ..text.ViewHandler import ViewHandler
+from ..text.TextFieldHandler import TextFieldHandler
from com.sun.star.awt.VclWindowPeerAttribute import YES_NO, DEF_NO
+from com.sun.star.uno import RuntimeException
+from com.sun.star.util import CloseVetoException
from com.sun.star.view.DocumentZoomType import OPTIMAL
from com.sun.star.document.UpdateDocMode import FULL_UPDATE
from com.sun.star.document.MacroExecMode import ALWAYS_EXECUTE
+
class LetterWizardDialogImpl(LetterWizardDialog):
RM_TYPESTYLE = 1
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.py b/wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.py
index 58bef59f34d2..8e0a0162b2ba 100644
--- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.py
+++ b/wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.py
@@ -15,7 +15,7 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
-from wizards.common.Resource import Resource
+from ..common.Resource import Resource
class LetterWizardDialogResources(Resource):