1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef ADC_ADC_CL_HXX
21 #define ADC_ADC_CL_HXX
27 #include <cosv/comdline.hxx>
42 class SinceTagTransformationData
;
46 /** Reads and runs an Autodoc command line.
48 class CommandLine
: public csv::CommandLine_Ifc
59 bool DebugStyle_ShowText() const;
60 bool DebugStyle_ShowStoredObjects() const;
61 bool DebugStyle_ShowTokens() const;
64 bool DoesTransform_SinceTag() const;
66 // /// @see command::SinceTagTransformationData::StripSinceTagValue()
67 // bool Strip_SinceTagText(
68 // String & io_sSinceTagValue ) const;
70 /// @see command::SinceTagTransformationData::DisplayOf()
71 const String
& DisplayOf_SinceTagValue(
72 const String
& i_sVersionNumber
) const;
75 const String
& ExternRoot() const { return sExternRoot
; }
76 const String
& ExternNamespace() const { return sExternNamespace
; }
78 bool IdlUsed() const { return bIdl
; }
85 { sExternRoot
= i_s
; }
86 void Set_ExternNamespace(
88 { sExternNamespace
= i_s
; }
89 ary::Repository
& TheRepository() const { csv_assert(pReposy
!= 0);
91 void Set_IdlUsed() { bIdl
= true; }
94 // Interface cosv::CommandLine_Ifc:
98 virtual void do_PrintUse() const;
99 virtual bool inq_CheckParameters() const;
102 typedef StringVector::const_iterator opt_iter
;
103 typedef std::vector
< DYN
command::Command
* > CommandList
;
105 void load_IncludedCommands(
107 const char * i_filePath
);
115 void do_clCreateHtml(
122 // void do_clCreateXml(
132 void sort_Commands();
136 Dyn
<command::SinceTagTransformationData
>
139 CommandList aCommands
;
141 command::CreateHtml
*
145 String sExternNamespace
;
147 mutable Dyn
<ary::Repository
>
159 CommandLine::DebugStyle_ShowText() const
160 { return (nDebugStyle
& 2) != 0; }
162 CommandLine::DebugStyle_ShowStoredObjects() const
163 { return (nDebugStyle
& 4) != 0; }
165 CommandLine::DebugStyle_ShowTokens() const
166 { return (nDebugStyle
& 1) != 0; }
168 } // namespace autodoc
173 { return autodoc::CommandLine::Get_().DebugStyle_ShowText(); }
176 { return autodoc::CommandLine::Get_().DebugStyle_ShowStoredObjects(); }
179 { return autodoc::CommandLine::Get_().DebugStyle_ShowTokens(); }
183 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */