fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / autodoc / source / ary_i / kernel / ci_text2.cxx
bloba92561e1400a3a96f83ee9465cd341c4b95c9a04
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 #include <precomp.h>
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>
29 namespace ary
31 namespace inf
34 DocuTex2::DocuTex2()
38 DocuTex2::~DocuTex2()
40 for ( TokenList::iterator iter = aTokens.begin();
41 iter != aTokens.end();
42 ++iter )
44 delete (*iter);
48 void
49 DocuTex2::DisplayAt( DocumentationDisplay & o_rDisplay ) const
51 for ( ary::inf::DocuTex2::TokenList::const_iterator
52 iter = aTokens.begin();
53 iter != aTokens.end();
54 ++iter )
56 (*iter)->DisplayAt(o_rDisplay);
60 void
61 DocuTex2::AddToken( DYN DocuToken & let_drToken )
63 if (aTokens.empty())
65 if (let_drToken.IsWhiteOnly())
66 return;
68 aTokens.push_back(&let_drToken);
72 using csi::dsapi::DT_TextToken;
74 const String &
75 DocuTex2::TextOfFirstToken() const
77 if (NOT aTokens.empty())
79 const DT_TextToken *
80 pTok = dynamic_cast< const DT_TextToken* >(*aTokens.begin());
82 if (pTok != 0)
83 return pTok->GetTextStr();
85 return String::Null_();
88 String &
89 DocuTex2::Access_TextOfFirstToken()
91 if (NOT aTokens.empty())
93 DT_TextToken *
94 pTok = dynamic_cast< DT_TextToken* >(*aTokens.begin());
96 if (pTok != 0)
97 return pTok->Access_Text();
100 static String sDummy_;
101 return 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 & ) {}
117 } // namespace inf
118 } // namespace ary
120 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */