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