diff options
author | Xisco Fauli <anistenis@gmail.com> | 2012-11-26 02:23:06 +0100 |
---|---|---|
committer | Xisco Fauli <anistenis@gmail.com> | 2012-11-26 23:39:44 +0100 |
commit | d03f2be8e1b01e2c5504fac837240ea473a03c98 (patch) | |
tree | af674f6190e5968a012a712e358be5852d4e109a /wizards/com/sun/star/wizards/document/OfficeDocument.py | |
parent | 7ce4ca1c49c1183ffb32b0e7f85e29e3d5b2eb37 (diff) |
pyfax: adapt it to python3.3. it can be already launched
Change-Id: Id0c98e95d6b40dabe0dc07af232bda84989d1815
Diffstat (limited to 'wizards/com/sun/star/wizards/document/OfficeDocument.py')
-rw-r--r-- | wizards/com/sun/star/wizards/document/OfficeDocument.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wizards/com/sun/star/wizards/document/OfficeDocument.py b/wizards/com/sun/star/wizards/document/OfficeDocument.py index bd138cae820a..69391bbbcb4b 100644 --- a/wizards/com/sun/star/wizards/document/OfficeDocument.py +++ b/wizards/com/sun/star/wizards/document/OfficeDocument.py @@ -46,7 +46,7 @@ class OfficeDocument(object): @classmethod def attachEventCall(self, xComponent, EventName, EventType, EventURL): try: - oEventProperties = range(2) + oEventProperties = list(range(2)) oEventProperties[0] = uno.createUnoStruct( 'com.sun.star.beans.PropertyValue') oEventProperties[0].Name = "EventType" @@ -85,7 +85,7 @@ class OfficeDocument(object): @classmethod def createNewDocument(self, frame, sDocumentType, preview, readonly): - loadValues = range(2) + loadValues = list(range(2)) loadValues[0] = uno.createUnoStruct( 'com.sun.star.beans.PropertyValue') loadValues[0].Name = "ReadOnly" @@ -194,7 +194,7 @@ class OfficeDocument(object): def store(self, xMSF, xComponent, StorePath, FilterName): try: if len(FilterName): - oStoreProperties = range(2) + oStoreProperties = list(range(2)) oStoreProperties[0] = uno.createUnoStruct( 'com.sun.star.beans.PropertyValue') oStoreProperties[0].Name = "FilterName" @@ -205,7 +205,7 @@ class OfficeDocument(object): oStoreProperties[1].Value = xMSF.createInstance( "com.sun.star.comp.uui.UUIInteractionHandler") else: - oStoreProperties = range(0) + oStoreProperties = list(range(0)) if StorePath.startswith("file://"): #Unix @@ -260,7 +260,7 @@ class OfficeDocument(object): def getFileMediaDecriptor(self, xmsf, url): typeDetect = xmsf.createInstance( "com.sun.star.document.TypeDetection") - mediaDescr = range(1) + mediaDescr = list(range(1)) mediaDescr[0] = uno.createUnoStruct( 'com.sun.star.beans.PropertyValue') mediaDescr[0].Name = "URL" |