You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ar...@apache.org on 2012/01/27 02:29:58 UTC

svn commit: r1236486 [23/43] - in /incubator/ooo/devtools/netbeansintegration: ./ build/ build/public-package-jars/ javahelp/ javahelp/org/ javahelp/org/openoffice/ javahelp/org/openoffice/extensions/ javahelp/org/openoffice/extensions/docs/ javahelp/o...

Added: incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/AddinWizardPanel1Project.java
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/AddinWizardPanel1Project.java?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/AddinWizardPanel1Project.java (added)
+++ incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/AddinWizardPanel1Project.java Fri Jan 27 01:29:33 2012
@@ -0,0 +1,120 @@
+/*************************************************************************
+ *
+ *  OpenOffice.org - a multi-platform office productivity suite
+ *
+ *  $RCSfile: AddinWizardPanel1Project.java,v $
+ *
+ *  $Revision: 1.3 $
+ *
+ *  last change: $Author: sg $ $Date: 2007/05/03 09:53:50 $
+ *
+ *  The Contents of this file are made available subject to
+ *  the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ *    GNU Lesser General Public License Version 2.1
+ *    =============================================
+ *    Copyright 2005 by Sun Microsystems, Inc.
+ *    901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ *    This library is free software; you can redistribute it and/or
+ *    modify it under the terms of the GNU Lesser General Public
+ *    License version 2.1, as published by the Free Software Foundation.
+ *
+ *    This library 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 for more details.
+ *
+ *    You should have received a copy of the GNU Lesser General Public
+ *    License along with this library; if not, write to the Free Software
+ *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ *    MA  02111-1307  USA
+ *
+ ************************************************************************/
+
+package org.openoffice.extensions.projecttemplates.calcaddin;
+
+import java.awt.Component;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.Set;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.ChangeListener;
+import org.openide.WizardDescriptor;
+import org.openide.WizardValidationException;
+import org.openide.util.HelpCtx;
+import org.openide.util.NbBundle;
+
+/**
+ * Panel just asking for basic info.
+ */
+public class AddinWizardPanel1Project implements WizardDescriptor.Panel,
+        WizardDescriptor.ValidatingPanel, WizardDescriptor.FinishablePanel {
+    
+    private WizardDescriptor wizardDescriptor;
+    private AddinPanelVisual1Project component;
+    
+    /** Creates a new instance of templateWizardPanel */
+    public AddinWizardPanel1Project() {
+    }
+    
+    public Component getComponent() {
+        if (component == null) {
+            component = new AddinPanelVisual1Project(this);
+            component.setName(NbBundle.getMessage(AddinWizardPanel1Project.class, "LBL_CreateProjectStep"));
+        }
+        return component;
+    }
+    
+    public HelpCtx getHelp() {
+        return new HelpCtx("org.openoffice.extensions.working.with.addins"); // NOI18N
+    }
+    
+    public boolean isValid() {
+        getComponent();
+        return component.valid(wizardDescriptor);
+    }
+    
+    private final Set<ChangeListener> listeners = new HashSet<ChangeListener>(1);
+    public final void addChangeListener(ChangeListener l) {
+        synchronized (listeners) {
+            listeners.add(l);
+        }
+    }
+    public final void removeChangeListener(ChangeListener l) {
+        synchronized (listeners) {
+            listeners.remove(l);
+        }
+    }
+    protected final void fireChangeEvent() {
+        Iterator it;
+        synchronized (listeners) {
+            it = new HashSet<ChangeListener>(listeners).iterator();
+        }
+        ChangeEvent ev = new ChangeEvent(this);
+        while (it.hasNext()) {
+            ((ChangeListener) it.next()).stateChanged(ev);
+        }
+    }
+    
+    public void readSettings(Object settings) {
+        wizardDescriptor = (WizardDescriptor) settings;
+        component.read(wizardDescriptor);
+    }
+    
+    public void storeSettings(Object settings) {
+        WizardDescriptor d = (WizardDescriptor) settings;
+        component.store(d);
+    }
+    
+    public boolean isFinishPanel() {
+        return false;
+    }
+    
+    public void validate() throws WizardValidationException {
+        getComponent();
+        component.validate(wizardDescriptor);
+    }
+    
+}

Added: incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/AddinWizardPanel2Description.java
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/AddinWizardPanel2Description.java?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/AddinWizardPanel2Description.java (added)
+++ incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/AddinWizardPanel2Description.java Fri Jan 27 01:29:33 2012
@@ -0,0 +1,120 @@
+/*************************************************************************
+ *
+ *  OpenOffice.org - a multi-platform office productivity suite
+ *
+ *  $RCSfile: AddinWizardPanel2Description.java,v $
+ *
+ *  $Revision: 1.3 $
+ *
+ *  last change: $Author: sg $ $Date: 2007/05/03 09:53:50 $
+ *
+ *  The Contents of this file are made available subject to
+ *  the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ *    GNU Lesser General Public License Version 2.1
+ *    =============================================
+ *    Copyright 2005 by Sun Microsystems, Inc.
+ *    901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ *    This library is free software; you can redistribute it and/or
+ *    modify it under the terms of the GNU Lesser General Public
+ *    License version 2.1, as published by the Free Software Foundation.
+ *
+ *    This library 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 for more details.
+ *
+ *    You should have received a copy of the GNU Lesser General Public
+ *    License along with this library; if not, write to the Free Software
+ *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ *    MA  02111-1307  USA
+ *
+ ************************************************************************/
+
+package org.openoffice.extensions.projecttemplates.calcaddin;
+
+import java.awt.Component;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.Set;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.ChangeListener;
+import org.openide.WizardDescriptor;
+import org.openide.WizardValidationException;
+import org.openide.util.HelpCtx;
+import org.openide.util.NbBundle;
+
+/**
+ * Panel just asking for basic info.
+ */
+public class AddinWizardPanel2Description implements WizardDescriptor.Panel,
+        WizardDescriptor.ValidatingPanel, WizardDescriptor.FinishablePanel {
+    
+    private WizardDescriptor wizardDescriptor;
+    private AddinPanelVisual2Description component;
+    
+    /** Creates a new instance of templateWizardPanel */
+    public AddinWizardPanel2Description() {
+    }
+    
+    public Component getComponent() {
+        if (component == null) {
+            component = new AddinPanelVisual2Description(this);
+            component.setName(NbBundle.getMessage(AddinWizardPanel1Project.class, "LBL_CalcAddinEditor"));
+        }
+        return component;
+    }
+    
+    public HelpCtx getHelp() {
+        return new HelpCtx("org.openoffice.extensions.working.with.addins"); // NOI18N
+    }
+    
+    public boolean isValid() {
+        getComponent();
+        return component.valid(wizardDescriptor);
+    }
+    
+    private final Set<ChangeListener> listeners = new HashSet<ChangeListener>(1);
+    public final void addChangeListener(ChangeListener l) {
+        synchronized (listeners) {
+            listeners.add(l);
+        }
+    }
+    public final void removeChangeListener(ChangeListener l) {
+        synchronized (listeners) {
+            listeners.remove(l);
+        }
+    }
+    protected final void fireChangeEvent() {
+        Iterator it;
+        synchronized (listeners) {
+            it = new HashSet<ChangeListener>(listeners).iterator();
+        }
+        ChangeEvent ev = new ChangeEvent(this);
+        while (it.hasNext()) {
+            ((ChangeListener) it.next()).stateChanged(ev);
+        }
+    }
+    
+    public void readSettings(Object settings) {
+        wizardDescriptor = (WizardDescriptor) settings;
+        component.read(wizardDescriptor);
+    }
+    
+    public void storeSettings(Object settings) {
+        WizardDescriptor d = (WizardDescriptor) settings;
+        component.store(d);
+    }
+    
+    public boolean isFinishPanel() {
+        return true;
+    }
+    
+    public void validate() throws WizardValidationException {
+        getComponent();
+        component.validate(wizardDescriptor);
+    }
+    
+}

Added: incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/Bundle.properties
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/Bundle.properties?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/Bundle.properties (added)
+++ incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/Bundle.properties Fri Jan 27 01:29:33 2012
@@ -0,0 +1,187 @@
+Templates/Project/org-openoffice-extensions/AddinProject=OpenOffice.org Calc Add-In
+
+LBL_CreateProjectStep=Create a new OpenOffice.org Calc Add-In project
+LBL_CreateClassStep=Define Add-In name
+LBL_CalcAddinEditor=Define Functions and Description with Localization
+
+#AddInPanelVisual1Project
+LBL_ProjectName=Project &Name\:
+LBL_ProjectLocation=Project &Location\:
+LBL_ProjectFolder=Project &Folder\:
+LBL_BUTTON_Browse=Br&owse...
+LB_CalcAddinName=Calc &Add-In Name\:
+LB_PackageName=Java &Package\:
+CB_Backward_Compatibility=Create &backward compatible Calc Add-In
+LB_CreatedFiles=Created Files\:
+LB_FileChooserTitle=Select Project Location
+LB_Error_ProjectName=Project Name is not a valid folder name.
+LB_Error_ProjectFolderPath=Project Folder is not a valid path.
+LB_Error_CreateProjectFolder=Project Folder cannot be created.
+LB_Error_ProjectFolderNotEmpty=Project Folder already exists and is not empty.
+LB_Error_AddInClassName=Add-In Name is not a valid add-in class name.
+LB_Error_PackageName=Package Name is not a valid name.
+LB_Error_FunctionMissing=There has to be at least one function.
+LB_Error_FunctionUniqueName=Every function must have a unique name.
+LB_Error_LanguageMissing=There has to be at least one language for descriptions.
+LB_Error_ParameterUniqueName=Every parameter must have a unique name.
+
+LB_LocalizedProperty=Localized Property
+# tooltip texts
+TF_ProjectName_Tooltip=The name of the newly created project (also used as project folder name)
+TF_CalcAddinName_Tooltip=The name of the Calc Add-In which is used as base for an UNO IDL service and interface name, and the implementation classname
+TF_PackageName_Tooltip=The Java package name which is mapped to modules in UNO IDL
+TF_ProjectLocation_Tooltip=The path to the directory where the project will be created
+TF_ProjectFolder_Tooltip=The final destination folder of the new project
+TF_Exception_Type_Tooltip=The exceptions of this function
+BUTTON_Browse_Tooltip=Select a folder where the project will be created
+CB_Backward_Compatibility_Tooltip=Create a Calc Add-In that is compatible with OpenOffice.org versions older than OpenOffice.org 2.0.4
+
+TF_Function_DisplayName_Tooltip=Add your localized display name of the function
+TF_Function_Description_Tooltip=Add your localized description of the function
+TF_Function_CompatibilityName_Tooltip=Add your localized compatibility name of the function
+TF_Function_Name_Tooltip=The name of your function
+TF_Function_Type_Tooltip=The return value of the function
+TF_Function_Category_Tooltip=The category of the function
+
+TF_Parameter_DisplayName_Tooltip=Add your localized display name of the parameter
+TF_Parameter_Description_Tooltip=Add your localized description of the parameter
+TF_Parameter_Name_Tooltip=The name of your parameter
+TF_Parameter_Type_Tooltip=The type value of the parameter
+
+# property entries
+PROP_Function_Description=<description>
+
+# button labels
+LBL_BUTTON_AddFunction=Add &Function
+LBL_BUTTON_AddParameter=Add &Parameter
+LBL_BUTTON_Delete=&Delete
+LBL_BUTTON_AddLanguage=Add &Language...
+LBL_BUTTON_DeleteLanguage=D&elete Language...
+
+# LanguageHandlingDialog resources
+LBL_Language=Available &Languages\:
+LBL_Add_Title=Add Localization
+LBL_Delete_Title=Delete Language
+
+BUTTON_AddFunction_Tooltip=Add a new add-in function
+BUTTON_AddParam_Tooltip=Add a new parameter to the currently selected add-in function
+BUTTON_Delete_Tooltip=Delete either the selected parameter or the whole add-in function
+BUTTON_AddLang_Tooltip=Add a new language to all localized add-in function properties
+BUTTON_DeleteLang_Tooltip=Delete the selected language from all localized properties from all functions
+
+# templates for files created with the new AddIn project
+
+# a template for idl interfaces
+# NOI18N
+InterfaceTemplate=\
+/*\
+\n * X$!MainClass!.idl\
+\n *\
+\n * Created on $!TimeStamp!\
+\n *\
+\n */\
+\n$!CR!#ifndef _$!PackageNameUnderscore!_X$!MainClass!_\
+\n#define _$!PackageNameUnderscore!_X$!MainClass!_\
+\n$!CR!#include <com/sun/star/lang/XLocalizable.idl>\
+\n$!Import!\
+\n$!PackageNameModule!\
+\n    interface X$!MainClass! {\n\
+\n        /// used to set an add-in locale for formatting reasons for example\
+\n        [optional] interface ::com::sun::star::lang::XLocalizable;\
+\n        $!Methods!\
+\n    };\
+\n$!CloseModule!\
+\n$!CR!#endif
+
+# a template for idl services
+# NOI18N
+ServiceTemplate=\
+/*\
+\n * $!MainClass!.idl\
+\n *\
+\n * Created on $!TimeStamp!\
+\n *\
+\n */\
+\n$!CR!#ifndef _$!PackageNameUnderscore!_$!MainClass!_\
+\n#define _$!PackageNameUnderscore!_$!MainClass!_\
+\n$!CR!#include \"X$!MainClass!.idl\"\
+\n$!CR!$!PackageNameModule!\
+\n    service $!MainClass! : X$!MainClass!;\
+\n$!CloseModule!\
+\n$!CR!#endif
+
+# a template in three parts for the xcu-files due to its complexity
+
+# first, the addin
+# NOI18N
+AddInTemplate=\
+<?xml version='1.0' encoding='UTF-8'?>\
+\n$!CR!<oor:component-data xmlns:oor=\"http://openoffice.org/2001/registry\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" oor:name=\"CalcAddIns\" oor:package=\"org.openoffice.Office\">\
+\n    <node oor:name=\"AddInInfo\">\
+\n        <node oor:name=\"$!PackageName!.$!MainClass!\" oor:op=\"replace\">\
+\n            <node oor:name=\"AddInFunctions\">\
+\n$!xcuFunctions!\
+\n            </node>\
+\n        </node>\
+\n    </node>\
+\n</oor:component-data>
+
+# function template
+# NOI18N
+FunctionTemplate=\
+\n                <node oor:name=\"$!xcuFunctionName!\" oor:op=\"replace\">\
+\n                    <prop oor:name=\"DisplayName\">\
+\n                        <value xml:lang=\"$!Lang!\">$!xcuFunctionDisplayName!</value>\
+\n                    </prop>\
+\n                    <prop oor:name=\"Description\">\
+\n                        <value xml:lang=\"$!Lang!\">$!xcuFunctionDescription!</value>\
+\n                    </prop>\
+\n                    <prop oor:name=\"Category\">\
+\n                        <value>$!xcuCategory!</value>\
+\n                    </prop>\
+\n                    <prop oor:name=\"CompatibilityName\">\
+\n                        <value xml:lang=\"$!Lang!\">$!xcuFunctionCompatibilityName!</value>\
+\n                    </prop>\
+\n                    <node oor:name=\"Parameters\">\
+\n$!\xcuParameters!\
+\n                    </node>\
+\n                </node>
+
+# parameter template
+# NOI18N
+ParameterTemplate=\
+\n                        <node oor:name=\"$!xcuParameterName!\" oor:op=\"replace\">\
+\n                            <prop oor:name=\"DisplayName\">\
+\n                                <value xml:lang=\"$!Lang!\">$!xcuParameterDisplayName!</value>\
+\n                            </prop>\
+\n                            <prop oor:name=\"Description\">\
+\n                                <value xml:lang=\"$!Lang!\">$!xcuParameterDescription!</value>\
+\n                            </prop>\
+\n                        </node>
+
+# Calc Add_In configuration schema
+# NOI18N
+AddInSchema=\
+<?xml version='1.0' encoding='UTF-8'?>\n\
+<oor:component-schema oor:name="CalcAddIns" oor:package="org.openoffice.Office" xml:lang="en-US" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n\
+    <templates>\n\
+        <group oor:name="AddInParameter" >\n\
+            <prop oor:name="DisplayName" oor:type="xs:string" oor:localized="true"/>\n\
+            <prop oor:name="Description" oor:type="xs:string" oor:localized="true"/>\n\
+        </group>\n\
+        <group oor:name="AddInFunction">\n\
+            <prop oor:name="DisplayName" oor:type="xs:string" oor:localized="true"/>\n\
+            <prop oor:name="Description" oor:type="xs:string" oor:localized="true"/>\n\
+            <prop oor:name="Category" oor:type="xs:string"/>\n\
+            <prop oor:name="CategoryDisplayName" oor:type="xs:string" oor:localized="true"/>\n\
+            <prop oor:name="CompatibilityName" oor:type="xs:string" oor:localized="true"/>\n\
+            <set oor:name="Parameters" oor:node-type="AddInParameter"/>\n\
+        </group>\n\
+        <group oor:name="AddIn">\n\
+            <set oor:name="AddInFunctions" oor:node-type="AddInFunction"/>\n\
+        </group>\n\
+    </templates>\n\
+    <component>\n\
+        <set oor:name="AddInInfo" oor:node-type="AddIn" />\n\
+    </component>\n\
+</oor:component-schema>\n

Added: incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/Bundle_ja.properties
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/Bundle_ja.properties?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/Bundle_ja.properties (added)
+++ incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/Bundle_ja.properties Fri Jan 27 01:29:33 2012
@@ -0,0 +1,346 @@
+# Templates/Project/org-openoffice-extensions/AddinProject=OpenOffice.org Calc Add-In
+Templates/Project/org-openoffice-extensions/AddinProject=OpenOffice.org Calc \u30a2\u30c9\u30a4\u30f3
+
+# LBL_CreateProjectStep=Create a new OpenOffice.org Calc Add-In project
+LBL_CreateProjectStep=\u65b0\u3057\u3044 OpenOffice.org Calc \u30a2\u30c9\u30a4\u30f3\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210
+# LBL_CreateClassStep=Define Add-In name
+LBL_CreateClassStep=\u30a2\u30c9\u30a4\u30f3\u540d\u3092\u5b9a\u7fa9
+# LBL_CalcAddinEditor=Define Functions and Description with Localization
+LBL_CalcAddinEditor=\u95a2\u6570\u3068\u30ed\u30fc\u30ab\u30ea\u30bc\u30fc\u30b7\u30e7\u30f3\u3055\u308c\u305f\u8aac\u660e\u3092\u5b9a\u7fa9
+
+#AddInPanelVisual1Project
+# LBL_ProjectName=Project &Name\:
+LBL_ProjectName=\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d(&N)\:
+# LBL_ProjectLocation=Project &Location\:
+LBL_ProjectLocation=\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u5834\u6240(&L)\:
+# LBL_ProjectFolder=Project &Folder\:
+LBL_ProjectFolder=\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0(&F)\:
+# LBL_BUTTON_Browse=Br&owse...
+LBL_BUTTON_Browse=\u53c2\u7167(&O)...
+# LB_CalcAddinName=Calc &Add-In Name\:
+LB_CalcAddinName=Calc \u30a2\u30c9\u30a4\u30f3\u540d(&A)\:
+# LB_PackageName=Java &Package\:
+LB_PackageName=Java \u30d1\u30c3\u30b1\u30fc\u30b8(&P)\:
+# CB_Backward_Compatibility=Create &backward compatible Calc Add-In
+CB_Backward_Compatibility=\u4e0b\u4f4d\u4e92\u63db\u6027\u306e\u3042\u308b Calc \u30a2\u30c9\u30a4\u30f3\u3092\u4f5c\u6210(&B)
+# LB_CreatedFiles=Created Files\:
+LB_CreatedFiles=\u4f5c\u6210\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\:
+# LB_FileChooserTitle=Select Project Location
+LB_FileChooserTitle=\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u5834\u6240\u3092\u9078\u629e
+# LB_Error_ProjectName=Project Name is not a valid folder name.
+LB_Error_ProjectName=\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u304c\u6709\u52b9\u306a\u30d5\u30a9\u30eb\u30c0\u540d\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002
+# LB_Error_ProjectFolderPath=Project Folder is not a valid path.
+LB_Error_ProjectFolderPath=\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u304c\u4e0d\u6b63\u306a\u30d1\u30b9\u3067\u3059\u3002
+# LB_Error_CreateProjectFolder=Project Folder cannot be created.
+LB_Error_CreateProjectFolder=\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3067\u304d\u307e\u305b\u3093\u3002
+# LB_Error_ProjectFolderNotEmpty=Project Folder already exists and is not empty.
+LB_Error_ProjectFolderNotEmpty=\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u306f\u3059\u3067\u306b\u5b58\u5728\u3057\u3001\u7a7a\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002
+# LB_Error_AddInClassName=Add-In Name is not a valid add-in class name.
+LB_Error_AddInClassName=\u30a2\u30c9\u30a4\u30f3\u540d\u304c\u6709\u52b9\u306a\u30a2\u30c9\u30a4\u30f3\u30af\u30e9\u30b9\u540d\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002
+# LB_Error_PackageName=Package Name is not a valid name.
+LB_Error_PackageName=\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u304c\u6709\u52b9\u306a\u540d\u524d\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002
+# LB_Error_FunctionMissing=There has to be at least one function.
+LB_Error_FunctionMissing=\u5c11\u306a\u304f\u3068\u3082 1 \u3064\u306e\u95a2\u6570\u304c\u5fc5\u8981\u3067\u3059\u3002
+# LB_Error_FunctionUniqueName=Every function must have a unique name.
+LB_Error_FunctionUniqueName=\u3059\u3079\u3066\u306e\u95a2\u6570\u306f\u4e00\u610f\u306e\u540d\u524d\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002
+# LB_Error_LanguageMissing=There has to be at least one language for descriptions.
+LB_Error_LanguageMissing=\u8aac\u660e\u306b\u306f\u5c11\u306a\u304f\u3068\u3082 1 \u3064\u306e\u8a00\u8a9e\u304c\u5fc5\u8981\u3067\u3059\u3002
+# LB_Error_ParameterUniqueName=Every parameter must have a unique name.
+LB_Error_ParameterUniqueName=\u5404\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u4e00\u610f\u306e\u540d\u524d\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002
+
+# LB_LocalizedProperty=Localized Property
+LB_LocalizedProperty=\u30ed\u30fc\u30ab\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u30fc
+# tooltip texts
+# TF_ProjectName_Tooltip=The name of the newly created project (also used as project folder name)
+TF_ProjectName_Tooltip=\u65b0\u3057\u304f\u4f5c\u6210\u3055\u308c\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u540d\u524d (\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u540d\u3068\u3057\u3066\u3082\u4f7f\u7528)
+# TF_CalcAddinName_Tooltip=The name of the Calc Add-In which is used as base for an UNO IDL service and interface name, and the implementation classname
+TF_CalcAddinName_Tooltip=UNO IDL \u30b5\u30fc\u30d3\u30b9\u3068\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u540d\u306e\u30d9\u30fc\u30b9\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u308b Calc \u30a2\u30c9\u30a4\u30f3\u306e\u540d\u524d\u3001\u304a\u3088\u3073\u5b9f\u88c5\u30af\u30e9\u30b9\u540d
+# TF_PackageName_Tooltip=The Java package name which is mapped to modules in UNO IDL
+TF_PackageName_Tooltip=UNO IDL \u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u30de\u30c3\u30d7\u3055\u308c\u308b Java \u30d1\u30c3\u30b1\u30fc\u30b8\u540d
+# TF_ProjectLocation_Tooltip=The path to the directory where the project will be created
+TF_ProjectLocation_Tooltip=\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u6210\u3055\u308c\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u306e\u30d1\u30b9
+# TF_ProjectFolder_Tooltip=The final destination folder of the new project
+TF_ProjectFolder_Tooltip=\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u6700\u7d42\u7684\u306a\u5c55\u958b\u5148\u30d5\u30a9\u30eb\u30c0
+# TF_Exception_Type_Tooltip=The exceptions of this function
+TF_Exception_Type_Tooltip=\u3053\u306e\u95a2\u6570\u306e\u4f8b\u5916
+# BUTTON_Browse_Tooltip=Select a folder where the project will be created
+BUTTON_Browse_Tooltip=\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u9078\u629e
+# CB_Backward_Compatibility_Tooltip=Create a Calc Add-In that is compatible with OpenOffice.org versions older than OpenOffice.org 2.0.4
+CB_Backward_Compatibility_Tooltip=OpenOffice.org 2.0.4 \u3088\u308a\u3082\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e OpenOffice.org \u3068\u4e92\u63db\u6027\u306e\u3042\u308b Calc \u30a2\u30c9\u30a4\u30f3\u3092\u4f5c\u6210
+
+# TF_Function_DisplayName_Tooltip=Add your localized display name of the function
+TF_Function_DisplayName_Tooltip=\u95a2\u6570\u306e\u30ed\u30fc\u30ab\u30e9\u30a4\u30ba\u3055\u308c\u305f\u8868\u793a\u540d\u3092\u8ffd\u52a0
+# TF_Function_Description_Tooltip=Add your localized description of the function
+TF_Function_Description_Tooltip=\u95a2\u6570\u306e\u30ed\u30fc\u30ab\u30e9\u30a4\u30ba\u3055\u308c\u305f\u8aac\u660e\u3092\u8ffd\u52a0
+# TF_Function_CompatibilityName_Tooltip=Add your localized compatibility name of the function
+TF_Function_CompatibilityName_Tooltip=\u95a2\u6570\u306e\u30ed\u30fc\u30ab\u30e9\u30a4\u30ba\u3055\u308c\u305f\u4e92\u63db\u6027\u540d\u3092\u8ffd\u52a0
+# TF_Function_Name_Tooltip=The name of your function
+TF_Function_Name_Tooltip=\u95a2\u6570\u306e\u540d\u524d
+# TF_Function_Type_Tooltip=The return value of the function
+TF_Function_Type_Tooltip=\u95a2\u6570\u306e\u623b\u308a\u5024
+# TF_Function_Category_Tooltip=The category of the function
+TF_Function_Category_Tooltip=\u95a2\u6570\u306e\u30ab\u30c6\u30b4\u30ea
+
+# TF_Parameter_DisplayName_Tooltip=Add your localized display name of the parameter
+TF_Parameter_DisplayName_Tooltip=\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u30ed\u30fc\u30ab\u30e9\u30a4\u30ba\u3055\u308c\u305f\u8868\u793a\u540d\u3092\u8ffd\u52a0
+# TF_Parameter_Description_Tooltip=Add your localized description of the parameter
+TF_Parameter_Description_Tooltip=\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u30ed\u30fc\u30ab\u30e9\u30a4\u30ba\u3055\u308c\u305f\u8aac\u660e\u3092\u8ffd\u52a0
+# TF_Parameter_Name_Tooltip=The name of your parameter
+TF_Parameter_Name_Tooltip=\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u540d\u524d
+# TF_Parameter_Type_Tooltip=The type value of the parameter
+TF_Parameter_Type_Tooltip=\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u578b\u306e\u5024
+
+# property entries
+# PROP_Function_Description=<description>
+PROP_Function_Description=<\u8aac\u660e>
+
+# button labels
+# LBL_BUTTON_AddFunction=Add &Function
+LBL_BUTTON_AddFunction=\u95a2\u6570\u3092\u8ffd\u52a0(&F)
+# LBL_BUTTON_AddParameter=Add &Parameter
+LBL_BUTTON_AddParameter=\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8ffd\u52a0(&P)
+# LBL_BUTTON_Delete=&Delete
+LBL_BUTTON_Delete=\u524a\u9664(&D)
+# LBL_BUTTON_AddLanguage=Add &Language...
+LBL_BUTTON_AddLanguage=\u8a00\u8a9e\u3092\u8ffd\u52a0(&L)...
+# LBL_BUTTON_DeleteLanguage=D&elete Language...
+LBL_BUTTON_DeleteLanguage=\u8a00\u8a9e\u3092\u524a\u9664(&E)...
+
+# LanguageHandlingDialog resources
+# LBL_Language=Available &Languages\:
+LBL_Language=\u5229\u7528\u53ef\u80fd\u306a\u8a00\u8a9e(&L)\:
+# LBL_Add_Title=Add Localization
+LBL_Add_Title=\u30ed\u30fc\u30ab\u30ea\u30bc\u30fc\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0
+# LBL_Delete_Title=Delete Language
+LBL_Delete_Title=\u8a00\u8a9e\u3092\u524a\u9664
+
+# BUTTON_AddFunction_Tooltip=Add a new add-in function
+BUTTON_AddFunction_Tooltip=\u65b0\u898f\u30a2\u30c9\u30a4\u30f3\u95a2\u6570\u3092\u8ffd\u52a0
+# BUTTON_AddParam_Tooltip=Add a new parameter to the currently selected add-in function
+BUTTON_AddParam_Tooltip=\u73fe\u5728\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u30a2\u30c9\u30a4\u30f3\u95a2\u6570\u306b\u65b0\u3057\u3044\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8ffd\u52a0
+# BUTTON_Delete_Tooltip=Delete either the selected parameter or the whole add-in function
+BUTTON_Delete_Tooltip=\u9078\u629e\u3055\u308c\u305f\u30d1\u30e9\u30e1\u30fc\u30bf\u307e\u305f\u306f\u5168\u4f53\u306e\u30a2\u30c9\u30a4\u30f3\u95a2\u6570\u306e\u3044\u305a\u308c\u304b\u3092\u524a\u9664
+# BUTTON_AddLang_Tooltip=Add a new language to all localized add-in function properties
+BUTTON_AddLang_Tooltip=\u3059\u3079\u3066\u306e\u30ed\u30fc\u30ab\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30a2\u30c9\u30a4\u30f3\u95a2\u6570\u30d7\u30ed\u30d1\u30c6\u30a3\u30fc\u306b\u65b0\u3057\u3044\u8a00\u8a9e\u3092\u8ffd\u52a0
+# BUTTON_DeleteLang_Tooltip=Delete the selected language from all localized properties from all functions
+BUTTON_DeleteLang_Tooltip=\u3059\u3079\u3066\u306e\u95a2\u6570\u306e\u30ed\u30fc\u30ab\u30e9\u30a4\u30ba\u3055\u308c\u305f\u5168\u30d7\u30ed\u30d1\u30c6\u30a3\u30fc\u304b\u3089\u9078\u629e\u3055\u308c\u305f\u8a00\u8a9e\u3092\u524a\u9664
+
+# templates for files created with the new AddIn project
+
+# a template for idl interfaces
+# NOI18N
+# InterfaceTemplate=\
+# /*\
+# \n * X$!MainClass!.idl\
+# \n *\
+# \n * Created on $!TimeStamp!\
+# \n *\
+# \n */\
+# \n$!CR!#ifndef _$!PackageNameUnderscore!_X$!MainClass!_\
+# \n#define _$!PackageNameUnderscore!_X$!MainClass!_\
+# \n$!CR!#include <com/sun/star/lang/XLocalizable.idl>\
+# \n$!Import!\
+# \n$!PackageNameModule!\
+# \n    interface X$!MainClass! {\n\
+# \n        /// used to set an add-in locale for formatting reasons for example\
+# \n        [optional] interface ::com::sun::star::lang::XLocalizable;\
+# \n        $!Methods!\
+# \n    };\
+# \n$!CloseModule!\
+# \n$!CR!#endif
+
+InterfaceTemplate=\
+/*\
+\n * X$!MainClass!.idl\
+\n *\
+\n * Created on $!TimeStamp!\
+\n *\
+\n */\
+\n$!CR!#ifndef _$!PackageNameUnderscore!_X$!MainClass!_\
+\n#define _$!PackageNameUnderscore!_X$!MainClass!_\
+\n$!CR!#include <com/sun/star/lang/XLocalizable.idl>\
+\n$!Import!\
+\n$!PackageNameModule!\
+\n    interface X$!MainClass! {\n\
+\n        /// used to set an add-in locale for formatting reasons for example\
+\n        [optional] interface ::com::sun::star::lang::XLocalizable;\
+\n        $!Methods!\
+\n    };\
+\n$!CloseModule!\
+\n$!CR!#endif
+
+# a template for idl services
+# NOI18N
+# ServiceTemplate=\
+# /*\
+# \n * $!MainClass!.idl\
+# \n *\
+# \n * Created on $!TimeStamp!\
+# \n *\
+# \n */\
+# \n$!CR!#ifndef _$!PackageNameUnderscore!_$!MainClass!_\
+# \n#define _$!PackageNameUnderscore!_$!MainClass!_\
+# \n$!CR!#include \"X$!MainClass!.idl\"\
+# \n$!CR!$!PackageNameModule!\
+# \n    service $!MainClass! : X$!MainClass!;\
+# \n$!CloseModule!\
+# \n$!CR!#endif
+
+ServiceTemplate=\
+/*\
+\n * $!MainClass!.idl\
+\n *\
+\n * Created on $!TimeStamp!\
+\n *\
+\n */\
+\n$!CR!#ifndef _$!PackageNameUnderscore!_$!MainClass!_\
+\n#define _$!PackageNameUnderscore!_$!MainClass!_\
+\n$!CR!#include \"X$!MainClass!.idl\"\
+\n$!CR!$!PackageNameModule!\
+\n    service $!MainClass! : X$!MainClass!;\
+\n$!CloseModule!\
+\n$!CR!#endif
+
+# a template in three parts for the xcu-files due to its complexity
+
+# first, the addin
+# NOI18N
+# AddInTemplate=\
+# <?xml version='1.0' encoding='UTF-8'?>\
+# \n$!CR!<oor:component-data xmlns:oor=\"http://openoffice.org/2001/registry\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" oor:name=\"CalcAddIns\" oor:package=\"org.openoffice.Office\">\
+# \n    <node oor:name=\"AddInInfo\">\
+# \n        <node oor:name=\"$!PackageName!.$!MainClass!\" oor:op=\"replace\">\
+# \n            <node oor:name=\"AddInFunctions\">\
+# \n$!xcuFunctions!\
+# \n            </node>\
+# \n        </node>\
+# \n    </node>\
+# \n</oor:component-data>
+
+AddInTemplate=\
+<?xml version='1.0' encoding='UTF-8'?>\
+\n$!CR!<oor:component-data xmlns:oor=\"http://openoffice.org/2001/registry\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" oor:name=\"CalcAddIns\" oor:package=\"org.openoffice.Office\">\
+\n    <node oor:name=\"AddInInfo\">\
+\n        <node oor:name=\"$!PackageName!.$!MainClass!\" oor:op=\"replace\">\
+\n            <node oor:name=\"AddInFunctions\">\
+\n$!xcuFunctions!\
+\n            </node>\
+\n        </node>\
+\n    </node>\
+\n</oor:component-data>
+
+# function template
+# NOI18N
+# FunctionTemplate=\
+# \n                <node oor:name=\"$!xcuFunctionName!\" oor:op=\"replace\">\
+# \n                    <prop oor:name=\"DisplayName\">\
+# \n                        <value xml:lang=\"$!Lang!\">$!xcuFunctionDisplayName!</value>\
+# \n                    </prop>\
+# \n                    <prop oor:name=\"Description\">\
+# \n                        <value xml:lang=\"$!Lang!\">$!xcuFunctionDescription!</value>\
+# \n                    </prop>\
+# \n                    <prop oor:name=\"Category\">\
+# \n                        <value>$!xcuCategory!</value>\
+# \n                    </prop>\
+# \n                    <prop oor:name=\"CompatibilityName\">\
+# \n                        <value xml:lang=\"$!Lang!\">$!xcuFunctionCompatibilityName!</value>\
+# \n                    </prop>\
+# \n                    <node oor:name=\"Parameters\">\
+# \n$!\xcuParameters!\
+# \n                    </node>\
+# \n                </node>
+
+FunctionTemplate=\
+\n                <node oor:name=\"$!xcuFunctionName!\" oor:op=\"replace\">\
+\n                    <prop oor:name=\"DisplayName\">\
+\n                        <value xml:lang=\"$!Lang!\">$!xcuFunctionDisplayName!</value>\
+\n                    </prop>\
+\n                    <prop oor:name=\"Description\">\
+\n                        <value xml:lang=\"$!Lang!\">$!xcuFunctionDescription!</value>\
+\n                    </prop>\
+\n                    <prop oor:name=\"Category\">\
+\n                        <value>$!xcuCategory!</value>\
+\n                    </prop>\
+\n                    <prop oor:name=\"CompatibilityName\">\
+\n                        <value xml:lang=\"$!Lang!\">$!xcuFunctionCompatibilityName!</value>\
+\n                    </prop>\
+\n                    <node oor:name=\"Parameters\">\
+\n$!\xcuParameters!\
+\n                    </node>\
+\n                </node>
+
+# parameter template
+# NOI18N
+# ParameterTemplate=\
+# \n                        <node oor:name=\"$!xcuParameterName!\" oor:op=\"replace\">\
+# \n                            <prop oor:name=\"DisplayName\">\
+# \n                                <value xml:lang=\"$!Lang!\">$!xcuParameterDisplayName!</value>\
+# \n                            </prop>\
+# \n                            <prop oor:name=\"Description\">\
+# \n                                <value xml:lang=\"$!Lang!\">$!xcuParameterDescription!</value>\
+# \n                            </prop>\
+# \n                        </node>
+
+ParameterTemplate=\
+\n                        <node oor:name=\"$!xcuParameterName!\" oor:op=\"replace\">\
+\n                            <prop oor:name=\"DisplayName\">\
+\n                                <value xml:lang=\"$!Lang!\">$!xcuParameterDisplayName!</value>\
+\n                            </prop>\
+\n                            <prop oor:name=\"Description\">\
+\n                                <value xml:lang=\"$!Lang!\">$!xcuParameterDescription!</value>\
+\n                            </prop>\
+\n                        </node>
+
+# Calc Add_In configuration schema
+# NOI18N
+# AddInSchema=\
+# <?xml version='1.0' encoding='UTF-8'?>\n\
+# <oor:component-schema oor:name="CalcAddIns" oor:package="org.openoffice.Office" xml:lang="en-US" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n\
+#     <templates>\n\
+#         <group oor:name="AddInParameter" >\n\
+#             <prop oor:name="DisplayName" oor:type="xs:string" oor:localized="true"/>\n\
+#             <prop oor:name="Description" oor:type="xs:string" oor:localized="true"/>\n\
+#         </group>\n\
+#         <group oor:name="AddInFunction">\n\
+#             <prop oor:name="DisplayName" oor:type="xs:string" oor:localized="true"/>\n\
+#             <prop oor:name="Description" oor:type="xs:string" oor:localized="true"/>\n\
+#             <prop oor:name="Category" oor:type="xs:string"/>\n\
+#             <prop oor:name="CategoryDisplayName" oor:type="xs:string" oor:localized="true"/>\n\
+#             <prop oor:name="CompatibilityName" oor:type="xs:string" oor:localized="true"/>\n\
+#             <set oor:name="Parameters" oor:node-type="AddInParameter"/>\n\
+#         </group>\n\
+#         <group oor:name="AddIn">\n\
+#             <set oor:name="AddInFunctions" oor:node-type="AddInFunction"/>\n\
+#         </group>\n\
+#     </templates>\n\
+#     <component>\n\
+#         <set oor:name="AddInInfo" oor:node-type="AddIn" />\n\
+#     </component>\n\
+# </oor:component-schema>\n
+
+AddInSchema=\
+<?xml version='1.0' encoding='UTF-8'?>\n\
+<oor:component-schema oor:name="CalcAddIns" oor:package="org.openoffice.Office" xml:lang="en-US" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n\
+    <templates>\n\
+        <group oor:name="AddInParameter" >\n\
+            <prop oor:name="DisplayName" oor:type="xs:string" oor:localized="true"/>\n\
+            <prop oor:name="Description" oor:type="xs:string" oor:localized="true"/>\n\
+        </group>\n\
+        <group oor:name="AddInFunction">\n\
+            <prop oor:name="DisplayName" oor:type="xs:string" oor:localized="true"/>\n\
+            <prop oor:name="Description" oor:type="xs:string" oor:localized="true"/>\n\
+            <prop oor:name="Category" oor:type="xs:string"/>\n\
+            <prop oor:name="CategoryDisplayName" oor:type="xs:string" oor:localized="true"/>\n\
+            <prop oor:name="CompatibilityName" oor:type="xs:string" oor:localized="true"/>\n\
+            <set oor:name="Parameter" oor:node-type="AddInParameter"/>\n\
+        </group>\n\
+        <group oor:name="AddIn">\n\
+            <set oor:name="AddInFunctions" oor:node-type="AddInFunction"/>\n\
+        </group>\n\
+    </templates>\n\
+    <component>\n\
+        <set oor:name="AddInInfo" oor:node-type="AddIn" />\n\
+    </component>\n\
+</oor:component-schema>\n
+
+

Added: incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/Bundle_pt_BR.properties
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/Bundle_pt_BR.properties?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/Bundle_pt_BR.properties (added)
+++ incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/Bundle_pt_BR.properties Fri Jan 27 01:29:33 2012
@@ -0,0 +1,187 @@
+Templates/Project/org-openoffice-extensions/AddinProject=OpenOffice.org Calc Add-In
+
+LBL_CreateProjectStep=Create a new OpenOffice.org Calc Add-In project
+LBL_CreateClassStep=Define Add-In name
+LBL_CalcAddinEditor=Define Functions and Description with Localization
+
+#AddInPanelVisual1Project
+LBL_ProjectName=Project &Name\:
+LBL_ProjectLocation=Project &Location\:
+LBL_ProjectFolder=Project &Folder\:
+LBL_BUTTON_Browse=Br&owse...
+LB_CalcAddinName=Calc &Add-In Name\:
+LB_PackageName=Java &Package\:
+CB_Backward_Compatibility=Create &backward compatible Calc Add-In
+LB_CreatedFiles=Created Files\:
+LB_FileChooserTitle=Select Project Location
+LB_Error_ProjectName=Project Name is not a valid folder name.
+LB_Error_ProjectFolderPath=Project Folder is not a valid path.
+LB_Error_CreateProjectFolder=Project Folder cannot be created.
+LB_Error_ProjectFolderNotEmpty=Project Folder already exists and is not empty.
+LB_Error_AddInClassName=Add-In Name is not a valid add-in class name.
+LB_Error_PackageName=Package Name is not a valid name.
+LB_Error_FunctionMissing=There has to be at least one function.
+LB_Error_FunctionUniqueName=Every function must have a unique name.
+LB_Error_LanguageMissing=There has to be at least one language for descriptions.
+LB_Error_ParameterUniqueName=Every parameter must have a unique name.
+
+LB_LocalizedProperty=Localized Property
+# tooltip texts
+TF_ProjectName_Tooltip=The name of the newly created project (also used as project folder name)
+TF_CalcAddinName_Tooltip=The name of the Calc Add-In which is used as base for an UNO IDL service and interface name, and the implementation classname
+TF_PackageName_Tooltip=The Java package name which is mapped to modules in UNO IDL
+TF_ProjectLocation_Tooltip=The path to the directory where the project will be created
+TF_ProjectFolder_Tooltip=The final destination folder of the new project
+TF_Exception_Type_Tooltip=The exceptions of this function
+BUTTON_Browse_Tooltip=Select a folder where the project will be created
+CB_Backward_Compatibility_Tooltip=Create a Calc Add-In that is compatible with OpenOffice.org versions older than OpenOffice.org 2.0.4
+
+TF_Function_DisplayName_Tooltip=Add your localized display name of the function
+TF_Function_Description_Tooltip=Add your localized description of the function
+TF_Function_CompatibilityName_Tooltip=Add your localized compatibility name of the function
+TF_Function_Name_Tooltip=The name of your function
+TF_Function_Type_Tooltip=The return value of the function
+TF_Function_Category_Tooltip=The category of the function
+
+TF_Parameter_DisplayName_Tooltip=Add your localized display name of the parameter
+TF_Parameter_Description_Tooltip=Add your localized description of the parameter
+TF_Parameter_Name_Tooltip=The name of your parameter
+TF_Parameter_Type_Tooltip=The type value of the parameter
+
+# property entries
+PROP_Function_Description=<description>
+
+# button labels
+LBL_BUTTON_AddFunction=Add &Function
+LBL_BUTTON_AddParameter=Add &Parameter
+LBL_BUTTON_Delete=&Delete
+LBL_BUTTON_AddLanguage=Add &Language...
+LBL_BUTTON_DeleteLanguage=D&elete Language...
+
+# LanguageHandlingDialog resources
+LBL_Language=Available &Languages\:
+LBL_Add_Title=Add Localization
+LBL_Delete_Title=Delete Language
+
+BUTTON_AddFunction_Tooltip=Add a new add-in function
+BUTTON_AddParam_Tooltip=Add a new parameter to the currently selected add-in function
+BUTTON_Delete_Tooltip=Delete either the selected parameter or the whole add-in function
+BUTTON_AddLang_Tooltip=Add a new language to all localized add-in function properties
+BUTTON_DeleteLang_Tooltip=Delete the selected language from all localized properties from all functions
+
+# templates for files created with the new AddIn project
+
+# a template for idl interfaces
+# NOI18N
+InterfaceTemplate=\
+/*\
+\n * X$!MainClass!.idl\
+\n *\
+\n * Created on $!TimeStamp!\
+\n *\
+\n */\
+\n$!CR!#ifndef _$!PackageNameUnderscore!_X$!MainClass!_\
+\n#define _$!PackageNameUnderscore!_X$!MainClass!_\
+\n$!CR!#include <com/sun/star/lang/XLocalizable.idl>\
+\n$!Import!\
+\n$!PackageNameModule!\
+\n    interface X$!MainClass! {\n\
+\n        /// used to set an add-in locale for formatting reasons for example\
+\n        [optional] interface ::com::sun::star::lang::XLocalizable;\
+\n        $!Methods!\
+\n    };\
+\n$!CloseModule!\
+\n$!CR!#endif
+
+# a template for idl services
+# NOI18N
+ServiceTemplate=\
+/*\
+\n * $!MainClass!.idl\
+\n *\
+\n * Created on $!TimeStamp!\
+\n *\
+\n */\
+\n$!CR!#ifndef _$!PackageNameUnderscore!_$!MainClass!_\
+\n#define _$!PackageNameUnderscore!_$!MainClass!_\
+\n$!CR!#include \"X$!MainClass!.idl\"\
+\n$!CR!$!PackageNameModule!\
+\n    service $!MainClass! : X$!MainClass!;\
+\n$!CloseModule!\
+\n$!CR!#endif
+
+# a template in three parts for the xcu-files due to its complexity
+
+# first, the addin
+# NOI18N
+AddInTemplate=\
+<?xml version='1.0' encoding='UTF-8'?>\
+\n$!CR!<oor:component-data xmlns:oor=\"http://openoffice.org/2001/registry\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" oor:name=\"CalcAddIns\" oor:package=\"org.openoffice.Office\">\
+\n    <node oor:name=\"AddInInfo\">\
+\n        <node oor:name=\"$!PackageName!.$!MainClass!\" oor:op=\"replace\">\
+\n            <node oor:name=\"AddInFunctions\">\
+\n$!xcuFunctions!\
+\n            </node>\
+\n        </node>\
+\n    </node>\
+\n</oor:component-data>
+
+# function template
+# NOI18N
+FunctionTemplate=\
+\n                <node oor:name=\"$!xcuFunctionName!\" oor:op=\"replace\">\
+\n                    <prop oor:name=\"DisplayName\">\
+\n                        <value xml:lang=\"$!Lang!\">$!xcuFunctionDisplayName!</value>\
+\n                    </prop>\
+\n                    <prop oor:name=\"Description\">\
+\n                        <value xml:lang=\"$!Lang!\">$!xcuFunctionDescription!</value>\
+\n                    </prop>\
+\n                    <prop oor:name=\"Category\">\
+\n                        <value>$!xcuCategory!</value>\
+\n                    </prop>\
+\n                    <prop oor:name=\"CompatibilityName\">\
+\n                        <value xml:lang=\"$!Lang!\">$!xcuFunctionCompatibilityName!</value>\
+\n                    </prop>\
+\n                    <node oor:name=\"Parameters\">\
+\n$!\xcuParameters!\
+\n                    </node>\
+\n                </node>
+
+# parameter template
+# NOI18N
+ParameterTemplate=\
+\n                        <node oor:name=\"$!xcuParameterName!\" oor:op=\"replace\">\
+\n                            <prop oor:name=\"DisplayName\">\
+\n                                <value xml:lang=\"$!Lang!\">$!xcuParameterDisplayName!</value>\
+\n                            </prop>\
+\n                            <prop oor:name=\"Description\">\
+\n                                <value xml:lang=\"$!Lang!\">$!xcuParameterDescription!</value>\
+\n                            </prop>\
+\n                        </node>
+
+# Calc Add_In configuration schema
+# NOI18N
+AddInSchema=\
+<?xml version='1.0' encoding='UTF-8'?>\n\
+<oor:component-schema oor:name="CalcAddIns" oor:package="org.openoffice.Office" xml:lang="en-US" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n\
+    <templates>\n\
+        <group oor:name="AddInParameter" >\n\
+            <prop oor:name="DisplayName" oor:type="xs:string" oor:localized="true"/>\n\
+            <prop oor:name="Description" oor:type="xs:string" oor:localized="true"/>\n\
+        </group>\n\
+        <group oor:name="AddInFunction">\n\
+            <prop oor:name="DisplayName" oor:type="xs:string" oor:localized="true"/>\n\
+            <prop oor:name="Description" oor:type="xs:string" oor:localized="true"/>\n\
+            <prop oor:name="Category" oor:type="xs:string"/>\n\
+            <prop oor:name="CategoryDisplayName" oor:type="xs:string" oor:localized="true"/>\n\
+            <prop oor:name="CompatibilityName" oor:type="xs:string" oor:localized="true"/>\n\
+            <set oor:name="Parameters" oor:node-type="AddInParameter"/>\n\
+        </group>\n\
+        <group oor:name="AddIn">\n\
+            <set oor:name="AddInFunctions" oor:node-type="AddInFunction"/>\n\
+        </group>\n\
+    </templates>\n\
+    <component>\n\
+        <set oor:name="AddInInfo" oor:node-type="AddIn" />\n\
+    </component>\n\
+</oor:component-schema>\n

Added: incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/Bundle_zh_CN.properties
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/Bundle_zh_CN.properties?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/Bundle_zh_CN.properties (added)
+++ incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/Bundle_zh_CN.properties Fri Jan 27 01:29:33 2012
@@ -0,0 +1,187 @@
+Templates/Project/org-openoffice-extensions/AddinProject=OpenOffice.org Calc \u63d2\u4ef6
+
+LBL_CreateProjectStep=\u521b\u5efa\u4e00\u4e2a\u65b0\u7684 OpenOffice.org Calc \u63d2\u4ef6\u9879\u76ee
+LBL_CreateClassStep=\u5b9a\u4e49\u63d2\u4ef6\u540d\u79f0
+LBL_CalcAddinEditor=\u5b9a\u4e49\u51fd\u6570\u548c\u5305\u542b\u672c\u5730\u5316\u7684\u63cf\u8ff0
+
+#AddInPanelVisual1Project
+LBL_ProjectName=\u9879\u76ee\u540d\u79f0(&N)\uff1a
+LBL_ProjectLocation=\u9879\u76ee\u4f4d\u7f6e(&L)\uff1a
+LBL_ProjectFolder=\u9879\u76ee\u6587\u4ef6\u5939(&F)\uff1a
+LBL_BUTTON_Browse=\u6d4f\u89c8(&O)...
+LB_CalcAddinName=Calc \u63d2\u4ef6\u540d\u79f0(&A)\uff1a
+LB_PackageName=Java \u5305(&P)\uff1a
+CB_Backward_Compatibility=\u521b\u5efa\u5411\u540e\u517c\u5bb9\u7684 Calc \u63d2\u4ef6(&B)
+LB_CreatedFiles=\u521b\u5efa\u7684\u6587\u4ef6\uff1a
+LB_FileChooserTitle=\u9009\u62e9\u9879\u76ee\u4f4d\u7f6e
+LB_Error_ProjectName=\u9879\u76ee\u540d\u79f0\u662f\u65e0\u6548\u7684\u6587\u4ef6\u5939\u540d\u79f0\u3002
+LB_Error_ProjectFolderPath=\u9879\u76ee\u6587\u4ef6\u5939\u4e0d\u5177\u5907\u6709\u6548\u7684\u8def\u5f84\u3002
+LB_Error_CreateProjectFolder=\u65e0\u6cd5\u521b\u5efa\u9879\u76ee\u6587\u4ef6\u5939\u3002
+LB_Error_ProjectFolderNotEmpty=\u9879\u76ee\u6587\u4ef6\u5939\u5df2\u5b58\u5728\u4e14\u4e0d\u4e3a\u7a7a\u3002
+LB_Error_AddInClassName=\u63d2\u4ef6\u540d\u79f0\u662f\u65e0\u6548\u7684\u63d2\u4ef6\u7c7b\u540d\u3002
+LB_Error_PackageName=\u5305\u540d\u65e0\u6548\u3002
+LB_Error_FunctionMissing=\u5fc5\u987b\u81f3\u5c11\u5177\u6709\u4e00\u4e2a\u51fd\u6570\u3002
+LB_Error_FunctionUniqueName=\u6bcf\u4e2a\u51fd\u6570\u5fc5\u987b\u5177\u6709\u552f\u4e00\u7684\u540d\u79f0\u3002
+LB_Error_LanguageMissing=\u5fc5\u987b\u81f3\u5c11\u5177\u6709\u4e00\u79cd\u8bed\u8a00\u7684\u63cf\u8ff0\u3002
+LB_Error_ParameterUniqueName=\u6bcf\u4e2a\u53c2\u6570\u5fc5\u987b\u5177\u6709\u552f\u4e00\u7684\u540d\u79f0\u3002
+
+LB_LocalizedProperty=\u672c\u5730\u5316\u7684\u5c5e\u6027
+# tooltip texts
+TF_ProjectName_Tooltip=\u65b0\u5efa\u9879\u76ee\u7684\u540d\u79f0\uff08\u4e5f\u7528\u4f5c\u9879\u76ee\u6587\u4ef6\u5939\u540d\u79f0\uff09
+TF_CalcAddinName_Tooltip=Calc \u63d2\u4ef6\u7684\u540d\u79f0\uff0c\u8be5\u540d\u79f0\u7528\u4f5c UNO IDL \u670d\u52a1\u548c\u63a5\u53e3\u540d\u79f0\u4ee5\u53ca\u5b9e\u73b0\u7c7b\u540d\u7684\u57fa\u540d
+TF_PackageName_Tooltip=Java \u5305\u540d\uff0c\u8be5\u540d\u79f0\u5c06\u88ab\u6620\u5c04\u5230 UNO IDL \u4e2d\u7684\u6a21\u5757
+TF_ProjectLocation_Tooltip=\u5c06\u5728\u5176\u4e2d\u521b\u5efa\u9879\u76ee\u7684\u76ee\u5f55\u8def\u5f84
+TF_ProjectFolder_Tooltip=\u65b0\u5efa\u9879\u76ee\u7684\u6700\u7ec8\u76ee\u6807\u6587\u4ef6\u5939
+TF_Exception_Type_Tooltip=\u6b64\u51fd\u6570\u7684\u5f02\u5e38
+BUTTON_Browse_Tooltip=\u9009\u62e9\u4e00\u4e2a\u5c06\u5728\u5176\u4e2d\u521b\u5efa\u9879\u76ee\u7684\u6587\u4ef6\u5939
+CB_Backward_Compatibility_Tooltip=\u521b\u5efa\u4e00\u4e2a\u4e0e OpenOffice.org 2.0.4 \u4e4b\u524d\u7684 OpenOffice.org \u7248\u672c\u517c\u5bb9\u7684 Calc \u63d2\u4ef6
+
+TF_Function_DisplayName_Tooltip=\u6dfb\u52a0\u51fd\u6570\u7684\u672c\u5730\u5316\u663e\u793a\u540d\u79f0
+TF_Function_Description_Tooltip=\u6dfb\u52a0\u51fd\u6570\u7684\u672c\u5730\u5316\u63cf\u8ff0
+TF_Function_CompatibilityName_Tooltip=\u6dfb\u52a0\u51fd\u6570\u7684\u672c\u5730\u5316\u517c\u5bb9\u6027\u540d\u79f0
+TF_Function_Name_Tooltip=\u51fd\u6570\u7684\u540d\u79f0
+TF_Function_Type_Tooltip=\u51fd\u6570\u7684\u8fd4\u56de\u503c
+TF_Function_Category_Tooltip=\u51fd\u6570\u7684\u7c7b\u522b
+
+TF_Parameter_DisplayName_Tooltip=\u6dfb\u52a0\u53c2\u6570\u7684\u672c\u5730\u5316\u663e\u793a\u540d\u79f0
+TF_Parameter_Description_Tooltip=\u6dfb\u52a0\u53c2\u6570\u7684\u672c\u5730\u5316\u63cf\u8ff0
+TF_Parameter_Name_Tooltip=\u53c2\u6570\u7684\u540d\u79f0
+TF_Parameter_Type_Tooltip=\u53c2\u6570\u7684\u7c7b\u578b\u503c
+
+# property entries
+PROP_Function_Description=<\u63cf\u8ff0>
+
+# button labels
+LBL_BUTTON_AddFunction=\u6dfb\u52a0\u51fd\u6570(&F)
+LBL_BUTTON_AddParameter=\u6dfb\u52a0\u53c2\u6570(&P)
+LBL_BUTTON_Delete=\u5220\u9664(&D)
+LBL_BUTTON_AddLanguage=\u6dfb\u52a0\u8bed\u8a00(&L)...
+LBL_BUTTON_DeleteLanguage=\u5220\u9664\u8bed\u8a00(&E)...
+
+# LanguageHandlingDialog resources
+LBL_Language=\u53ef\u7528\u7684\u8bed\u8a00(&L)\uff1a
+LBL_Add_Title=\u6dfb\u52a0\u672c\u5730\u5316
+LBL_Delete_Title=\u5220\u9664\u8bed\u8a00
+
+BUTTON_AddFunction_Tooltip=\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u63d2\u4ef6\u51fd\u6570
+BUTTON_AddParam_Tooltip=\u5728\u5f53\u524d\u9009\u5b9a\u7684\u63d2\u4ef6\u51fd\u6570\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u53c2\u6570
+BUTTON_Delete_Tooltip=\u5220\u9664\u9009\u5b9a\u7684\u53c2\u6570\u6216\u6574\u4e2a\u63d2\u4ef6\u51fd\u6570
+BUTTON_AddLang_Tooltip=\u5728\u6240\u6709\u672c\u5730\u5316\u7684\u63d2\u4ef6\u51fd\u6570\u5c5e\u6027\u4e2d\u6dfb\u52a0\u4e00\u79cd\u65b0\u7684\u8bed\u8a00
+BUTTON_DeleteLang_Tooltip=\u4ece\u6240\u6709\u51fd\u6570\u7684\u6240\u6709\u672c\u5730\u5316\u5c5e\u6027\u4e2d\u5220\u9664\u9009\u5b9a\u7684\u8bed\u8a00
+
+# templates for files created with the new AddIn project
+
+# a template for idl interfaces
+# NOI18N
+InterfaceTemplate=\
+/*\
+\n * X$!MainClass!.idl\
+\n *\
+\n * Created on $!TimeStamp!\
+\n *\
+\n */\
+\n$!CR!#ifndef _$!PackageNameUnderscore!_X$!MainClass!_\
+\n#define _$!PackageNameUnderscore!_X$!MainClass!_\
+\n$!CR!#include <com/sun/star/lang/XLocalizable.idl>\
+\n$!Import!\
+\n$!PackageNameModule!\
+\n    interface X$!MainClass! {\n\
+\n        /// used to set an add-in locale for formatting reasons for example\
+\n        [optional] interface ::com::sun::star::lang::XLocalizable;\
+\n        $!Methods!\
+\n    };\
+\n$!CloseModule!\
+\n$!CR!#endif
+
+# a template for idl services
+# NOI18N
+ServiceTemplate=\
+/*\
+\n * $!MainClass!.idl\
+\n *\
+\n * Created on $!TimeStamp!\
+\n *\
+\n */\
+\n$!CR!#ifndef _$!PackageNameUnderscore!_$!MainClass!_\
+\n#define _$!PackageNameUnderscore!_$!MainClass!_\
+\n$!CR!#include \"X$!MainClass!.idl\"\
+\n$!CR!$!PackageNameModule!\
+\n    service $!MainClass! : X$!MainClass!;\
+\n$!CloseModule!\
+\n$!CR!#endif
+
+# a template in three parts for the xcu-files due to its complexity
+
+# first, the addin
+# NOI18N
+AddInTemplate=\
+<?xml version='1.0' encoding='UTF-8'?>\
+\n$!CR!<oor:component-data xmlns:oor=\"http://openoffice.org/2001/registry\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" oor:name=\"CalcAddIns\" oor:package=\"org.openoffice.Office\">\
+\n    <node oor:name=\"AddInInfo\">\
+\n        <node oor:name=\"$!PackageName!.$!MainClass!\" oor:op=\"replace\">\
+\n            <node oor:name=\"AddInFunctions\">\
+\n$!xcuFunctions!\
+\n            </node>\
+\n        </node>\
+\n    </node>\
+\n</oor:component-data>
+
+# function template
+# NOI18N
+FunctionTemplate=\
+\n                <node oor:name=\"$!xcuFunctionName!\" oor:op=\"replace\">\
+\n                    <prop oor:name=\"DisplayName\">\
+\n                        <value xml:lang=\"$!Lang!\">$!xcuFunctionDisplayName!</value>\
+\n                    </prop>\
+\n                    <prop oor:name=\"Description\">\
+\n                        <value xml:lang=\"$!Lang!\">$!xcuFunctionDescription!</value>\
+\n                    </prop>\
+\n                    <prop oor:name=\"Category\">\
+\n                        <value>$!xcuCategory!</value>\
+\n                    </prop>\
+\n                    <prop oor:name=\"CompatibilityName\">\
+\n                        <value xml:lang=\"$!Lang!\">$!xcuFunctionCompatibilityName!</value>\
+\n                    </prop>\
+\n                    <node oor:name=\"Parameters\">\
+\n$!\xcuParameters!\
+\n                    </node>\
+\n                </node>
+
+# parameter template
+# NOI18N
+ParameterTemplate=\
+\n                        <node oor:name=\"$!xcuParameterName!\" oor:op=\"replace\">\
+\n                            <prop oor:name=\"DisplayName\">\
+\n                                <value xml:lang=\"$!Lang!\">$!xcuParameterDisplayName!</value>\
+\n                            </prop>\
+\n                            <prop oor:name=\"Description\">\
+\n                                <value xml:lang=\"$!Lang!\">$!xcuParameterDescription!</value>\
+\n                            </prop>\
+\n                        </node>
+
+# Calc Add_In configuration schema
+# NOI18N
+AddInSchema=\
+<?xml version='1.0' encoding='UTF-8'?>\n\
+<oor:component-schema oor:name="CalcAddIns" oor:package="org.openoffice.Office" xml:lang="en-US" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n\
+    <templates>\n\
+        <group oor:name="AddInParameter" >\n\
+            <prop oor:name="DisplayName" oor:type="xs:string" oor:localized="true"/>\n\
+            <prop oor:name="Description" oor:type="xs:string" oor:localized="true"/>\n\
+        </group>\n\
+        <group oor:name="AddInFunction">\n\
+            <prop oor:name="DisplayName" oor:type="xs:string" oor:localized="true"/>\n\
+            <prop oor:name="Description" oor:type="xs:string" oor:localized="true"/>\n\
+            <prop oor:name="Category" oor:type="xs:string"/>\n\
+            <prop oor:name="CategoryDisplayName" oor:type="xs:string" oor:localized="true"/>\n\
+            <prop oor:name="CompatibilityName" oor:type="xs:string" oor:localized="true"/>\n\
+            <set oor:name="Parameters" oor:node-type="AddInParameter"/>\n\
+        </group>\n\
+        <group oor:name="AddIn">\n\
+            <set oor:name="AddInFunctions" oor:node-type="AddInFunction"/>\n\
+        </group>\n\
+    </templates>\n\
+    <component>\n\
+        <set oor:name="AddInInfo" oor:node-type="AddIn" />\n\
+    </component>\n\
+</oor:component-schema>\n

