Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: xfa/fxfa/parser/xfa_document.h

Issue 1981003002: Replace Release() { delete this; } in fde_xml_imp.h (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Revert accident with editor. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/app/xfa_ffdoc.cpp ('k') | xfa/fxfa/parser/xfa_document_imp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffdoc.cpp ('k') | xfa/fxfa/parser/xfa_document_imp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698