Update ooo320-m1
[ooovba.git] / autodoc / inc / ary / info / ci_text.hxx
blob5bdabca9b1d86d9478535732d13c7211a3b07964
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_text.hxx,v $
10 * $Revision: 1.3 $
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_INFO_CI_TEXT_HXX
32 #define ARY_INFO_CI_TEXT_HXX
36 // USED SERVICES
37 // BASE CLASSES
38 // COMPONENTS
39 // PARAMETERS
42 namespace ary
44 namespace info
47 class DocuToken;
48 class DocuDisplay;
51 class DocuText
53 public:
54 typedef std::vector< DocuToken * > TokenList;
56 DocuText();
57 ~DocuText();
59 void Set_HtmlUse(
60 bool i_bUseIt )
61 { bUsesHtml = i_bUseIt; }
62 void Add_Token(
63 DYN DocuToken & let_drToken )
64 { aTokens.push_back(&let_drToken); }
65 const TokenList & Tokens() const { return aTokens; }
66 void StoreAt(
67 DocuDisplay & o_rDisplay ) const;
68 bool IsNoHtml() const { return NOT bUsesHtml; }
69 bool IsEmpty() const { return aTokens.size() == 0; }
71 private:
72 TokenList aTokens;
73 bool bUsesHtml;
81 // IMPLEMENTATION
87 #endif