Update ooo320-m1
[ooovba.git] / autodoc / inc / ary_i / ci_text2.hxx
blobab2131f030083946aa143bdda062520fb581b80c
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ci_text2.hxx,v $
10 * $Revision: 1.7 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef ARY_CINFO_CI_TEXT2_HXX
32 #define ARY_CINFO_CI_TEXT2_HXX
36 // USED SERVICES
37 // BASE CLASSES
38 // COMPONENTS
39 // PARAMETERS
42 namespace ary
44 namespace inf
48 class DocumentationDisplay;
51 class DocuToken
53 public:
54 virtual ~DocuToken() {}
55 virtual void DisplayAt(
56 DocumentationDisplay &
57 o_rDisplay ) const = 0;
58 virtual bool IsWhiteOnly() const = 0;
62 class DocuTex2
64 public:
65 typedef std::vector< DocuToken * > TokenList;
67 DocuTex2();
68 virtual ~DocuTex2();
70 virtual void DisplayAt(
71 DocumentationDisplay &
72 o_rDisplay ) const;
73 void AddToken(
74 DYN DocuToken & let_drToken );
76 const TokenList & Tokens() const { return aTokens; }
77 bool IsEmpty() const;
78 const String & TextOfFirstToken() const;
80 String & Access_TextOfFirstToken();
82 private:
83 TokenList aTokens;
88 // IMPLEMENTATION
90 } // namespace inf
91 } // namespace ary
94 #endif