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 ARY_DOC_D_OLDIDLDOCU_HXX
21 #define ARY_DOC_D_OLDIDLDOCU_HXX
24 #include <ary/doc/d_node.hxx>
26 #include <ary_i/ci_text2.hxx>
41 using ::ary::inf::AtTag2
;
42 using ::ary::inf::DocuToken
;
43 using ::ary::inf::DocuTex2
;
47 /** Wrapper for the old idl documentation format.
49 class OldIdlDocu
: public Node
56 DYN DocuToken
& let_drToken
)
57 { aShort
.AddToken(let_drToken
); }
58 void AddToken2Description(
59 DYN DocuToken
& let_drToken
)
60 { aDescription
.AddToken(let_drToken
); }
61 void AddToken2DeprecatedText(
62 DYN DocuToken
& let_drToken
);
64 DYN AtTag2
& let_drAtTag
)
65 { aTags
.push_back(&let_drAtTag
); }
66 void SetPublished() { bIsPublished
= true; }
67 void SetDeprecated() { bIsDeprecated
= true; }
68 void SetOptional() { bIsOptional
= true; }
70 const DocuTex2
& i_pExternShort
)
71 { pExternShort
= &i_pExternShort
; }
73 const DocuTex2
& Short() const { return pExternShort
!= 0 ? *pExternShort
: aShort
; }
74 const DocuTex2
& Description() const { return aDescription
; }
75 const DocuTex2
& DeprecatedText() const { return aDeprecatedText
; }
76 const std::vector
< AtTag2
* > &
77 Tags() const { return aTags
; }
78 bool IsPublished() const { return bIsPublished
; }
79 bool IsDeprecated() const { return bIsDeprecated
; }
80 bool IsOptional() const { return bIsOptional
; }
83 // Interface csv::ConstProcessorClient:
84 virtual void do_Accept(
85 csv::ProcessorIfc
& io_processor
) const;
88 DocuTex2 aDescription
;
89 DocuTex2 aDeprecatedText
;
90 std::vector
< AtTag2
* >
92 const DocuTex2
* pExternShort
;
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */