1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef ADC_ADC_CMDS_HXX 29 #define ADC_ADC_CMDS_HXX 30 31 32 33 // USED SERVICES 34 // BASE CLASSES 35 #include "adc_cmd.hxx" 36 // COMPONENTS 37 // PARAMETERS 38 39 namespace autodoc 40 { 41 namespace command 42 { 43 44 45 /** A command that produces HTML output from the Autodoc Repository. 46 */ 47 class CreateHtml : public Command 48 { 49 public: 50 CreateHtml(); 51 ~CreateHtml(); 52 53 const String & OutputDir() const; 54 const String & DevelopersManual_HtmlRoot() const 55 { return sDevelopersManual_HtmlRoot; } 56 57 private: 58 // Interface Context: 59 virtual void do_Init( 60 opt_iter & i_nCurArgsBegin, 61 opt_iter i_nEndOfAllArgs ); 62 // Interface Command: 63 virtual bool do_Run() const; 64 virtual int inq_RunningRank() const; 65 66 // Locals 67 void run_Cpp() const; 68 void run_Idl() const; 69 70 // DATA 71 String sOutputRootDirectory; 72 String sDevelopersManual_HtmlRoot; 73 }; 74 75 inline const String & 76 CreateHtml::OutputDir() const 77 { return sOutputRootDirectory; } 78 79 80 extern const String C_opt_Verbose; 81 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; 88 89 extern const String C_arg_Cplusplus; 90 extern const String C_arg_Idl; 91 extern const String C_arg_Java; 92 93 extern const String C_opt_Project; 94 //extern const String C_opt_Lang; 95 //extern const String C_opt_Extensions; 96 extern const String C_opt_SourceTree; 97 extern const String C_opt_SourceDir; 98 extern const String C_opt_SourceFile; 99 100 extern const String C_opt_CreateHtml; 101 extern const String C_opt_DevmanRoot; 102 103 //extern const String C_opt_CreateXml; 104 //extern const String C_opt_Load; 105 //extern const String C_opt_Save; 106 107 extern const String C_opt_ExternNamespace; 108 extern const String C_opt_ExternRoot; 109 110 111 inline void 112 CHECKOPT( bool b, const char * miss, const String & opt ) 113 { 114 if ( NOT b ) 115 { 116 StreamLock slMsg(100); 117 throw X_CommandLine( slMsg() << "Missing " << miss <<" after " << opt << "." << c_str ); 118 } 119 } 120 121 } // namespace command 122 } // namespace autodoc 123 124 125 #endif 126