summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/web
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2014-02-14 20:44:05 +0100
committerXisco Fauli <anistenis@gmail.com>2014-02-14 20:51:20 +0100
commitee122cfd36b3af030520f26a6a313bc7cd3156fd (patch)
treecb1ad084e932711d1be68db0d49c7b13878fdd36 /wizards/com/sun/star/wizards/web
parent5ae93216752738ea6bc3df8d41099de76d366441 (diff)
pywizards: unify setDialogProperties
Change-Id: I20d701da56bf6c8aef573aea71a7629f6374814f
Diffstat (limited to 'wizards/com/sun/star/wizards/web')
-rw-r--r--wizards/com/sun/star/wizards/web/FTPDialog.py20
-rw-r--r--wizards/com/sun/star/wizards/web/WebWizardDialog.py18
2 files changed, 6 insertions, 32 deletions
diff --git a/wizards/com/sun/star/wizards/web/FTPDialog.py b/wizards/com/sun/star/wizards/web/FTPDialog.py
index b7c8d3fb362a..8b631508a68a 100644
--- a/wizards/com/sun/star/wizards/web/FTPDialog.py
+++ b/wizards/com/sun/star/wizards/web/FTPDialog.py
@@ -113,24 +113,8 @@ class FTPDialog(UnoDialog2, UIConsts):
self.ucb = UCB(xmsf)
# set dialog properties...
- uno.invoke(self.xDialogModel, "setPropertyValues",
- (("Closeable",
- PropertyNames.PROPERTY_HEIGHT,
- PropertyNames.PROPERTY_HELPURL, "Moveable",
- PropertyNames.PROPERTY_NAME,
- PropertyNames.PROPERTY_POSITION_X,
- PropertyNames.PROPERTY_POSITION_Y,
- "Title",
- PropertyNames.PROPERTY_WIDTH),
- (True,
- 160,
- HelpIds.getHelpIdString(HID_FTP),
- True,
- "FTPDialog",
- 167,
- 82,
- self.resources.resFTPDialog_title,
- 222)))
+ self.setDialogProperties( True, 160, HelpIds.getHelpIdString(HID_FTP),
+ True, "FTPDialog", 167, 82, self.resources.resFTPDialog_title, 222)
# add controls to dialog
self.build()
diff --git a/wizards/com/sun/star/wizards/web/WebWizardDialog.py b/wizards/com/sun/star/wizards/web/WebWizardDialog.py
index 76d31825d4e7..1cd2d984eb13 100644
--- a/wizards/com/sun/star/wizards/web/WebWizardDialog.py
+++ b/wizards/com/sun/star/wizards/web/WebWizardDialog.py
@@ -89,19 +89,9 @@ class WebWizardDialog(WizardDialog):
self.resources = WebWizardDialogResources(xmsf, self.oWizardResource)
#set dialog properties...
- uno.invoke(self.xDialogModel, "setPropertyValues",(
- ("Closeable",
- PropertyNames.PROPERTY_HEIGHT,
- PropertyNames.PROPERTY_HELPURL, "Moveable",
- PropertyNames.PROPERTY_NAME,
- PropertyNames.PROPERTY_POSITION_X,
- PropertyNames.PROPERTY_POSITION_Y,
- PropertyNames.PROPERTY_STEP,
- PropertyNames.PROPERTY_TABINDEX, "Title",
- PropertyNames.PROPERTY_WIDTH),
- (True, 210, HelpIds.getHelpIdString(HID0_WEBWIZARD), True,
- "WebWizardDialog", 102, 52, 1, 6,
- self.resources.resWebWizardDialog_title, 330)))
+ self.setDialogProperties( True, 210, True, 102, 52, 1, 6,
+ self.resources.resWebWizardDialog_title, 330)
+
self.fontDescriptor0 = \
uno.createUnoStruct('com.sun.star.awt.FontDescriptor')
self.fontDescriptor1 = \
@@ -114,6 +104,7 @@ class WebWizardDialog(WizardDialog):
uno.createUnoStruct('com.sun.star.awt.FontDescriptor')
self.fontDescriptor7 = \
uno.createUnoStruct('com.sun.star.awt.FontDescriptor')
+
self.imgIconsPrev = range(8)
#Set member- self.fontDescriptors...
self.fontDescriptor0.Weight = 100
@@ -136,7 +127,6 @@ class WebWizardDialog(WizardDialog):
self.fontDescriptor7.Weight = 100
#build components
-
def buildStep1(self):
tabIndex = 100
self.insertLabel("lbIntroTitle", WebWizardDialog.PROPNAMES_TITLE,