diff options
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/common/Properties.py | 3 | ||||
-rw-r--r-- | wizards/com/sun/star/wizards/ui/DocumentPreview.py | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/common/Properties.py b/wizards/com/sun/star/wizards/common/Properties.py index 6c95573e922d..a6dd8c878af4 100644 --- a/wizards/com/sun/star/wizards/common/Properties.py +++ b/wizards/com/sun/star/wizards/common/Properties.py @@ -58,3 +58,6 @@ class Properties(dict): if handle is not None: pv.Handle = handle return pv + + def getProperties1(self): + return self.getProperties(self) diff --git a/wizards/com/sun/star/wizards/ui/DocumentPreview.py b/wizards/com/sun/star/wizards/ui/DocumentPreview.py index 565dd5712d63..d358ad49937b 100644 --- a/wizards/com/sun/star/wizards/ui/DocumentPreview.py +++ b/wizards/com/sun/star/wizards/ui/DocumentPreview.py @@ -16,7 +16,7 @@ # the License at http://www.apache.org/licenses/LICENSE-2.0 . # import traceback -from wizards.common.Properties import Properties +from ..common.Properties import Properties from com.sun.star.awt import WindowDescriptor from com.sun.star.awt import Rectangle @@ -56,7 +56,7 @@ class DocumentPreview(object): ps = Properties() for index,item in enumerate(propNames): ps[item] = propValues[index] - return self.setDocument(self.url, ps.getProperties(ps)) + return self.setDocument(self.url, ps.getProperties1()) def reload(self, xmsf): self.closeFrame() |