Kaydet (Commit) 500edb98 authored tarafından Xisco Fauli's avatar Xisco Fauli

pyfax: Remove java code

Change-Id: If910b37990677458dcb2c88007ad713b1f208fbe
üst 4d40b6dc
......@@ -404,7 +404,7 @@
</node>
<node oor:name="m1" oor:op="replace" install:module="writer">
<prop oor:name="URL" oor:type="xs:string">
<value >service:com.sun.star.wizards.fax.CallWizard?start</value>
<value >service:com.sun.star.wizards.fax.CallWizard?insert</value>
</prop>
<prop oor:name="Title">
<value xml:lang="en-US">~Fax...</value>
......
......@@ -195,6 +195,7 @@ my_components += \
component/scripting/source/dlgprov/dlgprov \
component/scripting/source/protocolhandler/protocolhandler \
component/scripting/source/pyprov/mailmerge \
component/wizards/com/sun/star/wizards/fax/fax \
component/scripting/source/stringresource/stringresource \
component/scripting/source/vbaevents/vbaevents \
component/scripting/util/scriptframe \
......@@ -297,7 +298,6 @@ my_components += \
component/scripting/java/ScriptFramework \
component/scripting/java/ScriptProviderForJava \
component/wizards/com/sun/star/wizards/agenda/agenda \
component/wizards/com/sun/star/wizards/fax/fax \
component/wizards/com/sun/star/wizards/form/form \
component/connectivity/source/drivers/hsqldb/hsqldb \
component/connectivity/source/drivers/jdbc/jdbc \
......
......@@ -432,7 +432,6 @@ STD_JAR_FILE( gid_File_Jar_Report, report )
STD_JAR_FILE( gid_File_Jar_Table, table )
STD_JAR_FILE( gid_File_Jar_Letter, letter )
STD_JAR_FILE( gid_File_Jar_Form, form )
STD_JAR_FILE( gid_File_Jar_Fax, fax )
STD_JAR_FILE( gid_File_Jar_Agenda, agenda )
STD_JAR_FILE( gid_File_Jar_Query, query )
STD_JAR_FILE( gid_File_Jar_Web, web )
......
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2011 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
$(eval $(call gb_Jar_Jar,fax))
$(eval $(call gb_Jar_use_jars,fax,\
ridl \
unoil \
jurt \
juh \
java_uno \
commonwizards \
))
$(eval $(call gb_Jar_set_packageroot,fax,com))
$(eval $(call gb_Jar_set_manifest,fax,$(SRCDIR)/wizards/com/sun/star/wizards/fax/MANIFEST.MF))
$(eval $(call gb_Jar_add_sourcefiles,fax,\
wizards/com/sun/star/wizards/fax/CallWizard \
wizards/com/sun/star/wizards/fax/CGFax \
wizards/com/sun/star/wizards/fax/CGFaxWizard \
wizards/com/sun/star/wizards/fax/FaxDocument \
wizards/com/sun/star/wizards/fax/FaxWizardDialog \
wizards/com/sun/star/wizards/fax/FaxWizardDialogConst \
wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl \
wizards/com/sun/star/wizards/fax/FaxWizardDialogResources \
))
$(eval $(call gb_Jar_set_componentfile,fax,wizards/com/sun/star/wizards/fax/fax,OOO))
# vim: set noet sw=4 ts=4:
......@@ -55,7 +55,6 @@ ifeq ($(SOLAR_JAVA),TRUE)
$(eval $(call gb_Module_add_targets,wizards,\
Jar_commonwizards \
Jar_agenda \
Jar_fax \
Jar_form \
Jar_letter \
Jar_query \
......
......@@ -25,9 +25,9 @@
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
$(eval $(call gb_Pyuno_Pyuno,pyfax,$(SRCDIR)/wizards/com/sun/star/wizards/fax))
$(eval $(call gb_Pyuno_Pyuno,fax,$(SRCDIR)/wizards/com/sun/star/wizards/fax))
$(eval $(call gb_Pyuno_add_files,pyfax,\
$(eval $(call gb_Pyuno_add_files,fax,\
__init__.py \
CallWizard.py \
CGFax.py \
......@@ -38,6 +38,6 @@ $(eval $(call gb_Pyuno_add_files,pyfax,\
FaxWizardDialog.py \
FaxWizardDialogResources.py \
))
$(eval $(call gb_Pyuno_set_componentfile_full,pyfax,wizards/com/sun/star/wizards/fax/pyfax,vnd.openoffice.pymodule:wizards.fax,.CallWizard))
$(eval $(call gb_Pyuno_set_componentfile_full,fax,wizards/com/sun/star/wizards/fax/fax,vnd.openoffice.pymodule:wizards.fax,.CallWizard))
# vim:set shiftwidth=4 softtabstop=4 expandtab:
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* 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 .
*/
package com.sun.star.wizards.fax;
import com.sun.star.wizards.common.ConfigGroup;
public class CGFax extends ConfigGroup
{
public int cp_Style;
public boolean cp_PrintCompanyLogo;
public boolean cp_PrintDate;
public boolean cp_PrintSubjectLine;
public boolean cp_PrintSalutation;
public boolean cp_PrintCommunicationType;
public boolean cp_PrintGreeting;
public boolean cp_PrintFooter;
public String cp_CommunicationType;
public String cp_Salutation;
public String cp_Greeting;
public int cp_SenderAddressType;
public String cp_SenderCompanyName;
public String cp_SenderStreet;
public String cp_SenderPostCode;
public String cp_SenderState;
public String cp_SenderCity;
public String cp_SenderFax;
public int cp_ReceiverAddressType;
public String cp_Footer;
public boolean cp_FooterOnlySecondPage;
public boolean cp_FooterPageNumbers;
public int cp_CreationType;
public String cp_TemplateName;
public String cp_TemplatePath;
}
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* 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 .
*/
package com.sun.star.wizards.fax;
import com.sun.star.wizards.common.ConfigGroup;
public class CGFaxWizard extends ConfigGroup
{
public int cp_FaxType;
public CGFax cp_BusinessFax = new CGFax();
public CGFax cp_PrivateFax = new CGFax();
}
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* 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 .
*/
package com.sun.star.wizards.fax;
import com.sun.star.beans.XPropertyAccess;
import com.sun.star.comp.loader.FactoryHelper;
import com.sun.star.lang.XInitialization;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.lang.XServiceInfo;
import com.sun.star.lang.XSingleServiceFactory;
import com.sun.star.lang.XTypeProvider;
import com.sun.star.registry.XRegistryKey;
import com.sun.star.task.XJob;
import com.sun.star.task.XJobExecutor;
import com.sun.star.uno.Type;
import com.sun.star.wizards.common.PropertyNames;
/**
* This class capsulates the class, that implements the minimal component, a factory for
* creating the service (<CODE>__getServiceFactory</CODE>).
*/
public class CallWizard
{
/**
* Gives a factory for creating the service. This method is called by the
* <code>JavaLoader</code>
*
* <p></p>
*
* @param stringImplementationName The implementation name of the component.
* @param xMSF The service manager, who gives access to every known service.
* @param xregistrykey Makes structural information (except regarding tree
* structures) of a single registry key accessible.
*
* @return Returns a <code>XSingleServiceFactory</code> for creating the component.
*
* @see com.sun.star.comp.loader.JavaLoader
*/
public static XSingleServiceFactory __getServiceFactory(String stringImplementationName, XMultiServiceFactory xMSF, XRegistryKey xregistrykey)
{
XSingleServiceFactory xsingleservicefactory = null;
if (stringImplementationName.equals(WizardImplementation.class.getName()))
{
xsingleservicefactory = FactoryHelper.getServiceFactory(WizardImplementation.class, WizardImplementation.__serviceName, xMSF, xregistrykey);
}
return xsingleservicefactory;
}
/**
* This class implements the component. At least the interfaces XServiceInfo,
* XTypeProvider, and XInitialization should be provided by the service.
*/
public static class WizardImplementation implements XInitialization, XTypeProvider, XServiceInfo, XJobExecutor
{
/**
* The constructor of the inner class has a XMultiServiceFactory parameter.
*
* @param xmultiservicefactoryInitialization A special service factory could be
* introduced while initializing.
*/
public WizardImplementation(XMultiServiceFactory xmultiservicefactoryInitialization)
{
xmultiservicefactory = xmultiservicefactoryInitialization;
if (xmultiservicefactory != null)
{
}
}
/**
* Execute Wizard
*
* @param str only valid parameter is 'start' at the moment.
*/
public void trigger(String str)
{
if (str.equalsIgnoreCase(PropertyNames.START))
{
FaxWizardDialogImpl lw = new FaxWizardDialogImpl(xmultiservicefactory);
if (!FaxWizardDialogImpl.running)
{
lw.startWizard(xmultiservicefactory, null);
}
}
} //*******************************************
/**
* The service name, that must be used to get an instance of this service.
*/
private static final String __serviceName = "com.sun.star.wizards.fax.CallWizard";
/**
* The service manager, that gives access to all registered services.
*/
private XMultiServiceFactory xmultiservicefactory;
/**
* This method is a member of the interface for initializing an object directly
* after its creation.
*
* @param object This array of arbitrary objects will be passed to the component
* after its creation.
*
* @throws com.sun.star.uno.Exception Every exception will not be handled, but
* will be passed to the caller.
*/
public void initialize(Object[] object) throws com.sun.star.uno.Exception
{
}
/**
* This method returns an array of all supported service names.
*
* @return Array of supported service names.
*/
public java.lang.String[] getSupportedServiceNames()
{
String[] stringSupportedServiceNames = new String[1];
stringSupportedServiceNames[0] = __serviceName;
return (stringSupportedServiceNames);
}
/**
* This method returns true, if the given service will be supported by the
* component.
*
* @param stringService Service name.
*
* @return True, if the given service name will be supported.
*/
public boolean supportsService(String stringService)
{
boolean booleanSupportsService = false;
if (stringService.equals(__serviceName))
{
booleanSupportsService = true;
}
return (booleanSupportsService);
}
/**
* This method returns an array of bytes, that can be used to unambiguously
* distinguish between two sets of types, e.g. to realise hashing functionality
* when the object is introspected. Two objects that return the same ID also
* have to return the same set of types in getTypes(). If an unique
* implementation Id cannot be provided this method has to return an empty
* sequence. Important: If the object aggregates other objects the ID has to be
* unique for the whole combination of objects.
*
* @return Array of bytes, in order to distinguish between two sets.
*/
public byte[] getImplementationId()
{
byte[] byteReturn =
{
};
try
{
byteReturn = (PropertyNames.EMPTY_STRING + this.hashCode()).getBytes();
}
catch (Exception exception)
{
System.err.println(exception);
}
return (byteReturn);
}
/**
* Return the class name of the component.
*
* @return Class name of the component.
*/
public java.lang.String getImplementationName()
{
return (WizardImplementation.class.getName());
}
/**
* Provides a sequence of all types (usually interface types) provided by the
* object.
*
* @return Sequence of all types (usually interface types) provided by the
* service.
*/
public com.sun.star.uno.Type[] getTypes()
{
Type[] typeReturn =
{
};
try
{
typeReturn = new Type[]
{
new Type(XPropertyAccess.class), new Type(XJob.class), new Type(XJobExecutor.class), new Type(XTypeProvider.class), new Type(XServiceInfo.class), new Type(XInitialization.class)
};
}
catch (Exception exception)
{
System.err.println(exception);
}
return (typeReturn);
}
}
}
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* 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 .
*/
package com.sun.star.wizards.fax;
import com.sun.star.wizards.common.*;
import com.sun.star.wizards.text.*;
import com.sun.star.frame.XDesktop;
import com.sun.star.frame.XTerminateListener;
import com.sun.star.text.*;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.awt.XWindowPeer;
import com.sun.star.uno.Exception;
import com.sun.star.uno.UnoRuntime;
import com.sun.star.beans.XPropertySet;
import com.sun.star.style.NumberingType;
import com.sun.star.style.ParagraphAdjust;
import com.sun.star.style.XStyleFamiliesSupplier;
import com.sun.star.style.XStyle;
public class FaxDocument extends TextDocument
{
XDesktop xDesktop;
boolean keepLogoFrame = true;
boolean keepTypeFrame = true;
public FaxDocument(XMultiServiceFactory xMSF, XTerminateListener listener)
{
super(xMSF, listener, "WIZARD_LIVE_PREVIEW");
}
public XWindowPeer getWindowPeer()
{
return UnoRuntime.queryInterface(XWindowPeer.class, xTextDocument);
}
public void switchElement(String sElement, boolean bState)
{
try
{
TextSectionHandler mySectionHandler = new TextSectionHandler(xMSF, xTextDocument);
Object oSection = mySectionHandler.xTextSectionsSupplier.getTextSections().getByName(sElement);
Helper.setUnoPropertyValue(oSection, "IsVisible", Boolean.valueOf(bState));
}
catch (Exception exception)
{
exception.printStackTrace(System.err);
}
}
public void updateDateFields()
{
TextFieldHandler FH = new TextFieldHandler(xMSFDoc, xTextDocument);
FH.updateDateFields();
}
public void switchFooter(String sPageStyle, boolean bState, boolean bPageNumber, String sText)
{
if (xTextDocument != null)
{
xTextDocument.lockControllers();
try
{
XStyleFamiliesSupplier xStyleFamiliesSupplier = UnoRuntime.queryInterface(XStyleFamiliesSupplier.class, xTextDocument);
com.sun.star.container.XNameAccess xNameAccess = null;
xNameAccess = xStyleFamiliesSupplier.getStyleFamilies();
com.sun.star.container.XNameContainer xPageStyleCollection = null;
xPageStyleCollection = UnoRuntime.queryInterface(com.sun.star.container.XNameContainer.class, xNameAccess.getByName("PageStyles"));
XText xFooterText;
XStyle xPageStyle = UnoRuntime.queryInterface(XStyle.class, xPageStyleCollection.getByName(sPageStyle));
if (bState)
{
Helper.setUnoPropertyValue(xPageStyle, "FooterIsOn", Boolean.TRUE);
xFooterText = UnoRuntime.queryInterface(XText.class, Helper.getUnoPropertyValue(xPageStyle, "FooterText"));
xFooterText.setString(sText);
if (bPageNumber)
{
//Adding the Page Number
XTextCursor myCursor = xFooterText.createTextCursor();
myCursor.gotoEnd(false);
xFooterText.insertControlCharacter(myCursor, ControlCharacter.PARAGRAPH_BREAK, false);
XPropertySet xCursorPSet = UnoRuntime.queryInterface(XPropertySet.class, myCursor);
xCursorPSet.setPropertyValue("ParaAdjust", ParagraphAdjust.CENTER);
XTextField xPageNumberField = UnoRuntime.queryInterface(XTextField.class, xMSFDoc.createInstance("com.sun.star.text.TextField.PageNumber"));
XPropertySet xPSet = UnoRuntime.queryInterface(XPropertySet.class, xPageNumberField);
xPSet.setPropertyValue("SubType", PageNumberType.CURRENT);
xPSet.setPropertyValue("NumberingType", new Short(NumberingType.ARABIC));
xFooterText.insertTextContent(xFooterText.getEnd(), xPageNumberField, false);
}
}
else
{
Helper.setUnoPropertyValue(xPageStyle, "FooterIsOn", Boolean.FALSE);
}
xTextDocument.unlockControllers();
}
catch (Exception exception)
{
exception.printStackTrace(System.err);
}
}
}
public boolean hasElement(String sElement)
{
if (xTextDocument != null)
{
TextSectionHandler mySectionHandler = new TextSectionHandler(xMSF, xTextDocument);
return mySectionHandler.hasTextSectionByName(sElement);
}
else
{
return false;
}
}
public void switchUserField(String sFieldName, String sNewContent, boolean bState)
{
TextFieldHandler myFieldHandler = new TextFieldHandler(xMSF, xTextDocument);
if (bState)
{
myFieldHandler.changeUserFieldContent(sFieldName, sNewContent);
}
else
{
myFieldHandler.changeUserFieldContent(sFieldName, PropertyNames.EMPTY_STRING);
}
}
public void fillSenderWithUserData()
{
try
{
TextFieldHandler myFieldHandler = new TextFieldHandler(xMSFDoc, xTextDocument);
Object oUserDataAccess = Configuration.getConfigurationRoot(xMSF, "org.openoffice.UserProfile/Data", false);
myFieldHandler.changeUserFieldContent("Company", (String) Helper.getUnoObjectbyName(oUserDataAccess, "o"));
myFieldHandler.changeUserFieldContent("Street", (String) Helper.getUnoObjectbyName(oUserDataAccess, "street"));
myFieldHandler.changeUserFieldContent("PostCode", (String) Helper.getUnoObjectbyName(oUserDataAccess, "postalcode"));
myFieldHandler.changeUserFieldContent(PropertyNames.PROPERTY_STATE, (String) Helper.getUnoObjectbyName(oUserDataAccess, "st"));
myFieldHandler.changeUserFieldContent("City", (String) Helper.getUnoObjectbyName(oUserDataAccess, "l"));
myFieldHandler.changeUserFieldContent("Fax", (String) Helper.getUnoObjectbyName(oUserDataAccess, "facsimiletelephonenumber"));
}
catch (Exception exception)
{
exception.printStackTrace(System.err);
}
}
public void killEmptyUserFields()
{
TextFieldHandler myFieldHandler = new TextFieldHandler(xMSF, xTextDocument);
myFieldHandler.removeUserFieldByContent(PropertyNames.EMPTY_STRING);
}
public void killEmptyFrames()
{
try
{
if (!keepLogoFrame)
{
XTextFrame xTF = TextFrameHandler.getFrameByName("Company Logo", xTextDocument);
if (xTF != null)
{
xTF.dispose();
}
}
if (!keepTypeFrame)
{
XTextFrame xTF = TextFrameHandler.getFrameByName("Communication Type", xTextDocument);
if (xTF != null)
{
xTF.dispose();
}
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* 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 .
*/
package com.sun.star.wizards.fax;
import com.sun.star.wizards.common.*;
public interface FaxWizardDialogConst
{
public static final String OPTBUSINESSFAX_ITEM_CHANGED = "optBusinessFaxItemChanged";
public static final String LSTBUSINESSSTYLE_ACTION_PERFORMED = null; // "lstBusinessStyleActionPerformed";
public static final String LSTBUSINESSSTYLE_ITEM_CHANGED = "lstBusinessStyleItemChanged";
public static final String OPTPRIVATEFAX_ITEM_CHANGED = "optPrivateFaxItemChanged";
public static final String LSTPRIVATESTYLE_ACTION_PERFORMED = null; // "lstPrivateStyleActionPerformed";
public static final String LSTPRIVATESTYLE_ITEM_CHANGED = "lstPrivateStyleItemChanged";
public static final String CHKUSELOGO_ITEM_CHANGED = "chkUseLogoItemChanged";
public static final String CHKUSEDATE_ITEM_CHANGED = "chkUseDateItemChanged";
public static final String CHKUSECOMMUNICATIONTYPE_ITEM_CHANGED = "chkUseCommunicationItemChanged";
public static final String LSTCOMMUNICATIONTYPE_ACTION_PERFORMED = null; // "lstCommunicationActionPerformed";
public static final String LSTCOMMUNICATIONTYPE_ITEM_CHANGED = "lstCommunicationItemChanged";
public static final String LSTCOMMUNICATIONTYPE_TEXT_CHANGED = "lstCommunicationTextChanged";
public static final String CHKUSESUBJECT_ITEM_CHANGED = "chkUseSubjectItemChanged";
public static final String CHKUSESALUTATION_ITEM_CHANGED = "chkUseSalutationItemChanged";
public static final String LSTSALUTATION_ACTION_PERFORMED = null; // "lstSalutationActionPerformed";
public static final String LSTSALUTATION_ITEM_CHANGED = "lstSalutationItemChanged";
public static final String LSTSALUTATION_TEXT_CHANGED = "lstSalutationTextChanged";
public static final String CHKUSEGREETING_ITEM_CHANGED = "chkUseGreetingItemChanged";
public static final String LSTGREETING_ACTION_PERFORMED = null; // "lstGreetingActionPerformed";
public static final String LSTGREETING_ITEM_CHANGED = "lstGreetingItemChanged";
public static final String LSTGREETING_TEXT_CHANGED = "lstGreetingTextChanged";
public static final String CHKUSEFOOTER_ITEM_CHANGED = "chkUseFooterItemChanged";
public static final String OPTSENDERPLACEHOLDER_ITEM_CHANGED = "optSenderPlaceholderItemChanged";
public static final String OPTSENDERDEFINE_ITEM_CHANGED = "optSenderDefineItemChanged";
public static final String TXTSENDERNAME_TEXT_CHANGED = "txtSenderNameTextChanged";
public static final String TXTSENDERSTREET_TEXT_CHANGED = "txtSenderStreetTextChanged";
public static final String TXTSENDERPOSTCODE_TEXT_CHANGED = "txtSenderPostCodeTextChanged";
public static final String TXTSENDERSTATE_TEXT_CHANGED = "txtSenderStateTextChanged";
public static final String TXTSENDERCITY_TEXT_CHANGED = "txtSenderCityTextChanged";
public static final String TXTSENDERFAX_TEXT_CHANGED = "txtSenderFaxTextChanged";
public static final String OPTRECEIVERPLACEHOLDER_ITEM_CHANGED = "optReceiverPlaceholderItemChanged";
public static final String OPTRECEIVERDATABASE_ITEM_CHANGED = "optReceiverDatabaseItemChanged";
public static final String TXTFOOTER_TEXT_CHANGED = "txtFooterTextChanged";
public static final String CHKFOOTERNEXTPAGES_ITEM_CHANGED = "chkFooterNextPagesItemChanged";
public static final String CHKFOOTERPAGENUMBERS_ITEM_CHANGED = "chkFooterPageNumbersItemChanged";
public static final String TXTTEMPLATENAME_TEXT_CHANGED = "txtTemplateNameTextChanged";
public static final String FILETEMPLATEPATH_TEXT_CHANGED = null; // "fileTemplatePathTextChanged";
public static final String OPTCREATEFAX_ITEM_CHANGED = "optCreateFaxItemChanged";
public static final String OPTMAKECHANGES_ITEM_CHANGED = "optMakeChangesItemChanged";
public static final String imageURLImageControl2 = null; //"images/ImageControl2";
public static final String imageURLImageControl3 = null; //"images/ImageControl3";
/* ====================================
* Help IDs
* ====================================
*/
public final static int HID = 41119; //TODO enter first hid here
public static final int HIDMAIN = 41180;
public final String OPTBUSINESSFAX_HID = HelpIds.getHelpIdString(HID + 1);
public final String LSTBUSINESSSTYLE_HID = HelpIds.getHelpIdString(HID + 2);
public final String OPTPRIVATEFAX_HID = HelpIds.getHelpIdString(HID + 3);
public final String LSTPRIVATESTYLE_HID = HelpIds.getHelpIdString(HID + 4);
public final String IMAGECONTROL3_HID = HelpIds.getHelpIdString(HID + 5);
public final String CHKUSELOGO_HID = HelpIds.getHelpIdString(HID + 6);
public final String CHKUSEDATE_HID = HelpIds.getHelpIdString(HID + 7);
public final String CHKUSECOMMUNICATIONTYPE_HID = HelpIds.getHelpIdString(HID + 8);
public final String LSTCOMMUNICATIONTYPE_HID = HelpIds.getHelpIdString(HID + 9);
public final String CHKUSESUBJECT_HID = HelpIds.getHelpIdString(HID + 10);
public final String CHKUSESALUTATION_HID = HelpIds.getHelpIdString(HID + 11);
public final String LSTSALUTATION_HID = HelpIds.getHelpIdString(HID + 12);
public final String CHKUSEGREETING_HID = HelpIds.getHelpIdString(HID + 13);
public final String LSTGREETING_HID = HelpIds.getHelpIdString(HID + 14);
public final String CHKUSEFOOTER_HID = HelpIds.getHelpIdString(HID + 15);
public final String OPTSENDERPLACEHOLDER_HID = HelpIds.getHelpIdString(HID + 16);
public final String OPTSENDERDEFINE_HID = HelpIds.getHelpIdString(HID + 17);
public final String TXTSENDERNAME_HID = HelpIds.getHelpIdString(HID + 18);
public final String TXTSENDERSTREET_HID = HelpIds.getHelpIdString(HID + 19);
public final String TXTSENDERPOSTCODE_HID = HelpIds.getHelpIdString(HID + 20);
public final String TXTSENDERSTATE_HID = HelpIds.getHelpIdString(HID + 21);
public final String TXTSENDERCITY_HID = HelpIds.getHelpIdString(HID + 22);
public final String TXTSENDERFAX_HID = HelpIds.getHelpIdString(HID + 23);
public final String OPTRECEIVERPLACEHOLDER_HID = HelpIds.getHelpIdString(HID + 24);
public final String OPTRECEIVERDATABASE_HID = HelpIds.getHelpIdString(HID + 25);
public final String TXTFOOTER_HID = HelpIds.getHelpIdString(HID + 26);
public final String CHKFOOTERNEXTPAGES_HID = HelpIds.getHelpIdString(HID + 27);
public final String CHKFOOTERPAGENUMBERS_HID = HelpIds.getHelpIdString(HID + 28);
public final String TXTTEMPLATENAME_HID = HelpIds.getHelpIdString(HID + 29);
public final String FILETEMPLATEPATH_HID = HelpIds.getHelpIdString(HID + 30);
public final String OPTCREATEFAX_HID = HelpIds.getHelpIdString(HID + 31);
public final String OPTMAKECHANGES_HID = HelpIds.getHelpIdString(HID + 32);
public final String IMAGECONTROL2_HID = HelpIds.getHelpIdString(HID + 33);
}
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* 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 .
*/
package com.sun.star.wizards.fax;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.wizards.common.Resource;
public class FaxWizardDialogResources extends Resource
{
final static String UNIT_NAME = "dbwizres";
final static String MODULE_NAME = "dbw";
final static int RID_FAXWIZARDDIALOG_START = 3200;
final static int RID_FAXWIZARDCOMMUNICATION_START = 3270;
final static int RID_FAXWIZARDGREETING_START = 3280;
final static int RID_FAXWIZARDSALUTATION_START = 3290;
final static int RID_FAXWIZARDROADMAP_START = 3300;
final static int RID_RID_COMMON_START = 500;
protected String[] RoadmapLabels = new String[7];
protected String[] SalutationLabels = new String[4];
protected String[] GreetingLabels = new String[4];
protected String[] CommunicationLabels = new String[3];
String resOverwriteWarning;
String resTemplateDescription;
String resFaxWizardDialog_title;
String resLabel9_value;
String resoptBusinessFax_value;
String resoptPrivateFax_value;
String reschkUseLogo_value;
String reschkUseSubject_value;
String reschkUseSalutation_value;
String reschkUseGreeting_value;
String reschkUseFooter_value;
String resoptSenderPlaceholder_value;
String resoptSenderDefine_value;
String restxtTemplateName_value;
String resoptCreateFax_value;
String resoptMakeChanges_value;
String reslblBusinessStyle_value;
String reslblPrivateStyle_value;
String reslblIntroduction_value;
String reslblSenderAddress_value;
String reslblSenderName_value;
String reslblSenderStreet_value;
String reslblPostCodeCity_value;
String reslblFooter_value;
String reslblFinalExplanation1_value;
String reslblFinalExplanation2_value;
String reslblTemplateName_value;
String reslblTemplatePath_value;
String reslblProceed_value;
String reslblTitle1_value;
String reslblTitle3_value;
String reslblTitle4_value;
String reslblTitle5_value;
String reslblTitle6_value;
String reschkFooterNextPages_value;
String reschkFooterPageNumbers_value;
String reschkUseDate_value;
String reschkUseCommunicationType_value;
String resLabel1_value;
String resoptReceiverPlaceholder_value;
String resoptReceiverDatabase_value;
String resLabel2_value;
String resToPlaceHolder = "#to#";
String resFromPlaceHolder = "#from#";
String resFaxconstPlaceHolder = "#faxconst#";
String resTelconstPlaceHolder = "#telconst#";
String resEmailconstPlaceHolder = "#emailconst#";
String resConsist1PlaceHolder = "#consist1#";
String resConsist2PlaceHolder = "#consist2#";
String resConsist3PlaceHolder = "#consist3#";
String resToPlaceHolder_value;
String resFromPlaceHolder_value;
String resFaxconstPlaceHolder_value;
String resTelconstPlaceHolder_value;
String resEmailconstPlaceHolder_value;
String resConsist1PlaceHolder_value;
String resConsist2PlaceHolder_value;
String resConsist3PlaceHolder_value;
String resPrivateFaxBottle;
String resPrivateFaxLines;
String resPrivateFaxMarine;
String resBusinessFaxClassic;
String resBusinessFaxClassicPrivate;
String resBusinessFaxModern;
String resBusinessFaxModernPrivate;
public FaxWizardDialogResources(XMultiServiceFactory xmsf)
{
super(xmsf, UNIT_NAME, MODULE_NAME);
/**
* Delete the String, uncomment the getResText method
*
*/
resFaxWizardDialog_title = getResText(RID_FAXWIZARDDIALOG_START + 1);
resLabel9_value = getResText(RID_FAXWIZARDDIALOG_START + 2);
resoptBusinessFax_value = getResText(RID_FAXWIZARDDIALOG_START + 3);
resoptPrivateFax_value = getResText(RID_FAXWIZARDDIALOG_START + 4);
reschkUseLogo_value = getResText(RID_FAXWIZARDDIALOG_START + 5);
reschkUseSubject_value = getResText(RID_FAXWIZARDDIALOG_START + 6);
reschkUseSalutation_value = getResText(RID_FAXWIZARDDIALOG_START + 7);
reschkUseGreeting_value = getResText(RID_FAXWIZARDDIALOG_START + 8);
reschkUseFooter_value = getResText(RID_FAXWIZARDDIALOG_START + 9);
resoptSenderPlaceholder_value = getResText(RID_FAXWIZARDDIALOG_START + 10);
resoptSenderDefine_value = getResText(RID_FAXWIZARDDIALOG_START + 11);
restxtTemplateName_value = getResText(RID_FAXWIZARDDIALOG_START + 12);
resoptCreateFax_value = getResText(RID_FAXWIZARDDIALOG_START + 13);
resoptMakeChanges_value = getResText(RID_FAXWIZARDDIALOG_START + 14);
reslblBusinessStyle_value = getResText(RID_FAXWIZARDDIALOG_START + 15);
reslblPrivateStyle_value = getResText(RID_FAXWIZARDDIALOG_START + 16);
reslblIntroduction_value = getResText(RID_FAXWIZARDDIALOG_START + 17);
reslblSenderAddress_value = getResText(RID_FAXWIZARDDIALOG_START + 18);
reslblSenderName_value = getResText(RID_FAXWIZARDDIALOG_START + 19);
reslblSenderStreet_value = getResText(RID_FAXWIZARDDIALOG_START + 20);
reslblPostCodeCity_value = getResText(RID_FAXWIZARDDIALOG_START + 21);
reslblFooter_value = getResText(RID_FAXWIZARDDIALOG_START + 22);
reslblFinalExplanation1_value = getResText(RID_FAXWIZARDDIALOG_START + 23);
reslblFinalExplanation2_value = getResText(RID_FAXWIZARDDIALOG_START + 24);
reslblTemplateName_value = getResText(RID_FAXWIZARDDIALOG_START + 25);
reslblTemplatePath_value = getResText(RID_FAXWIZARDDIALOG_START + 26);
reslblProceed_value = getResText(RID_FAXWIZARDDIALOG_START + 27);
reslblTitle1_value = getResText(RID_FAXWIZARDDIALOG_START + 28);
reslblTitle3_value = getResText(RID_FAXWIZARDDIALOG_START + 29);
reslblTitle4_value = getResText(RID_FAXWIZARDDIALOG_START + 30);
reslblTitle5_value = getResText(RID_FAXWIZARDDIALOG_START + 31);
reslblTitle6_value = getResText(RID_FAXWIZARDDIALOG_START + 32);
reschkFooterNextPages_value = getResText(RID_FAXWIZARDDIALOG_START + 33);
reschkFooterPageNumbers_value = getResText(RID_FAXWIZARDDIALOG_START + 34);
reschkUseDate_value = getResText(RID_FAXWIZARDDIALOG_START + 35);
reschkUseCommunicationType_value = getResText(RID_FAXWIZARDDIALOG_START + 36);
resLabel1_value = getResText(RID_FAXWIZARDDIALOG_START + 37);
resoptReceiverPlaceholder_value = getResText(RID_FAXWIZARDDIALOG_START + 38);
resoptReceiverDatabase_value = getResText(RID_FAXWIZARDDIALOG_START + 39);
resLabel2_value = getResText(RID_FAXWIZARDDIALOG_START + 40);
resToPlaceHolder_value = getResText(RID_FAXWIZARDDIALOG_START + 41);
resFromPlaceHolder_value = getResText(RID_FAXWIZARDDIALOG_START + 42);
resFaxconstPlaceHolder_value = getResText(RID_FAXWIZARDDIALOG_START + 43);
resTelconstPlaceHolder_value = getResText(RID_FAXWIZARDDIALOG_START + 44);
resEmailconstPlaceHolder_value = getResText(RID_FAXWIZARDDIALOG_START + 45);
resConsist1PlaceHolder_value = getResText(RID_FAXWIZARDDIALOG_START + 46);
resConsist2PlaceHolder_value = getResText(RID_FAXWIZARDDIALOG_START + 47);
resConsist3PlaceHolder_value = getResText(RID_FAXWIZARDDIALOG_START + 48);
resPrivateFaxBottle = getResText(RID_FAXWIZARDDIALOG_START + 49);
resPrivateFaxLines = getResText(RID_FAXWIZARDDIALOG_START + 50);
resPrivateFaxMarine = getResText(RID_FAXWIZARDDIALOG_START + 51);
resBusinessFaxClassic = getResText(RID_FAXWIZARDDIALOG_START + 52);
resBusinessFaxClassicPrivate = getResText(RID_FAXWIZARDDIALOG_START + 53);
resBusinessFaxModern = getResText(RID_FAXWIZARDDIALOG_START + 54);
resBusinessFaxModernPrivate = getResText(RID_FAXWIZARDDIALOG_START + 55);
loadRoadmapResources();
loadSalutationResources();
loadGreetingResources();
loadCommunicationResources();
loadCommonResources();
}
private void loadCommonResources()
{
resOverwriteWarning = getResText(RID_RID_COMMON_START + 19);
resTemplateDescription = getResText(RID_RID_COMMON_START + 20);
}
private void loadRoadmapResources()
{
for (int i = 1; i < 6; i++)
{
RoadmapLabels[i] = getResText(RID_FAXWIZARDROADMAP_START + i);
}
}
private void loadSalutationResources()
{
for (int i = 1; i < 5; i++)
{
SalutationLabels[i - 1] = getResText(RID_FAXWIZARDSALUTATION_START + i);
}
}
private void loadGreetingResources()
{
for (int i = 1; i < 5; i++)
{
GreetingLabels[i - 1] = getResText(RID_FAXWIZARDGREETING_START + i);
}
}
private void loadCommunicationResources()
{
for (int i = 1; i < 4; i++)
{
CommunicationLabels[i - 1] = getResText(RID_FAXWIZARDCOMMUNICATION_START + i);
}
}
}
RegistrationClassName: com.sun.star.wizards.fax.CallWizard
UNO-Type-Path:
......@@ -15,12 +15,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 .
-->
<component loader="com.sun.star.loader.Java2"
-->
<component loader="com.sun.star.loader.Python"
xmlns="http://openoffice.org/2010/uno-components">
<implementation
name="com.sun.star.wizards.fax.CallWizard$WizardImplementation">
<service name="com.sun.star.wizards.fax.CallWizard"/>
<implementation name="com.sun.star.wizards.fax.CallWizard">
<service name="com.sun.star.task.Job"/>
</implementation>
</component>
<?xml version="1.0" encoding="UTF-8"?>
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* 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 .
-->
<component loader="com.sun.star.loader.Python"
xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.wizards.fax.CallWizard">
<service name="com.sun.star.task.Job"/>
</implementation>
</component>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment