| 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 #ifndef XFA_FDE_CFDE_TXTEDTTEXTSET_H_ | 7 #ifndef XFA_FDE_CFDE_TXTEDTTEXTSET_H_ |
| 8 #define XFA_FDE_CFDE_TXTEDTTEXTSET_H_ | 8 #define XFA_FDE_CFDE_TXTEDTTEXTSET_H_ |
| 9 | 9 |
| 10 #include "xfa/fde/fde_visualset.h" | 10 #include "xfa/fde/fde_visualset.h" |
| 11 | 11 |
| 12 class CFDE_TxtEdtPage; | 12 class CFDE_TxtEdtPage; |
| 13 | 13 |
| 14 class CFDE_TxtEdtTextSet : public IFDE_TextSet { | 14 class CFDE_TxtEdtTextSet : public IFDE_TextSet { |
| 15 public: | 15 public: |
| 16 explicit CFDE_TxtEdtTextSet(CFDE_TxtEdtPage* pPage); | 16 explicit CFDE_TxtEdtTextSet(CFDE_TxtEdtPage* pPage); |
| 17 ~CFDE_TxtEdtTextSet() override; | 17 ~CFDE_TxtEdtTextSet() override; |
| 18 | 18 |
| 19 FDE_VISUALOBJTYPE GetType() override; | 19 FDE_VISUALOBJTYPE GetType() override; |
| 20 FX_BOOL GetBBox(FDE_HVISUALOBJ hVisualObj, CFX_RectF& bbox) override; | 20 FX_BOOL GetBBox(FDE_HVISUALOBJ hVisualObj, CFX_RectF& bbox) override; |
| 21 FX_BOOL GetMatrix(FDE_HVISUALOBJ hVisualObj, CFX_Matrix& matrix) override; | 21 FX_BOOL GetMatrix(FDE_HVISUALOBJ hVisualObj, CFX_Matrix& matrix) override; |
| 22 FX_BOOL GetRect(FDE_HVISUALOBJ hVisualObj, CFX_RectF& rt) override; | 22 FX_BOOL GetRect(FDE_HVISUALOBJ hVisualObj, CFX_RectF& rt) override; |
| 23 FX_BOOL GetClip(FDE_HVISUALOBJ hVisualObj, CFX_RectF& rt) override; | 23 FX_BOOL GetClip(FDE_HVISUALOBJ hVisualObj, CFX_RectF& rt) override; |
| 24 int32_t GetString(FDE_HVISUALOBJ hText, CFX_WideString& wsText) override; | 24 int32_t GetString(FDE_HVISUALOBJ hText, CFX_WideString& wsText) override; |
| 25 IFX_Font* GetFont(FDE_HVISUALOBJ hText) override; | 25 CFX_GEFont* GetFont(FDE_HVISUALOBJ hText) override; |
| 26 FX_FLOAT GetFontSize(FDE_HVISUALOBJ hText) override; | 26 FX_FLOAT GetFontSize(FDE_HVISUALOBJ hText) override; |
| 27 FX_ARGB GetFontColor(FDE_HVISUALOBJ hText) override; | 27 FX_ARGB GetFontColor(FDE_HVISUALOBJ hText) override; |
| 28 int32_t GetDisplayPos(FDE_HVISUALOBJ hText, | 28 int32_t GetDisplayPos(FDE_HVISUALOBJ hText, |
| 29 FXTEXT_CHARPOS* pCharPos, | 29 FXTEXT_CHARPOS* pCharPos, |
| 30 FX_BOOL bCharCode = FALSE, | 30 FX_BOOL bCharCode = FALSE, |
| 31 CFX_WideString* pWSForms = NULL) override; | 31 CFX_WideString* pWSForms = NULL) override; |
| 32 int32_t GetCharRects(FDE_HVISUALOBJ hText, CFX_RectFArray& rtArray) override; | 32 int32_t GetCharRects(FDE_HVISUALOBJ hText, CFX_RectFArray& rtArray) override; |
| 33 int32_t GetCharRects_Impl(FDE_HVISUALOBJ hText, | 33 int32_t GetCharRects_Impl(FDE_HVISUALOBJ hText, |
| 34 CFX_RectFArray& rtArray, | 34 CFX_RectFArray& rtArray, |
| 35 FX_BOOL bBBox = FALSE); | 35 FX_BOOL bBBox = FALSE); |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 CFDE_TxtEdtPage* const m_pPage; | 38 CFDE_TxtEdtPage* const m_pPage; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 #endif // XFA_FDE_CFDE_TXTEDTTEXTSET_H_ | 41 #endif // XFA_FDE_CFDE_TXTEDTTEXTSET_H_ |
| OLD | NEW |