fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / autodoc / source / parser_i / inc / s2_dsapi / cx_dsapi.hxx
blob5e1a7cbead4a5c939dc801a9aec02d3cdd43f8d7
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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
23 // USED SERVICES
24 // BASE CLASSES
25 #include <tokens/tkpcont2.hxx>
26 // COMPONENTS
27 #include <cosv/tpl/dyn.hxx>
28 #include <tokens/tkpstam2.hxx>
29 // PARAMETERS
32 namespace csi
34 namespace dsapi
37 class Token_Receiver;
38 class Token;
40 class Cx_EoHtml;
41 class Cx_EoXmlConst;
42 class Cx_EoXmlLink_BeginTag;
43 class Cx_EoXmlLink_EndTag;
44 class Cx_EoXmlFormat_BeginTag;
45 class Cx_EoXmlFormat_EndTag;
46 class Cx_CheckStar;
48 /**
49 @descr
51 class Context_Docu : public TkpDocuContext,
52 private StateMachineContext
54 public:
55 // LIFECYCLE
56 Context_Docu(
57 Token_Receiver & o_rReceiver );
58 virtual void SetParentContext(
59 TkpContext & io_rParentContext,
60 const char * i_sMultiLineEndToken );
62 ~Context_Docu();
63 // OPERATIONS
64 virtual void ReadCharChain(
65 CharacterSource & io_rText );
67 virtual bool PassNewToken();
68 virtual void SetMode_IsMultiLine(
69 bool i_bTrue );
71 // INQUIRY
72 virtual TkpContext &
73 FollowUpContext();
74 private:
75 // SERVICE FUNCTIONS
76 virtual void PerformStatusFunction(
77 uintt i_nStatusSignal,
78 UINT16 i_nTokenId,
79 CharacterSource & io_rText );
81 void SetupStateMachine();
83 // DATA
84 StateMachin2 aStateMachine;
85 Token_Receiver * pReceiver;
87 // Contexts
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>
96 pCx_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;
106 bool bIsMultiline;
110 } // namespace dsapi
111 } // namespace csi
114 #endif
116 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */