diff options
author | Xisco Fauli <anistenis@gmail.com> | 2013-11-24 18:16:22 +0100 |
---|---|---|
committer | Xisco Fauli <anistenis@gmail.com> | 2013-11-24 18:17:18 +0100 |
commit | 76ee4517c1b153a4b6f1065dff596118f6b563fc (patch) | |
tree | 8768a51d95bcc19678bf074084c393c4bd522608 /wizards/com/sun/star/wizards/agenda | |
parent | 0ca978e9dff389b950d0577cd9120e3149c6ed6f (diff) |
pywizards: Some more pyflakes love
Change-Id: I3da78c004068cd7306ef79f5d019ab5bf07cac0b
Diffstat (limited to 'wizards/com/sun/star/wizards/agenda')
4 files changed, 5 insertions, 22 deletions
diff --git a/wizards/com/sun/star/wizards/agenda/AgendaDocument.py b/wizards/com/sun/star/wizards/agenda/AgendaDocument.py index d9013bad1b8f..180b83f261cc 100644 --- a/wizards/com/sun/star/wizards/agenda/AgendaDocument.py +++ b/wizards/com/sun/star/wizards/agenda/AgendaDocument.py @@ -571,15 +571,6 @@ class AgendaDocument(TextDocument): rows = table.Rows rows.insertByIndex(start, count) - '''returns the row index for this cell name. - @param cellName - @return the row index for this cell name. - ''' - - @classmethod - def getRowIndex(self, cellName): - return int(cellName.RangeName[1:]) - ''' returns the rows count of this table, assuming there is no vertical merged cells. @@ -699,8 +690,6 @@ class ItemsTable(object): if cellName == cursor.RangeName: return - rowIndex = AgendaDocument.getRowIndex(cursor) - rowsCount = AgendaDocument.getRowCount(ItemsTable.table) ''' now before deleteing i move the cursor up so it does not disappear, because it will crash office. diff --git a/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogImpl.py b/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogImpl.py index 243365af3c49..8b21e7eb754e 100644 --- a/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogImpl.py +++ b/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogImpl.py @@ -35,9 +35,9 @@ from ..common.Configuration import Configuration from ..common.FileAccess import FileAccess from ..document.OfficeDocument import OfficeDocument +from com.sun.star.util import CloseVetoException from com.sun.star.view.DocumentZoomType import OPTIMAL from com.sun.star.awt.VclWindowPeerAttribute import YES_NO, DEF_NO -from com.sun.star.awt.VclWindowPeerAttribute import OK class AgendaWizardDialogImpl(AgendaWizardDialog): @@ -260,9 +260,6 @@ class AgendaWizardDialogImpl(AgendaWizardDialog): #checkbox listeners def chkUseMeetingTypeItemChanged(self): - self.myAgendaDoc.agenda.cp_IncludeMinutes = bool(self.chkMinutes.State) - - def chkUseMeetingTypeItemChanged(self): self.myAgendaDoc.redraw(self.templateConsts.FILLIN_MEETING_TYPE) def chkUseReadItemChanged(self): @@ -316,7 +313,6 @@ class AgendaWizardDialogImpl(AgendaWizardDialog): bSaveSuccess = False endWizard = True try: - fileAccess = FileAccess(self.xMSF) self.sPath = self.myPathSelection.getSelectedPath() if not self.sPath or not os.path.exists(self.sPath): self.myPathSelection.triggerPathPicker() @@ -388,7 +384,7 @@ class AgendaWizardDialogImpl(AgendaWizardDialog): def closeDocument(self): try: - xCloseable = self.myAgendaDoc.xFrame.close(False) + self.myAgendaDoc.xFrame.close(False) except CloseVetoException: traceback.print_exc() diff --git a/wizards/com/sun/star/wizards/agenda/CGTopic.py b/wizards/com/sun/star/wizards/agenda/CGTopic.py index 240ad0ed4b5b..c09436308f03 100644 --- a/wizards/com/sun/star/wizards/agenda/CGTopic.py +++ b/wizards/com/sun/star/wizards/agenda/CGTopic.py @@ -41,7 +41,6 @@ class CGTopic(ConfigGroup): self.cp_Responsible = str() self.cp_Time = str() else: - num = row[0].Value self.cp_Index = int(row[0].Value[:-1]) self.cp_Topic = row[1].Value self.cp_Responsible = row[2].Value diff --git a/wizards/com/sun/star/wizards/agenda/TopicsControl.py b/wizards/com/sun/star/wizards/agenda/TopicsControl.py index 65af661553cc..8e7dbc2713b8 100644 --- a/wizards/com/sun/star/wizards/agenda/TopicsControl.py +++ b/wizards/com/sun/star/wizards/agenda/TopicsControl.py @@ -16,9 +16,8 @@ # the License at http://www.apache.org/licenses/LICENSE-2.0 . # import uno -from .CGTopic import CGTopic from ..ui.ControlScroller import ControlScroller, PropertyNames, traceback, \ - HelpIds, UnoDialog + HelpIds from .AgendaWizardDialogConst import HID from ..common.Properties import Properties from ..ui.event.CommonListener import FocusListenerProcAdapter, \ @@ -436,8 +435,8 @@ class TopicsControl(ControlScroller): if (event.KeyCode == TAB) and \ (event.Modifiers == SHIFT): if self.nscrollvalue > 0: - setScrollValue(self.nscrollvalue - 1) - focus(self.lastTime) + self.setScrollValue(self.nscrollvalue - 1) + self.focus(self.lastTime) ''' sets focus to the given control. |