office-gobmx/autodoc/source/exes/adc_uni/adc_cmds.hxx
Rüdiger Timm ed669f0f4c INTEGRATION: CWS ooo19126 (1.5.8); FILE MERGED
2005/09/05 13:11:28 rt 1.5.8.1: #i54170# Change license header: remove SISSL
2005-09-07 17:05:16 +00:00

133 lines
3.6 KiB
C++

/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: adc_cmds.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2005-09-07 18:05:16 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 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
*
************************************************************************/
#ifndef ADC_ADC_CMDS_HXX
#define ADC_ADC_CMDS_HXX
// USED SERVICES
// BASE CLASSES
#include "adc_cmd.hxx"
// COMPONENTS
// PARAMETERS
namespace autodoc
{
namespace command
{
/** A command that produces HTML output from the Autodoc Repository.
*/
class CreateHtml : public Command
{
public:
CreateHtml();
~CreateHtml();
const String & OutputDir() const;
const String & DevelopersManual_HtmlRoot() const
{ return sDevelopersManual_HtmlRoot; }
private:
// Interface Context:
virtual void do_Init(
opt_iter & i_nCurArgsBegin,
opt_iter i_nEndOfAllArgs );
// Interface Command:
virtual bool do_Run() const;
virtual int inq_RunningRank() const;
// Locals
void run_Cpp() const;
void run_Idl() const;
// DATA
String sOutputRootDirectory;
String sDevelopersManual_HtmlRoot;
};
inline const String &
CreateHtml::OutputDir() const
{ return sOutputRootDirectory; }
extern const String C_opt_Verbose;
extern const String C_opt_Parse;
extern const String C_opt_Name;
extern const String C_opt_LangAll;
extern const String C_opt_ExtensionsAll;
extern const String C_opt_DevmanFile;
extern const String C_opt_SinceFile;
extern const String C_arg_Cplusplus;
extern const String C_arg_Idl;
extern const String C_arg_Java;
extern const String C_opt_Project;
//extern const String C_opt_Lang;
//extern const String C_opt_Extensions;
extern const String C_opt_SourceTree;
extern const String C_opt_SourceDir;
extern const String C_opt_SourceFile;
extern const String C_opt_CreateHtml;
extern const String C_opt_DevmanRoot;
//extern const String C_opt_CreateXml;
//extern const String C_opt_Load;
//extern const String C_opt_Save;
extern const String C_opt_ExternNamespace;
extern const String C_opt_ExternRoot;
inline void
CHECKOPT( bool b, const char * miss, const String & opt )
{
if ( NOT b )
{
StreamLock slMsg(100);
throw X_CommandLine( slMsg() << "Missing " << miss <<" after " << opt << "." << c_str );
}
}
} // namespace command
} // namespace autodoc
#endif