1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef ADC_CX_DSAPI_HXX
21 #define ADC_CX_DSAPI_HXX
25 #include <tokens/tkpcont2.hxx>
27 #include <cosv/tpl/dyn.hxx>
28 #include <tokens/tkpstam2.hxx>
42 class Cx_EoXmlLink_BeginTag
;
43 class Cx_EoXmlLink_EndTag
;
44 class Cx_EoXmlFormat_BeginTag
;
45 class Cx_EoXmlFormat_EndTag
;
51 class Context_Docu
: public TkpDocuContext
,
52 private StateMachineContext
57 Token_Receiver
& o_rReceiver
);
58 virtual void SetParentContext(
59 TkpContext
& io_rParentContext
,
60 const char * i_sMultiLineEndToken
);
64 virtual void ReadCharChain(
65 CharacterSource
& io_rText
);
67 virtual bool PassNewToken();
68 virtual void SetMode_IsMultiLine(
76 virtual void PerformStatusFunction(
77 uintt i_nStatusSignal
,
79 CharacterSource
& io_rText
);
81 void SetupStateMachine();
84 StateMachin2 aStateMachine
;
85 Token_Receiver
* pReceiver
;
88 TkpContext
* pParentContext
;
89 String sMultiLineEndToken
;
91 Dyn
<Cx_EoHtml
> pCx_EoHtml
;
92 Dyn
<Cx_EoXmlConst
> pCx_EoXmlConst
;
93 Dyn
<Cx_EoXmlLink_BeginTag
>
94 pCx_EoXmlLink_BeginTag
;
95 Dyn
<Cx_EoXmlLink_EndTag
>
97 Dyn
<Cx_EoXmlFormat_BeginTag
>
98 pCx_EoXmlFormat_BeginTag
;
99 Dyn
<Cx_EoXmlFormat_EndTag
>
100 pCx_EoXmlFormat_EndTag
;
101 Dyn
<Cx_CheckStar
> pCx_CheckStar
;
103 // Temporary data, used during ReadCharChain()
104 Dyn
<Token
> pNewToken
;
105 ::TkpContext
* pFollowUpContext
;
116 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */