summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star
diff options
context:
space:
mode:
authorJavier Fernandez <jfernandez@igalia.com>2013-03-20 07:25:12 +0000
committerMichael Meeks <michael.meeks@suse.com>2013-03-25 13:23:08 +0000
commita665b06f44a5e1c1dd3bbd36b954b6b80a6b570f (patch)
tree5d06ef860ca6a002572d654a0ad513ee3b40e1d3 /wizards/com/sun/star
parentaac6850ff3b77f843dcd1883e9e6b7726b555ed0 (diff)
Init: Don't use the Helper in ImageListDialog.
Change-Id: Ic58b14b73191039840b09e04b37109476e9a0a48
Diffstat (limited to 'wizards/com/sun/star')
-rw-r--r--wizards/com/sun/star/wizards/web/ImageListDialog.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/wizards/com/sun/star/wizards/web/ImageListDialog.py b/wizards/com/sun/star/wizards/web/ImageListDialog.py
index d9dcf61c66b0..b9e176e51681 100644
--- a/wizards/com/sun/star/wizards/web/ImageListDialog.py
+++ b/wizards/com/sun/star/wizards/web/ImageListDialog.py
@@ -15,10 +15,12 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
-from ui.UnoDialog2 import *
-from ui.UnoDialog2 import *
-from ui.ImageList import ImageList
-from common.HelpIds import HelpIds
+import uno
+
+from ..ui.UnoDialog2 import UnoDialog2
+from ..ui.ImageList import ImageList
+from ..common.HelpIds import HelpIds
+from ..common.PropertyNames import PropertyNames
from com.sun.star.awt import FontDescriptor
from com.sun.star.awt.PushButtonType import OK, CANCEL, HELP, STANDARD
@@ -91,6 +93,7 @@ class ImageListDialog(UnoDialog2):
'''
def build(self):
+ print ("DEBUG !!!! ImageListDialog build 1")
#set dialog properties...
ilWidth = (self.il.imageSize.Width + self.il.gap.Width) \
* self.il.cols + self.il.gap.Width
@@ -98,8 +101,7 @@ class ImageListDialog(UnoDialog2):
* self.il.rows + self.il.gap.Height
dialogWidth = 6 + ilWidth + 6 + 50 + 6
dialogHeight = 3 + 16 + 3 + (ilHeight + 8 + 14) + 6
- Helper.setUnoPropertyValues(
- self.xDialogModel,
+ uno.invoke(self.xDialogModel, "setPropertyValues",(
("Closeable",
PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
@@ -112,7 +114,7 @@ class ImageListDialog(UnoDialog2):
PropertyNames.PROPERTY_WIDTH),
(True, dialogHeight, HelpIds.getHelpIdString(self.hid), True,
"imgDialog", 59, 24, 1,
- self.resources[ImageListDialog.RES_TITLE],dialogWidth))
+ self.resources[ImageListDialog.RES_TITLE],dialogWidth)))
#Set member- FontDescriptors...
self.fontDescriptor1.Weight = 150
PROPNAMES = ("DefaultButton",
@@ -167,6 +169,7 @@ class ImageListDialog(UnoDialog2):
self.il.helpURL = self.hid + 5
self.il.tabIndex = 1
self.il.create(self)
+ print ("DEBUG !!!! ImageListDialog build 2")
self.lblTitle = self.insertLabel("lblTitle",
("FontDescriptor",
PropertyNames.PROPERTY_HEIGHT,