summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/web
diff options
context:
space:
mode:
authorJavier Fernandez <jfernandez@igalia.com>2013-05-03 14:06:48 +0000
committerJavier Fernandez <jfernandez@igalia.com>2013-05-08 09:36:39 +0000
commit3fe37133401faef81b09c9bb59b6e57b61931fe9 (patch)
tree4eb8a4d6982c5ef96ce6c3eb497dd198b7f4479f /wizards/com/sun/star/wizards/web
parentb88aeb62eeef1f5b7bbff545550f61ca333001d8 (diff)
PyWebWizard: Fixing bugs and implementation of mising features.
DataAware support for accessing the getter/setters methods. Change-Id: I4b6559b0c819f4db457760d31d4a8cbd664e8fbd
Diffstat (limited to 'wizards/com/sun/star/wizards/web')
-rw-r--r--wizards/com/sun/star/wizards/web/data/CGDesign.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/wizards/com/sun/star/wizards/web/data/CGDesign.py b/wizards/com/sun/star/wizards/web/data/CGDesign.py
index a53e40ae00e2..4887bf74982b 100644
--- a/wizards/com/sun/star/wizards/web/data/CGDesign.py
+++ b/wizards/com/sun/star/wizards/web/data/CGDesign.py
@@ -37,3 +37,19 @@ class CGDesign(ConfigGroup):
def createDOM(self, parent):
return XMLHelper.addElement(parent, "design", (0,), (0,))
+
+ def getStyle(self):
+ style = self.root.cp_Styles.getElement(self.cp_Style)
+ return [self.root.cp_Styles.getIndexOf(style)]
+
+ def setStyle(self, newStyle):
+ o = self.root.cp_Styles.getElementAt(newStyle[0])
+ self.cp_Style = self.root.cp_Styles.getKey(o)
+
+ def getLayout(self):
+ layout = self.root.cp_Layouts.getElement(self.cp_Layout)
+ return layout.cp_Index
+
+ def setLayout(self, layoutIndex):
+ layout = self.root.cp_Layouts.getElementAt(layoutIndex)
+ self.cp_Layout = self.root.cp_Layouts.getKey(layout)