tdf#158803 Remove unused imports from wizards
Used pyflakes to find unused imports from wizards module. Then, removed those unused imports. Change-Id: I27f1c38871eafb57a5f914f4de3f825889b4ac68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142522 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
This commit is contained in:
parent
4bea19cf84
commit
4871de96cb
11 changed files with 9 additions and 15 deletions
|
@ -15,11 +15,11 @@
|
|||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
|
||||
from ..ui.WizardDialog import WizardDialog, uno, UIConsts, PropertyNames
|
||||
from .AgendaWizardDialogConst import AgendaWizardDialogConst, HID
|
||||
from .AgendaWizardDialogResources import AgendaWizardDialogResources
|
||||
|
||||
from com.sun.star.awt.FontUnderline import SINGLE
|
||||
|
||||
class AgendaWizardDialog(WizardDialog):
|
||||
|
||||
|
|
|
@ -19,8 +19,7 @@ import uno
|
|||
import traceback
|
||||
|
||||
from com.sun.star.frame.FrameSearchFlag import ALL
|
||||
from com.sun.star.util import URL
|
||||
from com.sun.star.i18n.KParseTokens import ANY_LETTER_OR_NUMBER, ASC_UNDERSCORE
|
||||
|
||||
|
||||
class Desktop(object):
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#
|
||||
import traceback
|
||||
|
||||
from os import sep as FileSeparator
|
||||
|
||||
'''
|
||||
This class delivers static convenience methods
|
||||
|
|
|
@ -15,9 +15,9 @@
|
|||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
import traceback
|
||||
from com.sun.star.lang import Locale
|
||||
|
||||
|
||||
class NumberFormatter(object):
|
||||
|
||||
def __init__(self, _xNumberFormatsSupplier, _aLocale, _xMSF=None):
|
||||
|
|
|
@ -16,17 +16,17 @@
|
|||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
import traceback
|
||||
from .Desktop import Desktop
|
||||
|
||||
from .Desktop import Desktop
|
||||
from com.sun.star.ui.dialogs.TemplateDescription import \
|
||||
FILESAVE_AUTOEXTENSION, FILEOPEN_SIMPLE
|
||||
FILESAVE_AUTOEXTENSION
|
||||
from com.sun.star.ui.dialogs.ExtendedFilePickerElementIds import \
|
||||
CHECKBOX_AUTOEXTENSION
|
||||
from com.sun.star.awt import WindowDescriptor
|
||||
from com.sun.star.awt.WindowClass import MODALTOP
|
||||
from com.sun.star.lang import IllegalArgumentException
|
||||
from com.sun.star.awt.VclWindowPeerAttribute import OK
|
||||
|
||||
|
||||
class SystemDialog(object):
|
||||
|
||||
def __init__(self, xMSF, ServiceName, Type):
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
|
||||
import uno
|
||||
import traceback
|
||||
|
||||
from abc import abstractmethod
|
||||
|
|
|
@ -19,7 +19,6 @@ from .FaxWizardDialogResources import FaxWizardDialogResources
|
|||
from .FaxWizardDialogConst import FaxWizardDialogConst, HIDMAIN, HID
|
||||
from ..ui.WizardDialog import WizardDialog, uno, UIConsts, PropertyNames
|
||||
|
||||
from com.sun.star.awt.FontUnderline import SINGLE
|
||||
|
||||
class FaxWizardDialog(WizardDialog):
|
||||
|
||||
|
|
|
@ -15,12 +15,12 @@
|
|||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
|
||||
from .LetterWizardDialogConst import LetterWizardDialogConst, HIDMAIN, HID
|
||||
from .LetterWizardDialogResources import LetterWizardDialogResources
|
||||
from ..common.HelpIds import HelpIds
|
||||
from ..ui.WizardDialog import WizardDialog, uno, UIConsts, PropertyNames
|
||||
|
||||
from com.sun.star.awt.FontUnderline import SINGLE
|
||||
|
||||
class LetterWizardDialog(WizardDialog):
|
||||
|
||||
|
|
|
@ -18,13 +18,12 @@
|
|||
#
|
||||
import uno
|
||||
import traceback
|
||||
from .PeerConfig import PeerConfig
|
||||
from .UIConsts import UIConsts
|
||||
from ..common.PropertyNames import PropertyNames
|
||||
|
||||
from com.sun.star.awt import Rectangle
|
||||
from com.sun.star.awt.PosSize import POS
|
||||
|
||||
|
||||
class UnoDialog(object):
|
||||
|
||||
createDict = False
|
||||
|
|
|
@ -26,7 +26,6 @@ from ..common.FileAccess import FileAccess
|
|||
from com.sun.star.lang import NoSuchMethodException
|
||||
from com.sun.star.frame import TerminationVetoException
|
||||
from com.sun.star.awt.PushButtonType import HELP, STANDARD
|
||||
from com.sun.star.awt.FontWeight import BOLD
|
||||
|
||||
import sys, os
|
||||
|
||||
|
|
|
@ -14,10 +14,10 @@
|
|||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
import traceback
|
||||
|
||||
from .TaskEvent import TaskEvent
|
||||
|
||||
|
||||
class Task:
|
||||
successful = 0
|
||||
failed = 0
|
||||
|
|
Loading…
Reference in a new issue