Added: incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/LanguageHandlingDialog.form
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/LanguageHandlingDialog.form?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/LanguageHandlingDialog.form (added)
+++ incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/LanguageHandlingDialog.form Fri Jan 27 01:29:33 2012
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<Form version="1.3" maxVersion="1.3" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
+  <AuxValues>
+    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
+    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
+    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="2"/>
+    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
+    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
+  </AuxValues>
+
+  <Layout>
+    <DimensionLayout dim="0">
+      <Group type="103" groupAlignment="0" attributes="0">
+          <Group type="102" alignment="1" attributes="0">
+              <EmptySpace max="-2" attributes="0"/>
+              <Component id="jLabel1" pref="159" max="32767" attributes="0"/>
+              <EmptySpace max="-2" attributes="0"/>
+              <Component id="jComboBox1" min="-2" pref="175" max="-2" attributes="0"/>
+              <EmptySpace max="-2" attributes="0"/>
+          </Group>
+      </Group>
+    </DimensionLayout>
+    <DimensionLayout dim="1">
+      <Group type="103" groupAlignment="0" attributes="0">
+          <Group type="102" alignment="0" attributes="0">
+              <EmptySpace max="-2" attributes="0"/>
+              <Group type="103" groupAlignment="3" attributes="0">
+                  <Component id="jComboBox1" alignment="3" min="-2" max="-2" attributes="0"/>
+                  <Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/>
+              </Group>
+              <EmptySpace max="32767" attributes="0"/>
+          </Group>
+      </Group>
+    </DimensionLayout>
+  </Layout>
+  <SubComponents>
+    <Component class="javax.swing.JComboBox" name="jComboBox1">
+      <Properties>
+        <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
+          <Connection code="new javax.swing.DefaultComboBoxModel(getLanguages())" type="code"/>
+        </Property>
+      </Properties>
+    </Component>
+    <Component class="javax.swing.JLabel" name="jLabel1">
+      <Properties>
+        <Property name="labelFor" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">
+          <ComponentRef name="jComboBox1"/>
+        </Property>
+        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+          <ResourceString bundle="org/openoffice/extensions/projecttemplates/calcaddin/Bundle.properties" key="LBL_Language" replaceFormat="org.openide.util.NbBundle.getMessage(AddinWizardIterator.class, &quot;LBL_Language&quot;)"/>
+        </Property>
+      </Properties>
+      <AuxValues>
+        <AuxValue name="generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
+      </AuxValues>
+    </Component>
+  </SubComponents>
+</Form>

