OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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/fxfa/parser/cxfa_caption.h" | 7 #include "xfa/fxfa/parser/cxfa_caption.h" |
8 | 8 |
| 9 #include "xfa/fxfa/parser/cxfa_measurement.h" |
9 #include "xfa/fxfa/parser/xfa_object.h" | 10 #include "xfa/fxfa/parser/xfa_object.h" |
10 | 11 |
11 CXFA_Caption::CXFA_Caption(CXFA_Node* pNode) : CXFA_Data(pNode) {} | 12 CXFA_Caption::CXFA_Caption(CXFA_Node* pNode) : CXFA_Data(pNode) {} |
12 | 13 |
13 int32_t CXFA_Caption::GetPresence() { | 14 int32_t CXFA_Caption::GetPresence() { |
14 XFA_ATTRIBUTEENUM eAttr = XFA_ATTRIBUTEENUM_Visible; | 15 XFA_ATTRIBUTEENUM eAttr = XFA_ATTRIBUTEENUM_Visible; |
15 m_pNode->TryEnum(XFA_ATTRIBUTE_Presence, eAttr); | 16 m_pNode->TryEnum(XFA_ATTRIBUTE_Presence, eAttr); |
16 return eAttr; | 17 return eAttr; |
17 } | 18 } |
18 | 19 |
(...skipping 15 matching lines...) Expand all Loading... |
34 } | 35 } |
35 | 36 |
36 CXFA_Font CXFA_Caption::GetFont() { | 37 CXFA_Font CXFA_Caption::GetFont() { |
37 return CXFA_Font(m_pNode ? m_pNode->GetChild(0, XFA_Element::Font) : nullptr); | 38 return CXFA_Font(m_pNode ? m_pNode->GetChild(0, XFA_Element::Font) : nullptr); |
38 } | 39 } |
39 | 40 |
40 CXFA_Value CXFA_Caption::GetValue() { | 41 CXFA_Value CXFA_Caption::GetValue() { |
41 return CXFA_Value(m_pNode ? m_pNode->GetChild(0, XFA_Element::Value) | 42 return CXFA_Value(m_pNode ? m_pNode->GetChild(0, XFA_Element::Value) |
42 : nullptr); | 43 : nullptr); |
43 } | 44 } |
OLD | NEW |