summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/fax/FaxDocument.py
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2011-06-16 19:47:04 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-18 02:13:21 +0200
commit8fa2b59f96951165fd26b98e3e1138122ffd331b (patch)
treeba0ccdd592bed192b0f31be9af04cd50129f633d /wizards/com/sun/star/wizards/fax/FaxDocument.py
parentbbdda7a40389a0173ad6b6ca20b0623061c156f1 (diff)
Remove unused class
Diffstat (limited to 'wizards/com/sun/star/wizards/fax/FaxDocument.py')
-rw-r--r--wizards/com/sun/star/wizards/fax/FaxDocument.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/wizards/com/sun/star/wizards/fax/FaxDocument.py b/wizards/com/sun/star/wizards/fax/FaxDocument.py
index 8c0f0c4588ef..f07917dd8d0c 100644
--- a/wizards/com/sun/star/wizards/fax/FaxDocument.py
+++ b/wizards/com/sun/star/wizards/fax/FaxDocument.py
@@ -34,7 +34,7 @@ class FaxDocument(TextDocument):
FH.updateDateFields()
def switchFooter(self, sPageStyle, bState, bPageNumber, sText):
- if self.xTextDocument != None:
+ if self.xTextDocument is not None:
self.xTextDocument.lockControllers()
try:
@@ -45,7 +45,7 @@ class FaxDocument(TextDocument):
if bState:
xPageStyle.setPropertyValue("FooterIsOn", True)
xFooterText = propertySet.getPropertyValue("FooterText")
- xFooterText.setString(sText)
+ xFooterText.String = sText
if bPageNumber:
#Adding the Page Number
@@ -60,9 +60,8 @@ class FaxDocument(TextDocument):
xPageNumberField.setPropertyValue(
"NumberingType", uno.Any("short",ARABIC))
xPageNumberField.setPropertyValue("SubType", CURRENT)
- xFooterText.insertTextContent(xFooterText.getEnd(),
+ xFooterText.insertTextContent(xFooterText.End,
xPageNumberField, False)
-
else:
Helper.setUnoPropertyValue(xPageStyle, "FooterIsOn",
False)
@@ -72,7 +71,7 @@ class FaxDocument(TextDocument):
traceback.print_exc()
def hasElement(self, sElement):
- if self.xTextDocument != None:
+ if self.xTextDocument is not None:
mySectionHandler = TextSectionHandler(self.xMSF,
self.xTextDocument)
return mySectionHandler.hasTextSectionByName(sElement)
@@ -118,13 +117,13 @@ class FaxDocument(TextDocument):
if not self.keepLogoFrame:
xTF = TextFrameHandler.getFrameByName("Company Logo",
self.xTextDocument)
- if xTF != None:
+ if xTF is not None:
xTF.dispose()
if not self.keepTypeFrame:
xTF = TextFrameHandler.getFrameByName("Communication Type",
self.xTextDocument)
- if xTF != None:
+ if xTF is not None:
xTF.dispose()
except UnoException, e: