diff options
Diffstat (limited to 'wizards/com/sun/star/wizards/fax')
9 files changed, 67 insertions, 38 deletions
diff --git a/wizards/com/sun/star/wizards/fax/CGFax.py b/wizards/com/sun/star/wizards/fax/CGFax.py new file mode 100644 index 000000000000..cb0ce1716305 --- /dev/null +++ b/wizards/com/sun/star/wizards/fax/CGFax.py @@ -0,0 +1,31 @@ +from wizards.common.ConfigGroup import * + +class CGFax(ConfigGroup): + + def __init__(self): + + self.cp_Style = int() + self.cp_PrintCompanyLogo = bool() + self.cp_PrintDate = bool() + self.cp_PrintSubjectLine = bool() + self.cp_PrintSalutation = bool() + self.cp_PrintCommunicationType = bool() + self.cp_PrintGreeting = bool() + self.cp_PrintFooter = bool() + self.cp_CommunicationType = str() + self.cp_Salutation = str() + self.cp_Greeting = str() + self.cp_SenderAddressType = int() + self.cp_SenderCompanyName = str() + self.cp_SenderStreet = str() + self.cp_SenderPostCode = str() + self.cp_SenderState = str() + self.cp_SenderCity = str() + self.cp_SenderFax = str() + self.cp_ReceiverAddressType = int() + self.cp_Footer = str() + self.cp_FooterOnlySecondPage = bool() + self.cp_FooterPageNumbers = bool() + self.cp_CreationType = int() + self.cp_TemplateName = str() + self.cp_TemplatePath = str() diff --git a/wizards/com/sun/star/wizards/fax/CGFaxWizard.py b/wizards/com/sun/star/wizards/fax/CGFaxWizard.py new file mode 100644 index 000000000000..d1b14f06814c --- /dev/null +++ b/wizards/com/sun/star/wizards/fax/CGFaxWizard.py @@ -0,0 +1,10 @@ +from wizards.common.ConfigGroup import * +from wizards.fax.CGFax import CGFax + +class CGFaxWizard(ConfigGroup): + + def __init__(self): + self.cp_FaxType = int() + self.cp_BusinessFax = CGFax() + self.cp_PrivateFax = CGFax() + diff --git a/wizards/com/sun/star/wizards/fax/CallWizard.py b/wizards/com/sun/star/wizards/fax/CallWizard.py index 33385a251a31..5aae1b75140f 100644 --- a/wizards/com/sun/star/wizards/fax/CallWizard.py +++ b/wizards/com/sun/star/wizards/fax/CallWizard.py @@ -4,38 +4,24 @@ import uno import unohelper from com.sun.star.task import XJobExecutor +from wizards.fax.FaxWizardDialogImpl import FaxWizardDialogImpl # implement a UNO component by deriving from the standard unohelper.Base class # and from the interface(s) you want to implement. -class HelloWorldJob(unohelper.Base, XJobExecutor): +class CallWizard(unohelper.Base, XJobExecutor): def __init__(self, ctx): # store the component context for later use self.ctx = ctx def trigger(self, args): - # note: args[0] == "HelloWorld", see below config settings - - # retrieve the desktop object - desktop = self.ctx.ServiceManager.createInstanceWithContext( - "com.sun.star.frame.Desktop", self.ctx) - - # get current document model - model = desktop.getCurrentComponent() - - # access the document's text property - text = model.Text - - # create a cursor - cursor = text.createTextCursor() - - # insert the text into the document - text.insertString(cursor, "Hello World", 0) + fw = FaxWizardDialogImpl(self.ctx.ServiceManager) + fx.startWizard() # pythonloader looks for a static g_ImplementationHelper variable g_ImplementationHelper = unohelper.ImplementationHelper() g_ImplementationHelper.addImplementation( \ - HelloWorldJob, # UNO object class + CallWizard, # UNO object class "com.sun.star.wizards.fax.CallWizard", # implemenation name ("com.sun.star.task.Job",),) # list of implemented services # (the only service) diff --git a/wizards/com/sun/star/wizards/fax/FaxDocument.py b/wizards/com/sun/star/wizards/fax/FaxDocument.py index b5fee838796b..3f1575729184 100644 --- a/wizards/com/sun/star/wizards/fax/FaxDocument.py +++ b/wizards/com/sun/star/wizards/fax/FaxDocument.py @@ -1,6 +1,6 @@ -from text.TextDocument import * -from text.TextSectionHandler import TextSectionHandler -from common.PropertyNames import PropertyNames +from wizards.text.TextDocument import * +from wizards.text.TextSectionHandler import TextSectionHandler +from wizards.common.PropertyNames import PropertyNames from com.sun.star.text.ControlCharacter import PARAGRAPH_BREAK from com.sun.star.style.ParagraphAdjust import CENTER diff --git a/wizards/com/sun/star/wizards/fax/FaxWizardDialog.py b/wizards/com/sun/star/wizards/fax/FaxWizardDialog.py index 644f08a228db..c465d88952e8 100644 --- a/wizards/com/sun/star/wizards/fax/FaxWizardDialog.py +++ b/wizards/com/sun/star/wizards/fax/FaxWizardDialog.py @@ -1,6 +1,7 @@ -from ui.WizardDialog import * -from FaxWizardDialogResources import FaxWizardDialogResources -from FaxWizardDialogConst import * +from wizards.ui.WizardDialog import * +from wizards.fax.FaxWizardDialogResources import FaxWizardDialogResources +from wizards.fax.FaxWizardDialogConst import * + from com.sun.star.awt.FontUnderline import SINGLE class FaxWizardDialog(WizardDialog): diff --git a/wizards/com/sun/star/wizards/fax/FaxWizardDialogConst.py b/wizards/com/sun/star/wizards/fax/FaxWizardDialogConst.py index e5a72e195033..a8f8946fa834 100644 --- a/wizards/com/sun/star/wizards/fax/FaxWizardDialogConst.py +++ b/wizards/com/sun/star/wizards/fax/FaxWizardDialogConst.py @@ -1,4 +1,4 @@ -from common.HelpIds import HelpIds +from wizards.common.HelpIds import HelpIds OPTBUSINESSFAX_ITEM_CHANGED = "optBusinessFaxItemChanged" diff --git a/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py b/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py index 92749ee15396..c6b1a089389f 100644 --- a/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py +++ b/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py @@ -1,13 +1,13 @@ -from FaxWizardDialog import * -from CGFaxWizard import * -from FaxDocument import * -from ui.PathSelection import PathSelection -from common.FileAccess import FileAccess -from ui.event.UnoDataAware import UnoDataAware -from ui.event.RadioDataAware import RadioDataAware -from text.TextFieldHandler import TextFieldHandler -from common.SystemDialog import SystemDialog -from common.NoValidPathException import NoValidPathException +from wizards.fax.FaxWizardDialog import * +from wizards.fax.CGFaxWizard import * +from wizards.fax.FaxDocument import * +from wizards.ui.PathSelection import PathSelection +from wizards.common.FileAccess import FileAccess +from wizards.ui.event.UnoDataAware import UnoDataAware +from wizards.ui.event.RadioDataAware import RadioDataAware +from wizards.text.TextFieldHandler import TextFieldHandler +from wizards.common.SystemDialog import SystemDialog +from wizards.common.NoValidPathException import NoValidPathException from com.sun.star.awt.VclWindowPeerAttribute import YES_NO, DEF_NO from com.sun.star.uno import RuntimeException @@ -56,9 +56,10 @@ class FaxWizardDialogImpl(FaxWizardDialog): # TODO Auto-generated catch blocksetMaxStep traceback.print_exc() - def startWizard(self, xMSF, CurPropertyValue): + def startWizard(self, xMSF): self.running = True try: + print "entra" #Number of steps on WizardDialog self.nMaxStep = 5 diff --git a/wizards/com/sun/star/wizards/fax/FaxWizardDialogResources.py b/wizards/com/sun/star/wizards/fax/FaxWizardDialogResources.py index bbf6921d381f..9badb1868761 100644 --- a/wizards/com/sun/star/wizards/fax/FaxWizardDialogResources.py +++ b/wizards/com/sun/star/wizards/fax/FaxWizardDialogResources.py @@ -1,4 +1,4 @@ -from common.Resource import Resource +from wizards.common.Resource import Resource class FaxWizardDialogResources(Resource): MODULE_NAME = "dbw" diff --git a/wizards/com/sun/star/wizards/fax/__init__.py b/wizards/com/sun/star/wizards/fax/__init__.py new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/wizards/com/sun/star/wizards/fax/__init__.py |