pyfax: get rid of import * (2)

Change-Id: Ibd988812d96f7f539c1e888be9ee25c0c895f358
Reviewed-on: https://gerrit.libreoffice.org/686
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
This commit is contained in:
Xisco Fauli
2012-09-23 15:58:45 +02:00
committed by Michael Stahl
parent dbdca385fc
commit 90c128e090
11 changed files with 40 additions and 33 deletions

View File

@@ -15,9 +15,8 @@
# 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
import inspect
from .ConfigNode import *
from .ConfigNode import ConfigNode
from .Configuration import Configuration
class ConfigGroup(ConfigNode):

View File

@@ -17,7 +17,7 @@
#
import uno
import traceback
from .NoValidPathException import *
from .NoValidPathException import NoValidPathException
from com.sun.star.frame.FrameSearchFlag import ALL, PARENT
from com.sun.star.util import URL
@@ -67,7 +67,7 @@ class Desktop(object):
xDispatch = xFrame.queryDispatch(oURLArray[0], _stargetframe, ALL)
return xDispatch
except Exception, e:
e.printStackTrace(System.out)
traceback.print_exc()
return None
@@ -75,7 +75,7 @@ class Desktop(object):
def connect(self, connectStr):
localContext = uno.getComponentContext()
resolver = localContext.ServiceManager.createInstanceWithContext(
"com.sun.star.bridge.UnoUrlResolver", localContext)
"com.sun.star.bridge.UnoUrlResolver", localContext)
ctx = resolver.resolve( connectStr )
orb = ctx.ServiceManager
return orb
@@ -111,7 +111,7 @@ class Desktop(object):
_sString, 0, _aLocale, nStartFlags, "", nStartFlags, " ")
return aResult.EndPos
except Exception, e:
e.printStackTrace(System.out)
traceback.print_exc()
return -1
@classmethod
@@ -204,8 +204,8 @@ class OfficePathRetriever:
try:
xPathSubst = xMSF.createInstance(
"com.sun.star.util.PathSubstitution")
except com.sun.star.uno.Exception, e:
e.printStackTrace()
except Exception, e:
traceback.print_exc()
if xPathSubst != None:
return xPathSubst

View File

@@ -15,8 +15,7 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
from ..common.ConfigGroup import *
from ..common.ConfigGroup import *
from ..common.ConfigGroup import ConfigGroup
class CGFax(ConfigGroup):

View File

@@ -16,8 +16,7 @@
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
from .CGFax import CGFax
from ..common.ConfigGroup import *
from ..common.ConfigGroup import *
from ..common.ConfigGroup import ConfigGroup
class CGFaxWizard(ConfigGroup):

View File

@@ -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 unohelper
import traceback

View File

@@ -15,7 +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 .
#
from ..text.TextDocument import *
from ..text.TextDocument import TextDocument, traceback, Helper,\
TextFieldHandler, Configuration
from ..text.TextSectionHandler import TextSectionHandler
from ..common.PropertyNames import PropertyNames

View File

@@ -15,13 +15,10 @@
# 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
from .FaxWizardDialogResources import FaxWizardDialogResources
from .FaxWizardDialogConst import FaxWizardDialogConst, HIDMAIN
from ..ui.WizardDialog import WizardDialog
from ..ui.UIConsts import UIConsts
from ..common.Helper import Helper
from ..common.PropertyNames import PropertyNames
from ..ui.WizardDialog import WizardDialog, uno, Helper, UIConsts, \
PropertyNames
from com.sun.star.awt.FontUnderline import SINGLE
@@ -72,11 +69,11 @@ class FaxWizardDialog(WizardDialog):
PropertyNames.PROPERTY_STEP,
PropertyNames.PROPERTY_TABINDEX,
PropertyNames.PROPERTY_WIDTH),
(8, FaxWizardDialogConst.OPTBUSINESSFAX_HID,
(8, FaxWizardDialogConst.OPTBUSINESSFAX_HID,
self.resources.resoptBusinessFax_value, 97, 28, 1, 1, 184),
self)
self.lstBusinessStyle = self.insertListBox("lstBusinessStyle",
FaxWizardDialogConst.LSTBUSINESSSTYLE_ACTION_PERFORMED,
FaxWizardDialogConst.LSTBUSINESSSTYLE_ACTION_PERFORMED,
FaxWizardDialogConst.LSTBUSINESSSTYLE_ITEM_CHANGED,
("Dropdown", PropertyNames.PROPERTY_HEIGHT,
PropertyNames.PROPERTY_HELPURL,
@@ -97,7 +94,7 @@ class FaxWizardDialog(WizardDialog):
PropertyNames.PROPERTY_STEP,
PropertyNames.PROPERTY_TABINDEX,
PropertyNames.PROPERTY_WIDTH),
(8, FaxWizardDialogConst.OPTPRIVATEFAX_HID,
(8, FaxWizardDialogConst.OPTPRIVATEFAX_HID,
self.resources.resoptPrivateFax_value,97, 81, 1, 2, 184), self)
self.lstPrivateStyle = self.insertListBox("lstPrivateStyle",
FaxWizardDialogConst.LSTPRIVATESTYLE_ACTION_PERFORMED,
@@ -151,10 +148,10 @@ class FaxWizardDialog(WizardDialog):
PropertyNames.PROPERTY_STEP,
PropertyNames.PROPERTY_TABINDEX,
PropertyNames.PROPERTY_WIDTH),
(39, self.resources.reslblIntroduction_value,
(39, self.resources.reslblIntroduction_value,
True, 104, 145, 1, 55, 199))
self.ImageControl3 = self.insertInfoImage(92, 145, 1)
def buildStep2(self):
self.chkUseLogo = self.insertCheckBox("chkUseLogo",
FaxWizardDialogConst.CHKUSELOGO_ITEM_CHANGED,

View File

@@ -15,18 +15,24 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
from .FaxWizardDialog import *
from .CGFaxWizard import *
from .FaxDocument import *
import traceback
from .FaxWizardDialog import FaxWizardDialog, Helper, PropertyNames, uno
from .CGFaxWizard import CGFaxWizard
from .FaxDocument import FaxDocument
from .FaxWizardDialogConst import HID
from ..ui.PathSelection import PathSelection
from ..ui.event.UnoDataAware import UnoDataAware
from ..ui.event.RadioDataAware import RadioDataAware
from ..text.TextFieldHandler import TextFieldHandler
from ..text.TextDocument import TextDocument
from ..text.ViewHandler import ViewHandler
from ..common.Configuration import Configuration
from ..common.SystemDialog import SystemDialog
from ..common.NoValidPathException import NoValidPathException
from ..common.HelpIds import HelpIds
from ..common.FileAccess import FileAccess
from ..common.Desktop import Desktop
from ..document.OfficeDocument import OfficeDocument
from com.sun.star.awt.VclWindowPeerAttribute import YES_NO, DEF_NO
from com.sun.star.uno import RuntimeException

View File

@@ -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 .PeerConfig import PeerConfig
from ..common.PropertyNames import PropertyNames

View File

@@ -15,10 +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 .UIConsts import *
from .UnoDialog import *
from .event.CommonListener import *
from .UnoDialog import UnoDialog
from .UIConsts import UIConsts
from ..common.Desktop import Desktop
from ..common.PropertyNames import PropertyNames
from .event.CommonListener import ItemListenerProcAdapter, \
ActionListenerProcAdapter, TextListenerProcAdapter
'''
This class contains convenience methods for inserting components to a dialog.

View File

@@ -15,11 +15,16 @@
# 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 ABCMeta, abstractmethod
from .UnoDialog2 import *
from .UnoDialog2 import UnoDialog2, Desktop, PropertyNames, UIConsts, \
ItemListenerProcAdapter
from .XPathSelectionListener import XPathSelectionListener
from .event.CommonListener import TerminateListenerProcAdapter
from ..common.Helper import Helper
from ..common.Resource import Resource
from ..common.HelpIds import *
from ..common.HelpIds import HelpIds
from ..document.OfficeDocument import OfficeDocument
from ..text.TextDocument import TextDocument