summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scp2/source/ooo/file_ooo.scp1
-rw-r--r--wizards/Jar_letter.mk60
-rw-r--r--wizards/Module_wizards.mk1
-rw-r--r--wizards/com/sun/star/wizards/letter/CGLetter.java55
-rw-r--r--wizards/com/sun/star/wizards/letter/CGLetterWizard.java29
-rw-r--r--wizards/com/sun/star/wizards/letter/CGPaperElementLocation.java30
-rw-r--r--wizards/com/sun/star/wizards/letter/CallWizard.java228
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterDocument.java319
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterWizardDialog.java883
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterWizardDialogConst.java82
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterWizardDialogEvents.java79
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.java1484
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.java224
-rw-r--r--wizards/com/sun/star/wizards/letter/LocaleCodes.java192
-rw-r--r--wizards/com/sun/star/wizards/letter/MANIFEST.MF2
15 files changed, 0 insertions, 3669 deletions
diff --git a/scp2/source/ooo/file_ooo.scp b/scp2/source/ooo/file_ooo.scp
index d45c574d97ee..e98d38f703e7 100644
--- a/scp2/source/ooo/file_ooo.scp
+++ b/scp2/source/ooo/file_ooo.scp
@@ -430,7 +430,6 @@ End
#ifdef SOLAR_JAVA
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_Agenda, agenda )
STD_JAR_FILE( gid_File_Jar_Query, query )
diff --git a/wizards/Jar_letter.mk b/wizards/Jar_letter.mk
deleted file mode 100644
index 4b09fa7b96cd..000000000000
--- a/wizards/Jar_letter.mk
+++ /dev/null
@@ -1,60 +0,0 @@
-# -*- 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:
diff --git a/wizards/Module_wizards.mk b/wizards/Module_wizards.mk
index cd376086ea6c..8a2088acac89 100644
--- a/wizards/Module_wizards.mk
+++ b/wizards/Module_wizards.mk
@@ -57,7 +57,6 @@ $(eval $(call gb_Module_add_targets,wizards,\
Jar_commonwizards \
Jar_agenda \
Jar_form \
- Jar_letter \
Jar_query \
Jar_report \
Jar_reportbuilder \
diff --git a/wizards/com/sun/star/wizards/letter/CGLetter.java b/wizards/com/sun/star/wizards/letter/CGLetter.java
deleted file mode 100644
index b5c4eda783b9..000000000000
--- a/wizards/com/sun/star/wizards/letter/CGLetter.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * 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;
-}
diff --git a/wizards/com/sun/star/wizards/letter/CGLetterWizard.java b/wizards/com/sun/star/wizards/letter/CGLetterWizard.java
deleted file mode 100644
index 3f61c1bc0733..000000000000
--- a/wizards/com/sun/star/wizards/letter/CGLetterWizard.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * 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();
-}
diff --git a/wizards/com/sun/star/wizards/letter/CGPaperElementLocation.java b/wizards/com/sun/star/wizards/letter/CGPaperElementLocation.java
deleted file mode 100644
index 5b3d0661b6f3..000000000000
--- a/wizards/com/sun/star/wizards/letter/CGPaperElementLocation.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * 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;
-}
diff --git a/wizards/com/sun/star/wizards/letter/CallWizard.java b/wizards/com/sun/star/wizards/letter/CallWizard.java
deleted file mode 100644
index 2276f0356dbd..000000000000
--- a/wizards/com/sun/star/wizards/letter/CallWizard.java
+++ /dev/null
@@ -1,228 +0,0 @@
-/*
- * 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);
- }
- }
-}
diff --git a/wizards/com/sun/star/wizards/letter/LetterDocument.java b/wizards/com/sun/star/wizards/letter/LetterDocument.java
deleted file mode 100644
index fd2ca0cf408b..000000000000
--- a/wizards/com/sun/star/wizards/letter/LetterDocument.java
+++ /dev/null
@@ -1,319 +0,0 @@
-/*
- * 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.*;
-import com.sun.star.wizards.text.*;
-import com.sun.star.frame.XDesktop;
-import com.sun.star.frame.XTerminateListener;
-import com.sun.star.table.BorderLine;
-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.drawing.XShape;
-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 LetterDocument extends TextDocument
-{
-
- XDesktop xDesktop;
- boolean keepLogoFrame = true;
- boolean keepBendMarksFrame = true;
- boolean keepLetterSignsFrame = true;
- boolean keepSenderAddressRepeatedFrame = true;
- boolean keepAddressFrame = true;
-
- public LetterDocument(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)
- {
- try
- {
- xTextDocument.lockControllers();
- 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 SH = new TextSectionHandler(xMSF, xTextDocument);
- return SH.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("City", (String) Helper.getUnoObjectbyName(oUserDataAccess, "l"));
- myFieldHandler.changeUserFieldContent(PropertyNames.PROPERTY_STATE, (String) Helper.getUnoObjectbyName(oUserDataAccess, "st"));
- }
- 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 (!keepBendMarksFrame)
- {
- XTextFrame xTF = TextFrameHandler.getFrameByName("Bend Marks", xTextDocument);
- if (xTF != null)
- {
- xTF.dispose();
- }
- }
- if (!keepLetterSignsFrame)
- {
- XTextFrame xTF = TextFrameHandler.getFrameByName("Letter Signs", xTextDocument);
- if (xTF != null)
- {
- xTF.dispose();
- }
- }
- if (!keepSenderAddressRepeatedFrame)
- {
- XTextFrame xTF = TextFrameHandler.getFrameByName("Sender Address Repeated", xTextDocument);
- if (xTF != null)
- {
- xTF.dispose();
- }
- }
- if (!keepAddressFrame)
- {
- XTextFrame xTF = TextFrameHandler.getFrameByName("Sender Address", xTextDocument);
- if (xTF != null)
- {
- xTF.dispose();
- }
- }
-
- }
- catch (Exception e)
- {
- e.printStackTrace();
- }
-
- }
-
- public class BusinessPaperObject
- {
-
- public int iWidth;
- public int iHeight;
- public int iXPos;
- public int iYPos;
- XTextFrame xFrame;
- XShape xShape;
-
- public BusinessPaperObject(String FrameText, int Width, int Height, int XPos, int YPos)
- {
-
- iWidth = Width;
- iHeight = Height;
- iXPos = XPos;
- iYPos = YPos;
-
- try
- {
- xFrame = UnoRuntime.queryInterface(XTextFrame.class, xMSFDoc.createInstance("com.sun.star.text.TextFrame"));
- xShape = UnoRuntime.queryInterface(XShape.class, xFrame);
-
- setFramePosition();
- Helper.setUnoPropertyValue(xShape, "AnchorType", TextContentAnchorType.AT_PAGE);
- Helper.setUnoPropertyValue(xShape, "SizeType", new Short(SizeType.FIX));
-
- Helper.setUnoPropertyValue(xFrame, "TextWrap", WrapTextMode.THROUGHT);
- Helper.setUnoPropertyValue(xFrame, "Opaque", Boolean.TRUE);
- Helper.setUnoPropertyValue(xFrame, "BackColor", 15790320);
-
- BorderLine myBorder = new BorderLine();
- myBorder.OuterLineWidth = 0;
- Helper.setUnoPropertyValue(xFrame, "LeftBorder", myBorder);
- Helper.setUnoPropertyValue(xFrame, "RightBorder", myBorder);
- Helper.setUnoPropertyValue(xFrame, "TopBorder", myBorder);
- Helper.setUnoPropertyValue(xFrame, "BottomBorder", myBorder);
- Helper.setUnoPropertyValue(xFrame, "Print", Boolean.FALSE);
-
- XTextCursor xTextCursor = xTextDocument.getText().createTextCursor();
- xTextCursor.gotoEnd(true);
- XText xText = xTextDocument.getText();
- xText.insertTextContent(xTextCursor, xFrame, false);
-
- XText xFrameText = xFrame.getText();
- XTextCursor xFrameCursor = xFrameText.createTextCursor();
- XPropertySet xCursorProps = UnoRuntime.queryInterface(XPropertySet.class, xFrameCursor);
- xCursorProps.setPropertyValue("CharWeight", new Float(com.sun.star.awt.FontWeight.BOLD));
- xCursorProps.setPropertyValue("CharColor", 16777215);
- xCursorProps.setPropertyValue("CharFontName", "Albany");
- xCursorProps.setPropertyValue("CharHeight", new Float(18));
-
- xFrameText.insertString(xFrameCursor, FrameText, false);
-
- }
- catch (Exception e)
- {
- e.printStackTrace(System.err);
- }
- }
-
- public void setFramePosition()
- {
- Helper.setUnoPropertyValue(xFrame, "HoriOrient", new Short(HoriOrientation.NONE));
- Helper.setUnoPropertyValue(xFrame, "VertOrient", new Short(VertOrientation.NONE));
- Helper.setUnoPropertyValue(xFrame, PropertyNames.PROPERTY_HEIGHT, new Integer(iHeight));
- Helper.setUnoPropertyValue(xFrame, PropertyNames.PROPERTY_WIDTH, new Integer(iWidth));
- Helper.setUnoPropertyValue(xFrame, "HoriOrientPosition", new Integer(iXPos));
- Helper.setUnoPropertyValue(xFrame, "VertOrientPosition", new Integer(iYPos));
- Helper.setUnoPropertyValue(xFrame, "HoriOrientRelation", new Short(RelOrientation.PAGE_FRAME));
- Helper.setUnoPropertyValue(xFrame, "VertOrientRelation", new Short(RelOrientation.PAGE_FRAME));
- }
-
- public void removeFrame()
- {
- if (xFrame != null)
- {
- try
- {
- xTextDocument.getText().removeTextContent(xFrame);
- }
- catch (Exception e)
- {
- e.printStackTrace(System.err);
- }
- }
- }
- }
-}
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialog.java b/wizards/com/sun/star/wizards/letter/LetterWizardDialog.java
deleted file mode 100644
index ef27af49f547..000000000000
--- a/wizards/com/sun/star/wizards/letter/LetterWizardDialog.java
+++ /dev/null
@@ -1,883 +0,0 @@
-/*
- * 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.awt.*;
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.wizards.common.*;
-import com.sun.star.wizards.ui.*;
-
-public abstract class LetterWizardDialog extends WizardDialog implements LetterWizardDialogConst, UIConsts
-{
- //GUI Components as Class members.
- XRadioButton optBusinessLetter;
- XListBox lstBusinessStyle;
- XCheckBox chkBusinessPaper;
- XRadioButton optPrivOfficialLetter;
- XListBox lstPrivOfficialStyle;
- XRadioButton optPrivateLetter;
- XListBox lstPrivateStyle;
- XFixedText lblBusinessStyle;
- XFixedText lblPrivOfficialStyle;
- XFixedText lblTitle1;
- XFixedText lblPrivateStyle;
- XFixedText lblIntroduction;
- //Image Control
- XControl ImageControl3;
- XCheckBox chkPaperCompanyLogo;
- XNumericField numLogoHeight;
- XNumericField numLogoX;
- XNumericField numLogoWidth;
- XNumericField numLogoY;
- XCheckBox chkPaperCompanyAddress;
- XNumericField numAddressHeight;
- XNumericField numAddressX;
- XNumericField numAddressWidth;
- XNumericField numAddressY;
- XCheckBox chkCompanyReceiver;
- XCheckBox chkPaperFooter;
- XNumericField numFooterHeight;
- XFixedText lblLogoHeight;
- XFixedText lblLogoWidth;
- //Fixed Line
- XControl FixedLine5;
- //Fixed Line
- XControl FixedLine6;
- XFixedText lblFooterHeight;
- XFixedText lblLogoX;
- XFixedText lblLogoY;
- XFixedText lblAddressHeight;
- XFixedText lblAddressWidth;
- XFixedText lblAddressX;
- XFixedText lblAddressY;
- XFixedText lblTitle2;
- XCheckBox chkUseLogo;
- XCheckBox chkUseAddressReceiver;
- XCheckBox chkUseSigns;
- XCheckBox chkUseSubject;
- XCheckBox chkUseSalutation;
- XComboBox lstSalutation;
- XCheckBox chkUseBendMarks;
- XCheckBox chkUseGreeting;
- XComboBox lstGreeting;
- XCheckBox chkUseFooter;
- XFixedText lblTitle3;
- XRadioButton optSenderPlaceholder;
- XRadioButton optSenderDefine;
- XTextComponent txtSenderName;
- XTextComponent txtSenderStreet;
- XTextComponent txtSenderPostCode;
- XTextComponent txtSenderState;
- XTextComponent txtSenderCity;
- XRadioButton optReceiverPlaceholder;
- XRadioButton optReceiverDatabase;
- XFixedText lblSenderAddress;
- //Fixed Line
- XControl FixedLine2;
- XFixedText lblReceiverAddress;
- XFixedText lblSenderName;
- XFixedText lblSenderStreet;
- XFixedText lblPostCodeCity;
- XFixedText lblTitle4;
- XTextComponent txtFooter;
- XCheckBox chkFooterNextPages;
- XCheckBox chkFooterPageNumbers;
- XFixedText lblFooter;
- XFixedText lblTitle5;
- XTextComponent txtTemplateName;
- //File Control
- XControl fileTemplatePath;
- XRadioButton optCreateLetter;
- XRadioButton optMakeChanges;
- XFixedText lblFinalExplanation1;
- XFixedText lblProceed;
- XFixedText lblFinalExplanation2;
- //Image Control
- XControl ImageControl2;
- XFixedText lblTemplateName;
- XFixedText lblTemplatePath;
- XFixedText lblTitle6;
- XFixedText Label9;
- //Font Descriptors as Class members.
- FontDescriptor fontDescriptor1 = new FontDescriptor();
- FontDescriptor fontDescriptor2 = new FontDescriptor();
- FontDescriptor fontDescriptor5 = new FontDescriptor();
- FontDescriptor fontDescriptor6 = new FontDescriptor(); //Resources Object
- LetterWizardDialogResources resources;
-
- public LetterWizardDialog(XMultiServiceFactory xmsf)
- {
- super(xmsf, HIDMAIN);
- //Load Resources
- resources = new LetterWizardDialogResources(xmsf);
-
-
- //set dialog properties...
- Helper.setUnoPropertyValues(xDialogModel,
- new String[]
- {
- PropertyNames.PROPERTY_CLOSEABLE, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_MOVEABLE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_TITLE, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- Boolean.TRUE, 210, Boolean.TRUE, "LetterWizardDialog", 104, 52, INTEGERS[1], new Short((short) 1), resources.resLetterWizardDialog_title, 310
- });
-
-
-
- //Set member- FontDescriptors...
- fontDescriptor1.Weight = 150;
- fontDescriptor1.Underline = com.sun.star.awt.FontUnderline.SINGLE;
- fontDescriptor2.Weight = 100;
- fontDescriptor5.Weight = 100;
- fontDescriptor6.Weight = 150;
- }
- //build components
- public void buildStep1()
- {
- optBusinessLetter = insertRadioButton("optBusinessLetter", OPTBUSINESSLETTER_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 1), resources.resoptBusinessLetter_value, "optBusinessLetter", 97, 28, INTEGERS[1], new Short((short) 1), 184
- });
- optPrivOfficialLetter = insertRadioButton("optPrivOfficialLetter", OPTPRIVOFFICIALLETTER_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 2), resources.resoptPrivOfficialLetter_value, "optPrivOfficialLetter", 97, 74, INTEGERS[1], new Short((short) 2), 184
- });
- optPrivateLetter = insertRadioButton("optPrivateLetter", OPTPRIVATELETTER_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 3), resources.resoptPrivateLetter_value, "optPrivateLetter", 97, 106, INTEGERS[1], new Short((short) 3), 184
- });
- lstBusinessStyle = insertListBox("lstBusinessStyle", LSTBUSINESSSTYLE_ACTION_PERFORMED, LSTBUSINESSSTYLE_ITEM_CHANGED,
- new String[]
- {
- "Dropdown", PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- Boolean.TRUE, INTEGER_12, HelpIds.getHelpIdString(HID + 4), "lstBusinessStyle", 180, INTEGER_40, INTEGERS[1], new Short((short) 4), 74
- });
- chkBusinessPaper = insertCheckBox("chkBusinessPaper", CHKBUSINESSPAPER_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STATE, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 5), resources.reschkBusinessPaper_value, "chkBusinessPaper", 110, 56, new Short((short) 0), INTEGERS[1], new Short((short) 5), 168
- });
- lstPrivOfficialStyle = insertListBox("lstPrivOfficialStyle", LSTPRIVOFFICIALSTYLE_ACTION_PERFORMED, LSTPRIVOFFICIALSTYLE_ITEM_CHANGED,
- new String[]
- {
- "Dropdown", PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- Boolean.TRUE, INTEGER_12, HelpIds.getHelpIdString(HID + 6), "lstPrivOfficialStyle", 180, 86, INTEGERS[1], new Short((short) 6), 74
- });
- lstPrivateStyle = insertListBox("lstPrivateStyle", LSTPRIVATESTYLE_ACTION_PERFORMED, LSTPRIVATESTYLE_ITEM_CHANGED,
- new String[]
- {
- "Dropdown", PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- Boolean.TRUE, INTEGER_12, HelpIds.getHelpIdString(HID + 7), "lstPrivateStyle", 180, 118, INTEGERS[1], new Short((short) 7), 74
- });
- lblBusinessStyle = insertLabel("lblBusinessStyle",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblBusinessStyle_value, "lblBusinessStyle", 110, 42, INTEGERS[1], new Short((short) 48), 60
- });
- lblPrivOfficialStyle = insertLabel("lblPrivOfficialStyle",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblPrivOfficialStyle_value, "lblPrivOfficialStyle", 110, 88, INTEGERS[1], new Short((short) 49), 60
- });
- lblTitle1 = insertLabel("lblTitle1",
- new String[]
- {
- PropertyNames.FONT_DESCRIPTOR, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_MULTILINE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- fontDescriptor6, INTEGER_16, resources.reslblTitle1_value, Boolean.TRUE, "lblTitle1", 91, INTEGERS[8], INTEGERS[1], new Short((short) 55), 212
- });
- lblPrivateStyle = insertLabel("lblPrivateStyle",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblPrivateStyle_value, "lblPrivateStyle", 110, 120, INTEGERS[1], new Short((short) 74), 60
- });
- lblIntroduction = insertLabel("lblIntroduction",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_MULTILINE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- 39, resources.reslblIntroduction_value, Boolean.TRUE, "lblIntroduction", 104, 145, INTEGERS[1], new Short((short) 80), 199
- });
- ImageControl3 = insertInfoImage(92, 145, 1);
-
-// ImageControl3 = insertImage("ImageControl3",
-// new String[] {PropertyNames.PROPERTY_BORDER, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_IMAGEURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, "ScaleImage", PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH},
-// new Object[] { new Short((short)0), INTEGERS[10],"private:resource/dbu/image/19205","ImageControl3",92,145,Boolean.FALSE,INTEGERS[1],new Short((short)81),INTEGERS[10]}
-// );
- }
-
- public void buildStep2()
- {
- chkPaperCompanyLogo = insertCheckBox("chkPaperCompanyLogo", CHKPAPERCOMPANYLOGO_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STATE, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 8), resources.reschkPaperCompanyLogo_value, "chkPaperCompanyLogo", 97, 28, new Short((short) 0), INTEGERS[2], new Short((short) 8), 68
- });
- numLogoHeight = insertNumericField("numLogoHeight", NUMLOGOHEIGHT_TEXT_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, "Spin", PropertyNames.PROPERTY_STEP, "StrictFormat", PropertyNames.PROPERTY_TABINDEX, "Value", PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGER_12, HelpIds.getHelpIdString(HID + 9), "numLogoHeight", 138, INTEGER_40, Boolean.TRUE, INTEGERS[2], Boolean.TRUE, new Short((short) 9), INTEGERS[3], 30
- });
- numLogoX = insertNumericField("numLogoX", NUMLOGOX_TEXT_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, "Spin", PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, "Value", PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGER_12, HelpIds.getHelpIdString(HID + 10), "numLogoX", 266, INTEGER_40, Boolean.TRUE, INTEGERS[2], new Short((short) 10), INTEGERS[0], 30
- });
- numLogoWidth = insertNumericField("numLogoWidth", NUMLOGOWIDTH_TEXT_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, "Spin", PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, "Value", PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGER_12, HelpIds.getHelpIdString(HID + 11), "numLogoWidth", 138, 56, Boolean.TRUE, INTEGERS[2], new Short((short) 11), new Double(3.8), 30
- });
- numLogoY = insertNumericField("numLogoY", NUMLOGOY_TEXT_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, "Spin", PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, "Value", PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGER_12, HelpIds.getHelpIdString(HID + 12), "numLogoY", 266, 56, Boolean.TRUE, INTEGERS[2], new Short((short) 12), new Double(-3.4), 30
- });
- chkPaperCompanyAddress = insertCheckBox("chkPaperCompanyAddress", CHKPAPERCOMPANYADDRESS_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STATE, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 13), resources.reschkPaperCompanyAddress_value, "chkPaperCompanyAddress", 98, 84, new Short((short) 0), INTEGERS[2], new Short((short) 13), 68
- });
- numAddressHeight = insertNumericField("numAddressHeight", NUMADDRESSHEIGHT_TEXT_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, "Spin", PropertyNames.PROPERTY_STEP, "StrictFormat", PropertyNames.PROPERTY_TABINDEX, "Value", PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGER_12, HelpIds.getHelpIdString(HID + 14), "numAddressHeight", 138, 96, Boolean.TRUE, INTEGERS[2], Boolean.TRUE, new Short((short) 14), INTEGERS[3], 30
- });
- numAddressX = insertNumericField("numAddressX", NUMADDRESSX_TEXT_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, "Spin", PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, "Value", PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGER_12, HelpIds.getHelpIdString(HID + 15), "numAddressX", 266, 96, Boolean.TRUE, INTEGERS[2], new Short((short) 15), new Double(3.8), 30
- });
- numAddressWidth = insertNumericField("numAddressWidth", NUMADDRESSWIDTH_TEXT_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, "Spin", PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, "Value", PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGER_12, HelpIds.getHelpIdString(HID + 16), "numAddressWidth", 138, 112, Boolean.TRUE, INTEGERS[2], new Short((short) 16), new Double(13.8), 30
- });
- numAddressY = insertNumericField("numAddressY", NUMADDRESSY_TEXT_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, "Spin", PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, "Value", PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGER_12, HelpIds.getHelpIdString(HID + 17), "numAddressY", 266, 112, Boolean.TRUE, INTEGERS[2], new Short((short) 17), new Double(-3.4), 30
- });
- chkCompanyReceiver = insertCheckBox("chkCompanyReceiver", CHKCOMPANYRECEIVER_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STATE, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 18), resources.reschkCompanyReceiver_value, "chkCompanyReceiver", 103, 131, new Short((short) 0), INTEGERS[2], new Short((short) 18), 185
- });
- chkPaperFooter = insertCheckBox("chkPaperFooter", CHKPAPERFOOTER_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STATE, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 19), resources.reschkPaperFooter_value, "chkPaperFooter", 97, 158, new Short((short) 0), INTEGERS[2], new Short((short) 19), 68
- });
- numFooterHeight = insertNumericField("numFooterHeight", NUMFOOTERHEIGHT_TEXT_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, "Spin", PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, "Value", PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGER_12, HelpIds.getHelpIdString(HID + 20), "numFooterHeight", 236, 156, Boolean.TRUE, INTEGERS[2], new Short((short) 20), INTEGERS[5], 30
- });
- lblLogoHeight = insertLabel("lblLogoHeight",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblLogoHeight_value, "lblLogoHeight", 103, 42, INTEGERS[2], new Short((short) 68), 32
- });
- lblLogoWidth = insertLabel("lblLogoWidth",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblLogoWidth_value, "lblLogoWidth", 103, 58, INTEGERS[2], new Short((short) 69), 32
- });
- FixedLine5 = insertFixedLine("FixedLine5",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[2], "FixedLine5", 90, 78, INTEGERS[2], new Short((short) 70), 215
- });
- FixedLine6 = insertFixedLine("FixedLine6",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[2], "FixedLine6", 90, 150, INTEGERS[2], new Short((short) 71), 215
- });
- lblFooterHeight = insertLabel("lblFooterHeight",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblFooterHeight_value, "lblFooterHeight", 200, 158, INTEGERS[2], new Short((short) 72), 32
- });
- lblLogoX = insertLabel("lblLogoX",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblLogoX_value, "lblLogoX", 170, 42, INTEGERS[2], new Short((short) 84), 94
- });
- lblLogoY = insertLabel("lblLogoY",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblLogoY_value, "lblLogoY", 170, 58, INTEGERS[2], new Short((short) 85), 94
- });
- lblAddressHeight = insertLabel("lblAddressHeight",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblAddressHeight_value, "lblAddressHeight", 103, 98, INTEGERS[2], new Short((short) 86), 32
- });
- lblAddressWidth = insertLabel("lblAddressWidth",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblAddressWidth_value, "lblAddressWidth", 103, 114, INTEGERS[2], new Short((short) 87), 32
- });
- lblAddressX = insertLabel("lblAddressX",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblAddressX_value, "lblAddressX", 170, 98, INTEGERS[2], new Short((short) 88), 94
- });
- lblAddressY = insertLabel("lblAddressY",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblAddressY_value, "lblAddressY", 170, 114, INTEGERS[2], new Short((short) 89), 94
- });
- lblTitle2 = insertLabel("lblTitle2",
- new String[]
- {
- PropertyNames.FONT_DESCRIPTOR, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_MULTILINE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- fontDescriptor6, INTEGER_16, resources.reslblTitle2_value, Boolean.TRUE, "lblTitle2", 91, INTEGERS[8], INTEGERS[2], new Short((short) 91), 212
- });
- }
-
- public void buildStep3()
- {
- chkUseLogo = insertCheckBox("chkUseLogo", CHKUSELOGO_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STATE, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 22), resources.reschkUseLogo_value, "chkUseLogo", 97, 54, new Short((short) 0), INTEGERS[3], new Short((short) 22), 212
- });
- chkUseAddressReceiver = insertCheckBox("chkUseAddressReceiver", CHKUSEADDRESSRECEIVER_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STATE, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 23), resources.reschkUseAddressReceiver_value, "chkUseAddressReceiver", 97, 69, new Short((short) 0), INTEGERS[3], new Short((short) 23), 212
- });
- chkUseSigns = insertCheckBox("chkUseSigns", CHKUSESIGNS_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STATE, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 24), resources.reschkUseSigns_value, "chkUseSigns", 97, 82, new Short((short) 0), INTEGERS[3], new Short((short) 24), 212
- });
- chkUseSubject = insertCheckBox("chkUseSubject", CHKUSESUBJECT_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STATE, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 25), resources.reschkUseSubject_value, "chkUseSubject", 97, 98, new Short((short) 0), INTEGERS[3], new Short((short) 25), 212
- });
- chkUseSalutation = insertCheckBox("chkUseSalutation", CHKUSESALUTATION_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STATE, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 26), resources.reschkUseSalutation_value, "chkUseSalutation", 97, 113, new Short((short) 0), INTEGERS[3], new Short((short) 26), 66
- });
- lstSalutation = insertComboBox("lstSalutation", LSTSALUTATION_ACTION_PERFORMED, LSTSALUTATION_ITEM_CHANGED, LSTSALUTATION_TEXT_CHANGED,
- new String[]
- {
- "Dropdown", PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- Boolean.TRUE, INTEGER_12, HelpIds.getHelpIdString(HID + 27), "lstSalutation", 210, 110, INTEGERS[3], new Short((short) 27), 74
- });
- chkUseBendMarks = insertCheckBox("chkUseBendMarks", CHKUSEBENDMARKS_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STATE, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 28), resources.reschkUseBendMarks_value, "chkUseBendMarks", 97, 127, new Short((short) 0), INTEGERS[3], new Short((short) 28), 212
- });
- chkUseGreeting = insertCheckBox("chkUseGreeting", CHKUSEGREETING_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STATE, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 29), resources.reschkUseGreeting_value, "chkUseGreeting", 97, 142, new Short((short) 0), INTEGERS[3], new Short((short) 29), 66
- });
- lstGreeting = insertComboBox("lstGreeting", LSTGREETING_ACTION_PERFORMED, LSTGREETING_ITEM_CHANGED, LSTGREETING_TEXT_CHANGED,
- new String[]
- {
- "Dropdown", PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- Boolean.TRUE, INTEGER_12, HelpIds.getHelpIdString(HID + 30), "lstGreeting", 210, 141, INTEGERS[3], new Short((short) 30), 74
- });
- chkUseFooter = insertCheckBox("chkUseFooter", CHKUSEFOOTER_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STATE, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 31), resources.reschkUseFooter_value, "chkUseFooter", 97, 158, new Short((short) 0), INTEGERS[3], new Short((short) 31), 212
- });
- lblTitle3 = insertLabel("lblTitle3",
- new String[]
- {
- PropertyNames.FONT_DESCRIPTOR, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_MULTILINE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- fontDescriptor6, INTEGER_16, resources.reslblTitle3_value, Boolean.TRUE, "lblTitle3", 91, INTEGERS[8], INTEGERS[3], new Short((short) 90), 212
- });
- }
-
- public void buildStep4()
- {
- optSenderPlaceholder = insertRadioButton("optSenderPlaceholder", OPTSENDERPLACEHOLDER_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 32), resources.resoptSenderPlaceholder_value, "optSenderPlaceholder", 104, 42, INTEGERS[4], new Short((short) 32), 149
- });
- optSenderDefine = insertRadioButton("optSenderDefine", OPTSENDERDEFINE_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 33), resources.resoptSenderDefine_value, "optSenderDefine", 104, 54, INTEGERS[4], new Short((short) 33), 149
- });
- txtSenderName = insertTextField("txtSenderName", TXTSENDERNAME_TEXT_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGER_12, HelpIds.getHelpIdString(HID + 34), "txtSenderName", 182, 67, INTEGERS[4], new Short((short) 34), 119
- });
- txtSenderStreet = insertTextField("txtSenderStreet", TXTSENDERSTREET_TEXT_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGER_12, HelpIds.getHelpIdString(HID + 35), "txtSenderStreet", 182, 81, INTEGERS[4], new Short((short) 35), 119
- });
- txtSenderPostCode = insertTextField("txtSenderPostCode", TXTSENDERPOSTCODE_TEXT_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGER_12, HelpIds.getHelpIdString(HID + 36), "txtSenderPostCode", 182, 95, INTEGERS[4], new Short((short) 36), 25
- });
- txtSenderState = insertTextField("txtSenderState", TXTSENDERSTATE_TEXT_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGER_12, HelpIds.getHelpIdString(HID + 37), "txtSenderState", 211, 95, INTEGERS[4], new Short((short) 37), 21
- });
- txtSenderCity = insertTextField("txtSenderCity", TXTSENDERCITY_TEXT_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGER_12, HelpIds.getHelpIdString(HID + 38), "txtSenderCity", 236, 95, INTEGERS[4], new Short((short) 38), 65
- });
- optReceiverPlaceholder = insertRadioButton("optReceiverPlaceholder", OPTRECEIVERPLACEHOLDER_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 39), resources.resoptReceiverPlaceholder_value, "optReceiverPlaceholder", 104, 145, INTEGERS[4], new Short((short) 39), 200
- });
- optReceiverDatabase = insertRadioButton("optReceiverDatabase", OPTRECEIVERDATABASE_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 40), resources.resoptReceiverDatabase_value, "optReceiverDatabase", 104, 157, INTEGERS[4], new Short((short) 40), 200
- });
- lblSenderAddress = insertLabel("lblSenderAddress",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblSenderAddress_value, "lblSenderAddress", 97, 28, INTEGERS[4], new Short((short) 64), 136
- });
- FixedLine2 = insertFixedLine("FixedLine2",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[5], "FixedLine2", 90, 126, INTEGERS[4], new Short((short) 75), 212
- });
- lblReceiverAddress = insertLabel("lblReceiverAddress",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblReceiverAddress_value, "lblReceiverAddress", 97, 134, INTEGERS[4], new Short((short) 76), 136
- });
- lblSenderName = insertLabel("lblSenderName",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblSenderName_value, "lblSenderName", 113, 69, INTEGERS[4], new Short((short) 77), 68
- });
- lblSenderStreet = insertLabel("lblSenderStreet",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblSenderStreet_value, "lblSenderStreet", 113, 82, INTEGERS[4], new Short((short) 78), 68
- });
- lblPostCodeCity = insertLabel("lblPostCodeCity",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblPostCodeCity_value, "lblPostCodeCity", 113, 97, INTEGERS[4], new Short((short) 79), 68
- });
- lblTitle4 = insertLabel("lblTitle4",
- new String[]
- {
- PropertyNames.FONT_DESCRIPTOR, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_MULTILINE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- fontDescriptor6, INTEGER_16, resources.reslblTitle4_value, Boolean.TRUE, "lblTitle4", 91, INTEGERS[8], INTEGERS[4], new Short((short) 92), 212
- });
- }
-
- public void buildStep5()
- {
- txtFooter = insertTextField("txtFooter", TXTFOOTER_TEXT_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_MULTILINE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- 47, HelpIds.getHelpIdString(HID + 41), Boolean.TRUE, "txtFooter", 97, INTEGER_40, INTEGERS[5], new Short((short) 41), 203
- });
- chkFooterNextPages = insertCheckBox("chkFooterNextPages", CHKFOOTERNEXTPAGES_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STATE, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 42), resources.reschkFooterNextPages_value, "chkFooterNextPages", 97, 92, new Short((short) 0), INTEGERS[5], new Short((short) 42), 202
- });
- chkFooterPageNumbers = insertCheckBox("chkFooterPageNumbers", CHKFOOTERPAGENUMBERS_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STATE, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 43), resources.reschkFooterPageNumbers_value, "chkFooterPageNumbers", 97, 106, new Short((short) 0), INTEGERS[5], new Short((short) 43), 201
- });
- lblFooter = insertLabel("lblFooter",
- new String[]
- {
- PropertyNames.FONT_DESCRIPTOR, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- fontDescriptor5, INTEGERS[8], resources.reslblFooter_value, "lblFooter", 97, 28, INTEGERS[5], new Short((short) 52), 116
- });
- lblTitle5 = insertLabel("lblTitle5",
- new String[]
- {
- PropertyNames.FONT_DESCRIPTOR, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_MULTILINE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- fontDescriptor6, INTEGER_16, resources.reslblTitle5_value, Boolean.TRUE, "lblTitle5", 91, INTEGERS[8], INTEGERS[5], new Short((short) 93), 212
- });
- }
-
- public void buildStep6()
- {
- txtTemplateName = insertTextField("txtTemplateName", TXTTEMPLATENAME_TEXT_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, "Text", PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGER_12, HelpIds.getHelpIdString(HID + 44), "txtTemplateName", 202, 56, INTEGERS[6], new Short((short) 44), resources.restxtTemplateName_value, 100
- });
- optCreateLetter = insertRadioButton("optCreateLetter", OPTCREATELETTER_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 45), resources.resoptCreateLetter_value, "optCreateLetter", 104, 111, INTEGERS[6], new Short((short) 50), 198
- });
- optMakeChanges = insertRadioButton("optMakeChanges", OPTMAKECHANGES_ITEM_CHANGED,
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], HelpIds.getHelpIdString(HID + 46), resources.resoptMakeChanges_value, "optMakeChanges", 104, 123, INTEGERS[6], new Short((short) 51), 198
- });
- lblFinalExplanation1 = insertLabel("lblFinalExplanation1",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_MULTILINE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- 26, resources.reslblFinalExplanation1_value, Boolean.TRUE, "lblFinalExplanation1", 97, 28, INTEGERS[6], new Short((short) 52), 205
- });
- lblProceed = insertLabel("lblProceed",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblProceed_value, "lblProceed", 97, 100, INTEGERS[6], new Short((short) 53), 204
- });
- lblFinalExplanation2 = insertLabel("lblFinalExplanation2",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_MULTILINE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- 33, resources.reslblFinalExplanation2_value, Boolean.TRUE, "lblFinalExplanation2", 104, 145, INTEGERS[6], new Short((short) 54), 199
- });
- ImageControl2 = insertImage("ImageControl2",
- new String[]
- {
- PropertyNames.PROPERTY_BORDER, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_IMAGEURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, "ScaleImage", PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- new Short((short) 0), INTEGERS[10], "private:resource/dbu/image/19205", "ImageControl2", 92, 145, Boolean.FALSE, INTEGERS[6], new Short((short) 66), INTEGERS[10]
- });
- lblTemplateName = insertLabel("lblTemplateName",
- new String[]
- {
- PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- INTEGERS[8], resources.reslblTemplateName_value, "lblTemplateName", 97, 58, INTEGERS[6], new Short((short) 82), 101
- });
- lblTitle6 = insertLabel("lblTitle6",
- new String[]
- {
- PropertyNames.FONT_DESCRIPTOR, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_MULTILINE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
- },
- new Object[]
- {
- fontDescriptor6, INTEGER_16, resources.reslblTitle6_value, Boolean.TRUE, "lblTitle6", 91, INTEGERS[8], INTEGERS[6], new Short((short) 94), 212
- });
-
- }
-}
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogConst.java b/wizards/com/sun/star/wizards/letter/LetterWizardDialogConst.java
deleted file mode 100644
index 0d345e94e538..000000000000
--- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogConst.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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;
-}
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogEvents.java b/wizards/com/sun/star/wizards/letter/LetterWizardDialogEvents.java
deleted file mode 100644
index fa9b7bf1a12a..000000000000
--- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogEvents.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * 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";
-}
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.java b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.java
deleted file mode 100644
index 740420e77dd4..000000000000
--- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.java
+++ /dev/null
@@ -1,1484 +0,0 @@
-/*
- * 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 java.util.List;
-import java.util.ArrayList;
-import com.sun.star.awt.VclWindowPeerAttribute;
-import com.sun.star.awt.XTextComponent;
-import com.sun.star.awt.XWindow;
-import com.sun.star.awt.XWindowPeer;
-import com.sun.star.beans.PropertyValue;
-import com.sun.star.container.NoSuchElementException;
-import com.sun.star.document.MacroExecMode;
-import com.sun.star.document.XDocumentProperties;
-import com.sun.star.document.XDocumentPropertiesSupplier;
-import com.sun.star.lang.WrappedTargetException;
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.task.XInteractionHandler;
-import com.sun.star.text.XTextDocument;
-import com.sun.star.text.XTextFrame;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Exception;
-import com.sun.star.uno.RuntimeException;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-import com.sun.star.util.CloseVetoException;
-import com.sun.star.util.XCloseable;
-import com.sun.star.wizards.common.Configuration;
-import com.sun.star.wizards.common.Desktop;
-import com.sun.star.wizards.common.FileAccess;
-import com.sun.star.wizards.common.HelpIds;
-import com.sun.star.wizards.common.Helper;
-import com.sun.star.wizards.common.NoValidPathException;
-import com.sun.star.wizards.common.PropertyNames;
-import com.sun.star.wizards.common.SystemDialog;
-import com.sun.star.wizards.document.OfficeDocument;
-import com.sun.star.wizards.text.TextFieldHandler;
-import com.sun.star.wizards.text.TextFrameHandler;
-import com.sun.star.wizards.text.ViewHandler;
-import com.sun.star.wizards.ui.PathSelection;
-import com.sun.star.wizards.ui.XPathSelectionListener;
-import com.sun.star.wizards.ui.event.DataAware;
-import com.sun.star.wizards.ui.event.RadioDataAware;
-import com.sun.star.wizards.ui.event.UnoDataAware;
-
-import com.sun.star.util.XSearchable;
-import com.sun.star.util.XSearchDescriptor;
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.text.*;
-import com.sun.star.wizards.common.TextElement;
-import com.sun.star.wizards.common.PlaceholderTextElement;
-
-import com.sun.star.beans.XPropertySet;
-
-public class LetterWizardDialogImpl extends LetterWizardDialog
-{
-
- protected void enterStep(int OldStep, int NewStep)
- {
- }
-
- protected void leaveStep(int OldStep, int NewStep)
- {
- }
- static LetterDocument myLetterDoc;
- static boolean running;
- XMultiServiceFactory xmsf;
- XTextDocument xTextDocument;
- PathSelection myPathSelection;
- CGLetterWizard myConfig;
- ArrayList<DataAware> mainDA = new ArrayList<DataAware>();
- ArrayList<DataAware> letterDA = new ArrayList<DataAware>();
- ArrayList<DataAware> businessDA = new ArrayList<DataAware>();
- String[][] BusinessFiles;
- String[][] OfficialFiles;
- String[][] PrivateFiles;
- String sTemplatePath;
- String sUserTemplatePath;
- String sBitmapPath;
- String sLetterPath;
- String sLetterLangPackPath;
- String sWorkPath;
- String sPath;
- boolean bEditTemplate;
- boolean bSaveSuccess = false;
- private boolean filenameChanged = false;
- LetterDocument.BusinessPaperObject BusCompanyLogo = null;
- LetterDocument.BusinessPaperObject BusCompanyAddress = null;
- LetterDocument.BusinessPaperObject BusCompanyAddressReceiver = null;
- LetterDocument.BusinessPaperObject BusFooter = null;
- final static int RM_TYPESTYLE = 1;
- final static int RM_BUSINESSPAPER = 2;
- final static int RM_ELEMENTS = 3;
- final static int RM_SENDERRECEIVER = 4;
- final static int RM_FOOTER = 5;
- final static int RM_FINALSETTINGS = 6;
-
- List<XTextRange> constRangeList = new ArrayList<XTextRange>();
- XTextRange trSubjectconst;
- TextElement teSubjectconst;
-
- public LetterWizardDialogImpl(XMultiServiceFactory xmsf)
- {
- super(xmsf);
- this.xmsf = xmsf;
- }
-
- public static void main(String args[])
- {
- //only being called when starting wizard remotely
- String ConnectStr = "uno:socket,host=127.0.0.1,port=8100;urp,negotiate=0,forcesynchronous=1;StarOffice.ServiceManager";
- XMultiServiceFactory xLocMSF = null;
- try
- {
- xLocMSF = Desktop.connect(ConnectStr);
- }
- catch (RuntimeException e)
- {
- e.printStackTrace();
- }
- catch (Exception e)
- {
- e.printStackTrace();
- }
- catch (java.lang.Exception e)
- {
- e.printStackTrace();
- }
- LetterWizardDialogImpl lw = new LetterWizardDialogImpl(xLocMSF);
- lw.startWizard(xLocMSF, null);
-
- }
-
- public void startWizard(XMultiServiceFactory xMSF, Object[] CurPropertyValue)
- {
-
- running = true;
- try
- {
- //Number of steps on WizardDialog:
- setMaxStep(6);
-
- //instatiate The Document Frame for the Preview
- myLetterDoc = new LetterDocument(xMSF, this);
-
- //create the dialog:
- drawNaviBar();
- buildStep1();
- buildStep2();
- buildStep3();
- buildStep4();
- buildStep5();
- buildStep6();
-
- initializePaths();
- initializeSalutation();
- initializeGreeting();
-
-
- //special Control for setting the save Path:
- insertPathSelectionControl();
-
- //load the last used settings from the registry and apply listeners to the controls:
- initConfiguration();
-
- initializeTemplates(xMSF);
-
- if (myConfig.cp_BusinessLetter.cp_Greeting.equals(PropertyNames.EMPTY_STRING))
- {
- myConfig.cp_BusinessLetter.cp_Greeting = resources.GreetingLabels[0];
- }
- if (myConfig.cp_BusinessLetter.cp_Salutation.equals(PropertyNames.EMPTY_STRING))
- {
- myConfig.cp_BusinessLetter.cp_Salutation = resources.SalutationLabels[0];
- }
- if (myConfig.cp_PrivateOfficialLetter.cp_Greeting.equals(PropertyNames.EMPTY_STRING))
- {
- myConfig.cp_PrivateOfficialLetter.cp_Greeting = resources.GreetingLabels[1];
- }
- if (myConfig.cp_PrivateOfficialLetter.cp_Salutation.equals(PropertyNames.EMPTY_STRING))
- {
- myConfig.cp_PrivateOfficialLetter.cp_Salutation = resources.SalutationLabels[1];
- }
- if (myConfig.cp_PrivateLetter.cp_Greeting.equals(PropertyNames.EMPTY_STRING))
- {
- myConfig.cp_PrivateLetter.cp_Greeting = resources.GreetingLabels[2];
- }
- if (myConfig.cp_PrivateLetter.cp_Salutation.equals(PropertyNames.EMPTY_STRING))
- {
- myConfig.cp_PrivateLetter.cp_Salutation = resources.SalutationLabels[2];
- }
-
- //update the dialog UI according to the loaded Configuration
- updateUI();
-
- if (myPathSelection.xSaveTextBox.getText().equalsIgnoreCase(PropertyNames.EMPTY_STRING))
- {
- myPathSelection.initializePath();
- }
-
- XWindow xContainerWindow = myLetterDoc.xFrame.getContainerWindow();
- XWindowPeer xWindowPeer = UnoRuntime.queryInterface(XWindowPeer.class, xContainerWindow);
- createWindowPeer(xWindowPeer);
-
- //add the Roadmap to the dialog:
- insertRoadmap();
-
- //load the last used document and apply last used settings:
- setConfiguration();
-
- //If the configuration does not define Greeting/Salutation yet choose a default
- setDefaultForGreetingAndSalutation();
-
- //disable funtionality that is not supported by the template:
- initializeElements();
-
- drawConstants();
-
- //disable the document, so that the user cannot change anything:
- myLetterDoc.xFrame.getComponentWindow().setEnable(false);
-
- executeDialog(myLetterDoc.xFrame);
- removeTerminateListener();
- closeDocument();
- running = false;
-
- }
- catch (Exception exception)
- {
- removeTerminateListener();
- exception.printStackTrace(System.err);
- running = false;
- }
- }
-
- public void cancelWizard()
- {
- xDialog.endExecute();
- running = false;
- }
-
- public boolean finishWizard()
- {
- switchToStep(getCurrentStep(), getMaxStep());
- try
- {
- //myLetterDoc.xTextDocument.lockControllers();
- FileAccess fileAccess = new FileAccess(xMSF);
- sPath = myPathSelection.getSelectedPath();
- if (sPath.equals(PropertyNames.EMPTY_STRING))
- {
- myPathSelection.triggerPathPicker();
- sPath = myPathSelection.getSelectedPath();
- }
- sPath = fileAccess.getURL(sPath);
-
- //first, if the filename was not changed, thus
- //it is coming from a saved session, check if the
- // file exists and warn the user.
- if (!filenameChanged)
- {
- if (fileAccess.exists(sPath, true))
- {
-
- int answer = SystemDialog.showMessageBox(xMSF, xControl.getPeer(), "MessBox", VclWindowPeerAttribute.YES_NO + VclWindowPeerAttribute.DEF_NO, resources.resOverwriteWarning);
- if (answer == 3) // user said: no, do not overwrite....
- {
- return false;
- }
- }
- }
- myLetterDoc.setWizardTemplateDocInfo(resources.resLetterWizardDialog_title, resources.resTemplateDescription);
- myLetterDoc.killEmptyUserFields();
- myLetterDoc.keepLogoFrame = (chkUseLogo.getState() != 0);
- if ((chkBusinessPaper.getState() != 0) && (chkPaperCompanyLogo.getState() != 0))
- {
- myLetterDoc.keepLogoFrame = false;
- }
- myLetterDoc.keepBendMarksFrame = (chkUseBendMarks.getState() != 0);
- myLetterDoc.keepLetterSignsFrame = (chkUseSigns.getState() != 0);
- myLetterDoc.keepSenderAddressRepeatedFrame = (chkUseAddressReceiver.getState() != 0);
-
- if (optBusinessLetter.getState())
- {
- if ((chkBusinessPaper.getState() != 0) && (chkCompanyReceiver.getState() != 0))
- {
- myLetterDoc.keepSenderAddressRepeatedFrame = false;
- }
- if ((chkBusinessPaper.getState() != 0) && (chkPaperCompanyAddress.getState() != 0))
- {
- myLetterDoc.keepAddressFrame = false;
- }
- }
-
- myLetterDoc.killEmptyFrames();
-
-
- bSaveSuccess = OfficeDocument.store(xMSF, xTextDocument, sPath, "writer8_template", false);
-
- if (bSaveSuccess)
- {
- saveConfiguration();
- XInteractionHandler xIH = UnoRuntime.queryInterface(XInteractionHandler.class, xMSF.createInstance("com.sun.star.comp.uui.UUIInteractionHandler"));
- PropertyValue loadValues[] = new PropertyValue[4];
- loadValues[0] = new PropertyValue();
- loadValues[0].Name = "AsTemplate";
- loadValues[1] = new PropertyValue();
- loadValues[1].Name = "MacroExecutionMode";
- loadValues[1].Value = new Short(MacroExecMode.ALWAYS_EXECUTE);
- loadValues[2] = new PropertyValue();
- loadValues[2].Name = "UpdateDocMode";
- loadValues[2].Value = new Short(com.sun.star.document.UpdateDocMode.FULL_UPDATE);
- loadValues[3] = new PropertyValue();
- loadValues[3].Name = "InteractionHandler";
- loadValues[3].Value = xIH;
-
- if (bEditTemplate)
- {
- loadValues[0].Value = Boolean.FALSE;
- }
- else
- {
- loadValues[0].Value = Boolean.TRUE;
- }
- Object oDoc = OfficeDocument.load(Desktop.getDesktop(xMSF), sPath, "_default", loadValues);
- XTextDocument xTextDocument = (com.sun.star.text.XTextDocument) oDoc;
- XMultiServiceFactory xDocMSF = UnoRuntime.queryInterface(XMultiServiceFactory.class, xTextDocument);
- ViewHandler myViewHandler = new ViewHandler(xDocMSF, xTextDocument);
- myViewHandler.setViewSetting("ZoomType", new Short(com.sun.star.view.DocumentZoomType.OPTIMAL));
- }
- else
- {
- //TODO: Error Handling
- }
- }
- catch (Exception e)
- {
- e.printStackTrace();
- }
- finally
- {
- xDialog.endExecute();
- running = false;
- }
- return true;
- }
-
- public void closeDocument()
- {
- try
- {
- //xComponent.dispose();
- XCloseable xCloseable = UnoRuntime.queryInterface(XCloseable.class, myLetterDoc.xFrame);
- xCloseable.close(false);
- }
- catch (CloseVetoException e)
- {
- e.printStackTrace();
- }
- }
-
- public void drawConstants()
- {
- constRangeList = searchFillInItems(1);
-
- XTextRange item = null;
-
- for (int i = 0; i < constRangeList.size(); i++)
- {
- item = constRangeList.get(i);
- String text = item.getString().trim().toLowerCase();
- if (text.equals(resources.resSubjectconstPlaceHolder))
- {
- teSubjectconst = new PlaceholderTextElement(item, resources.resSubjectconstPlaceHolder_value, "hint", myLetterDoc.xMSF);
- trSubjectconst = item;
- constRangeList.remove(i--);
- writeTitle(teSubjectconst,trSubjectconst,resources.resSubjectconstPlaceHolder_value);
- }
- }
- }
-
- public void clearConstants()
- {
- constRangeList.clear();
- trSubjectconst = null;
- teSubjectconst = null;
- }
-
- private void writeTitle(TextElement te, XTextRange tr, String text)
- {
- te.setText(text == null ? PropertyNames.EMPTY_STRING : text);
- te.write(tr);
- }
-
- public List<XTextRange> searchFillInItems(int type)
- {
- try
- {
- XSearchable xSearchable = UnoRuntime.queryInterface(XSearchable.class, xTextDocument);
- XSearchDescriptor sd = xSearchable.createSearchDescriptor();
-
- if(type == 0)
- {
- sd.setSearchString("<[^>]+>");
- }
- else if(type == 1)
- {
- sd.setSearchString("#[^#]+#");
- }
- sd.setPropertyValue("SearchRegularExpression", Boolean.TRUE);
- sd.setPropertyValue("SearchWords", Boolean.TRUE);
-
- XIndexAccess ia = xSearchable.findAll(sd);
-
- List<XTextRange> l = new ArrayList<XTextRange>(ia.getCount());
- for (int i = 0; i < ia.getCount(); i++)
- {
- try
- {
- l.add(UnoRuntime.queryInterface(XTextRange.class, ia.getByIndex(i)));
- }
- catch (Exception ex)
- {
- System.err.println("Nonfatal Error in finding fillins.");
- }
- }
- return l;
- }
- catch (Exception ex)
- {
- ex.printStackTrace();
- throw new IllegalArgumentException("Fatal Error: Loading template failed: searching fillins failed");
- }
- }
-
- public void optBusinessLetterItemChanged()
- {
- DataAware.setDataObject(letterDA, myConfig.cp_BusinessLetter, true);
- setControlProperty("lblBusinessStyle", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("lstBusinessStyle", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("chkBusinessPaper", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("lblPrivOfficialStyle", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lstPrivOfficialStyle", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lblPrivateStyle", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lstPrivateStyle", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- lstBusinessStyleItemChanged();
- enableSenderReceiver();
- setPossibleFooter(true);
- if (myPathSelection.xSaveTextBox.getText().equalsIgnoreCase(PropertyNames.EMPTY_STRING))
- {
- myPathSelection.initializePath();
- }
- }
-
- public void optPrivOfficialLetterItemChanged()
- {
- DataAware.setDataObject(letterDA, myConfig.cp_PrivateOfficialLetter, true);
- setControlProperty("lblBusinessStyle", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lstBusinessStyle", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("chkBusinessPaper", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lblPrivOfficialStyle", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("lstPrivOfficialStyle", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("lblPrivateStyle", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lstPrivateStyle", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- lstPrivOfficialStyleItemChanged();
- disableBusinessPaper();
- enableSenderReceiver();
- setPossibleFooter(true);
- if (myPathSelection.xSaveTextBox.getText().equalsIgnoreCase(PropertyNames.EMPTY_STRING))
- {
- myPathSelection.initializePath();
- }
- }
-
- public void optPrivateLetterItemChanged()
- {
- DataAware.setDataObject(letterDA, myConfig.cp_PrivateLetter, true);
- setControlProperty("lblBusinessStyle", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lstBusinessStyle", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("chkBusinessPaper", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lblPrivOfficialStyle", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lstPrivOfficialStyle", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lblPrivateStyle", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("lstPrivateStyle", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- lstPrivateStyleItemChanged();
- disableBusinessPaper();
- disableSenderReceiver();
- setPossibleFooter(false);
- if (myPathSelection.xSaveTextBox.getText().equalsIgnoreCase(PropertyNames.EMPTY_STRING))
- {
- myPathSelection.initializePath();
- }
- }
-
- public void optSenderPlaceholderItemChanged()
- {
- setControlProperty("lblSenderName", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lblSenderStreet", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lblPostCodeCity", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("txtSenderName", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("txtSenderStreet", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("txtSenderPostCode", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("txtSenderState", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("txtSenderCity", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- myLetterDoc.fillSenderWithUserData();
- }
-
- public void optSenderDefineItemChanged()
- {
- setControlProperty("lblSenderName", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("lblSenderStreet", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("lblPostCodeCity", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("txtSenderName", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("txtSenderStreet", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("txtSenderPostCode", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("txtSenderState", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("txtSenderCity", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- txtSenderNameTextChanged();
- txtSenderStreetTextChanged();
- txtSenderPostCodeTextChanged();
- txtSenderStateTextChanged();
- txtSenderCityTextChanged();
- }
-
- public void optCreateLetterItemChanged()
- {
- bEditTemplate = false;
- }
-
- public void optMakeChangesItemChanged()
- {
- bEditTemplate = true;
- }
-
- public void optReceiverPlaceholderItemChanged()
- {
- OfficeDocument.attachEventCall(xTextDocument, "OnNew", "StarBasic", "macro:///Template.Correspondence.Placeholder()");
- }
-
- public void optReceiverDatabaseItemChanged()
- {
- OfficeDocument.attachEventCall(xTextDocument, "OnNew", "StarBasic", "macro:///Template.Correspondence.Database()");
- }
-
- public void lstBusinessStyleItemChanged()
- {
- xTextDocument = myLetterDoc.loadAsPreview(BusinessFiles[1][lstBusinessStyle.getSelectedItemPos()], false);
- myLetterDoc.xTextDocument.lockControllers();
- initializeElements();
- chkBusinessPaperItemChanged();
- setElements(false);
- clearConstants();
- drawConstants();
- myLetterDoc.xTextDocument.unlockControllers();
- activate();
- }
-
- public void lstPrivOfficialStyleItemChanged()
- {
- xTextDocument = myLetterDoc.loadAsPreview(OfficialFiles[1][lstPrivOfficialStyle.getSelectedItemPos()], false);
- myLetterDoc.xTextDocument.lockControllers();
- initializeElements();
- setPossibleSenderData(true);
- setElements(false);
- clearConstants();
- drawConstants();
- myLetterDoc.xTextDocument.unlockControllers();
- activate();
- }
-
- public void lstPrivateStyleItemChanged()
- {
- xTextDocument = myLetterDoc.loadAsPreview(PrivateFiles[1][lstPrivateStyle.getSelectedItemPos()], false);
- myLetterDoc.xTextDocument.lockControllers();
- initializeElements();
- setElements(true);
- clearConstants();
- drawConstants();
- myLetterDoc.xTextDocument.unlockControllers();
- activate();
- }
-
- public void numLogoHeightTextChanged()
- {
- BusCompanyLogo.iHeight = (int) (numLogoHeight.getValue() * 1000);
- BusCompanyLogo.setFramePosition();
- }
-
- public void numLogoWidthTextChanged()
- {
- BusCompanyLogo.iWidth = (int) (numLogoWidth.getValue() * 1000);
- BusCompanyLogo.setFramePosition();
- }
-
- public void numLogoXTextChanged()
- {
- BusCompanyLogo.iXPos = (int) (numLogoX.getValue() * 1000);
- BusCompanyLogo.setFramePosition();
- }
-
- public void numLogoYTextChanged()
- {
- BusCompanyLogo.iYPos = (int) (numLogoY.getValue() * 1000);
- BusCompanyLogo.setFramePosition();
- }
-
- public void numAddressWidthTextChanged()
- {
- BusCompanyAddress.iWidth = (int) (numAddressWidth.getValue() * 1000);
- BusCompanyAddress.setFramePosition();
- }
-
- public void numAddressXTextChanged()
- {
- BusCompanyAddress.iXPos = (int) (numAddressX.getValue() * 1000);
- BusCompanyAddress.setFramePosition();
- }
-
- public void numAddressYTextChanged()
- {
- BusCompanyAddress.iYPos = (int) (numAddressY.getValue() * 1000);
- BusCompanyAddress.setFramePosition();
- }
-
- public void numAddressHeightTextChanged()
- {
- BusCompanyAddress.iHeight = (int) (numAddressHeight.getValue() * 1000);
- BusCompanyAddress.setFramePosition();
- }
-
- public void numFooterHeightTextChanged()
- {
- BusFooter.iHeight = (int) (numFooterHeight.getValue() * 1000);
- BusFooter.iYPos = myLetterDoc.DocSize.Height - BusFooter.iHeight;
- BusFooter.setFramePosition();
- }
-
- public void chkPaperCompanyLogoItemChanged()
- {
- if (chkPaperCompanyLogo.getState() != 0)
- {
- //minimal value is required, otherwise the frame creation fails
- if (numLogoWidth.getValue() == 0)
- {
- numLogoWidth.setValue(0.1);
- }
- if (numLogoHeight.getValue() == 0)
- {
- numLogoHeight.setValue(0.1);
- }
- BusCompanyLogo = myLetterDoc.new BusinessPaperObject("Company Logo", (int) (numLogoWidth.getValue() * 1000), (int) (numLogoHeight.getValue() * 1000), (int) (numLogoX.getValue() * 1000), (int) (numLogoY.getValue() * 1000));
- setControlProperty("numLogoHeight", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("lblCompanyLogoHeight", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("numLogoWidth", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("lblCompanyLogoWidth", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("numLogoX", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("lblCompanyLogoX", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("numLogoY", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("lblCompanyLogoY", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setPossibleLogo(false);
- }
- else
- {
- if (BusCompanyLogo != null)
- {
- BusCompanyLogo.removeFrame();
- }
- setControlProperty("numLogoHeight", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lblCompanyLogoHeight", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("numLogoWidth", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lblCompanyLogoWidth", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("numLogoX", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lblCompanyLogoX", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("numLogoY", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lblCompanyLogoY", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setPossibleLogo(true);
- }
- }
-
- public void chkPaperCompanyAddressItemChanged()
- {
- if (chkPaperCompanyAddress.getState() != 0)
- {
-// minimal value is required, otherwise the frame creation fails
- if (numAddressWidth.getValue() == 0)
- {
- numAddressWidth.setValue(0.1);
- }
- if (numAddressHeight.getValue() == 0)
- {
- numAddressHeight.setValue(0.1);
- }
- BusCompanyAddress = myLetterDoc.new BusinessPaperObject("Company Address", (int) (numAddressWidth.getValue() * 1000), (int) (numAddressHeight.getValue() * 1000), (int) (numAddressX.getValue() * 1000), (int) (numAddressY.getValue() * 1000));
- setControlProperty("numAddressHeight", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("lblCompanyAddressHeight", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("numAddressWidth", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("lblCompanyAddressWidth", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("numAddressX", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("lblCompanyAddressX", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("numAddressY", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setControlProperty("lblCompanyAddressY", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- if (myLetterDoc.hasElement("Sender Address"))
- {
- myLetterDoc.switchElement("Sender Address", (false));
- }
- if (chkCompanyReceiver.getState() != 0)
- {
- setPossibleSenderData(false);
- }
- }
- else
- {
- if (BusCompanyAddress != null)
- {
- BusCompanyAddress.removeFrame();
- }
- setControlProperty("numAddressHeight", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lblCompanyAddressHeight", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("numAddressWidth", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lblCompanyAddressWidth", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("numAddressX", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lblCompanyAddressX", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("numAddressY", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lblCompanyAddressY", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- if (myLetterDoc.hasElement("Sender Address"))
- {
- myLetterDoc.switchElement("Sender Address", (true));
- }
- setPossibleSenderData(true);
- if (optSenderDefine.getState())
- {
- optSenderDefineItemChanged();
- }
- if (optSenderPlaceholder.getState())
- {
- optSenderPlaceholderItemChanged();
- }
- }
- }
-
- public void chkCompanyReceiverItemChanged()
- {
- XTextFrame xReceiverFrame = null;
-
- if (chkCompanyReceiver.getState() != 0)
- {
- try
- {
- xReceiverFrame = TextFrameHandler.getFrameByName("Receiver Address", xTextDocument);
- Integer FrameWidth = (Integer) Helper.getUnoPropertyValue(xReceiverFrame, PropertyNames.PROPERTY_WIDTH);
- int iFrameWidth = FrameWidth.intValue();
- Integer FrameX = (Integer) Helper.getUnoPropertyValue(xReceiverFrame, "HoriOrientPosition");
- int iFrameX = FrameX.intValue();
- Integer FrameY = (Integer) Helper.getUnoPropertyValue(xReceiverFrame, "VertOrientPosition");
- int iFrameY = FrameY.intValue();
-
- //Height of the Company Address in the Receiver Field
- int iReceiverHeight = (int) (0.5 * 1000);
- BusCompanyAddressReceiver = myLetterDoc.new BusinessPaperObject(PropertyNames.SPACE, iFrameWidth, iReceiverHeight, iFrameX, (iFrameY - iReceiverHeight));
-
- setPossibleAddressReceiver(false);
- }
- catch (NoSuchElementException e)
- {
- // TODO Error Message: Template modified!
- e.printStackTrace();
- }
- catch (WrappedTargetException e)
- {
- e.printStackTrace();
- }
- if (chkPaperCompanyAddress.getState() != 0)
- {
- setPossibleSenderData(false);
- }
- }
- else
- {
- if (BusCompanyAddressReceiver != null)
- {
- BusCompanyAddressReceiver.removeFrame();
- }
- setPossibleAddressReceiver(true);
- setPossibleSenderData(true);
- if (optSenderDefine.getState())
- {
- optSenderDefineItemChanged();
- }
- if (optSenderPlaceholder.getState())
- {
- optSenderPlaceholderItemChanged();
- }
- }
- }
-
- public void chkPaperFooterItemChanged()
- {
-
- if (chkPaperFooter.getState() != 0)
- {
- //minimal value is required, otherwise the frame creation fails
- if (numFooterHeight.getValue() == 0)
- {
- numFooterHeight.setValue(0.1);
- }
- BusFooter = myLetterDoc.new BusinessPaperObject("Footer", myLetterDoc.DocSize.Width, (int) (numFooterHeight.getValue() * 1000), 0, (int) (myLetterDoc.DocSize.Height - (numFooterHeight.getValue() * 1000)));
- this.setControlProperty("numFooterHeight", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- this.setControlProperty("lblFooterHeight", PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- setPossibleFooter(false);
- }
- else
- {
- if (BusFooter != null)
- {
- BusFooter.removeFrame();
- }
- setControlProperty("numFooterHeight", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setControlProperty("lblFooterHeight", PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- setPossibleFooter(true);
- }
- }
-
- //switch Elements on/off -------------------------------------------------------
- public void chkUseLogoItemChanged()
- {
- try
- {
- if (myLetterDoc.hasElement("Company Logo"))
- {
- boolean logostatus = AnyConverter.toBoolean(getControlProperty("chkUseLogo", PropertyNames.PROPERTY_ENABLED)) && (chkUseLogo.getState() != 0);
- myLetterDoc.switchElement("Company Logo", logostatus);
- }
- }
- catch (Exception ex)
- {
- ex.printStackTrace();
- throw new IllegalArgumentException("Fatal Error: Loading template failed: searching fillins failed");
- }
- }
-
- public void chkUseAddressReceiverItemChanged()
- {
- try
- {
- if (myLetterDoc.hasElement("Sender Address Repeated"))
- {
- boolean rstatus = AnyConverter.toBoolean(getControlProperty("chkUseAddressReceiver", PropertyNames.PROPERTY_ENABLED)) && (chkUseAddressReceiver.getState() != 0);
- myLetterDoc.switchElement("Sender Address Repeated", rstatus);
- }
- }
- catch (Exception ex)
- {
- ex.printStackTrace();
- throw new IllegalArgumentException("Fatal Error: Loading template failed: searching fillins failed");
- }
- }
-
- public void chkUseSignsItemChanged()
- {
- if (myLetterDoc.hasElement("Letter Signs"))
- {
- myLetterDoc.switchElement("Letter Signs", (chkUseSigns.getState() != 0));
- }
- }
-
- public void chkUseSubjectItemChanged()
- {
- if (myLetterDoc.hasElement("Subject Line"))
- {
- myLetterDoc.switchElement("Subject Line", (chkUseSubject.getState() != 0));
- }
- }
-
- public void chkUseBendMarksItemChanged()
- {
- if (myLetterDoc.hasElement("Bend Marks"))
- {
- myLetterDoc.switchElement("Bend Marks", (chkUseBendMarks.getState() != 0));
- }
- }
-
- public void chkUseFooterItemChanged()
- {
- try
- {
- boolean bFooterPossible = (chkUseFooter.getState() != 0) && AnyConverter.toBoolean(getControlProperty("chkUseFooter", PropertyNames.PROPERTY_ENABLED));
-
- if (chkFooterNextPages.getState() != 0)
- {
- myLetterDoc.switchFooter("First Page", false, (chkFooterPageNumbers.getState() != 0), txtFooter.getText());
- myLetterDoc.switchFooter("Standard", bFooterPossible, (chkFooterPageNumbers.getState() != 0), txtFooter.getText());
- }
- else
- {
- myLetterDoc.switchFooter("First Page", bFooterPossible, (chkFooterPageNumbers.getState() != 0), txtFooter.getText());
- myLetterDoc.switchFooter("Standard", bFooterPossible, (chkFooterPageNumbers.getState() != 0), txtFooter.getText());
- }
-
- //enable/disable roadmap item for footer page
- XInterface BPaperItem = getRoadmapItemByID(RM_FOOTER);
- Helper.setUnoPropertyValue(BPaperItem, PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bFooterPossible));
-
- }
- catch (Exception exception)
- {
- exception.printStackTrace(System.err);
- }
- }
-
- public void chkFooterNextPagesItemChanged()
- {
- chkUseFooterItemChanged();
- }
-
- public void chkFooterPageNumbersItemChanged()
- {
- chkUseFooterItemChanged();
- }
-
- private void setPossibleFooter(boolean bState)
- {
- setControlProperty("chkUseFooter", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bState));
- chkUseFooterItemChanged();
- }
-
- private void setPossibleAddressReceiver(boolean bState)
- {
- if (myLetterDoc.hasElement("Sender Address Repeated"))
- {
- setControlProperty("chkUseAddressReceiver", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bState));
- chkUseAddressReceiverItemChanged();
- }
- }
-
- private void setPossibleLogo(boolean bState)
- {
- if (myLetterDoc.hasElement("Company Logo"))
- {
- setControlProperty("chkUseLogo", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bState));
- chkUseLogoItemChanged();
- }
- }
-
- public void txtFooterTextChanged()
- {
- chkUseFooterItemChanged();
- }
-
- public void txtSenderNameTextChanged()
- {
- TextFieldHandler myFieldHandler = new TextFieldHandler(myLetterDoc.xMSF, xTextDocument);
- myFieldHandler.changeUserFieldContent("Company", txtSenderName.getText());
- }
-
- public void txtSenderStreetTextChanged()
- {
- TextFieldHandler myFieldHandler = new TextFieldHandler(myLetterDoc.xMSF, xTextDocument);
- myFieldHandler.changeUserFieldContent("Street", txtSenderStreet.getText());
- }
-
- public void txtSenderCityTextChanged()
- {
- TextFieldHandler myFieldHandler = new TextFieldHandler(myLetterDoc.xMSF, xTextDocument);
- myFieldHandler.changeUserFieldContent("City", txtSenderCity.getText());
- }
-
- public void txtSenderPostCodeTextChanged()
- {
- TextFieldHandler myFieldHandler = new TextFieldHandler(myLetterDoc.xMSF, xTextDocument);
- myFieldHandler.changeUserFieldContent("PostCode", txtSenderPostCode.getText());
- }
-
- public void txtSenderStateTextChanged()
- {
- TextFieldHandler myFieldHandler = new TextFieldHandler(myLetterDoc.xMSF, xTextDocument);
- myFieldHandler.changeUserFieldContent(PropertyNames.PROPERTY_STATE, txtSenderState.getText());
- }
-
- public void txtTemplateNameTextChanged()
- {
- XDocumentPropertiesSupplier xDocPropsSuppl = UnoRuntime.queryInterface(XDocumentPropertiesSupplier.class, xTextDocument);
- XDocumentProperties xDocProps = xDocPropsSuppl.getDocumentProperties();
- String TitleName = txtTemplateName.getText();
- xDocProps.setTitle(TitleName);
- }
-
- public void chkUseSalutationItemChanged()
- {
- XTextComponent xTextComponent = UnoRuntime.queryInterface(XTextComponent.class, lstSalutation);
- myLetterDoc.switchUserField("Salutation", xTextComponent.getText(), (chkUseSalutation.getState() != 0));
- setControlProperty("lstSalutation", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(chkUseSalutation.getState() != 0));
- }
-
- public void lstSalutationItemChanged()
- {
- XTextComponent xTextComponent = UnoRuntime.queryInterface(XTextComponent.class, lstSalutation);
- myLetterDoc.switchUserField("Salutation", xTextComponent.getText(), (chkUseSalutation.getState() != 0));
- }
-
- public void lstSalutationTextChanged()
- {
- }
-
- public void chkUseGreetingItemChanged()
- {
- XTextComponent xTextComponent = UnoRuntime.queryInterface(XTextComponent.class, lstGreeting);
- myLetterDoc.switchUserField("Greeting", xTextComponent.getText(), (chkUseGreeting.getState() != 0));
- setControlProperty("lstGreeting", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(chkUseGreeting.getState() != 0));
- }
-
- private void setDefaultForGreetingAndSalutation()
- {
- XTextComponent xTextComponent;
- xTextComponent = UnoRuntime.queryInterface(XTextComponent.class, lstSalutation);
- if (xTextComponent.getText().equals(PropertyNames.EMPTY_STRING))
- {
- xTextComponent.setText(resources.SalutationLabels[0]);
- }
- xTextComponent = UnoRuntime.queryInterface(XTextComponent.class, lstGreeting);
- if (xTextComponent.getText().equals(PropertyNames.EMPTY_STRING))
- {
- xTextComponent.setText(resources.GreetingLabels[0]);
- }
- }
-
- public void lstGreetingItemChanged()
- {
- XTextComponent xTextComponent = UnoRuntime.queryInterface(XTextComponent.class, lstGreeting);
- myLetterDoc.switchUserField("Greeting", xTextComponent.getText(), (chkUseGreeting.getState() != 0));
- }
-
- public void lstGreetingTextChanged()
- {
- }
-
- // ----------------------------------------------------------------------------
- public void chkBusinessPaperItemChanged()
- {
- //enable/disable Roadmap Entry Business Paper
- if (chkBusinessPaper.getState() != 0)
- {
- enableBusinessPaper();
- }
- else
- {
- disableBusinessPaper();
- setPossibleSenderData(true);
- }
- }
-
- private void setPossibleSenderData(boolean bState)
- {
- setControlProperty("optSenderDefine", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bState));
- setControlProperty("optSenderPlaceholder", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bState));
- setControlProperty("lblSenderAddress", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bState));
- if (!bState)
- {
- setControlProperty("txtSenderCity", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bState));
- setControlProperty("txtSenderName", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bState));
- setControlProperty("txtSenderPostCode", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bState));
- setControlProperty("txtSenderStreet", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bState));
- setControlProperty("txtSenderCity", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bState));
- setControlProperty("txtSenderState", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bState));
- setControlProperty("lblSenderName", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bState));
- setControlProperty("lblSenderStreet", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bState));
- setControlProperty("lblPostCodeCity", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bState));
- }
- }
-
- private void enableSenderReceiver()
- {
- XInterface BPaperItem = getRoadmapItemByID(RM_SENDERRECEIVER);
- Helper.setUnoPropertyValue(BPaperItem, PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- }
-
- private void disableSenderReceiver()
- {
- XInterface BPaperItem = getRoadmapItemByID(RM_SENDERRECEIVER);
- Helper.setUnoPropertyValue(BPaperItem, PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- }
-
- private void enableBusinessPaper()
- {
- XInterface BPaperItem = getRoadmapItemByID(RM_BUSINESSPAPER);
- Helper.setUnoPropertyValue(BPaperItem, PropertyNames.PROPERTY_ENABLED, Boolean.TRUE);
- chkPaperCompanyLogoItemChanged();
- chkPaperCompanyAddressItemChanged();
- chkPaperFooterItemChanged();
- chkCompanyReceiverItemChanged();
- }
-
- private void disableBusinessPaper()
- {
- XInterface BPaperItem = getRoadmapItemByID(RM_BUSINESSPAPER);
- Helper.setUnoPropertyValue(BPaperItem, PropertyNames.PROPERTY_ENABLED, Boolean.FALSE);
- if (BusCompanyLogo != null)
- {
- BusCompanyLogo.removeFrame();
- }
- if (BusCompanyAddress != null)
- {
- BusCompanyAddress.removeFrame();
- }
- if (BusFooter != null)
- {
- BusFooter.removeFrame();
- }
- if (BusCompanyAddressReceiver != null)
- {
- BusCompanyAddressReceiver.removeFrame();
- }
- setPossibleAddressReceiver(true);
- setPossibleFooter(true);
- setPossibleLogo(true);
- if (myLetterDoc.hasElement("Sender Address"))
- {
- myLetterDoc.switchElement("Sender Address", (true));
- }
-
- }
-
- public void initializeSalutation()
- {
- setControlProperty("lstSalutation", PropertyNames.STRING_ITEM_LIST, resources.SalutationLabels);
- }
-
- public void initializeGreeting()
- {
- setControlProperty("lstGreeting", PropertyNames.STRING_ITEM_LIST, resources.GreetingLabels);
- }
-
- private CGLetter getCurrentLetter()
- {
- switch (myConfig.cp_LetterType)
- {
- case 0:
- return myConfig.cp_BusinessLetter;
- case 1:
- return myConfig.cp_PrivateOfficialLetter;
- case 2:
- return myConfig.cp_PrivateLetter;
- default:
- return null;
- }
- }
-
- private void initializePaths()
- {
- try
- {
- XInterface xPathInterface = (XInterface) xMSF.createInstance("com.sun.star.util.PathSettings");
- XPropertySet xPropertySet = UnoRuntime.queryInterface(XPropertySet.class, xPathInterface);
- sTemplatePath = ((String[]) xPropertySet.getPropertyValue("Template_user"))[0];
- sUserTemplatePath = FileAccess.getOfficePath(xMSF, "Template", "user", PropertyNames.EMPTY_STRING);
- sBitmapPath = FileAccess.combinePaths(xMSF, sTemplatePath, "/../wizard/bitmap");
- }
- catch (NoValidPathException e)
- {
- e.printStackTrace();
- }
- catch (Exception e)
- {
- e.printStackTrace();
- }
- }
-
- public boolean initializeTemplates(XMultiServiceFactory xMSF)
- {
-
- try
- {
- String sLetterPath = FileAccess.combinePaths(xMSF, sTemplatePath, "/../common/wizard/letter");
-
- BusinessFiles = FileAccess.getFolderTitles(xMSF, "bus", sLetterPath);
- OfficialFiles = FileAccess.getFolderTitles(xMSF, "off", sLetterPath);
- PrivateFiles = FileAccess.getFolderTitles(xMSF, "pri", sLetterPath);
-
- exchangeBusinessTitlesToLocalizedOnes();
- exchangeOfficialTitlesToLocalizedOnes();
- exchangePrivateTitlesToLocalizedOnes();
-
- setControlProperty("lstBusinessStyle", PropertyNames.STRING_ITEM_LIST, BusinessFiles[0]);
- setControlProperty("lstPrivOfficialStyle", PropertyNames.STRING_ITEM_LIST, OfficialFiles[0]);
- setControlProperty("lstPrivateStyle", PropertyNames.STRING_ITEM_LIST, PrivateFiles[0]);
-
- setControlProperty("lstBusinessStyle", PropertyNames.SELECTED_ITEMS, new short[]
- {
- 0
- });
- setControlProperty("lstPrivOfficialStyle", PropertyNames.SELECTED_ITEMS, new short[]
- {
- 0
- });
- setControlProperty("lstPrivateStyle", PropertyNames.SELECTED_ITEMS, new short[]
- {
- 0
- });
- }
- catch (com.sun.star.wizards.common.NoValidPathException e)
- {
- return false;
- }
- return true;
- }
-
- public void initializeElements()
- {
- setControlProperty("chkUseLogo", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(myLetterDoc.hasElement("Company Logo")));
- setControlProperty("chkUseBendMarks", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(myLetterDoc.hasElement("Bend Marks")));
- setControlProperty("chkUseAddressReceiver", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(myLetterDoc.hasElement("Sender Address Repeated")));
- setControlProperty("chkUseSubject", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(myLetterDoc.hasElement("Subject Line")));
- setControlProperty("chkUseSigns", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(myLetterDoc.hasElement("Letter Signs")));
- myLetterDoc.updateDateFields();
- }
-
- public void setConfiguration()
- {
- //set correct Configuration tree:
-
- if (optBusinessLetter.getState())
- {
- optBusinessLetterItemChanged();
- }
- if (optPrivOfficialLetter.getState())
- {
- optPrivOfficialLetterItemChanged();
- }
- if (optPrivateLetter.getState())
- {
- optPrivateLetterItemChanged();
- }
- }
-
- public void setElements(boolean privLetter)
- {
- //UI relevant:
- if (optSenderDefine.getState())
- {
- optSenderDefineItemChanged();
- }
- if (optSenderPlaceholder.getState())
- {
- optSenderPlaceholderItemChanged();
- }
- chkUseSignsItemChanged();
- chkUseSubjectItemChanged();
- chkUseSalutationItemChanged();
- chkUseGreetingItemChanged();
- chkUseBendMarksItemChanged();
- chkUseAddressReceiverItemChanged();
- txtTemplateNameTextChanged();
-
- //not UI relevant:
- if (optReceiverDatabase.getState() && !privLetter)
- {
- optReceiverDatabaseItemChanged();
- }
- if (optReceiverPlaceholder.getState() && !privLetter)
- {
- optReceiverPlaceholderItemChanged();
- }
- if (optCreateLetter.getState())
- {
- optCreateLetterItemChanged();
- }
- if (optMakeChanges.getState())
- {
- optMakeChangesItemChanged();
- }
- }
-
- public void insertRoadmap()
- {
- addRoadmap();
- int i = 0;
- i = insertRoadmapItem(0, true, resources.RoadmapLabels[RM_TYPESTYLE], RM_TYPESTYLE);
- i = insertRoadmapItem(i, false, resources.RoadmapLabels[RM_BUSINESSPAPER], RM_BUSINESSPAPER);
- i = insertRoadmapItem(i, true, resources.RoadmapLabels[RM_ELEMENTS], RM_ELEMENTS);
- i = insertRoadmapItem(i, true, resources.RoadmapLabels[RM_SENDERRECEIVER], RM_SENDERRECEIVER);
- i = insertRoadmapItem(i, false, resources.RoadmapLabels[RM_FOOTER], RM_FOOTER);
- i = insertRoadmapItem(i, true, resources.RoadmapLabels[RM_FINALSETTINGS], RM_FINALSETTINGS);
- setRoadmapInteractive(true);
- setRoadmapComplete(true);
- setCurrentRoadmapItemID((short) 1);
- }
-
- private class myPathSelectionListener implements XPathSelectionListener
- {
-
- public void validatePath()
- {
- if (myPathSelection.usedPathPicker)
- {
- filenameChanged = true;
- }
- myPathSelection.usedPathPicker = false;
- }
- }
-
- public void insertPathSelectionControl()
- {
- myPathSelection = new PathSelection(xMSF, this, PathSelection.TransferMode.SAVE, PathSelection.DialogTypes.FILE);
- myPathSelection.insert(6, 97, 70, 205, (short) 45, resources.reslblTemplatePath_value, true, HelpIds.getHelpIdString(HID + 47), HelpIds.getHelpIdString(HID + 48));
- myPathSelection.sDefaultDirectory = sUserTemplatePath;
- myPathSelection.sDefaultName = "myLetterTemplate.ott";
- myPathSelection.sDefaultFilter = "writer8_template";
- myPathSelection.addSelectionListener(new myPathSelectionListener());
- }
-
- public void initConfiguration()
- {
- try
- {
- myConfig = new CGLetterWizard();
- Object root = Configuration.getConfigurationRoot(xMSF, "/org.openoffice.Office.Writer/Wizards/Letter", false);
- myConfig.readConfiguration(root, "cp_");
- mainDA.add(RadioDataAware.attachRadioButtons(myConfig, "cp_LetterType", new Object[]
- {
- optBusinessLetter, optPrivOfficialLetter, optPrivateLetter
- }, null, true));
- mainDA.add(UnoDataAware.attachListBox(myConfig.cp_BusinessLetter, "cp_Style", lstBusinessStyle, null, true));
- mainDA.add(UnoDataAware.attachListBox(myConfig.cp_PrivateOfficialLetter, "cp_Style", lstPrivOfficialStyle, null, true));
- mainDA.add(UnoDataAware.attachListBox(myConfig.cp_PrivateLetter, "cp_Style", lstPrivateStyle, null, true));
- mainDA.add(UnoDataAware.attachCheckBox(myConfig.cp_BusinessLetter, "cp_BusinessPaper", chkBusinessPaper, null, true));
-
- CGLetter cgl = myConfig.cp_BusinessLetter;
-
- CGPaperElementLocation cgpl = myConfig.cp_BusinessLetter.cp_CompanyLogo;
- CGPaperElementLocation cgpa = myConfig.cp_BusinessLetter.cp_CompanyAddress;
-
- businessDA.add(UnoDataAware.attachCheckBox(cgpl, "cp_Display", chkPaperCompanyLogo, null, true));
- businessDA.add(UnoDataAware.attachNumericControl(cgpl, "cp_Width", numLogoWidth, null, true));
- businessDA.add(UnoDataAware.attachNumericControl(cgpl, "cp_Height", numLogoHeight, null, true));
- businessDA.add(UnoDataAware.attachNumericControl(cgpl, "cp_X", numLogoX, null, true));
- businessDA.add(UnoDataAware.attachNumericControl(cgpl, "cp_Y", numLogoY, null, true));
- businessDA.add(UnoDataAware.attachCheckBox(cgpa, "cp_Display", chkPaperCompanyAddress, null, true));
- businessDA.add(UnoDataAware.attachNumericControl(cgpa, "cp_Width", numAddressWidth, null, true));
- businessDA.add(UnoDataAware.attachNumericControl(cgpa, "cp_Height", numAddressHeight, null, true));
- businessDA.add(UnoDataAware.attachNumericControl(cgpa, "cp_X", numAddressX, null, true));
- businessDA.add(UnoDataAware.attachNumericControl(cgpa, "cp_Y", numAddressY, null, true));
-
- businessDA.add(UnoDataAware.attachCheckBox(cgl, "cp_PaperCompanyAddressReceiverField", chkCompanyReceiver, null, true));
- businessDA.add(UnoDataAware.attachCheckBox(cgl, "cp_PaperFooter", chkPaperFooter, null, true));
- businessDA.add(UnoDataAware.attachNumericControl(cgl, "cp_PaperFooterHeight", numFooterHeight, null, true));
-
- letterDA.add(UnoDataAware.attachCheckBox(cgl, "cp_PrintCompanyLogo", chkUseLogo, null, true));
- letterDA.add(UnoDataAware.attachCheckBox(cgl, "cp_PrintCompanyAddressReceiverField", chkUseAddressReceiver, null, true));
- letterDA.add(UnoDataAware.attachCheckBox(cgl, "cp_PrintLetterSigns", chkUseSigns, null, true));
- letterDA.add(UnoDataAware.attachCheckBox(cgl, "cp_PrintSubjectLine", chkUseSubject, null, true));
- letterDA.add(UnoDataAware.attachCheckBox(cgl, "cp_PrintSalutation", chkUseSalutation, null, true));
- letterDA.add(UnoDataAware.attachCheckBox(cgl, "cp_PrintBendMarks", chkUseBendMarks, null, true));
- letterDA.add(UnoDataAware.attachCheckBox(cgl, "cp_PrintGreeting", chkUseGreeting, null, true));
- letterDA.add(UnoDataAware.attachCheckBox(cgl, "cp_PrintFooter", chkUseFooter, null, true));
- letterDA.add(UnoDataAware.attachEditControl(cgl, "cp_Salutation", lstSalutation, null, true));
- letterDA.add(UnoDataAware.attachEditControl(cgl, "cp_Greeting", lstGreeting, null, true));
- letterDA.add(RadioDataAware.attachRadioButtons(cgl, "cp_SenderAddressType", new Object[]
- {
- optSenderDefine, optSenderPlaceholder
- }, null, true));
- letterDA.add(UnoDataAware.attachEditControl(cgl, "cp_SenderCompanyName", txtSenderName, null, true));
- letterDA.add(UnoDataAware.attachEditControl(cgl, "cp_SenderStreet", txtSenderStreet, null, true));
- letterDA.add(UnoDataAware.attachEditControl(cgl, "cp_SenderPostCode", txtSenderPostCode, null, true));
- letterDA.add(UnoDataAware.attachEditControl(cgl, "cp_SenderState", txtSenderState, null, true));
- letterDA.add(UnoDataAware.attachEditControl(cgl, "cp_SenderCity", txtSenderCity, null, true));
- letterDA.add(RadioDataAware.attachRadioButtons(cgl, "cp_ReceiverAddressType", new Object[]
- {
- optReceiverDatabase, optReceiverPlaceholder
- }, null, true));
- letterDA.add(UnoDataAware.attachEditControl(cgl, "cp_Footer", txtFooter, null, true));
- letterDA.add(UnoDataAware.attachCheckBox(cgl, "cp_FooterOnlySecondPage", chkFooterNextPages, null, true));
- letterDA.add(UnoDataAware.attachCheckBox(cgl, "cp_FooterPageNumbers", chkFooterPageNumbers, null, true));
- letterDA.add(RadioDataAware.attachRadioButtons(cgl, "cp_CreationType", new Object[]
- {
- optCreateLetter, optMakeChanges
- }, null, true));
- letterDA.add(UnoDataAware.attachEditControl(cgl, "cp_TemplateName", txtTemplateName, null, true));
- letterDA.add(UnoDataAware.attachEditControl(cgl, "cp_TemplatePath", myPathSelection.xSaveTextBox, null, true));
-
- }
- catch (Exception exception)
- {
- exception.printStackTrace();
- }
-
- }
-
- private void updateUI()
- {
- UnoDataAware.updateUI(mainDA);
- UnoDataAware.updateUI(letterDA);
- UnoDataAware.updateUI(businessDA);
- }
-
- public void saveConfiguration()
- {
- try
- {
- Object root = Configuration.getConfigurationRoot(xMSF, "/org.openoffice.Office.Writer/Wizards/Letter", true);
- myConfig.writeConfiguration(root, "cp_");
- Configuration.commit(root);
- }
- catch (Exception e)
- {
- e.printStackTrace();
- }
- }
-
- private void exchangeBusinessTitlesToLocalizedOnes()
- {
- for(int i = 0; i < BusinessFiles[0].length; ++i)
- {
- if( BusinessFiles[0][i].equals("Elegant") )
- {
- BusinessFiles[0][i] = resources.resBusinessElegantTitle;
- }
- else if( BusinessFiles[0][i].equals("Modern") )
- {
- BusinessFiles[0][i] = resources.resBusinessModernTitle;
- }
- else if( BusinessFiles[0][i].equals("Office") )
- {
- BusinessFiles[0][i] = resources.resBusinessOfficeTitle;
- }
- }
- }
-
- private void exchangeOfficialTitlesToLocalizedOnes()
- {
- for(int i = 0; i < OfficialFiles[0].length; ++i)
- {
- if( OfficialFiles[0][i].equals("Elegant") )
- {
- OfficialFiles[0][i] = resources.resOfficialElegantTitle;
- }
- else if( OfficialFiles[0][i].equals("Modern") )
- {
- OfficialFiles[0][i] = resources.resOfficialModernTitle;
- }
- else if( OfficialFiles[0][i].equals("Office") )
- {
- OfficialFiles[0][i] = resources.resOfficialOfficeTitle;
- }
- }
- }
-
- private void exchangePrivateTitlesToLocalizedOnes()
- {
- for(int i = 0; i < PrivateFiles[0].length; ++i)
- {
- if( PrivateFiles[0][i].equals("Bottle") )
- {
- PrivateFiles[0][i] = resources.resPrivateBottleTitle;
- }
- else if( PrivateFiles[0][i].equals("Mail") )
- {
- PrivateFiles[0][i] = resources.resPrivateMailTitle;
- }
- else if( PrivateFiles[0][i].equals("Marine") )
- {
- PrivateFiles[0][i] = resources.resPrivateMarineTitle;
- }
- else if( PrivateFiles[0][i].equals("Red Line") )
- {
- PrivateFiles[0][i] = resources.resPrivateRedLineTitle;
- }
- }
- }
-
-}
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.java b/wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.java
deleted file mode 100644
index 932b351039aa..000000000000
--- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.java
+++ /dev/null
@@ -1,224 +0,0 @@
-/*
- * 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;
-
-public class LetterWizardDialogResources extends Resource
-{
-
- final static String UNIT_NAME = "dbwizres";
- final static String MODULE_NAME = "dbw";
- final static int RID_LETTERWIZARDDIALOG_START = 3000;
- final static int RID_LETTERWIZARDGREETING_START = 3080;
- final static int RID_LETTERWIZARDSALUTATION_START = 3090;
- final static int RID_LETTERWIZARDROADMAP_START = 3100;
- final static int RID_LETTERWIZARDLANGUAGE_START = 3110;
- final static int RID_RID_COMMON_START = 500;
- protected String[] RoadmapLabels = new String[7];
- protected String[] SalutationLabels = new String[3];
- protected String[] GreetingLabels = new String[3];
- protected String[] LanguageLabels = new String[16];
- String resOverwriteWarning;
- String resTemplateDescription;
- String resLetterWizardDialog_title;
- String resLabel9_value;
- String resoptBusinessLetter_value;
- String resoptPrivOfficialLetter_value;
- String resoptPrivateLetter_value;
- String reschkBusinessPaper_value;
- String reschkPaperCompanyLogo_value;
- String reschkPaperCompanyAddress_value;
- String reschkPaperFooter_value;
- String reschkCompanyReceiver_value;
- String reschkUseLogo_value;
- String reschkUseAddressReceiver_value;
- String reschkUseSigns_value;
- String reschkUseSubject_value;
- String reschkUseSalutation_value;
- String reschkUseBendMarks_value;
- String reschkUseGreeting_value;
- String reschkUseFooter_value;
- String resoptSenderPlaceholder_value;
- String resoptSenderDefine_value;
- String resoptReceiverPlaceholder_value;
- String resoptReceiverDatabase_value;
- String reschkFooterNextPages_value;
- String reschkFooterPageNumbers_value;
- String restxtTemplateName_value;
- String resoptCreateLetter_value;
- String resoptMakeChanges_value;
- String reslblBusinessStyle_value;
- String reslblPrivOfficialStyle_value;
- String reslblPrivateStyle_value;
- String reslblIntroduction_value;
- String reslblLogoHeight_value;
- String reslblLogoWidth_value;
- String reslblLogoX_value;
- String reslblLogoY_value;
- String reslblAddressHeight_value;
- String reslblAddressWidth_value;
- String reslblAddressX_value;
- String reslblAddressY_value;
- String reslblFooterHeight_value;
- String reslblLetterNorm_value;
- String reslblSenderAddress_value;
- String reslblSenderName_value;
- String reslblSenderStreet_value;
- String reslblPostCodeCity_value;
- String reslblReceiverAddress_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 reslblTitle2_value;
- String reslblTitle4_value;
- String reslblTitle5_value;
- String reslblTitle6_value;
-
- String resSubjectconstPlaceHolder = "#subjectconst#";
- String resSubjectconstPlaceHolder_value;
-
- String resBusinessElegantTitle;
- String resBusinessModernTitle;
- String resBusinessOfficeTitle;
- String resOfficialElegantTitle;
- String resOfficialModernTitle;
- String resOfficialOfficeTitle;
- String resPrivateBottleTitle;
- String resPrivateMailTitle;
- String resPrivateMarineTitle;
- String resPrivateRedLineTitle;
-
- public LetterWizardDialogResources(XMultiServiceFactory xmsf)
- {
- super(xmsf, UNIT_NAME, MODULE_NAME);
-
- resLetterWizardDialog_title = getResText(RID_LETTERWIZARDDIALOG_START + 1);
- resLabel9_value = getResText(RID_LETTERWIZARDDIALOG_START + 2);
- resoptBusinessLetter_value = getResText(RID_LETTERWIZARDDIALOG_START + 3);
- resoptPrivOfficialLetter_value = getResText(RID_LETTERWIZARDDIALOG_START + 4);
- resoptPrivateLetter_value = getResText(RID_LETTERWIZARDDIALOG_START + 5);
- reschkBusinessPaper_value = getResText(RID_LETTERWIZARDDIALOG_START + 6);
- reschkPaperCompanyLogo_value = getResText(RID_LETTERWIZARDDIALOG_START + 7);
- reschkPaperCompanyAddress_value = getResText(RID_LETTERWIZARDDIALOG_START + 8);
- reschkPaperFooter_value = getResText(RID_LETTERWIZARDDIALOG_START + 9);
- reschkCompanyReceiver_value = getResText(RID_LETTERWIZARDDIALOG_START + 10);
- reschkUseLogo_value = getResText(RID_LETTERWIZARDDIALOG_START + 11);
- reschkUseAddressReceiver_value = getResText(RID_LETTERWIZARDDIALOG_START + 12);
- reschkUseSigns_value = getResText(RID_LETTERWIZARDDIALOG_START + 13);
- reschkUseSubject_value = getResText(RID_LETTERWIZARDDIALOG_START + 14);
- reschkUseSalutation_value = getResText(RID_LETTERWIZARDDIALOG_START + 15);
- reschkUseBendMarks_value = getResText(RID_LETTERWIZARDDIALOG_START + 16);
- reschkUseGreeting_value = getResText(RID_LETTERWIZARDDIALOG_START + 17);
- reschkUseFooter_value = getResText(RID_LETTERWIZARDDIALOG_START + 18);
- resoptSenderPlaceholder_value = getResText(RID_LETTERWIZARDDIALOG_START + 19);
- resoptSenderDefine_value = getResText(RID_LETTERWIZARDDIALOG_START + 20);
- resoptReceiverPlaceholder_value = getResText(RID_LETTERWIZARDDIALOG_START + 21);
- resoptReceiverDatabase_value = getResText(RID_LETTERWIZARDDIALOG_START + 22);
- reschkFooterNextPages_value = getResText(RID_LETTERWIZARDDIALOG_START + 23);
- reschkFooterPageNumbers_value = getResText(RID_LETTERWIZARDDIALOG_START + 24);
- restxtTemplateName_value = getResText(RID_LETTERWIZARDDIALOG_START + 25);
- resoptCreateLetter_value = getResText(RID_LETTERWIZARDDIALOG_START + 26);
- resoptMakeChanges_value = getResText(RID_LETTERWIZARDDIALOG_START + 27);
- reslblBusinessStyle_value = getResText(RID_LETTERWIZARDDIALOG_START + 28);
- reslblPrivOfficialStyle_value = getResText(RID_LETTERWIZARDDIALOG_START + 29);
- reslblPrivateStyle_value = getResText(RID_LETTERWIZARDDIALOG_START + 30);
- reslblIntroduction_value = getResText(RID_LETTERWIZARDDIALOG_START + 31);
- reslblLogoHeight_value = getResText(RID_LETTERWIZARDDIALOG_START + 32);
- reslblLogoWidth_value = getResText(RID_LETTERWIZARDDIALOG_START + 33);
- reslblLogoX_value = getResText(RID_LETTERWIZARDDIALOG_START + 34);
- reslblLogoY_value = getResText(RID_LETTERWIZARDDIALOG_START + 35);
- reslblAddressHeight_value = getResText(RID_LETTERWIZARDDIALOG_START + 36);
- reslblAddressWidth_value = getResText(RID_LETTERWIZARDDIALOG_START + 37);
- reslblAddressX_value = getResText(RID_LETTERWIZARDDIALOG_START + 38);
- reslblAddressY_value = getResText(RID_LETTERWIZARDDIALOG_START + 39);
- reslblFooterHeight_value = getResText(RID_LETTERWIZARDDIALOG_START + 40);
- reslblLetterNorm_value = getResText(RID_LETTERWIZARDDIALOG_START + 41);
- reslblSenderAddress_value = getResText(RID_LETTERWIZARDDIALOG_START + 42);
- reslblSenderName_value = getResText(RID_LETTERWIZARDDIALOG_START + 43);
- reslblSenderStreet_value = getResText(RID_LETTERWIZARDDIALOG_START + 44);
- reslblPostCodeCity_value = getResText(RID_LETTERWIZARDDIALOG_START + 45);
- reslblReceiverAddress_value = getResText(RID_LETTERWIZARDDIALOG_START + 46);
- reslblFooter_value = getResText(RID_LETTERWIZARDDIALOG_START + 47);
- reslblFinalExplanation1_value = getResText(RID_LETTERWIZARDDIALOG_START + 48);
- reslblFinalExplanation2_value = getResText(RID_LETTERWIZARDDIALOG_START + 49);
- reslblTemplateName_value = getResText(RID_LETTERWIZARDDIALOG_START + 50);
- reslblTemplatePath_value = getResText(RID_LETTERWIZARDDIALOG_START + 51);
- reslblProceed_value = getResText(RID_LETTERWIZARDDIALOG_START + 52);
- reslblTitle1_value = getResText(RID_LETTERWIZARDDIALOG_START + 53);
- reslblTitle3_value = getResText(RID_LETTERWIZARDDIALOG_START + 54);
- reslblTitle2_value = getResText(RID_LETTERWIZARDDIALOG_START + 55);
- reslblTitle4_value = getResText(RID_LETTERWIZARDDIALOG_START + 56);
- reslblTitle5_value = getResText(RID_LETTERWIZARDDIALOG_START + 57);
- reslblTitle6_value = getResText(RID_LETTERWIZARDDIALOG_START + 58);
-
- resSubjectconstPlaceHolder_value = getResText(RID_LETTERWIZARDDIALOG_START + 59);
-
- resBusinessElegantTitle = getResText(RID_LETTERWIZARDDIALOG_START + 60);
- resBusinessModernTitle = getResText(RID_LETTERWIZARDDIALOG_START + 61);
- resBusinessOfficeTitle = getResText(RID_LETTERWIZARDDIALOG_START + 62);
- resOfficialElegantTitle = getResText(RID_LETTERWIZARDDIALOG_START + 60);
- resOfficialModernTitle = getResText(RID_LETTERWIZARDDIALOG_START + 61);
- resOfficialOfficeTitle = getResText(RID_LETTERWIZARDDIALOG_START + 62);
- resPrivateBottleTitle = getResText(RID_LETTERWIZARDDIALOG_START + 63);
- resPrivateMailTitle = getResText(RID_LETTERWIZARDDIALOG_START + 64);
- resPrivateMarineTitle = getResText(RID_LETTERWIZARDDIALOG_START + 65);
- resPrivateRedLineTitle = getResText(RID_LETTERWIZARDDIALOG_START + 66);
-
- loadRoadmapResources();
- loadSalutationResources();
- loadGreetingResources();
- 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 < 7; i++)
- {
- RoadmapLabels[i] = getResText(RID_LETTERWIZARDROADMAP_START + i);
- }
- }
-
- private void loadSalutationResources()
- {
- for (int i = 1; i < 4; i++)
- {
- SalutationLabels[i - 1] = getResText(RID_LETTERWIZARDSALUTATION_START + i);
- }
- }
-
- private void loadGreetingResources()
- {
- for (int i = 1; i < 4; i++)
- {
- GreetingLabels[i - 1] = getResText(RID_LETTERWIZARDGREETING_START + i);
- }
- }
-}
diff --git a/wizards/com/sun/star/wizards/letter/LocaleCodes.java b/wizards/com/sun/star/wizards/letter/LocaleCodes.java
deleted file mode 100644
index ce5d14a07e45..000000000000
--- a/wizards/com/sun/star/wizards/letter/LocaleCodes.java
+++ /dev/null
@@ -1,192 +0,0 @@
-/*
- * 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;
- }
-}
diff --git a/wizards/com/sun/star/wizards/letter/MANIFEST.MF b/wizards/com/sun/star/wizards/letter/MANIFEST.MF
deleted file mode 100644
index a83d3a91d4f0..000000000000
--- a/wizards/com/sun/star/wizards/letter/MANIFEST.MF
+++ /dev/null
@@ -1,2 +0,0 @@
-RegistrationClassName: com.sun.star.wizards.letter.CallWizard
-UNO-Type-Path: