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_XFA_DOCUMENT_H_ | 7 #ifndef XFA_FXFA_PARSER_XFA_DOCUMENT_H_ |
8 #define XFA_FXFA_PARSER_XFA_DOCUMENT_H_ | 8 #define XFA_FXFA_PARSER_XFA_DOCUMENT_H_ |
9 | 9 |
10 #include "xfa/fxfa/include/fxfa.h" | 10 #include "xfa/fxfa/include/fxfa.h" |
11 #include "xfa/fxfa/parser/xfa_localemgr.h" | 11 #include "xfa/fxfa/parser/xfa_localemgr.h" |
12 #include "xfa/fxfa/parser/xfa_object.h" | 12 #include "xfa/fxfa/parser/xfa_object.h" |
| 13 #include "xfa/fxfa/parser/xfa_parser_imp.h" |
13 | 14 |
14 class CXFA_Document; | 15 class CXFA_Document; |
15 class CXFA_LayoutItem; | 16 class CXFA_LayoutItem; |
16 class CXFA_LayoutProcessor; | 17 class CXFA_LayoutProcessor; |
17 class CXFA_Node; | 18 class CXFA_Node; |
18 class CXFA_LayoutProcessor; | 19 class CXFA_LayoutProcessor; |
19 class CXFA_DocumentParser; | 20 class CXFA_DocumentParser; |
20 class CXFA_ContainerLayoutItem; | 21 class CXFA_ContainerLayoutItem; |
21 class CXFA_FFNotify; | 22 class CXFA_FFNotify; |
22 class CXFA_ScriptContext; | 23 class CXFA_ScriptContext; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 class CScript_LogPseudoModel; | 58 class CScript_LogPseudoModel; |
58 class CScript_LayoutPseudoModel; | 59 class CScript_LayoutPseudoModel; |
59 class CScript_SignaturePseudoModel; | 60 class CScript_SignaturePseudoModel; |
60 | 61 |
61 class CXFA_Document { | 62 class CXFA_Document { |
62 public: | 63 public: |
63 CXFA_Document(CXFA_DocumentParser* pParser); | 64 CXFA_Document(CXFA_DocumentParser* pParser); |
64 ~CXFA_Document(); | 65 ~CXFA_Document(); |
65 | 66 |
66 CXFA_Node* GetRoot() const { return m_pRootNode; } | 67 CXFA_Node* GetRoot() const { return m_pRootNode; } |
67 CXFA_DocumentParser* GetParser() const { return m_pParser; } | 68 |
| 69 CFDE_XMLDoc* GetXMLDoc() const; |
68 CXFA_FFNotify* GetNotify() const; | 70 CXFA_FFNotify* GetNotify() const; |
69 void SetRoot(CXFA_Node* pNewRoot); | 71 void SetRoot(CXFA_Node* pNewRoot); |
70 CXFA_Object* GetXFAObject(XFA_HashCode wsNodeNameHash); | 72 CXFA_Object* GetXFAObject(XFA_HashCode wsNodeNameHash); |
71 void AddPurgeNode(CXFA_Node* pNode); | 73 void AddPurgeNode(CXFA_Node* pNode); |
72 FX_BOOL RemovePurgeNode(CXFA_Node* pNode); | 74 FX_BOOL RemovePurgeNode(CXFA_Node* pNode); |
73 void PurgeNodes(); | 75 void PurgeNodes(); |
74 bool HasFlag(uint32_t dwFlag) { return (m_dwDocFlags & dwFlag) == dwFlag; } | 76 bool HasFlag(uint32_t dwFlag) { return (m_dwDocFlags & dwFlag) == dwFlag; } |
75 void SetFlag(uint32_t dwFlag, FX_BOOL bOn = TRUE); | 77 void SetFlag(uint32_t dwFlag, FX_BOOL bOn = TRUE); |
76 FX_BOOL IsInteractive(); | 78 FX_BOOL IsInteractive(); |
77 XFA_VERSION GetCurVersionMode() { return m_eCurVersionMode; } | 79 XFA_VERSION GetCurVersionMode() { return m_eCurVersionMode; } |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 CScript_LogPseudoModel* m_pScriptLog; | 114 CScript_LogPseudoModel* m_pScriptLog; |
113 CScript_LayoutPseudoModel* m_pScriptLayout; | 115 CScript_LayoutPseudoModel* m_pScriptLayout; |
114 CScript_SignaturePseudoModel* m_pScriptSignature; | 116 CScript_SignaturePseudoModel* m_pScriptSignature; |
115 CXFA_NodeSet m_PurgeNodes; | 117 CXFA_NodeSet m_PurgeNodes; |
116 XFA_VERSION m_eCurVersionMode; | 118 XFA_VERSION m_eCurVersionMode; |
117 uint32_t m_dwDocFlags; | 119 uint32_t m_dwDocFlags; |
118 friend class CXFA_SimpleParser; | 120 friend class CXFA_SimpleParser; |
119 }; | 121 }; |
120 | 122 |
121 #endif // XFA_FXFA_PARSER_XFA_DOCUMENT_H_ | 123 #endif // XFA_FXFA_PARSER_XFA_DOCUMENT_H_ |
OLD | NEW |