merge the formfield patch from ooo-build
[ooovba.git] / autodoc / source / parser / inc / adoc / tk_docw.hxx
blob875612d28729abdb85c5db78503278ce7751711f
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: tk_docw.hxx,v $
10 * $Revision: 1.4 $
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 ADC_ADOC_TK_DOCW_HXX
32 #define ADC_ADOC_TK_DOCW_HXX
34 // USED SERVICES
35 // BASE CLASSES
36 #include <adoc/adoc_tok.hxx>
37 // COMPONENTS
38 // PARAMETERS
40 namespace adoc {
43 class Tok_DocWord : public Token
45 public:
46 // Spring and Fall
47 Tok_DocWord(
48 const char * i_sText )
49 : sText(i_sText) {}
50 // OPERATIONS
51 virtual void Trigger(
52 TokenInterpreter & io_rInterpreter ) const;
53 // INQUIRY
54 virtual const char* Text() const;
55 uintt Length() const { return sText.length(); }
57 private:
58 // DATA
59 String sText;
62 class Tok_Whitespace : public Token
64 public:
65 // Spring and Fall
66 Tok_Whitespace(
67 UINT8 i_nSize )
68 : nSize(i_nSize) {}
69 // OPERATIONS
70 virtual void Trigger(
71 TokenInterpreter & io_rInterpreter ) const;
72 // INQUIRY
73 virtual const char* Text() const;
74 UINT8 Size() const { return nSize; }
76 private:
77 // DATA
78 UINT8 nSize;
81 class Tok_LineStart : public Token
83 public:
84 // Spring and Fall
85 Tok_LineStart(
86 UINT8 i_nSize )
87 : nSize(i_nSize) {}
88 // OPERATIONS
89 virtual void Trigger(
90 TokenInterpreter & io_rInterpreter ) const;
91 // INQUIRY
92 virtual const char* Text() const;
93 UINT8 Size() const { return nSize; }
95 private:
96 // DATA
97 UINT8 nSize;
100 class Tok_Eol : public Token
101 { public:
102 virtual void Trigger(
103 TokenInterpreter & io_rInterpreter ) const;
104 virtual const char *
105 Text() const;
108 class Tok_EoDocu : public Token
109 { public:
110 virtual void Trigger(
111 TokenInterpreter & io_rInterpreter ) const;
112 virtual const char *
113 Text() const;
117 } // namespace adoc
119 #endif