| 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 "../../include/fpdfdoc/fpdf_doc.h" | 7 #include "core/include/fpdfdoc/fpdf_doc.h" |
| 8 |
| 8 CPDF_FormControl::CPDF_FormControl(CPDF_FormField* pField, | 9 CPDF_FormControl::CPDF_FormControl(CPDF_FormField* pField, |
| 9 CPDF_Dictionary* pWidgetDict) { | 10 CPDF_Dictionary* pWidgetDict) { |
| 10 m_pField = pField; | 11 m_pField = pField; |
| 11 m_pWidgetDict = pWidgetDict; | 12 m_pWidgetDict = pWidgetDict; |
| 12 m_pForm = m_pField->m_pForm; | 13 m_pForm = m_pField->m_pForm; |
| 13 } | 14 } |
| 14 CFX_FloatRect CPDF_FormControl::GetRect() const { | 15 CFX_FloatRect CPDF_FormControl::GetRect() const { |
| 15 return m_pWidgetDict->GetRect("Rect"); | 16 return m_pWidgetDict->GetRect("Rect"); |
| 16 } | 17 } |
| 17 CFX_ByteString CPDF_FormControl::GetOnStateName() { | 18 CFX_ByteString CPDF_FormControl::GetOnStateName() { |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 return NULL; | 438 return NULL; |
| 438 } | 439 } |
| 439 return m_pDict->GetDict(FX_BSTRC("IF")); | 440 return m_pDict->GetDict(FX_BSTRC("IF")); |
| 440 } | 441 } |
| 441 int CPDF_ApSettings::GetTextPosition() { | 442 int CPDF_ApSettings::GetTextPosition() { |
| 442 if (m_pDict == NULL) { | 443 if (m_pDict == NULL) { |
| 443 return TEXTPOS_CAPTION; | 444 return TEXTPOS_CAPTION; |
| 444 } | 445 } |
| 445 return m_pDict->GetInteger(FX_BSTRC("TP"), TEXTPOS_CAPTION); | 446 return m_pDict->GetInteger(FX_BSTRC("TP"), TEXTPOS_CAPTION); |
| 446 } | 447 } |
| OLD | NEW |