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 "fpdfsdk/fxedit/include/fxet_edit.h" | 7 #include "fpdfsdk/fxedit/include/fxet_edit.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 // static | 813 // static |
814 void CFX_Edit::DrawEdit(CFX_RenderDevice* pDevice, | 814 void CFX_Edit::DrawEdit(CFX_RenderDevice* pDevice, |
815 CFX_Matrix* pUser2Device, | 815 CFX_Matrix* pUser2Device, |
816 CFX_Edit* pEdit, | 816 CFX_Edit* pEdit, |
817 FX_COLORREF crTextFill, | 817 FX_COLORREF crTextFill, |
818 FX_COLORREF crTextStroke, | 818 FX_COLORREF crTextStroke, |
819 const CFX_FloatRect& rcClip, | 819 const CFX_FloatRect& rcClip, |
820 const CFX_FloatPoint& ptOffset, | 820 const CFX_FloatPoint& ptOffset, |
821 const CPVT_WordRange* pRange, | 821 const CPVT_WordRange* pRange, |
822 CFX_SystemHandler* pSystemHandler, | 822 CFX_SystemHandler* pSystemHandler, |
823 void* pFFLData) { | 823 CFFL_FormFiller* pFFLData) { |
824 const bool bContinuous = | 824 const bool bContinuous = |
825 pEdit->GetCharArray() == 0 && pEdit->GetCharSpace() <= 0.0f; | 825 pEdit->GetCharArray() == 0 && pEdit->GetCharSpace() <= 0.0f; |
826 uint16_t SubWord = pEdit->GetPasswordChar(); | 826 uint16_t SubWord = pEdit->GetPasswordChar(); |
827 FX_FLOAT fFontSize = pEdit->GetFontSize(); | 827 FX_FLOAT fFontSize = pEdit->GetFontSize(); |
828 CPVT_WordRange wrSelect = pEdit->GetSelectWordRange(); | 828 CPVT_WordRange wrSelect = pEdit->GetSelectWordRange(); |
829 int32_t nHorzScale = pEdit->GetHorzScale(); | 829 int32_t nHorzScale = pEdit->GetHorzScale(); |
830 | 830 |
831 FX_COLORREF crCurFill = crTextFill; | 831 FX_COLORREF crCurFill = crTextFill; |
832 FX_COLORREF crOldFill = crCurFill; | 832 FX_COLORREF crOldFill = crCurFill; |
833 | 833 |
(...skipping 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2522 int32_t CFX_Edit_RectArray::GetSize() const { | 2522 int32_t CFX_Edit_RectArray::GetSize() const { |
2523 return m_Rects.GetSize(); | 2523 return m_Rects.GetSize(); |
2524 } | 2524 } |
2525 | 2525 |
2526 CFX_FloatRect* CFX_Edit_RectArray::GetAt(int32_t nIndex) const { | 2526 CFX_FloatRect* CFX_Edit_RectArray::GetAt(int32_t nIndex) const { |
2527 if (nIndex < 0 || nIndex >= m_Rects.GetSize()) | 2527 if (nIndex < 0 || nIndex >= m_Rects.GetSize()) |
2528 return nullptr; | 2528 return nullptr; |
2529 | 2529 |
2530 return m_Rects.GetAt(nIndex); | 2530 return m_Rects.GetAt(nIndex); |
2531 } | 2531 } |
OLD | NEW |