summaryrefslogtreecommitdiffstats
path: root/filters/kpresenter/magicpoint
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:38:41 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:38:41 -0600
commitf0de9e167e289ab7dc33e57f077c1f04ec7c68c8 (patch)
tree1fc538e179833e62caec21956bfe47a252be5a72 /filters/kpresenter/magicpoint
parent11191ef0b9908604d1d7aaca382b011ef22c454c (diff)
downloadkoffice-f0de9e167e289ab7dc33e57f077c1f04ec7c68c8.tar.gz
koffice-f0de9e167e289ab7dc33e57f077c1f04ec7c68c8.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'filters/kpresenter/magicpoint')
-rwxr-xr-xfilters/kpresenter/magicpoint/mgp2kpr.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/filters/kpresenter/magicpoint/mgp2kpr.py b/filters/kpresenter/magicpoint/mgp2kpr.py
index e2e5b50aa..c0609de66 100755
--- a/filters/kpresenter/magicpoint/mgp2kpr.py
+++ b/filters/kpresenter/magicpoint/mgp2kpr.py
@@ -56,7 +56,7 @@ class MgpImporter:
self.__reset() #init properties
def __reset(self):
- self.tqalignment="1" #text tqalignment, left
+ self.alignment="1" #text alignment, left
self.vgap=1 #line spacing
#font properties
@@ -167,14 +167,14 @@ class MgpImporter:
def __setAlign(self,command):
tokens=string.split(command,' ')
if (tokens[0]=='leftfill'): #justify
- self.tqalignment="8"
+ self.alignment="8"
elif (tokens[0]=='right'):
- self.tqalignment="2"
+ self.alignment="2"
elif (tokens[0]=='center'):
- self.tqalignment="4"
+ self.alignment="4"
else:
- self.tqalignment="1" #left
- #print self.tqalignment
+ self.alignment="1" #left
+ #print self.alignment
def __setBackground(self,parent):
pageElem=self.document.createElement("PAGE")
@@ -233,7 +233,7 @@ class MgpImporter:
indent=-1
pElem=self.document.createElement("P") #paragraph
- pElem.setAttribute("align", self.tqalignment)
+ pElem.setAttribute("align", self.alignment)
elem=self.document.createElement("NAME") #style name
elem.setAttribute("value", "Standard") ###is this needed at all?
@@ -377,7 +377,7 @@ class MgpImporter:
self.__setFontSize(command)
elif (command.startswith('left') or
command.startswith('center') or
- command.startswith('right')): #text tqalignment
+ command.startswith('right')): #text alignment
self.__setAlign(command)
elif (command.startswith('charset')): #charset
self.__setCharset(command)