Update ooo320-m1
[ooovba.git] / autodoc / source / parser / inc / adoc / cx_a_sub.hxx
blob9a7d733abd82b73ac9896cdd0fe7fba71ac76885
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: cx_a_sub.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 ADC_ADOC_CX_A_SUB_HXX
32 #define ADC_ADOC_CX_A_SUB_HXX
34 // USED SERVICES
35 // BASE CLASSES
36 #include <tokens/tkpcontx.hxx>
37 // COMPONENTS
38 #include <tokens/tkpstama.hxx>
39 // PARAMETERS
40 #include <tokens/token.hxx>
43 namespace adoc {
48 class Cx_LineStart : public TkpContext
50 public:
51 Cx_LineStart(
52 TkpContext & i_rFollowUpContext );
54 virtual void ReadCharChain(
55 CharacterSource & io_rText );
56 virtual bool PassNewToken();
57 virtual TkpContext &
58 FollowUpContext();
60 void SetCurToken(
61 TextToken::F_CRTOK i_fTokenCreateFunction )
62 { fCur_TokenCreateFunction = i_fTokenCreateFunction; }
63 void AssignDealer(
64 TokenDealer & o_rDealer )
65 { pDealer = &o_rDealer; }
66 private:
67 // DATA
68 TokenDealer * pDealer;
69 TkpContext * pFollowUpContext;
71 Dyn<TextToken> pNewToken;
73 TextToken::F_CRTOK fCur_TokenCreateFunction;
77 /**
78 @descr
81 class Cx_CheckStar : public TkpContext
83 public:
84 // LIFECYCLE
85 Cx_CheckStar(
86 TkpContext & i_rFollowUpContext );
87 void Set_End_FollowUpContext(
88 TkpContext & i_rEnd_FollowUpContext )
89 { pEnd_FollowUpContext = &i_rEnd_FollowUpContext; }
91 virtual void ReadCharChain(
92 CharacterSource & io_rText );
93 virtual bool PassNewToken();
95 void SetCanBeEnd(
96 bool i_bCanBeEnd )
97 { bCanBeEnd = i_bCanBeEnd; }
98 virtual TkpContext &
99 FollowUpContext();
100 void AssignDealer(
101 TokenDealer & o_rDealer )
102 { pDealer = &o_rDealer; }
103 private:
104 // DATA
105 TokenDealer * pDealer;
106 TkpContext * pFollowUpContext;
107 TkpContext * pEnd_FollowUpContext;
109 Dyn<TextToken> pNewToken;
111 bool bCanBeEnd;
112 bool bEndTokenFound;
116 class Cx_AtTagCompletion : public TkpContext
118 public:
119 Cx_AtTagCompletion(
120 TkpContext & i_rFollowUpContext );
122 virtual void ReadCharChain(
123 CharacterSource & io_rText );
124 virtual bool PassNewToken();
125 virtual TkpContext &
126 FollowUpContext();
128 void SetCurToken(
129 TextToken::F_CRTOK i_fTokenCreateFunction )
130 { fCur_TokenCreateFunction = i_fTokenCreateFunction; }
131 void AssignDealer(
132 TokenDealer & o_rDealer )
133 { pDealer = &o_rDealer; }
134 private:
135 // DATA
136 TokenDealer * pDealer;
137 TkpContext * pFollowUpContext;
139 Dyn<TextToken> pNewToken;
141 TextToken::F_CRTOK fCur_TokenCreateFunction;
145 } // namespace adoc
148 #endif