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 "../../../foxitlib.h" | 7 #include "../../../foxitlib.h" |
8 #include "../common/xfa_utils.h" | 8 #include "../common/xfa_utils.h" |
9 #include "../common/xfa_object.h" | 9 #include "../common/xfa_object.h" |
10 #include "../common/xfa_document.h" | 10 #include "../common/xfa_document.h" |
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 if (pContainerWidgetData) { | 830 if (pContainerWidgetData) { |
831 pContainerWidgetData->GetFormatDataValue(wsContent, wsFormatContent); | 831 pContainerWidgetData->GetFormatDataValue(wsContent, wsFormatContent); |
832 } | 832 } |
833 return pNode->SetContent(wsContent, wsFormatContent, bNotify); | 833 return pNode->SetContent(wsContent, wsFormatContent, bNotify); |
834 } | 834 } |
835 int32_t CXFA_Line::GetHand() { | 835 int32_t CXFA_Line::GetHand() { |
836 return m_pNode->GetEnum(XFA_ATTRIBUTE_Hand); | 836 return m_pNode->GetEnum(XFA_ATTRIBUTE_Hand); |
837 } | 837 } |
838 FX_BOOL CXFA_Line::GetSlop() { | 838 FX_BOOL CXFA_Line::GetSlop() { |
839 XFA_ATTRIBUTEENUM eSlop = m_pNode->GetEnum(XFA_ATTRIBUTE_Slope); | 839 XFA_ATTRIBUTEENUM eSlop = m_pNode->GetEnum(XFA_ATTRIBUTE_Slope); |
840 return (eSlop == XFA_ATTRIBUTEENUM_Slash) ? TRUE : FALSE; | 840 return eSlop == XFA_ATTRIBUTEENUM_Slash; |
841 } | 841 } |
842 CXFA_Edge CXFA_Line::GetEdge() { | 842 CXFA_Edge CXFA_Line::GetEdge() { |
843 return CXFA_Edge(m_pNode->GetChild(0, XFA_ELEMENT_Edge)); | 843 return CXFA_Edge(m_pNode->GetChild(0, XFA_ELEMENT_Edge)); |
844 } | 844 } |
845 FX_BOOL CXFA_Line::SetHand(int32_t iHand) { | 845 FX_BOOL CXFA_Line::SetHand(int32_t iHand) { |
846 return m_pNode->SetEnum(XFA_ATTRIBUTE_Hand, (XFA_ATTRIBUTEENUM)iHand); | 846 return m_pNode->SetEnum(XFA_ATTRIBUTE_Hand, (XFA_ATTRIBUTEENUM)iHand); |
847 } | 847 } |
848 FX_BOOL CXFA_Line::SetSlop(int32_t iSlop) { | 848 FX_BOOL CXFA_Line::SetSlop(int32_t iSlop) { |
849 return m_pNode->SetEnum(XFA_ATTRIBUTE_Slope, (XFA_ATTRIBUTEENUM)iSlop); | 849 return m_pNode->SetEnum(XFA_ATTRIBUTE_Slope, (XFA_ATTRIBUTEENUM)iSlop); |
850 } | 850 } |
(...skipping 3009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3860 return FX_WSTRC(L""); | 3860 return FX_WSTRC(L""); |
3861 } | 3861 } |
3862 CXFA_Node* pRefNode = m_pNode->GetChild(nIndex, XFA_ELEMENT_Ref); | 3862 CXFA_Node* pRefNode = m_pNode->GetChild(nIndex, XFA_ELEMENT_Ref); |
3863 if (!pRefNode) { | 3863 if (!pRefNode) { |
3864 return FX_WSTRC(L""); | 3864 return FX_WSTRC(L""); |
3865 } | 3865 } |
3866 CFX_WideString wsContent; | 3866 CFX_WideString wsContent; |
3867 pRefNode->TryContent(wsContent); | 3867 pRefNode->TryContent(wsContent); |
3868 return wsContent; | 3868 return wsContent; |
3869 } | 3869 } |
OLD | NEW |