summaryrefslogtreecommitdiff
path: root/unodevtools/source/skeletonmaker/skeletonmaker.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unodevtools/source/skeletonmaker/skeletonmaker.cxx')
-rw-r--r--unodevtools/source/skeletonmaker/skeletonmaker.cxx92
1 files changed, 34 insertions, 58 deletions
diff --git a/unodevtools/source/skeletonmaker/skeletonmaker.cxx b/unodevtools/source/skeletonmaker/skeletonmaker.cxx
index 88f2707b0bbf..ebffa7519d53 100644
--- a/unodevtools/source/skeletonmaker/skeletonmaker.cxx
+++ b/unodevtools/source/skeletonmaker/skeletonmaker.cxx
@@ -1,63 +1,38 @@
/*************************************************************************
*
- * $RCSfile: skeletonmaker.cxx,v $
- *
- * $Revision: 1.1 $
- *
- * last change: $Author: jsc $ $Date: 2005-08-23 08:31:46 $
- *
- * The Contents of this file are made available subject to the terms of
- * either of the following licenses
- *
- * - GNU Lesser General Public License Version 2.1
- * - Sun Industry Standards Source License Version 1.1
+ * OpenOffice.org - a multi-platform office productivity suite
*
- * Sun Microsystems Inc., October, 2000
- *
- * GNU Lesser General Public License Version 2.1
- * =============================================
- * Copyright 2000 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
+ * $RCSfile: skeletonmaker.cxx,v $
*
+ * $Revision: 1.2 $
*
- * Sun Industry Standards Source License Version 1.1
- * =================================================
- * The contents of this file are subject to the Sun Industry Standards
- * Source License Version 1.1 (the "License"); You may not use this file
- * except in compliance with the License. You may obtain a copy of the
- * License at http://www.openoffice.org/license.html.
+ * last change: $Author: jsc $ $Date: 2005-09-09 13:50:36 $
*
- * Software provided under this License is provided on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
- * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
- * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
- * See the License for the specific provisions governing your rights and
- * obligations concerning the Software.
+ * The Contents of this file are made available subject to
+ * the terms of GNU Lesser General Public License Version 2.1.
*
- * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
- * Copyright: 2000 by Sun Microsystems, Inc.
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2005 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
*
- * All Rights Reserved.
+ * 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.
*
- * Contributor(s): _______________________________________
+ * 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
*
************************************************************************/
+#include <iostream>
#include "sal/main.h"
#include "rtl/process.h"
@@ -79,8 +54,8 @@ namespace {
static const char usageText[] =
"\n sub-commands:\n"
" dump dump declarations on stdout (e.g. constructors, methods, type\n"
-" mapping for properties)\n"
-" or complete method bodies with method forwarding.\n"
+" mapping for properties) or complete method bodies with\n"
+" method forwarding.\n"
" component generates language specific code skeleton files using the\n"
" implementation name as the file and class name\n"
"\n options:\n"
@@ -119,11 +94,12 @@ static const char usageText[] =
void printUsageAndExit(char* programname, char* version) {
std::cerr
<< "\n using: " << programname
- << " dump [<options>] (-env:INIFILENAME=<url> | \n"
- << " -env:UNO_TYPES=<url>) -t <type> ...\n"
+ << " (-env:INIFILENAME=<url> | -env:UNO_TYPES=<url>)\n"
+ << " dump [<options>] -t <type> ...\n"
<< " " << programname
- << " component [<options>] (-env:INIFILENAME=<path>\n"
- << " | -env:UNO_TYPES=<url>) -n <name> -t <type> ...\n"
+ << " (-env:INIFILENAME=<url> | -env:UNO_TYPES=<url>)\n"
+ << " component [<options>] -n <name> -t "
+ << "<type> ...\n"
<< " " << programname << " --v\n"
<< " " << programname << " --h\n"
<< usageText
@@ -142,9 +118,9 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
printUsageAndExit(programname, version);
ProgramOptions options;
- std::vector< rtl::OUString > registries;
- std::vector< rtl::OString > types;
- rtl::OString delegate;
+ std::vector< OUString > registries;
+ std::vector< OString > types;
+ OString delegate;
try {
@@ -242,13 +218,13 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
}
if (options.dump) {
- std::vector< rtl::OString >::const_iterator iter = types.begin();
+ std::vector< OString >::const_iterator iter = types.begin();
while (iter != types.end()) {
std::cout << "\n/********************************************************************************/\n";
switch (options.language ) {
case 1: //Java
java::generateDocumentation(std::cout, options, manager,
- *iter);
+ *iter, delegate);
break;
case 2: //C++
cpp::generateDocumentation(std::cout, options, manager,