Added: incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/LanguageHandlingDialog.java
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/LanguageHandlingDialog.java?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/LanguageHandlingDialog.java (added)
+++ incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/LanguageHandlingDialog.java Fri Jan 27 01:29:33 2012
@@ -0,0 +1,179 @@
+/*************************************************************************
+ *
+ *  OpenOffice.org - a multi-platform office productivity suite
+ *
+ *  $RCSfile: LanguageHandlingDialog.java,v $
+ *
+ *  $Revision: 1.6 $
+ *
+ *  last change: $Author: sg $ $Date: 2009/10/22 08:00:39 $
+ *
+ *  The Contents of this file are made available subject to
+ *  the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ *    GNU Lesser General Public License Version 2.1
+ *    =============================================
+ *    Copyright 2005 by Sun Microsystems, Inc.
+ *    901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ *    This library is free software; you can redistribute it and/or
+ *    modify it under the terms of the GNU Lesser General Public
+ *    License version 2.1, as published by the Free Software Foundation.
+ *
+ *    This library 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 for more details.
+ *
+ *    You should have received a copy of the GNU Lesser General Public
+ *    License along with this library; if not, write to the Free Software
+ *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ *    MA  02111-1307  USA
+ *
+ ************************************************************************/
+package org.openoffice.extensions.projecttemplates.calcaddin;
+
+import java.awt.Dialog;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.util.Arrays;
+import java.util.Vector;
+import org.openide.DialogDescriptor;
+import org.openide.DialogDisplayer;
+import org.openoffice.extensions.util.datamodel.localization.LanguageDefinition;
+
+/**
+ *
+ * @author  sg128468
+ */
+public class LanguageHandlingDialog extends javax.swing.JPanel implements ActionListener {
+
+//    private boolean deleteLanguage;
+    private String[] displayedLanguages;
+
+    private int selectedLanguageID;
+    
+    /** Creates new form LanguageHandlingDialog */
+public LanguageHandlingDialog(boolean deleteLanguage, Integer[] indexes) {
+        
+        selectedLanguageID = -1; 
+
+        initLanguages(indexes, deleteLanguage);
+        initComponents();
+        
+//        if (deleteLanguage) {  // difference between add and delete: just some captions
+//            org.openide.awt.Mnemonics.setLocalizedText(actionButton, org.openide.util.NbBundle.getMessage(AddinWizardIterator.class, "LBL_BUTTON_Delete"));
+//        }
+//        else {
+//            org.openide.awt.Mnemonics.setLocalizedText(actionButton, org.openide.util.NbBundle.getMessage(AddinWizardIterator.class, "LBL_BUTTON_Add"));
+//        }
+    }
+
+    /** This method is called from within the constructor to
+     * initialize the form.
+     * WARNING: Do NOT modify this code. The content of this method is
+     * always regenerated by the Form Editor.
+     */
+    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
+    private void initComponents() {
+
+        jComboBox1 = new javax.swing.JComboBox();
+        jLabel1 = new javax.swing.JLabel();
+
+        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(getLanguages()));
+
+        jLabel1.setLabelFor(jComboBox1);
+        org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(AddinWizardIterator.class, "LBL_Language")); // NOI18N
+
+        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
+        this.setLayout(layout);
+        layout.setHorizontalGroup(
+            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+            .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
+                .addContainerGap()
+                .add(jLabel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE)
+                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
+                .add(jComboBox1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 175, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+                .addContainerGap())
+        );
+        layout.setVerticalGroup(
+            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+            .add(layout.createSequentialGroup()
+                .addContainerGap()
+                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
+                    .add(jComboBox1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+                    .add(jLabel1))
+                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+        );
+    }// </editor-fold>//GEN-END:initComponents
+    
+    /**
+     * @param args the command line arguments
+     */
+    public static int start(final boolean deleteLanguage, final Integer[] indexes) {
+        final LanguageHandlingDialog lang = new LanguageHandlingDialog(deleteLanguage, indexes);
+        String title = null;
+        if (deleteLanguage) {  // difference between add and delete: just some captions
+            title = org.openide.util.NbBundle.getMessage(AddinWizardIterator.class, "LBL_Delete_Title");
+        }
+        else {
+            title = org.openide.util.NbBundle.getMessage(AddinWizardIterator.class, "LBL_Add_Title");
+        }
+
+        DialogDescriptor ddscr = new DialogDescriptor(lang, title);
+        ddscr.setButtonListener(lang);
+
+        Dialog d = DialogDisplayer.getDefault().createDialog(ddscr);
+        d.setVisible(true);
+        
+        return lang.selectedLanguageID;
+    }
+    
+    // Variables declaration - do not modify//GEN-BEGIN:variables
+    private javax.swing.JComboBox jComboBox1;
+    private javax.swing.JLabel jLabel1;
+    // End of variables declaration//GEN-END:variables
+
+    private String[] getLanguages() {
+        return displayedLanguages;
+    }
+    
+    private void initLanguages(Integer[] indexes, boolean deleteLanguage) {
+        if (deleteLanguage) {  
+            // display selected languages for deleting
+            displayedLanguages = new String[indexes.length];
+            for (int i=0; i<indexes.length; i++) {
+                displayedLanguages[i] = LanguageDefinition.getLanguageNameForId(indexes[i].intValue());
+            }
+            Arrays.sort(displayedLanguages);
+        }
+        else {
+            // add all languages
+            Vector<String> language = new Vector<String>(LanguageDefinition.LANGUAGE_COUNT);
+            for (int i=0; i<LanguageDefinition.LANGUAGE_COUNT; i++) {
+                language.add(i, LanguageDefinition.getLanguageNameForId(i));
+            }
+            // remove the ones already selected
+            Arrays.sort(indexes);
+            for (int i=indexes.length-1; i>=0; i--) {
+                language.remove(indexes[i].intValue());
+            }
+            
+            displayedLanguages = new String[language.size()];
+            displayedLanguages = language.toArray(displayedLanguages);
+            Arrays.sort(displayedLanguages);
+        }
+    }
+
+    public void actionPerformed(ActionEvent e) {
+        if (e.getActionCommand().equals("OK")) { // NOI18N
+            int selected = jComboBox1.getSelectedIndex();
+            String languageName = displayedLanguages[selected];
+            selectedLanguageID = LanguageDefinition.getLanguageIdForName(languageName);
+        }
+        else if (e.getActionCommand().equals("Cancel")) { // NOI18N
+            selectedLanguageID = -1;
+        }
+    }
+}

