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 #ifndef XFA_FEE_FDE_TXTEDTPAGE_H_ | 7 #ifndef XFA_FEE_FDE_TXTEDTPAGE_H_ |
8 #define XFA_FEE_FDE_TXTEDTPAGE_H_ | 8 #define XFA_FEE_FDE_TXTEDTPAGE_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_coordinates.h" | 10 #include "core/fxcrt/include/fx_coordinates.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 virtual int32_t GetCharRects_Impl(FDE_HVISUALOBJ hText, | 90 virtual int32_t GetCharRects_Impl(FDE_HVISUALOBJ hText, |
91 CFX_RectFArray& rtArray, | 91 CFX_RectFArray& rtArray, |
92 FX_BOOL bBBox = FALSE); | 92 FX_BOOL bBBox = FALSE); |
93 | 93 |
94 private: | 94 private: |
95 CFDE_TxtEdtPage* m_pPage; | 95 CFDE_TxtEdtPage* m_pPage; |
96 }; | 96 }; |
97 | 97 |
98 class CFDE_TxtEdtPage : public IFDE_TxtEdtPage { | 98 class CFDE_TxtEdtPage : public IFDE_TxtEdtPage { |
99 public: | 99 public: |
100 CFDE_TxtEdtPage(IFDE_TxtEdtEngine* pEngine, int32_t nLineIndex); | 100 CFDE_TxtEdtPage(CFDE_TxtEdtEngine* pEngine, int32_t nLineIndex); |
101 | 101 |
102 // IFDE_TxtEditPage: | 102 // IFDE_TxtEditPage: |
103 void Release() override; | 103 void Release() override; |
104 IFDE_TxtEdtEngine* GetEngine() const override; | 104 CFDE_TxtEdtEngine* GetEngine() const override; |
105 int32_t GetCharRect(int32_t nIndex, | 105 int32_t GetCharRect(int32_t nIndex, |
106 CFX_RectF& rect, | 106 CFX_RectF& rect, |
107 FX_BOOL bBBox = FALSE) const override; | 107 FX_BOOL bBBox = FALSE) const override; |
108 int32_t GetCharIndex(const CFX_PointF& fPoint, FX_BOOL& bBefore) override; | 108 int32_t GetCharIndex(const CFX_PointF& fPoint, FX_BOOL& bBefore) override; |
109 void CalcRangeRectArray(int32_t nStart, | 109 void CalcRangeRectArray(int32_t nStart, |
110 int32_t nCount, | 110 int32_t nCount, |
111 CFX_RectFArray& RectFArr) const override; | 111 CFX_RectFArray& RectFArr) const override; |
112 int32_t SelectWord(const CFX_PointF& fPoint, int32_t& nCount) override; | 112 int32_t SelectWord(const CFX_PointF& fPoint, int32_t& nCount) override; |
113 int32_t GetCharStart() const override; | 113 int32_t GetCharStart() const override; |
114 int32_t GetCharCount() const override; | 114 int32_t GetCharCount() const override; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 int32_t m_nPageIndex; | 159 int32_t m_nPageIndex; |
160 FX_BOOL m_bLoaded; | 160 FX_BOOL m_bLoaded; |
161 CFX_RectF m_rtPage; | 161 CFX_RectF m_rtPage; |
162 CFX_RectF m_rtPageMargin; | 162 CFX_RectF m_rtPageMargin; |
163 CFX_RectF m_rtPageContents; | 163 CFX_RectF m_rtPageContents; |
164 CFX_RectF m_rtPageCanvas; | 164 CFX_RectF m_rtPageCanvas; |
165 int32_t* m_pCharWidth; | 165 int32_t* m_pCharWidth; |
166 }; | 166 }; |
167 | 167 |
168 #endif // XFA_FEE_FDE_TXTEDTPAGE_H_ | 168 #endif // XFA_FEE_FDE_TXTEDTPAGE_H_ |
OLD | NEW |