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

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

Issue 1836353002: Remove IFDE_XML* classes. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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/parser/xfa_document_serialize.cpp ('k') | xfa/fxfa/parser/xfa_object_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_OBJECT_H_ 7 #ifndef XFA_FXFA_PARSER_XFA_OBJECT_H_
8 #define XFA_FXFA_PARSER_XFA_OBJECT_H_ 8 #define XFA_FXFA_PARSER_XFA_OBJECT_H_
9 9
10 #include "xfa/fde/xml/fde_xml.h" 10 #include "xfa/fde/xml/fde_xml.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 class CXFA_Node : public CXFA_Object { 131 class CXFA_Node : public CXFA_Object {
132 public: 132 public:
133 XFA_ELEMENT GetClassID() const { return (XFA_ELEMENT)m_eNodeClass; } 133 XFA_ELEMENT GetClassID() const { return (XFA_ELEMENT)m_eNodeClass; }
134 uint32_t GetPacketID() const { return m_ePacket; } 134 uint32_t GetPacketID() const { return m_ePacket; }
135 FX_BOOL HasFlag(uint32_t dwFlag) const; 135 FX_BOOL HasFlag(uint32_t dwFlag) const;
136 void SetFlag(uint32_t dwFlag, FX_BOOL bOn = TRUE, FX_BOOL bNotify = TRUE); 136 void SetFlag(uint32_t dwFlag, FX_BOOL bOn = TRUE, FX_BOOL bNotify = TRUE);
137 FX_BOOL IsAttributeInXML(); 137 FX_BOOL IsAttributeInXML();
138 FX_BOOL IsFormContainer() { 138 FX_BOOL IsFormContainer() {
139 return m_ePacket == XFA_XDPPACKET_Form && IsContainerNode(); 139 return m_ePacket == XFA_XDPPACKET_Form && IsContainerNode();
140 } 140 }
141 void SetXMLMappingNode(IFDE_XMLNode* pXMLNode) { m_pXMLNode = pXMLNode; } 141 void SetXMLMappingNode(CFDE_XMLNode* pXMLNode) { m_pXMLNode = pXMLNode; }
142 IFDE_XMLNode* GetXMLMappingNode() const { return m_pXMLNode; } 142 CFDE_XMLNode* GetXMLMappingNode() const { return m_pXMLNode; }
143 IFDE_XMLNode* CreateXMLMappingNode(); 143 CFDE_XMLNode* CreateXMLMappingNode();
144 FX_BOOL IsNeedSavingXMLNode(); 144 FX_BOOL IsNeedSavingXMLNode();
145 uint32_t GetNameHash() const { return m_dwNameHash; } 145 uint32_t GetNameHash() const { return m_dwNameHash; }
146 bool IsUnnamed() const { return m_dwNameHash == 0; } 146 bool IsUnnamed() const { return m_dwNameHash == 0; }
147 CXFA_Node* GetModelNode(); 147 CXFA_Node* GetModelNode();
148 void UpdateNameHash(); 148 void UpdateNameHash();
149 FX_BOOL HasAttribute(XFA_ATTRIBUTE eAttr, FX_BOOL bCanInherit = FALSE); 149 FX_BOOL HasAttribute(XFA_ATTRIBUTE eAttr, FX_BOOL bCanInherit = FALSE);
150 FX_BOOL SetAttribute(XFA_ATTRIBUTE eAttr, 150 FX_BOOL SetAttribute(XFA_ATTRIBUTE eAttr,
151 const CFX_WideStringC& wsValue, 151 const CFX_WideStringC& wsValue,
152 FX_BOOL bNotify = FALSE); 152 FX_BOOL bNotify = FALSE);
153 FX_BOOL GetAttribute(XFA_ATTRIBUTE eAttr, 153 FX_BOOL GetAttribute(XFA_ATTRIBUTE eAttr,
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 void MoveBufferMapData(CXFA_Node* pDstModule, void* pKey); 631 void MoveBufferMapData(CXFA_Node* pDstModule, void* pKey);
632 void MoveBufferMapData(CXFA_Node* pSrcModule, 632 void MoveBufferMapData(CXFA_Node* pSrcModule,
633 CXFA_Node* pDstModule, 633 CXFA_Node* pDstModule,
634 void* pKey, 634 void* pKey,
635 FX_BOOL bRecursive = FALSE); 635 FX_BOOL bRecursive = FALSE);
636 636
637 CXFA_Node* m_pNext; 637 CXFA_Node* m_pNext;
638 CXFA_Node* m_pChild; 638 CXFA_Node* m_pChild;
639 CXFA_Node* m_pLastChild; 639 CXFA_Node* m_pLastChild;
640 CXFA_Node* m_pParent; 640 CXFA_Node* m_pParent;
641 IFDE_XMLNode* m_pXMLNode; 641 CFDE_XMLNode* m_pXMLNode;
642 XFA_ELEMENT m_eNodeClass; 642 XFA_ELEMENT m_eNodeClass;
643 uint16_t m_ePacket; 643 uint16_t m_ePacket;
644 uint32_t m_dwNameHash; 644 uint32_t m_dwNameHash;
645 CXFA_Node* m_pAuxNode; 645 CXFA_Node* m_pAuxNode;
646 XFA_MAPMODULEDATA* m_pMapModuleData; 646 XFA_MAPMODULEDATA* m_pMapModuleData;
647 }; 647 };
648 class CXFA_OrdinaryObject : public CXFA_Object { 648 class CXFA_OrdinaryObject : public CXFA_Object {
649 public: 649 public:
650 CXFA_OrdinaryObject(CXFA_Document* pDocument, XFA_ELEMENT eElement) 650 CXFA_OrdinaryObject(CXFA_Document* pDocument, XFA_ELEMENT eElement)
651 : CXFA_Object(pDocument, XFA_OBJECTTYPE_OrdinaryObject), 651 : CXFA_Object(pDocument, XFA_OBJECTTYPE_OrdinaryObject),
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 return pObj ? pObj->AsNode() : nullptr; 795 return pObj ? pObj->AsNode() : nullptr;
796 } 796 }
797 inline const CXFA_OrdinaryObject* ToOrdinaryObject(const CXFA_Object* pObj) { 797 inline const CXFA_OrdinaryObject* ToOrdinaryObject(const CXFA_Object* pObj) {
798 return pObj ? pObj->AsOrdinaryObject() : nullptr; 798 return pObj ? pObj->AsOrdinaryObject() : nullptr;
799 } 799 }
800 inline const CXFA_NodeList* ToNodeList(const CXFA_Object* pObj) { 800 inline const CXFA_NodeList* ToNodeList(const CXFA_Object* pObj) {
801 return pObj ? pObj->AsNodeList() : nullptr; 801 return pObj ? pObj->AsNodeList() : nullptr;
802 } 802 }
803 803
804 #endif // XFA_FXFA_PARSER_XFA_OBJECT_H_ 804 #endif // XFA_FXFA_PARSER_XFA_OBJECT_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_document_serialize.cpp ('k') | xfa/fxfa/parser/xfa_object_imp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698