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" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 class CScript_HostPseudoModel; | 60 class CScript_HostPseudoModel; |
61 class CScript_LogPseudoModel; | 61 class CScript_LogPseudoModel; |
62 class CScript_LayoutPseudoModel; | 62 class CScript_LayoutPseudoModel; |
63 class CScript_SignaturePseudoModel; | 63 class CScript_SignaturePseudoModel; |
64 class CXFA_Document { | 64 class CXFA_Document { |
65 public: | 65 public: |
66 CXFA_Document(CXFA_DocumentParser* pParser); | 66 CXFA_Document(CXFA_DocumentParser* pParser); |
67 ~CXFA_Document(); | 67 ~CXFA_Document(); |
68 CXFA_Node* GetRoot() const { return m_pRootNode; } | 68 CXFA_Node* GetRoot() const { return m_pRootNode; } |
69 CXFA_DocumentParser* GetParser() const { return m_pParser; } | 69 CXFA_DocumentParser* GetParser() const { return m_pParser; } |
| 70 void DestroyParser(); |
70 CXFA_FFNotify* GetNotify() const; | 71 CXFA_FFNotify* GetNotify() const; |
71 void SetRoot(CXFA_Node* pNewRoot); | 72 void SetRoot(CXFA_Node* pNewRoot); |
72 CXFA_Object* GetXFAObject(const CFX_WideStringC& wsNodeName); | 73 CXFA_Object* GetXFAObject(const CFX_WideStringC& wsNodeName); |
73 CXFA_Object* GetXFAObject(uint32_t wsNodeNameHash); | 74 CXFA_Object* GetXFAObject(uint32_t wsNodeNameHash); |
74 void AddPurgeNode(CXFA_Node* pNode); | 75 void AddPurgeNode(CXFA_Node* pNode); |
75 FX_BOOL RemovePurgeNode(CXFA_Node* pNode); | 76 FX_BOOL RemovePurgeNode(CXFA_Node* pNode); |
76 void PurgeNodes(); | 77 void PurgeNodes(); |
77 bool HasFlag(uint32_t dwFlag) { return (m_dwDocFlags & dwFlag) == dwFlag; } | 78 bool HasFlag(uint32_t dwFlag) { return (m_dwDocFlags & dwFlag) == dwFlag; } |
78 void SetFlag(uint32_t dwFlag, FX_BOOL bOn = TRUE); | 79 void SetFlag(uint32_t dwFlag, FX_BOOL bOn = TRUE); |
79 FX_BOOL IsInteractive(); | 80 FX_BOOL IsInteractive(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 CScript_LogPseudoModel* m_pScriptLog; | 116 CScript_LogPseudoModel* m_pScriptLog; |
116 CScript_LayoutPseudoModel* m_pScriptLayout; | 117 CScript_LayoutPseudoModel* m_pScriptLayout; |
117 CScript_SignaturePseudoModel* m_pScriptSignature; | 118 CScript_SignaturePseudoModel* m_pScriptSignature; |
118 CXFA_NodeSet m_PurgeNodes; | 119 CXFA_NodeSet m_PurgeNodes; |
119 XFA_VERSION m_eCurVersionMode; | 120 XFA_VERSION m_eCurVersionMode; |
120 uint32_t m_dwDocFlags; | 121 uint32_t m_dwDocFlags; |
121 friend class CXFA_SimpleParser; | 122 friend class CXFA_SimpleParser; |
122 }; | 123 }; |
123 | 124 |
124 #endif // XFA_FXFA_PARSER_XFA_DOCUMENT_H_ | 125 #endif // XFA_FXFA_PARSER_XFA_DOCUMENT_H_ |
OLD | NEW |