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_dsapi.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_CX_DSAPI_HXX
32 #define ADC_CX_DSAPI_HXX
36 #include <tokens/tkpcont2.hxx>
38 #include <cosv/tpl/dyn.hxx>
39 #include <tokens/tkpstam2.hxx>
53 class Cx_EoXmlLink_BeginTag
;
54 class Cx_EoXmlLink_EndTag
;
55 class Cx_EoXmlFormat_BeginTag
;
56 class Cx_EoXmlFormat_EndTag
;
62 class Context_Docu
: public TkpDocuContext
,
63 private StateMachineContext
68 Token_Receiver
& o_rReceiver
);
69 virtual void SetParentContext(
70 TkpContext
& io_rParentContext
,
71 const char * i_sMultiLineEndToken
);
75 virtual void ReadCharChain(
76 CharacterSource
& io_rText
);
78 virtual bool PassNewToken();
79 virtual void SetMode_IsMultiLine(
87 virtual void PerformStatusFunction(
88 uintt i_nStatusSignal
,
90 CharacterSource
& io_rText
);
92 void SetupStateMachine();
95 StateMachin2 aStateMachine
;
96 Token_Receiver
* pReceiver
;
99 TkpContext
* pParentContext
;
100 String sMultiLineEndToken
;
102 Dyn
<Cx_EoHtml
> pCx_EoHtml
;
103 Dyn
<Cx_EoXmlConst
> pCx_EoXmlConst
;
104 Dyn
<Cx_EoXmlLink_BeginTag
>
105 pCx_EoXmlLink_BeginTag
;
106 Dyn
<Cx_EoXmlLink_EndTag
>
107 pCx_EoXmlLink_EndTag
;
108 Dyn
<Cx_EoXmlFormat_BeginTag
>
109 pCx_EoXmlFormat_BeginTag
;
110 Dyn
<Cx_EoXmlFormat_EndTag
>
111 pCx_EoXmlFormat_EndTag
;
112 Dyn
<Cx_CheckStar
> pCx_CheckStar
;
114 // Temporary data, used during ReadCharChain()
115 Dyn
<Token
> pNewToken
;
116 ::TkpContext
* pFollowUpContext
;