Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/3015

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/15/3015/1

Init: Don't use the Helper in ImageListDialog.

Change-Id: Ic58b14b73191039840b09e04b37109476e9a0a48
---
M wizards/com/sun/star/wizards/web/ImageListDialog.py
1 file 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 d9dcf61..b9e176e 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 @@
     '''
 
     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 @@
             * 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 @@
                 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 @@
         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,

-- 
To view, visit https://gerrit.libreoffice.org/3015
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic58b14b73191039840b09e04b37109476e9a0a48
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Javier Fernandez <javier.fgb@gmail.com>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.