Bump for 3.6-28
[LibreOffice.git] / autodoc / source / exes / adc_uni / adc_cmds.hxx
blobe76b59b17376c6c33973e47ac9a4c493db5ea6dd
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef ADC_ADC_CMDS_HXX
30 #define ADC_ADC_CMDS_HXX
34 // USED SERVICES
35 // BASE CLASSES
36 #include "adc_cmd.hxx"
37 // COMPONENTS
38 // PARAMETERS
40 namespace autodoc
42 namespace command
46 /** A command that produces HTML output from the Autodoc Repository.
48 class CreateHtml : public Command
50 public:
51 CreateHtml();
52 ~CreateHtml();
54 const String & OutputDir() const;
55 const String & DevelopersManual_HtmlRoot() const
56 { return sDevelopersManual_HtmlRoot; }
58 private:
59 // Interface Context:
60 virtual void do_Init(
61 opt_iter & i_nCurArgsBegin,
62 opt_iter i_nEndOfAllArgs );
63 // Interface Command:
64 virtual bool do_Run() const;
65 virtual int inq_RunningRank() const;
67 // Locals
68 void run_Idl() const;
70 // DATA
71 String sOutputRootDirectory;
72 String sDevelopersManual_HtmlRoot;
75 inline const String &
76 CreateHtml::OutputDir() const
77 { return sOutputRootDirectory; }
80 extern const String C_opt_Verbose;
82 extern const String C_opt_Parse;
83 extern const String C_opt_Name;
84 extern const String C_opt_LangAll;
85 extern const String C_opt_ExtensionsAll;
86 extern const String C_opt_DevmanFile;
87 extern const String C_opt_SinceFile;
89 extern const String C_arg_Idl;
91 extern const String C_opt_Project;
92 //extern const String C_opt_Lang;
93 //extern const String C_opt_Extensions;
94 extern const String C_opt_SourceTree;
95 extern const String C_opt_SourceDir;
96 extern const String C_opt_SourceFile;
98 extern const String C_opt_CreateHtml;
99 extern const String C_opt_DevmanRoot;
101 //extern const String C_opt_CreateXml;
102 //extern const String C_opt_Load;
103 //extern const String C_opt_Save;
105 extern const String C_opt_ExternNamespace;
106 extern const String C_opt_ExternRoot;
109 inline void
110 CHECKOPT( bool b, const char * miss, const String & opt )
112 if ( NOT b )
114 StreamLock slMsg(100);
115 throw X_CommandLine( slMsg() << "Missing " << miss <<" after " << opt << "." << c_str );
119 } // namespace command
120 } // namespace autodoc
123 #endif
125 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */