diff options
Diffstat (limited to 'wizards/com/sun/star/wizards/fax/FaxWizardDialogResources.java')
-rw-r--r-- | wizards/com/sun/star/wizards/fax/FaxWizardDialogResources.java | 78 |
1 files changed, 57 insertions, 21 deletions
diff --git a/wizards/com/sun/star/wizards/fax/FaxWizardDialogResources.java b/wizards/com/sun/star/wizards/fax/FaxWizardDialogResources.java index 7278fd6a4e14..ccaacae7ec91 100644 --- a/wizards/com/sun/star/wizards/fax/FaxWizardDialogResources.java +++ b/wizards/com/sun/star/wizards/fax/FaxWizardDialogResources.java @@ -1,9 +1,42 @@ +/* + ************************************************************************ + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2008 by Sun Microsystems, Inc. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: FaxWizardDialogResources.java,v $ + * + * $Revision: 1.3.192.1 $ + * + * 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. + * + ************************************************************************/ package com.sun.star.wizards.fax; import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.wizards.common.Resource; -public class FaxWizardDialogResources extends Resource { +public class FaxWizardDialogResources extends Resource +{ + final static String UNIT_NAME = "dbwizres"; final static String MODULE_NAME = "dbw"; final static int RID_FAXWIZARDDIALOG_START = 3200; @@ -12,15 +45,12 @@ public class FaxWizardDialogResources extends Resource { final static int RID_FAXWIZARDSALUTATION_START = 3290; final static int RID_FAXWIZARDROADMAP_START = 3300; final static int RID_RID_COMMON_START = 500; - protected String[] RoadmapLabels = new String[7]; protected String[] SalutationLabels = new String[4]; protected String[] GreetingLabels = new String[4]; protected String[] CommunicationLabels = new String[3]; - String resOverwriteWarning; String resTemplateDescription; - String resFaxWizardDialog_title; String resLabel9_value; String resoptBusinessFax_value; @@ -62,7 +92,8 @@ public class FaxWizardDialogResources extends Resource { String resoptReceiverDatabase_value; String resLabel2_value; - public FaxWizardDialogResources(XMultiServiceFactory xmsf) { + public FaxWizardDialogResources(XMultiServiceFactory xmsf) + { super(xmsf, UNIT_NAME, MODULE_NAME); /** * Delete the String, uncomment the getResText method @@ -115,36 +146,41 @@ public class FaxWizardDialogResources extends Resource { loadCommonResources(); } - private void loadCommonResources() { + private void loadCommonResources() + { resOverwriteWarning = getResText(RID_RID_COMMON_START + 19); resTemplateDescription = getResText(RID_RID_COMMON_START + 20); } - private void loadRoadmapResources() { - for (int i = 1; i < 6; i++) { + private void loadRoadmapResources() + { + for (int i = 1; i < 6; i++) + { RoadmapLabels[i] = getResText(RID_FAXWIZARDROADMAP_START + i); } } - private void loadSalutationResources() { - for (int i = 1; i < 5; i++) { - SalutationLabels[i - 1] = getResText(RID_FAXWIZARDSALUTATION_START - + i); + private void loadSalutationResources() + { + for (int i = 1; i < 5; i++) + { + SalutationLabels[i - 1] = getResText(RID_FAXWIZARDSALUTATION_START + i); } } - private void loadGreetingResources() { - for (int i = 1; i < 5; i++) { - GreetingLabels[i - 1] = getResText(RID_FAXWIZARDGREETING_START - + i); + private void loadGreetingResources() + { + for (int i = 1; i < 5; i++) + { + GreetingLabels[i - 1] = getResText(RID_FAXWIZARDGREETING_START + i); } } - private void loadCommunicationResources() { - for (int i = 1; i < 4; i++) { - CommunicationLabels[i - 1] = getResText(RID_FAXWIZARDCOMMUNICATION_START - + i); + private void loadCommunicationResources() + { + for (int i = 1; i < 4; i++) + { + CommunicationLabels[i - 1] = getResText(RID_FAXWIZARDCOMMUNICATION_START + i); } } - }
\ No newline at end of file |