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_CL_HXX
30 #define ADC_ADC_CL_HXX
36 #include <cosv/comdline.hxx>
51 class SinceTagTransformationData
;
55 /** Reads and runs an Autodoc command line.
57 class CommandLine
: public csv::CommandLine_Ifc
68 bool DebugStyle_ShowText() const;
69 bool DebugStyle_ShowStoredObjects() const;
70 bool DebugStyle_ShowTokens() const;
73 bool DoesTransform_SinceTag() const;
75 // /// @see command::SinceTagTransformationData::StripSinceTagValue()
76 // bool Strip_SinceTagText(
77 // String & io_sSinceTagValue ) const;
79 /// @see command::SinceTagTransformationData::DisplayOf()
80 const String
& DisplayOf_SinceTagValue(
81 const String
& i_sVersionNumber
) const;
84 const String
& ExternRoot() const { return sExternRoot
; }
85 const String
& ExternNamespace() const { return sExternNamespace
; }
87 bool IdlUsed() const { return bIdl
; }
94 { sExternRoot
= i_s
; }
95 void Set_ExternNamespace(
97 { sExternNamespace
= i_s
; }
98 ary::Repository
& TheRepository() const { csv_assert(pReposy
!= 0);
100 void Set_IdlUsed() { bIdl
= true; }
103 // Interface cosv::CommandLine_Ifc:
104 virtual void do_Init(
107 virtual void do_PrintUse() const;
108 virtual bool inq_CheckParameters() const;
111 typedef StringVector::const_iterator opt_iter
;
112 typedef std::vector
< DYN
command::Command
* > CommandList
;
114 void load_IncludedCommands(
116 const char * i_filePath
);
124 void do_clCreateHtml(
131 // void do_clCreateXml(
141 void sort_Commands();
145 Dyn
<command::SinceTagTransformationData
>
148 CommandList aCommands
;
150 command::CreateHtml
*
154 String sExternNamespace
;
156 mutable Dyn
<ary::Repository
>
168 CommandLine::DebugStyle_ShowText() const
169 { return (nDebugStyle
& 2) != 0; }
171 CommandLine::DebugStyle_ShowStoredObjects() const
172 { return (nDebugStyle
& 4) != 0; }
174 CommandLine::DebugStyle_ShowTokens() const
175 { return (nDebugStyle
& 1) != 0; }
177 } // namespace autodoc
182 { return autodoc::CommandLine::Get_().DebugStyle_ShowText(); }
185 { return autodoc::CommandLine::Get_().DebugStyle_ShowStoredObjects(); }
188 { return autodoc::CommandLine::Get_().DebugStyle_ShowTokens(); }
192 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */