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 #include "xfa/src/foxitlib.h" | 7 #include "xfa/src/foxitlib.h" |
8 #include "xfa/src/fxfa/src/common/xfa_utils.h" | 8 #include "xfa/src/fxfa/src/common/xfa_docdata.h" |
| 9 #include "xfa/src/fxfa/src/common/xfa_doclayout.h" |
| 10 #include "xfa/src/fxfa/src/common/xfa_document.h" |
| 11 #include "xfa/src/fxfa/src/common/xfa_fm2jsapi.h" |
| 12 #include "xfa/src/fxfa/src/common/xfa_localemgr.h" |
9 #include "xfa/src/fxfa/src/common/xfa_object.h" | 13 #include "xfa/src/fxfa/src/common/xfa_object.h" |
10 #include "xfa/src/fxfa/src/common/xfa_document.h" | |
11 #include "xfa/src/fxfa/src/common/xfa_parser.h" | 14 #include "xfa/src/fxfa/src/common/xfa_parser.h" |
12 #include "xfa/src/fxfa/src/common/xfa_script.h" | 15 #include "xfa/src/fxfa/src/common/xfa_script.h" |
13 #include "xfa/src/fxfa/src/common/xfa_docdata.h" | 16 #include "xfa/src/fxfa/src/common/xfa_utils.h" |
14 #include "xfa/src/fxfa/src/common/xfa_doclayout.h" | |
15 #include "xfa/src/fxfa/src/common/xfa_localemgr.h" | |
16 #include "xfa/src/fxfa/src/common/xfa_fm2jsapi.h" | |
17 #include "xfa/src/fxfa/src/parser/xfa_basic_imp.h" | 17 #include "xfa/src/fxfa/src/parser/xfa_basic_imp.h" |
18 #include "xfa/src/fxfa/src/parser/xfa_document_layout_imp.h" | 18 #include "xfa/src/fxfa/src/parser/xfa_document_layout_imp.h" |
19 CXFA_Object::CXFA_Object(CXFA_Document* pDocument, FX_DWORD uFlags) | 19 CXFA_Object::CXFA_Object(CXFA_Document* pDocument, FX_DWORD uFlags) |
20 : m_pDocument(pDocument), m_uFlags(uFlags) {} | 20 : m_pDocument(pDocument), m_uFlags(uFlags) {} |
21 void CXFA_Object::GetClassName(CFX_WideStringC& wsName) const { | 21 void CXFA_Object::GetClassName(CFX_WideStringC& wsName) const { |
22 XFA_LPCELEMENTINFO pElement = XFA_GetElementByID(GetClassID()); | 22 XFA_LPCELEMENTINFO pElement = XFA_GetElementByID(GetClassID()); |
23 ASSERT(pElement != NULL); | 23 ASSERT(pElement != NULL); |
24 wsName = pElement->pName; | 24 wsName = pElement->pName; |
25 } | 25 } |
26 uint32_t CXFA_Object::GetClassHashCode() const { | 26 uint32_t CXFA_Object::GetClassHashCode() const { |
(...skipping 5411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5438 return m_pAttachNode->InsertChild(pNewNode, pBeforeNode); | 5438 return m_pAttachNode->InsertChild(pNewNode, pBeforeNode); |
5439 } | 5439 } |
5440 FX_BOOL CXFA_AttachNodeList::Remove(CXFA_Node* pNode) { | 5440 FX_BOOL CXFA_AttachNodeList::Remove(CXFA_Node* pNode) { |
5441 return m_pAttachNode->RemoveChild(pNode); | 5441 return m_pAttachNode->RemoveChild(pNode); |
5442 } | 5442 } |
5443 CXFA_Node* CXFA_AttachNodeList::Item(int32_t iIndex) { | 5443 CXFA_Node* CXFA_AttachNodeList::Item(int32_t iIndex) { |
5444 return m_pAttachNode->GetChild( | 5444 return m_pAttachNode->GetChild( |
5445 iIndex, XFA_ELEMENT_UNKNOWN, | 5445 iIndex, XFA_ELEMENT_UNKNOWN, |
5446 m_pAttachNode->GetClassID() == XFA_ELEMENT_Subform); | 5446 m_pAttachNode->GetClassID() == XFA_ELEMENT_Subform); |
5447 } | 5447 } |
OLD | NEW |