Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/3019
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/19/3019/1
Init: Pythonize the WebWizardDialog class.
Change-Id: Ief62c2feea79ceb0e90c940bd1d442cf996df839
---
M wizards/com/sun/star/wizards/web/WebWizardDialog.py
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/wizards/com/sun/star/wizards/web/WebWizardDialog.py
b/wizards/com/sun/star/wizards/web/WebWizardDialog.py
index f6fbc39..bec0f70 100644
--- a/wizards/com/sun/star/wizards/web/WebWizardDialog.py
+++ b/wizards/com/sun/star/wizards/web/WebWizardDialog.py
@@ -15,12 +15,14 @@
# 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.WizardDialog import *
-from ui.WizardDialog import *
-from WebWizardDialogResources import WebWizardDialogResources
-from WebWizardConst import *
-from WWHID import *
-from ui.ImageList import ImageList
+import unohelper
+
+from ..ui.WizardDialog import WizardDialog, uno, PropertyNames
+from .WebWizardDialogResources import WebWizardDialogResources
+from .WebWizardConst import *
+from .WWHID import *
+from ..ui.ControlScroller import HelpIds
+from ..ui.ImageList import ImageList
from com.sun.star.awt import Size
from com.sun.star.awt.FontUnderline import SINGLE
from com.sun.star.awt.FontFamily import ROMAN
@@ -87,8 +89,8 @@
#Load Resources
self.resources = WebWizardDialogResources(xmsf)
#set dialog properties...
- Helper.setUnoPropertyValues(self.xDialogModel,(
- "Closeable",
+ uno.invoke(self.xDialogModel, "setPropertyValues",(
+ ("Closeable",
PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL, "Moveable",
PropertyNames.PROPERTY_NAME,
@@ -99,7 +101,7 @@
PropertyNames.PROPERTY_WIDTH),
(True, 210, HelpIds.getHelpIdString(HID0_WEBWIZARD), True,
"WebWizardDialog", 102, 52, 1, 6,
- self.resources.resWebWizardDialog_title, 330))
+ self.resources.resWebWizardDialog_title, 330)))
self.fontDescriptor0 = \
uno.createUnoStruct('com.sun.star.awt.FontDescriptor')
self.fontDescriptor1 = \
@@ -446,7 +448,7 @@
274, 43, 5, 53, 50), self)
self.insertLabel("lblIconset", WebWizardDialog.PROPNAMES_LBL,
(8, self.resources.reslblIconset, "lblIconset", 97, 64, 5, 51, 70))
- self.insertLabel("txtIconset",
+ self.txtIconset = self.insertLabel("txtIconset",
("Border",
PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_LABEL,
@@ -727,5 +729,4 @@
return oResIds
def render(self, listItem):
- print "implementar"
- #return listItem == None ? "" : (listItem).cp_Name
+ return "" if (listItem is None) else listItem.cp_Name
--
To view, visit https://gerrit.libreoffice.org/3019
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ief62c2feea79ceb0e90c940bd1d442cf996df839
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Javier Fernandez <javier.fgb@gmail.com>
Context
- [PATCH] Init: Pythonize the WebWizardDialog class. · Javier Fernandez (via Code Review)
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.