Added: incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/calcaddin.gif
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/calcaddin.gif?rev=1236486&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/calcaddin.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/datamodel/AddIn.java
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/datamodel/AddIn.java?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/datamodel/AddIn.java (added)
+++ incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/datamodel/AddIn.java Fri Jan 27 01:29:33 2012
@@ -0,0 +1,215 @@
+/*************************************************************************
+ *
+ *  OpenOffice.org - a multi-platform office productivity suite
+ *
+ *  $RCSfile: AddIn.java,v $
+ *
+ *  $Revision: 1.11 $
+ *
+ *  last change: $Author: sg $ $Date: 2007/05/03 09:53:51 $
+ *
+ *  The Contents of this file are made available subject to
+ *  the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ *    GNU Lesser General Public License Version 2.1
+ *    =============================================
+ *    Copyright 2005 by Sun Microsystems, Inc.
+ *    901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ *    This library is free software; you can redistribute it and/or
+ *    modify it under the terms of the GNU Lesser General Public
+ *    License version 2.1, as published by the Free Software Foundation.
+ *
+ *    This library 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 for more details.
+ *
+ *    You should have received a copy of the GNU Lesser General Public
+ *    License along with this library; if not, write to the Free Software
+ *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ *    MA  02111-1307  USA
+ *
+ ************************************************************************/
+
+package org.openoffice.extensions.projecttemplates.calcaddin.datamodel;
+
+import java.beans.PropertyChangeListener;
+import java.util.Enumeration;
+import java.util.Iterator;
+import java.util.Vector;
+import javax.swing.Action;
+import org.openide.nodes.Node;
+import org.openide.nodes.Sheet;
+import org.openoffice.extensions.projecttemplates.addon.datamodel.AddOn;
+import org.openoffice.extensions.util.LogWriter;
+import org.openoffice.extensions.util.datamodel.Function;
+import org.openoffice.extensions.util.datamodel.OrderedContainer;
+import org.openoffice.extensions.util.datamodel.properties.LocalizedOpenOfficeOrgProperty;
+import org.openoffice.extensions.util.datamodel.NbNodeObject;
+import org.openoffice.extensions.util.datamodel.OpenOfficeOrgMultiLanguageSet;
+import org.openoffice.extensions.util.datamodel.actions.BaseAction;
+import org.openoffice.extensions.util.datamodel.properties.UnknownOpenOfficeOrgLanguageIDException;
+
+/**
+ *
+ * @author sg128468
+ */
+public class AddIn implements OpenOfficeOrgMultiLanguageSet, NbNodeObject {
+
+    private OrderedContainer<Function> functions;
+    private int funcCounter = 0;
+
+//    private Node node;
+    
+    /** Creates a new instance of AddIn */
+    public AddIn() {
+        functions = new OrderedContainer<Function>();
+    }
+    
+    public Function getFunction(String name) {
+        Enumeration keys = functions.keys();
+        boolean found = false;
+        while (!found && keys.hasMoreElements()) {
+            Function f = (Function)functions.get(keys.nextElement());
+            found = name.equals(f.getProperty(f.PROPERTY_Name));
+            if (found) return f;
+        }
+        return null;
+    }
+
+/*    public void addFunction(Function function) {
+        addSetObject("function" + funcCounter++, function); // NOI18N
+    }
+*/
+    public Function addFunction() {
+        String number = getNextNumber(NbNodeObject.FUNCTION_TYPE);
+        String internalName = "function".concat(number); // NOI18N
+        NbNodeObject[] subFunctions = this.getAllSubObjects();
+        Function function = null;
+        if (subFunctions == null || subFunctions.length == 0) {
+            function = new Function(internalName, "int", this); // NOI18N
+        }
+        else {
+            Function f = (Function)subFunctions[0];
+            LocalizedOpenOfficeOrgProperty prop = (LocalizedOpenOfficeOrgProperty)
+                f.getProperty(f.PROPERTY_DisplayName);
+            Integer[] indexes = prop.getUsedLanguageIndexes();
+            function = new Function(internalName, "int", this, indexes); // NOI18N
+        }
+        function.addParameter();
+        addSetObject(internalName, function);
+        return function;
+    }
+    
+    public void removeFunction(String name) {
+        Enumeration keys = functions.keys();
+        boolean found = false;
+        while (!found && keys.hasMoreElements()) {
+            Object key = keys.nextElement();
+            Function f = (Function)functions.get(key);
+            try {
+                found = name.equals(f.getProperty(f.PROPERTY_Name).getValueForLanguage(-1));
+            } catch (UnknownOpenOfficeOrgLanguageIDException ex) {
+            }
+            if (found) {
+                functions.remove((String) key);
+            }
+        }        
+    }
+    
+    public void removeFunction(Function function) {
+        String[] names = getAllSetObjectNames();
+        for (int i=0; i<names.length; i++) {
+            if (getSetObject(names[i]).equals(function)) {
+                functions.remove(names[i]);
+                funcCounter--;
+            }
+        }
+    }
+    
+    public String[] getAllSetObjectNames() {
+        return functions.getKeysInOrder();
+    }
+
+    public Object getSetObject(String internalName) {
+        return functions.get(internalName);
+    }
+
+    public void addSetObject(String internalName, Object setObject) {
+        Function function = (Function)setObject;
+        functions.put(internalName, function);
+    }
+
+    public String getDisplayName() {
+        // not localized, should never be displayed anyway.
+        return "AddIn";  // NOI18N
+    }
+
+    public void addLanguage(int languageID, String defaultText) {
+        NbNodeObject[] obj = getAllSubObjects();
+        for (int i=0; i<obj.length; i++) {
+            ((Function)obj[i]).addLanguage(languageID, defaultText);
+        }
+    }
+    
+    public void printLanguages() {
+        NbNodeObject[] obj = getAllSubObjects();
+        for (int i=0; i<obj.length; i++) {
+            ((Function)obj[i]).printLanguages();
+        }
+    }
+    
+    public void removeLanguage(int languageID) {
+        NbNodeObject[] obj = getAllSubObjects();
+        for (int i=0; i<obj.length; i++) {
+            ((Function)obj[i]).removeLanguage(languageID);
+        }
+    }
+    
+    public NbNodeObject[] getAllSubObjects() {
+        return (NbNodeObject[])functions.values().toArray(new NbNodeObject[functions.size()]);
+    }
+
+    public Node.Property[] createProperties(Sheet sheet, PropertyChangeListener listener) {
+        return null;
+    }
+
+    public boolean hasActions(int type) {
+        return false;
+    }
+
+    public Action[] getActions(boolean B) {
+        return null;
+    }
+
+    public void setActions(BaseAction actions) {
+    }
+
+    public NbNodeObject getParent() {
+        return null;
+    }
+
+    public int getType() {
+        return NbNodeObject.ADDIN_TYPE;
+    }
+    
+    public String getNextNumber(int type) {
+        int number = 1;
+            int namePrefix = "function".length(); // NOI18N
+        String[] names = this.getAllSetObjectNames();
+        for (int i = 0; i < names.length; i++) {
+            try {
+                int n = Integer.parseInt(names[i].substring(namePrefix));
+                if (number <= n) {
+                    number = n + 1;
+                }
+            }
+            catch (NumberFormatException ex) {
+                LogWriter.getLogWriter().printStackTrace(ex);
+            }
+        }
+        return String.valueOf(number);
+    }
+}

Added: incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/datamodel/node/AddInChildren.java
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/datamodel/node/AddInChildren.java?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/datamodel/node/AddInChildren.java (added)
+++ incubator/ooo/devtools/netbeansintegration/src/org/openoffice/extensions/projecttemplates/calcaddin/datamodel/node/AddInChildren.java Fri Jan 27 01:29:33 2012
@@ -0,0 +1,84 @@
+/*************************************************************************
+ *
+ *  OpenOffice.org - a multi-platform office productivity suite
+ *
+ *  $RCSfile: AddInChildren.java,v $
+ *
+ *  $Revision: 1.6 $
+ *
+ *  last change: $Author: jsc $ $Date: 2008/02/11 10:43:41 $
+ *
+ *  The Contents of this file are made available subject to
+ *  the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ *    GNU Lesser General Public License Version 2.1
+ *    =============================================
+ *    Copyright 2005 by Sun Microsystems, Inc.
+ *    901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ *    This library is free software; you can redistribute it and/or
+ *    modify it under the terms of the GNU Lesser General Public
+ *    License version 2.1, as published by the Free Software Foundation.
+ *
+ *    This library 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 for more details.
+ *
+ *    You should have received a copy of the GNU Lesser General Public
+ *    License along with this library; if not, write to the Free Software
+ *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ *    MA  02111-1307  USA
+ *
+ ************************************************************************/
+package org.openoffice.extensions.projecttemplates.calcaddin.datamodel.node;
+
+import org.openide.nodes.Children;
+import org.openide.nodes.Node;
+import org.openoffice.extensions.util.datamodel.NbNodeObject;
+
+/**
+ *
+ * @author sg128468
+ */
+public class AddInChildren extends Children.Keys<NbNodeObject> {
+
+    /**
+     * Creates a new instance of AddInChildren
+     */
+    public AddInChildren() {
+    }
+
+    protected Node[] createNodes(NbNodeObject nbNode) {
+        Node[] vNodes = null;
+        if (nbNode.getAllSubObjects() == null) {
+            vNodes = new Node[]{new AddInNode(nbNode, Children.LEAF)};
+        } else {
+            vNodes = new Node[]{new AddInNode(nbNode, new AddInChildren())};
+        }
+        return vNodes;
+    }
+
+    @Override
+    protected void addNotify() {
+        Node node = getNode();
+        Object o = node.getLookup().lookup(NbNodeObject.class);
+        if (o != null) {
+            NbNodeObject set = (NbNodeObject) o;
+            NbNodeObject[] objects = set.getAllSubObjects();
+            if (objects != null) {
+                setKeys(objects);
+            }
+        }
+    }
+
+    @Override
+    protected void removeNotify() {
+        setKeys(new NbNodeObject[]{});
+    }
+
+    public void update() {
+        addNotify();
+    }
+}