[Libreoffice-commits] core.git: wizards/com
Michael Meeks
michael.meeks at collabora.com
Thu Mar 20 08:45:13 PDT 2014
wizards/com/sun/star/wizards/agenda/AgendaDocument.py | 10 +++++-----
wizards/com/sun/star/wizards/agenda/AgendaWizardDialog.py | 8 ++++----
wizards/com/sun/star/wizards/agenda/CGTopic.py | 6 +++---
wizards/com/sun/star/wizards/agenda/TopicsControl.py | 6 +++---
4 files changed, 15 insertions(+), 15 deletions(-)
New commits:
commit 1f2817e913c87e4f91253bd3fc01e16624ea6b71
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Thu Mar 20 14:10:07 2014 +0000
Fix a number of typos & trailing spaces.
Change-Id: I8dea099dbb06600f1493da111284810a0e27cd96
diff --git a/wizards/com/sun/star/wizards/agenda/AgendaDocument.py b/wizards/com/sun/star/wizards/agenda/AgendaDocument.py
index 77a55ee..0bcb30f 100644
--- a/wizards/com/sun/star/wizards/agenda/AgendaDocument.py
+++ b/wizards/com/sun/star/wizards/agenda/AgendaDocument.py
@@ -87,8 +87,8 @@ class AgendaDocument(TextDocument):
self.allItems = []
def load(self, templateURL):
- #Each template is duplicated. aw-XXX.ott is the template itself
- #and XXX.ott is a section link.
+ # Each template is duplicated. aw-XXX.ott is the template itself
+ # and XXX.ott is a section link.
self.template = self.calcTemplateName(templateURL)
self.loadAsPreview(templateURL, False)
self.xFrame.ComponentWindow.Enable = False
@@ -432,7 +432,7 @@ class AgendaDocument(TextDocument):
else:
try:
topicStartTime = int(self.agenda.cp_Time)
- #first I replace the minutes titles...
+ # first I replace the minutes titles...
self.items = self.searchFillInItems()
itemIndex = 0
for item in self.items:
@@ -823,7 +823,7 @@ class Topics(object):
topics table to the given number of topics.
Note this method does only reducing - if
the number of topics given is greater than the
- number of actuall topics it does *not* add
+ number of actual topics it does *not* add
rows !
Note also that the first topic will never be removed.
If the table contains no topics, the whole section will
@@ -917,7 +917,7 @@ class AgendaItem(object):
cell = ItemsTable.table.getCellByName(cellname)
cell.String = self.textElement
tableCursor.goRight(1, False)
- #second field is actually always null...
+ # second field is actually always null...
# this is a preparation for adding placeholders.
if self.field is not None:
self.field.write(ItemsTable.table.getCellByName(
diff --git a/wizards/com/sun/star/wizards/agenda/AgendaWizardDialog.py b/wizards/com/sun/star/wizards/agenda/AgendaWizardDialog.py
index 20f0e17..fc9eef9 100644
--- a/wizards/com/sun/star/wizards/agenda/AgendaWizardDialog.py
+++ b/wizards/com/sun/star/wizards/agenda/AgendaWizardDialog.py
@@ -25,10 +25,10 @@ class AgendaWizardDialog(WizardDialog):
def __init__(self, xmsf):
super(AgendaWizardDialog,self).__init__(xmsf, HID )
-
+
#Load Resources
self.resources = AgendaWizardDialogResources(self.oWizardResource)
-
+
#set dialog properties...
self.setDialogProperties(True, 210, True, 200, 52, 1, 1,
self.resources.resAgendaWizardDialog_title, 310)
@@ -98,7 +98,7 @@ class AgendaWizardDialog(WizardDialog):
"ScaleImage", PropertyNames.PROPERTY_STEP,
PropertyNames.PROPERTY_TABINDEX,
PropertyNames.PROPERTY_WIDTH)
-
+
self.fontDescriptor4 = \
uno.createUnoStruct('com.sun.star.awt.FontDescriptor')
self.fontDescriptor4.Weight = 150
@@ -108,7 +108,7 @@ class AgendaWizardDialog(WizardDialog):
(self.fontDescriptor4, 16, self.resources.reslblTitle1_value,
True, 91, 8, 1, 100,212))
self.insertLabel("lblPageDesign", self.PROPS_TEXT,
- (8, self.resources.reslblPageDesign_value, 97, 32, 1, 101, 66))
+ (8, self.resources.reslblPageDesign_value, 97, 32, 1, 101, 66))
self.listPageDesign = self.insertListBox("listPageDesign",
None, AgendaWizardDialogConst.LISTPAGEDESIGN_ACTION_PERFORMED,
self.PROPS_LIST,
diff --git a/wizards/com/sun/star/wizards/agenda/CGTopic.py b/wizards/com/sun/star/wizards/agenda/CGTopic.py
index c094363..e99f770 100644
--- a/wizards/com/sun/star/wizards/agenda/CGTopic.py
+++ b/wizards/com/sun/star/wizards/agenda/CGTopic.py
@@ -20,7 +20,7 @@ from ..common.ConfigGroup import ConfigGroup
'''
CGTopic means: Configuration Group Topic.
This object encapsulates a configuration group with topic information.
-Since the topics gui conftrol uses its own data model, there is
+Since the topic's gui control uses its own data model, there is
also code here to convert from the data model to CGTopic object (the constructor)
and vice versa (setDataToRow method - used when loading the last session...)
'''
@@ -31,7 +31,7 @@ class CGTopic(ConfigGroup):
create a new CGTopic object with data from the given row.
the row object is a PropertyValue array, as used
by the TopicsControl's data model.
- @param row PropertyValue array as used by the TopicsControl data model.
+ @param row PropertyValue array as used by the TopicsControl's data model.
'''
def __init__(self, row=None):
@@ -39,7 +39,7 @@ class CGTopic(ConfigGroup):
self.cp_Index = int()
self.cp_Topic = str()
self.cp_Responsible = str()
- self.cp_Time = str()
+ self.cp_Time = str()
else:
self.cp_Index = int(row[0].Value[:-1])
self.cp_Topic = row[1].Value
diff --git a/wizards/com/sun/star/wizards/agenda/TopicsControl.py b/wizards/com/sun/star/wizards/agenda/TopicsControl.py
index 8e7dbc2..90576cc 100644
--- a/wizards/com/sun/star/wizards/agenda/TopicsControl.py
+++ b/wizards/com/sun/star/wizards/agenda/TopicsControl.py
@@ -47,7 +47,7 @@ then the other three rows, which do not exist in the data model, are disabled.
<br/>
The following other functionality is implemented:
<br/>
-0. synchroniting data between controls, data model and live preview.
+0. synchronizing data between controls, data model and live preview.
1. Tab scrolling.<br/>
2. Keyboard scrolling.<br/>
3. Removing rows and adding new rows.<br/>
@@ -55,7 +55,7 @@ The following other functionality is implemented:
<br/>
This control relays on the ControlScroller control which uses the following
Data model:<br/>
-1. It uses a vector, whos members are arrays of PropertyValue.<br/>
+1. It uses a vector, whose members are arrays of PropertyValue.<br/>
2. Each array represents a row.<br/>
(Note: the Name and Value memebrs of the PropertyValue object are being used)
3. Each property Value represents a value
@@ -157,7 +157,7 @@ class TopicsControl(ControlScroller):
setEnabled(True)
def saveTopics(self, agenda):
- #last row is always empty
+ # last row is always empty
agenda.cp_Topics.childrenList = self.scrollfields[:-1]
'''
More information about the Libreoffice-commits
mailing list