1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: cx_a_sub.hxx,v $
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
36 #include <tokens/tkpcontx.hxx>
38 #include <tokens/tkpstama.hxx>
40 #include <tokens/token.hxx>
48 class Cx_LineStart
: public TkpContext
52 TkpContext
& i_rFollowUpContext
);
54 virtual void ReadCharChain(
55 CharacterSource
& io_rText
);
56 virtual bool PassNewToken();
61 TextToken::F_CRTOK i_fTokenCreateFunction
)
62 { fCur_TokenCreateFunction
= i_fTokenCreateFunction
; }
64 TokenDealer
& o_rDealer
)
65 { pDealer
= &o_rDealer
; }
68 TokenDealer
* pDealer
;
69 TkpContext
* pFollowUpContext
;
71 Dyn
<TextToken
> pNewToken
;
73 TextToken::F_CRTOK fCur_TokenCreateFunction
;
81 class Cx_CheckStar
: public TkpContext
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();
97 { bCanBeEnd
= i_bCanBeEnd
; }
101 TokenDealer
& o_rDealer
)
102 { pDealer
= &o_rDealer
; }
105 TokenDealer
* pDealer
;
106 TkpContext
* pFollowUpContext
;
107 TkpContext
* pEnd_FollowUpContext
;
109 Dyn
<TextToken
> pNewToken
;
116 class Cx_AtTagCompletion
: public TkpContext
120 TkpContext
& i_rFollowUpContext
);
122 virtual void ReadCharChain(
123 CharacterSource
& io_rText
);
124 virtual bool PassNewToken();
129 TextToken::F_CRTOK i_fTokenCreateFunction
)
130 { fCur_TokenCreateFunction
= i_fTokenCreateFunction
; }
132 TokenDealer
& o_rDealer
)
133 { pDealer
= &o_rDealer
; }
136 TokenDealer
* pDealer
;
137 TkpContext
* pFollowUpContext
;
139 Dyn
<TextToken
> pNewToken
;
141 TextToken::F_CRTOK fCur_TokenCreateFunction
;