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 .
21 #include <ary_i/ci_text2.hxx>
24 // NOT FULLY DEFINED SERVICES
25 #include <ary_i/disdocum.hxx>
26 #include <ary_i/d_token.hxx>
40 for ( TokenList::iterator iter
= aTokens
.begin();
41 iter
!= aTokens
.end();
49 DocuTex2::DisplayAt( DocumentationDisplay
& o_rDisplay
) const
51 for ( ary::inf::DocuTex2::TokenList::const_iterator
52 iter
= aTokens
.begin();
53 iter
!= aTokens
.end();
56 (*iter
)->DisplayAt(o_rDisplay
);
61 DocuTex2::AddToken( DYN DocuToken
& let_drToken
)
65 if (let_drToken
.IsWhiteOnly())
68 aTokens
.push_back(&let_drToken
);
72 using csi::dsapi::DT_TextToken
;
75 DocuTex2::TextOfFirstToken() const
77 if (NOT aTokens
.empty())
80 pTok
= dynamic_cast< const DT_TextToken
* >(*aTokens
.begin());
83 return pTok
->GetTextStr();
85 return String::Null_();
89 DocuTex2::Access_TextOfFirstToken()
91 if (NOT aTokens
.empty())
94 pTok
= dynamic_cast< DT_TextToken
* >(*aTokens
.begin());
97 return pTok
->Access_Text();
100 static String sDummy_
;
106 void DocuText_Display::Display_StdAtTag(
107 const csi::dsapi::DT_StdAtTag
& ) {}
108 void DocuText_Display::Display_SeeAlsoAtTag(
109 const csi::dsapi::DT_SeeAlsoAtTag
& ) {}
110 void DocuText_Display::Display_ParameterAtTag(
111 const csi::dsapi::DT_ParameterAtTag
& ) {}
112 void DocuText_Display::Display_SinceAtTag(
113 const csi::dsapi::DT_SinceAtTag
& ) {}
120 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */