| 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_widgetdata.h" | 7 #include "xfa/fxfa/parser/cxfa_widgetdata.h" |
| 8 | 8 |
| 9 #include "core/fxcrt/include/fx_ext.h" | 9 #include "core/fxcrt/include/fx_ext.h" |
| 10 #include "xfa/fxbarcode/include/BC_Library.h" | 10 #include "xfa/fxbarcode/include/BC_Library.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 return pNode->GetEnum(XFA_ATTRIBUTE_Access); | 102 return pNode->GetEnum(XFA_ATTRIBUTE_Access); |
| 103 return XFA_ATTRIBUTEENUM_Open; | 103 return XFA_ATTRIBUTEENUM_Open; |
| 104 } | 104 } |
| 105 CXFA_Node* pNode = m_pNode; | 105 CXFA_Node* pNode = m_pNode; |
| 106 while (pNode) { | 106 while (pNode) { |
| 107 int32_t iAcc = pNode->GetEnum(XFA_ATTRIBUTE_Access); | 107 int32_t iAcc = pNode->GetEnum(XFA_ATTRIBUTE_Access); |
| 108 if (iAcc != XFA_ATTRIBUTEENUM_Open) | 108 if (iAcc != XFA_ATTRIBUTEENUM_Open) |
| 109 return iAcc; | 109 return iAcc; |
| 110 | 110 |
| 111 pNode = | 111 pNode = |
| 112 pNode->GetNodeItem(XFA_NODEITEM_Parent, XFA_OBJECTTYPE_ContainerNode); | 112 pNode->GetNodeItem(XFA_NODEITEM_Parent, XFA_ObjectType::ContainerNode); |
| 113 } | 113 } |
| 114 return XFA_ATTRIBUTEENUM_Open; | 114 return XFA_ATTRIBUTEENUM_Open; |
| 115 } | 115 } |
| 116 | 116 |
| 117 int32_t CXFA_WidgetData::GetRotate() { | 117 int32_t CXFA_WidgetData::GetRotate() { |
| 118 CXFA_Measurement ms; | 118 CXFA_Measurement ms; |
| 119 if (!m_pNode->TryMeasure(XFA_ATTRIBUTE_Rotate, ms, FALSE)) | 119 if (!m_pNode->TryMeasure(XFA_ATTRIBUTE_Rotate, ms, FALSE)) |
| 120 return 0; | 120 return 0; |
| 121 | 121 |
| 122 int32_t iRotate = FXSYS_round(ms.GetValue()); | 122 int32_t iRotate = FXSYS_round(ms.GetValue()); |
| (...skipping 1656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1779 } | 1779 } |
| 1780 } | 1780 } |
| 1781 } else if (wc == L'.') { | 1781 } else if (wc == L'.') { |
| 1782 iTread_ = 0; | 1782 iTread_ = 0; |
| 1783 iLead = -1; | 1783 iLead = -1; |
| 1784 } | 1784 } |
| 1785 wsRet += wc; | 1785 wsRet += wc; |
| 1786 } | 1786 } |
| 1787 return wsRet; | 1787 return wsRet; |
| 1788 } | 1788 } |
| OLD | NEW |