merge the formfield patch from ooo-build
[ooovba.git] / autodoc / source / exes / adc_uni / adc_cmds.hxx
blob947a3b039c22fd4bff2d89fc278054e0421e8a42
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: adc_cmds.hxx,v $
10 * $Revision: 1.7 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef ADC_ADC_CMDS_HXX
32 #define ADC_ADC_CMDS_HXX
36 // USED SERVICES
37 // BASE CLASSES
38 #include "adc_cmd.hxx"
39 // COMPONENTS
40 // PARAMETERS
42 namespace autodoc
44 namespace command
48 /** A command that produces HTML output from the Autodoc Repository.
50 class CreateHtml : public Command
52 public:
53 CreateHtml();
54 ~CreateHtml();
56 const String & OutputDir() const;
57 const String & DevelopersManual_HtmlRoot() const
58 { return sDevelopersManual_HtmlRoot; }
60 private:
61 // Interface Context:
62 virtual void do_Init(
63 opt_iter & i_nCurArgsBegin,
64 opt_iter i_nEndOfAllArgs );
65 // Interface Command:
66 virtual bool do_Run() const;
67 virtual int inq_RunningRank() const;
69 // Locals
70 void run_Cpp() const;
71 void run_Idl() const;
73 // DATA
74 String sOutputRootDirectory;
75 String sDevelopersManual_HtmlRoot;
78 inline const String &
79 CreateHtml::OutputDir() const
80 { return sOutputRootDirectory; }
83 extern const String C_opt_Verbose;
85 extern const String C_opt_Parse;
86 extern const String C_opt_Name;
87 extern const String C_opt_LangAll;
88 extern const String C_opt_ExtensionsAll;
89 extern const String C_opt_DevmanFile;
90 extern const String C_opt_SinceFile;
92 extern const String C_arg_Cplusplus;
93 extern const String C_arg_Idl;
94 extern const String C_arg_Java;
96 extern const String C_opt_Project;
97 //extern const String C_opt_Lang;
98 //extern const String C_opt_Extensions;
99 extern const String C_opt_SourceTree;
100 extern const String C_opt_SourceDir;
101 extern const String C_opt_SourceFile;
103 extern const String C_opt_CreateHtml;
104 extern const String C_opt_DevmanRoot;
106 //extern const String C_opt_CreateXml;
107 //extern const String C_opt_Load;
108 //extern const String C_opt_Save;
110 extern const String C_opt_ExternNamespace;
111 extern const String C_opt_ExternRoot;
114 inline void
115 CHECKOPT( bool b, const char * miss, const String & opt )
117 if ( NOT b )
119 StreamLock slMsg(100);
120 throw X_CommandLine( slMsg() << "Missing " << miss <<" after " << opt << "." << c_str );
124 } // namespace command
125 } // namespace autodoc
128 #endif