summaryrefslogtreecommitdiff
path: root/unodevtools
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2006-08-01 15:24:48 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2006-08-01 15:24:48 +0000
commit264e6571bac00a36949d0ee0b9bd08e6407ca951 (patch)
treee68f84a05076c279a7f1b9ebec0eab67eedab1cd /unodevtools
parent6c9bb527387f2cdc547dada8e6ade4bebfe6ac71 (diff)
INTEGRATION: CWS jsc12 (1.6.6); FILE MERGED
2006/07/31 14:53:23 jsc 1.6.6.1: #i67879# simplify calc add-in skeleton
Diffstat (limited to 'unodevtools')
-rw-r--r--unodevtools/source/skeletonmaker/skeletonmaker.cxx28
1 files changed, 20 insertions, 8 deletions
diff --git a/unodevtools/source/skeletonmaker/skeletonmaker.cxx b/unodevtools/source/skeletonmaker/skeletonmaker.cxx
index e1cbef929816..1da1442da3b4 100644
--- a/unodevtools/source/skeletonmaker/skeletonmaker.cxx
+++ b/unodevtools/source/skeletonmaker/skeletonmaker.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: skeletonmaker.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: hr $ $Date: 2006-06-20 00:51:11 $
+ * last change: $Author: ihi $ $Date: 2006-08-01 16:24:48 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -60,7 +60,7 @@ static const char usageText[] =
" implementation name as the file and class name\n"
" calc-add-in generates a language specific code skeleton for a calc add-in\n"
" using the implementation name as the file and class name. A \n"
-" service type is necessary referencing an interface which defines\n"
+" service type is necessary, referencing an interface which defines\n"
" the new add-in functions."
"\n options:\n"
" -env:INIFILENAME=<url> url specifies a URL to an UNO ini|rc file of an\n"
@@ -76,16 +76,23 @@ static const char usageText[] =
" --cpp generate output for C++\n"
" -sn, --shortnames using namespace abbreviation 'css:': for\n"
" '::com::sun::star::', only valid for sub-command\n"
-" 'dump' and target language 'cpp'. It's default for\n"
+" 'dump' and target language 'cpp'. It is default for the\n"
" sub-command 'component'.\n"
-" --propertysetmixin means that the generated skeleton implements the\n"
-" cppu::PropertySetMixin helper if a referenced new\n"
-" style service specifies an interface which provides\n"
-" attributes (directly or inherited).\n"
+" --propertysetmixin the generated skeleton implements the cppu::PropertySetMixin\n"
+" helper if a referenced new style service specifies an\n"
+" interface which provides attributes (directly or inherited).\n"
" -lh --licenseheader generates a default OpenOffice.org LGPL license\n"
" header at the beginning of a component source file.\n"
" This option is taken into account in 'component' mode\n"
" only and if -o is unequal 'stdout'.\n"
+" -bc specifies that the generated calc add-in is backward\n"
+" --backward-compatible compatible to older office versions and implement the\n"
+" former required add-in interfaces where the implementation\n"
+" is mapped on the new add-in configuration. In this case\n"
+" the config schema needs to be bundled with the extension\n"
+" add-in as well. Default is a minimal add-in component\n"
+" skeleton based on the configuration coming with the\n"
+" office since OO.org 2.0.4.\n"
" -o <path> path specifies an existing directory where the\n"
" output files are generated to, only valid for\n"
" sub-command 'component'. If path=stdout the generated\n"
@@ -219,6 +226,11 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, /*argv*/)
options.license = true;
continue;
}
+ if ( readOption( &bOption, "bc", &nPos, arg) ||
+ readOption( &bOption, "backward-compatible", &nPos, arg) ) {
+ options.backwardcompatible = true;
+ continue;
+ }
if ( readOption( &bOption, "propertysetmixin", &nPos, arg) ) {
options.supportpropertysetmixin = true;
continue;