Kaydet (Commit) 65e10406 authored tarafından Xisco Fauli's avatar Xisco Fauli Kaydeden (comit) xisco

pyletter: remove java letter wizard

Change-Id: I63a46f027c8e022dee35f57db19b2538be09b1fc
üst 9ad72dd3
...@@ -430,7 +430,6 @@ End ...@@ -430,7 +430,6 @@ End
#ifdef SOLAR_JAVA #ifdef SOLAR_JAVA
STD_JAR_FILE( gid_File_Jar_Report, report ) STD_JAR_FILE( gid_File_Jar_Report, report )
STD_JAR_FILE( gid_File_Jar_Table, table ) 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_Form, form )
STD_JAR_FILE( gid_File_Jar_Agenda, agenda ) STD_JAR_FILE( gid_File_Jar_Agenda, agenda )
STD_JAR_FILE( gid_File_Jar_Query, query ) STD_JAR_FILE( gid_File_Jar_Query, query )
......
# -*- 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,letter))
$(eval $(call gb_Jar_use_jars,letter,\
ridl \
unoil \
jurt \
juh \
java_uno \
commonwizards \
))
$(eval $(call gb_Jar_set_manifest,letter,$(SRCDIR)/wizards/com/sun/star/wizards/letter/MANIFEST.MF))
$(eval $(call gb_Jar_set_packageroot,letter,com))
$(eval $(call gb_Jar_add_sourcefiles,letter,\
wizards/com/sun/star/wizards/letter/CallWizard \
wizards/com/sun/star/wizards/letter/CGLetter \
wizards/com/sun/star/wizards/letter/CGLetterWizard \
wizards/com/sun/star/wizards/letter/CGPaperElementLocation \
wizards/com/sun/star/wizards/letter/LetterDocument \
wizards/com/sun/star/wizards/letter/LetterWizardDialog \
wizards/com/sun/star/wizards/letter/LetterWizardDialogConst \
wizards/com/sun/star/wizards/letter/LetterWizardDialogEvents \
wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl \
wizards/com/sun/star/wizards/letter/LetterWizardDialogResources \
wizards/com/sun/star/wizards/letter/LocaleCodes \
))
$(eval $(call gb_Jar_set_componentfile,letter,wizards/com/sun/star/wizards/letter/letter,OOO))
# vim: set noet sw=4 ts=4:
...@@ -57,7 +57,6 @@ $(eval $(call gb_Module_add_targets,wizards,\ ...@@ -57,7 +57,6 @@ $(eval $(call gb_Module_add_targets,wizards,\
Jar_commonwizards \ Jar_commonwizards \
Jar_agenda \ Jar_agenda \
Jar_form \ Jar_form \
Jar_letter \
Jar_query \ Jar_query \
Jar_report \ Jar_report \
Jar_reportbuilder \ Jar_reportbuilder \
......
/*
* 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.letter;
import com.sun.star.wizards.common.ConfigGroup;
public class CGLetter extends ConfigGroup
{
public int cp_Style;
public boolean cp_BusinessPaper;
public CGPaperElementLocation cp_CompanyLogo = new CGPaperElementLocation();
public CGPaperElementLocation cp_CompanyAddress = new CGPaperElementLocation();
public boolean cp_PaperCompanyAddressReceiverField;
public boolean cp_PaperFooter;
public double cp_PaperFooterHeight;
public boolean cp_PrintCompanyLogo;
public boolean cp_PrintCompanyAddressReceiverField;
public boolean cp_PrintLetterSigns;
public boolean cp_PrintSubjectLine;
public boolean cp_PrintSalutation;
public boolean cp_PrintBendMarks;
public boolean cp_PrintGreeting;
public boolean cp_PrintFooter;
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 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.letter;
import com.sun.star.wizards.common.ConfigGroup;
public class CGLetterWizard extends ConfigGroup
{
public int cp_LetterType;
public CGLetter cp_BusinessLetter = new CGLetter();
public CGLetter cp_PrivateOfficialLetter = new CGLetter();
public CGLetter cp_PrivateLetter = new CGLetter();
}
/*
* 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.letter;
import com.sun.star.wizards.common.ConfigGroup;
public class CGPaperElementLocation extends ConfigGroup
{
public boolean cp_Display;
public double cp_Width;
public double cp_Height;
public double cp_X;
public double cp_Y;
}
/*
* 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.letter;
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))
{
LetterWizardDialogImpl lw = new LetterWizardDialogImpl(xmultiservicefactory);
if (!LetterWizardDialogImpl.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.letter.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.letter;
public interface LetterWizardDialogConst
{
public static final String OPTBUSINESSLETTER_ITEM_CHANGED = "optBusinessLetterItemChanged";
public static final String OPTPRIVOFFICIALLETTER_ITEM_CHANGED = "optPrivOfficialLetterItemChanged";
public static final String OPTPRIVATELETTER_ITEM_CHANGED = "optPrivateLetterItemChanged";
public static final String LSTBUSINESSSTYLE_ACTION_PERFORMED = null;
public static final String LSTBUSINESSSTYLE_ITEM_CHANGED = "lstBusinessStyleItemChanged";
public static final String LSTPRIVOFFICIALSTYLE_ACTION_PERFORMED = null;
public static final String LSTPRIVOFFICIALSTYLE_ITEM_CHANGED = "lstPrivOfficialStyleItemChanged";
public static final String CHKBUSINESSPAPER_ITEM_CHANGED = "chkBusinessPaperItemChanged";
public static final String LSTPRIVATESTYLE_ACTION_PERFORMED = null;
public static final String LSTPRIVATESTYLE_ITEM_CHANGED = "lstPrivateStyleItemChanged";
public static final String CHKPAPERCOMPANYLOGO_ITEM_CHANGED = "chkPaperCompanyLogoItemChanged";
public static final String NUMLOGOHEIGHT_TEXT_CHANGED = "numLogoHeightTextChanged";
public static final String NUMLOGOX_TEXT_CHANGED = "numLogoXTextChanged";
public static final String NUMLOGOWIDTH_TEXT_CHANGED = "numLogoWidthTextChanged";
public static final String NUMLOGOY_TEXT_CHANGED = "numLogoYTextChanged";
public static final String CHKCOMPANYRECEIVER_ITEM_CHANGED = "chkCompanyReceiverItemChanged";
public static final String CHKPAPERFOOTER_ITEM_CHANGED = "chkPaperFooterItemChanged";
public static final String NUMFOOTERHEIGHT_TEXT_CHANGED = "numFooterHeightTextChanged";
public static final String CHKPAPERCOMPANYADDRESS_ITEM_CHANGED = "chkPaperCompanyAddressItemChanged";
public static final String NUMADDRESSHEIGHT_TEXT_CHANGED = "numAddressHeightTextChanged";
public static final String NUMADDRESSX_TEXT_CHANGED = "numAddressXTextChanged";
public static final String NUMADDRESSWIDTH_TEXT_CHANGED = "numAddressWidthTextChanged";
public static final String NUMADDRESSY_TEXT_CHANGED = "numAddressYTextChanged";
public static final String LSTLETTERNORM_ACTION_PERFORMED = null;
public static final String CHKUSELOGO_ITEM_CHANGED = "chkUseLogoItemChanged";
public static final String CHKUSEADDRESSRECEIVER_ITEM_CHANGED = "chkUseAddressReceiverItemChanged";
public static final String CHKUSESIGNS_ITEM_CHANGED = "chkUseSignsItemChanged";
public static final String CHKUSESUBJECT_ITEM_CHANGED = "chkUseSubjectItemChanged";
public static final String CHKUSEBENDMARKS_ITEM_CHANGED = "chkUseBendMarksItemChanged";
public static final String CHKUSEFOOTER_ITEM_CHANGED = "chkUseFooterItemChanged";
public static final String CHKUSESALUTATION_ITEM_CHANGED = "chkUseSalutationItemChanged";
public static final String CHKUSEGREETING_ITEM_CHANGED = "chkUseGreetingItemChanged";
public static final String LSTSALUTATION_ACTION_PERFORMED = null;
public static final String LSTSALUTATION_ITEM_CHANGED = "lstSalutationItemChanged";
public static final String LSTSALUTATION_TEXT_CHANGED = "lstSalutationTextChanged";
public static final String LSTGREETING_ACTION_PERFORMED = null;
public static final String LSTGREETING_ITEM_CHANGED = "lstGreetingItemChanged";
public static final String LSTGREETING_TEXT_CHANGED = "lstGreetingTextChanged";
public static final String OPTSENDERPLACEHOLDER_ITEM_CHANGED = "optSenderPlaceholderItemChanged";
public static final String OPTSENDERDEFINE_ITEM_CHANGED = "optSenderDefineItemChanged";
public static final String OPTRECEIVERPLACEHOLDER_ITEM_CHANGED = "optReceiverPlaceholderItemChanged";
public static final String OPTRECEIVERDATABASE_ITEM_CHANGED = "optReceiverDatabaseItemChanged";
public static final String TXTSENDERNAME_TEXT_CHANGED = "txtSenderNameTextChanged";
public static final String TXTSENDERSTREET_TEXT_CHANGED = "txtSenderStreetTextChanged";
public static final String TXTSENDERCITY_TEXT_CHANGED = "txtSenderCityTextChanged";
public static final String TXTSENDERPOSTCODE_TEXT_CHANGED = "txtSenderPostCodeTextChanged";
public static final String TXTSENDERSTATE_TEXT_CHANGED = "txtSenderStateTextChanged";
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 OPTCREATELETTER_ITEM_CHANGED = "optCreateLetterItemChanged";
public static final String OPTMAKECHANGES_ITEM_CHANGED = "optMakeChangesItemChanged";
public static final String FILETEMPLATEPATH_TEXT_CHANGED = null;
public static final String imageURLImageControl1 = null;
public static final String imageURLImageControl2 = null;
public static final String imageURLImageControl3 = null;
public static final int HID = 40768;
public static final int HIDMAIN = 40820;
}
/*
* 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.letter;
public interface LetterWizardDialogEvents
{
public static final String OPTBUSINESSLETTER_ITEM_CHANGED = null;
public static final String OPTPRIVOFFICIALLETTER_ITEM_CHANGED = null;
public static final String OPTPRIVATELETTER_ITEM_CHANGED = null;
public static final String LSTBUSINESSSTYLE_ACTION_PERFORMED = null;
public static final String LSTBUSINESSSTYLE_ITEM_CHANGED = null;
public static final String LSTPRIVOFFICIALSTYLE_ACTION_PERFORMED = null;
public static final String LSTPRIVOFFICIALSTYLE_ITEM_CHANGED = null;
public static final String CHKBUSINESSPAPER_ITEM_CHANGED = null;
public static final String LSTPRIVATESTYLE_ACTION_PERFORMED = null;
public static final String LSTPRIVATESTYLE_ITEM_CHANGED = null;
public static final String CHKPAPERCOMPANYLOGO_ITEM_CHANGED = null;
public static final String NUMLOGOHEIGHT_TEXT_CHANGED = null;
public static final String NUMLOGOX_TEXT_CHANGED = null;
public static final String NUMLOGOWIDTH_TEXT_CHANGED = null;
public static final String NUMLOGOY_TEXT_CHANGED = null;
public static final String CHKCOMPANYRECEIVER_ITEM_CHANGED = null;
public static final String CHKPAPERFOOTER_ITEM_CHANGED = null;
public static final String NUMFOOTERHEIGHT_TEXT_CHANGED = null;
public static final String CHKPAPERCOMPANYADDRESS_ITEM_CHANGED = null;
public static final String NUMADDRESSHEIGHT_TEXT_CHANGED = null;
public static final String NUMADDRESSX_TEXT_CHANGED = null;
public static final String NUMADDRESSWIDTH_TEXT_CHANGED = null;
public static final String NUMADDRESSY_TEXT_CHANGED = null;
public static final String LSTLETTERNORM_ACTION_PERFORMED = null;
public static final String LSTLETTERNORM_ITEM_CHANGED = null;
public static final String CHKUSELOGO_ITEM_CHANGED = null;
public static final String CHKUSEADDRESSRECEIVER_ITEM_CHANGED = null;
public static final String CHKUSESIGNS_ITEM_CHANGED = null;
public static final String CHKUSESUBJECT_ITEM_CHANGED = null;
public static final String CHKUSEBENDMARKS_ITEM_CHANGED = null;
public static final String CHKUSEFOOTER_ITEM_CHANGED = null;
public static final String CHKUSESALUTATION_ITEM_CHANGED = null;
public static final String CHKUSEGREETING_ITEM_CHANGED = null;
public static final String LSTSALUTATION_ACTION_PERFORMED = null;
public static final String LSTSALUTATION_ITEM_CHANGED = null;
public static final String LSTGREETING_ACTION_PERFORMED = null;
public static final String LSTGREETING_ITEM_CHANGED = null;
public static final String OPTSENDERFIXED_ITEM_CHANGED = null;
public static final String OPTSENDERPLACEHOLDER_ITEM_CHANGED = null;
public static final String OPTSENDERDEFINE_ITEM_CHANGED = null;
public static final String OPTRECEIVERPLACEHOLDER_ITEM_CHANGED = null;
public static final String OPTRECEIVERDATABASE_ITEM_CHANGED = null;
public static final String TXTSENDERNAME_TEXT_CHANGED = null;
public static final String TXTSENDERSTREET_TEXT_CHANGED = null;
public static final String TXTSENDERCITY_TEXT_CHANGED = null;
public static final String TXTSENDERPOSTCODE_TEXT_CHANGED = null;
public static final String TXTFOOTER_TEXT_CHANGED = null;
public static final String CHKFOOTERNEXTPAGES_ITEM_CHANGED = null;
public static final String CHKFOOTERPAGENUMBERS_ITEM_CHANGED = null;
public static final String TXTTEMPLATENAME_TEXT_CHANGED = null;
public static final String OPTCREATELETTER_ITEM_CHANGED = null;
public static final String OPTMAKECHANGES_ITEM_CHANGED = null;
public static final String FILETEMPLATEPATH_TEXT_CHANGED = null;
public static final String imageURLImageControl1 = "images/ImageControl1";
public static final String imageURLImageControl2 = "images/ImageControl2";
public static final String imageURLImageControl3 = "images/ImageControl3";
}
/*
* 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.letter;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.wizards.common.Resource;
import com.sun.star.beans.PropertyValue;
public class LocaleCodes extends Resource
{
final static String UNIT_NAME = "svtres";
final static String MODULE_NAME = "svt";
PropertyValue[] allLanguageStrings;
public LocaleCodes(XMultiServiceFactory xmsf)
{
super(xmsf, UNIT_NAME, MODULE_NAME);
allLanguageStrings = getStringList(16642); // STR_ARR_SVT_LANGUAGE_TABLE from svtools/source/misc/langtab.src
}
public String getLanguageString(String MSID)
{
String LS = "unknown Language";
for (int i = 0; i < allLanguageStrings.length; i++)
{
if (allLanguageStrings[i].Value.toString().equalsIgnoreCase(MSID))
{
LS = allLanguageStrings[i].Name;
}
}
return LS;
}
public String[] getIDs()
{
String[] Ids = new String[135];
Ids[0] = "Afrikaans;af;1078";
Ids[1] = "Albanian;sq;1052";
Ids[2] = "Arabic - United Arab Emirates;ar-ae;14337";
Ids[3] = "Arabic - Bahrain;ar-bh;15361";
Ids[4] = "Arabic - Algeria;ar-dz;5121";
Ids[5] = "Arabic - Egypt;ar-eg;3073";
Ids[6] = "Arabic - Iraq;ar-iq;2049";
Ids[7] = "Arabic - Jordan;ar-jo;11265";
Ids[8] = "Arabic - Kuwait;ar-kw;13313";
Ids[9] = "Arabic - Lebanon;ar-lb;12289";
Ids[10] = "Arabic - Libya;ar-ly;4097";
Ids[11] = "Arabic - Morocco;ar-ma;6145";
Ids[12] = "Arabic - Oman;ar-om;8193";
Ids[13] = "Arabic - Qatar;ar-qa;16385";
Ids[14] = "Arabic - Saudi Arabia;ar-sa;1025";
Ids[15] = "Arabic - Syria;ar-sy;10241";
Ids[16] = "Arabic - Tunisia;ar-tn;7169";
Ids[17] = "Arabic - Yemen;ar-ye;9217";
Ids[18] = "Armenian;hy;1067";
Ids[19] = "Azeri - Latin;az-az;1068";
Ids[20] = "Azeri - Cyrillic;az-az;2092";
Ids[21] = "Basque;eu;1069";
Ids[22] = "Belarusian;be;1059";
Ids[23] = "Bulgarian;bg;1026";
Ids[24] = "Catalan;ca;1027";
Ids[25] = "Chinese - China;zh-cn;2052";
Ids[26] = "Chinese - Hong Kong SAR;zh-hk;3076";
Ids[27] = "Chinese - Macau SAR;zh-mo;5124";
Ids[28] = "Chinese - Singapore;zh-sg;4100";
Ids[29] = "Chinese - Taiwan;zh-tw;1028";
Ids[30] = "Croatian;hr;1050";
Ids[31] = "Czech;cs;1029";
Ids[32] = "Danish;da;1030";
Ids[33] = "Dutch - The Netherlands;nl-nl;1043";
Ids[34] = "Dutch - Belgium;nl-be;2067";
Ids[35] = "English - Australia;en-au;3081";
Ids[36] = "English - Belize;en-bz;10249";
Ids[37] = "English - Canada;en-ca;4105";
Ids[38] = "English - Caribbean;en-cb;9225";
Ids[39] = "English - Ireland;en-ie;6153";
Ids[40] = "English - Jamaica;en-jm;8201";
Ids[41] = "English - New Zealand;en-nz;5129";
Ids[42] = "English - Phillippines;en-ph;13321";
Ids[43] = "English - South Africa;en-za;7177";
Ids[44] = "English - Trinidad;en-tt;11273";
Ids[45] = "English - United Kingdom;en-gb;2057";
Ids[46] = "English - United States;en-us;1033";
Ids[47] = "Estonian;et;1061";
Ids[48] = "Farsi;fa;1065";
Ids[49] = "Finnish;fi;1035";
Ids[50] = "Faroese;fo;1080";
Ids[51] = "French - France;fr-fr;1036";
Ids[52] = "French - Belgium;fr-be;2060";
Ids[53] = "French - Canada;fr-ca;3084";
Ids[54] = "French - Luxembourg;fr-lu;5132";
Ids[55] = "French - Switzerland;fr-ch;4108";
Ids[56] = "Gaelic - Ireland;gd-ie;2108";
Ids[57] = "Gaelic - Scotland;gd;1084";
Ids[58] = "German - Germany;de-de;1031";
Ids[59] = "German - Austria;de-at;3079";
Ids[60] = "German - Liechtenstein;de-li;5127";
Ids[61] = "German - Luxembourg;de-lu;4103";
Ids[62] = "German - Switzerland;de-ch;2055";
Ids[63] = "Greek;el;1032";
Ids[64] = "Hebrew;he;1037";
Ids[65] = "Hindi;hi;1081";
Ids[66] = "Hungarian;hu;1038";
Ids[67] = "Icelandic;is;1039";
Ids[68] = "Indonesian;id;1057";
Ids[69] = "Italian - Italy;it-it;1040";
Ids[70] = "Italian - Switzerland;it-ch;2064";
Ids[71] = "Japanese;ja;1041";
Ids[72] = "Korean;ko;1042";
Ids[73] = "Latvian;lv;1062";
Ids[74] = "Lithuanian;lt;1063";
Ids[75] = "FYRO Macedonian;mk;1071";
Ids[76] = "Malay - Malaysia;ms-my;1086";
Ids[77] = "Malay - Brunei;ms-bn;2110";
Ids[78] = "Maltese;mt;1082";
Ids[79] = "Marathi;mr;1102";
Ids[80] = "Norwegian - Bokm?l;no-no;1044";
Ids[81] = "Norwegian - Nynorsk;no-no;2068";
Ids[82] = "Polish;pl;1045";
Ids[83] = "Portuguese - Portugal;pt-pt;2070";
Ids[84] = "Portuguese - Brazil;pt-br;1046";
Ids[85] = "Raeto-Romance;rm;1047";
Ids[86] = "Romanian - Romania;ro;1048";
Ids[87] = "Romanian - Moldova;ro-mo;2072";
Ids[88] = "Russian;ru;1049";
Ids[89] = "Russian - Moldova;ru-mo;2073";
Ids[90] = "Sanskrit;sa;1103";
Ids[91] = "Serbian - Cyrillic;sr-sp;3098";
Ids[92] = "Serbian - Latin;sr-sp;2074";
Ids[93] = "Setsuana;tn;1074";
Ids[94] = "Slovenian;sl;1060";
Ids[95] = "Slovak;sk;1051";
Ids[96] = "Sorbian;sb;1070";
Ids[97] = "Spanish - Spain;es-es;3082";
Ids[98] = "Spanish - Argentina;es-ar;11274";
Ids[99] = "Spanish - Bolivia;es-bo;16394";
Ids[100] = "Spanish - Chile;es-cl;13322";
Ids[101] = "Spanish - Colombia;es-co;9226";
Ids[102] = "Spanish - Costa Rica;es-cr;5130";
Ids[103] = "Spanish - Dominican Republic;es-do;7178";
Ids[104] = "Spanish - Ecuador;es-ec;12298";
Ids[105] = "Spanish - Guatemala;es-gt;4106";
Ids[106] = "Spanish - Honduras;es-hn;18442";
Ids[107] = "Spanish - Mexico;es-mx;2058";
Ids[108] = "Spanish - Nicaragua;es-ni;19466";
Ids[109] = "Spanish - Panama;es-pa;6154";
Ids[110] = "Spanish - Peru;es-pe;10250";
Ids[111] = "Spanish - Puerto Rico;es-pr;20490";
Ids[112] = "Spanish - Paraguay;es-py;15370";
Ids[113] = "Spanish - El Salvador;es-sv;17418";
Ids[114] = "Spanish - Uruguay;es-uy;14346";
Ids[115] = "Spanish - Venezuela;es-ve;8202";
Ids[116] = "Sutu;sx;1072";
Ids[117] = "Swahili;sw;1089";
Ids[118] = "Swedish - Sweden;sv-se;1053";
Ids[119] = "Swedish - Finland;sv-fi;2077";
Ids[120] = "Tamil;ta;1097";
Ids[121] = "Tatar;tt;1092";
Ids[122] = "Thai;th;1054";
Ids[123] = "Turkish;tr;1055";
Ids[124] = "Tsonga;ts;1073";
Ids[125] = "Ukrainian;uk;1058";
Ids[126] = "Urdu;ur;1056";
Ids[127] = "Uzbek - Cyrillic;uz-uz;2115";
Ids[128] = "Uzbek - Latin;uz-uz;1091";
Ids[129] = "Vietnamese;vi;1066";
Ids[130] = "Xhosa;xh;1076";
Ids[131] = "Yiddish;yi;1085";
Ids[132] = "Zulu;zu;1077";
Ids[133] = "Khmer;km-kh;1107";
Ids[134] = "Burmese;my-mm;1109";
return Ids;
}
}
RegistrationClassName: com.sun.star.wizards.letter.CallWizard
UNO-Type-Path:
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