OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FXFA_PARSER_CXFA_DOCUMENT_H_ | 7 #ifndef XFA_FXFA_PARSER_CXFA_DOCUMENT_H_ |
8 #define XFA_FXFA_PARSER_CXFA_DOCUMENT_H_ | 8 #define XFA_FXFA_PARSER_CXFA_DOCUMENT_H_ |
9 | 9 |
| 10 #include <map> |
| 11 |
10 #include "xfa/fxfa/fxfa.h" | 12 #include "xfa/fxfa/fxfa.h" |
11 #include "xfa/fxfa/parser/xfa_localemgr.h" | 13 #include "xfa/fxfa/parser/xfa_localemgr.h" |
12 #include "xfa/fxfa/parser/xfa_object.h" | 14 #include "xfa/fxfa/parser/xfa_object.h" |
13 | 15 |
14 enum XFA_VERSION { | 16 enum XFA_VERSION { |
15 XFA_VERSION_UNKNOWN = 0, | 17 XFA_VERSION_UNKNOWN = 0, |
16 XFA_VERSION_200 = 200, | 18 XFA_VERSION_200 = 200, |
17 XFA_VERSION_202 = 202, | 19 XFA_VERSION_202 = 202, |
18 XFA_VERSION_204 = 204, | 20 XFA_VERSION_204 = 204, |
19 XFA_VERSION_205 = 205, | 21 XFA_VERSION_205 = 205, |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 CXFA_Node* DataMerge_CopyContainer(CXFA_Node* pTemplateNode, | 96 CXFA_Node* DataMerge_CopyContainer(CXFA_Node* pTemplateNode, |
95 CXFA_Node* pFormNode, | 97 CXFA_Node* pFormNode, |
96 CXFA_Node* pDataScope, | 98 CXFA_Node* pDataScope, |
97 bool bOneInstance, | 99 bool bOneInstance, |
98 bool bDataMerge, | 100 bool bDataMerge, |
99 bool bUpLevel); | 101 bool bUpLevel); |
100 void DataMerge_UpdateBindingRelations(CXFA_Node* pFormUpdateRoot); | 102 void DataMerge_UpdateBindingRelations(CXFA_Node* pFormUpdateRoot); |
101 | 103 |
102 void ClearLayoutData(); | 104 void ClearLayoutData(); |
103 | 105 |
104 CFX_MapPtrTemplate<uint32_t, CXFA_Node*> m_rgGlobalBinding; | 106 std::map<uint32_t, CXFA_Node*> m_rgGlobalBinding; |
105 CXFA_NodeArray m_pPendingPageSet; | 107 CXFA_NodeArray m_pPendingPageSet; |
106 | 108 |
107 protected: | 109 protected: |
108 CXFA_DocumentParser* m_pParser; | 110 CXFA_DocumentParser* m_pParser; |
109 CXFA_ScriptContext* m_pScriptContext; | 111 CXFA_ScriptContext* m_pScriptContext; |
110 CXFA_LayoutProcessor* m_pLayoutProcessor; | 112 CXFA_LayoutProcessor* m_pLayoutProcessor; |
111 CXFA_Node* m_pRootNode; | 113 CXFA_Node* m_pRootNode; |
112 CXFA_LocaleMgr* m_pLocalMgr; | 114 CXFA_LocaleMgr* m_pLocalMgr; |
113 CScript_DataWindow* m_pScriptDataWindow; | 115 CScript_DataWindow* m_pScriptDataWindow; |
114 CScript_EventPseudoModel* m_pScriptEvent; | 116 CScript_EventPseudoModel* m_pScriptEvent; |
115 CScript_HostPseudoModel* m_pScriptHost; | 117 CScript_HostPseudoModel* m_pScriptHost; |
116 CScript_LogPseudoModel* m_pScriptLog; | 118 CScript_LogPseudoModel* m_pScriptLog; |
117 CScript_LayoutPseudoModel* m_pScriptLayout; | 119 CScript_LayoutPseudoModel* m_pScriptLayout; |
118 CScript_SignaturePseudoModel* m_pScriptSignature; | 120 CScript_SignaturePseudoModel* m_pScriptSignature; |
119 CXFA_NodeSet m_PurgeNodes; | 121 CXFA_NodeSet m_PurgeNodes; |
120 XFA_VERSION m_eCurVersionMode; | 122 XFA_VERSION m_eCurVersionMode; |
121 uint32_t m_dwDocFlags; | 123 uint32_t m_dwDocFlags; |
122 }; | 124 }; |
123 | 125 |
124 #endif // XFA_FXFA_PARSER_CXFA_DOCUMENT_H_ | 126 #endif // XFA_FXFA_PARSER_CXFA_DOCUMENT_H_ |
OLD | NEW |