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 <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "xfa/src/foxitlib.h" | 9 #include "xfa/src/foxitlib.h" |
10 #include "xfa/src/fxfa/src/common/xfa_common.h" | 10 #include "xfa/src/fxfa/src/common/xfa_common.h" |
(...skipping 1683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1694 CXFA_Node* pWidgetNode = m_pWidgetAcc->GetNode(); | 1694 CXFA_Node* pWidgetNode = m_pWidgetAcc->GetNode(); |
1695 CXFA_Node* pParent = pWidgetNode->GetNodeItem(XFA_NODEITEM_Parent); | 1695 CXFA_Node* pParent = pWidgetNode->GetNodeItem(XFA_NODEITEM_Parent); |
1696 CXFA_Document* pDocument = pWidgetNode->GetDocument(); | 1696 CXFA_Document* pDocument = pWidgetNode->GetDocument(); |
1697 CXFA_Node* pIDNode = NULL; | 1697 CXFA_Node* pIDNode = NULL; |
1698 CXFA_WidgetAcc* pEmbAcc = NULL; | 1698 CXFA_WidgetAcc* pEmbAcc = NULL; |
1699 if (pParent) { | 1699 if (pParent) { |
1700 pIDNode = pDocument->GetNodeByID(pParent, wsAttr); | 1700 pIDNode = pDocument->GetNodeByID(pParent, wsAttr); |
1701 } | 1701 } |
1702 if (!pIDNode) { | 1702 if (!pIDNode) { |
1703 pIDNode = pDocument->GetNodeByID( | 1703 pIDNode = pDocument->GetNodeByID( |
1704 (CXFA_Node*)pDocument->GetXFAObject(XFA_HASHCODE_Form), wsAttr); | 1704 ToNode(pDocument->GetXFAObject(XFA_HASHCODE_Form)), wsAttr); |
1705 } | 1705 } |
1706 if (pIDNode) { | 1706 if (pIDNode) { |
1707 pEmbAcc = (CXFA_WidgetAcc*)pIDNode->GetWidgetData(); | 1707 pEmbAcc = (CXFA_WidgetAcc*)pIDNode->GetWidgetData(); |
1708 } | 1708 } |
1709 if (pEmbAcc) { | 1709 if (pEmbAcc) { |
1710 pEmbAcc->GetValue(wsValue, XFA_VALUEPICTURE_Display); | 1710 pEmbAcc->GetValue(wsValue, XFA_VALUEPICTURE_Display); |
1711 return TRUE; | 1711 return TRUE; |
1712 } | 1712 } |
1713 } | 1713 } |
1714 return FALSE; | 1714 return FALSE; |
1715 } | 1715 } |
OLD | NEW |