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_FDE_FDE_VISUALSET_H_ | 7 #ifndef XFA_FDE_FDE_VISUALSET_H_ |
8 #define XFA_FDE_FDE_VISUALSET_H_ | 8 #define XFA_FDE_FDE_VISUALSET_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_coordinates.h" | 10 #include "core/fxcrt/include/fx_coordinates.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 public: | 39 public: |
40 virtual FX_POSITION GetFirstPosition() = 0; | 40 virtual FX_POSITION GetFirstPosition() = 0; |
41 virtual FDE_TEXTEDITPIECE* GetNext(FX_POSITION& pos, | 41 virtual FDE_TEXTEDITPIECE* GetNext(FX_POSITION& pos, |
42 IFDE_VisualSet*& pVisualSet) = 0; | 42 IFDE_VisualSet*& pVisualSet) = 0; |
43 }; | 43 }; |
44 | 44 |
45 class IFDE_TextSet : public IFDE_VisualSet { | 45 class IFDE_TextSet : public IFDE_VisualSet { |
46 public: | 46 public: |
47 virtual int32_t GetString(FDE_TEXTEDITPIECE* hText, | 47 virtual int32_t GetString(FDE_TEXTEDITPIECE* hText, |
48 CFX_WideString& wsText) = 0; | 48 CFX_WideString& wsText) = 0; |
49 virtual IFGAS_Font* GetFont() = 0; | 49 virtual CFGAS_GEFont* GetFont() = 0; |
50 virtual FX_FLOAT GetFontSize() = 0; | 50 virtual FX_FLOAT GetFontSize() = 0; |
51 virtual FX_ARGB GetFontColor() = 0; | 51 virtual FX_ARGB GetFontColor() = 0; |
52 virtual int32_t GetDisplayPos(FDE_TEXTEDITPIECE* hText, | 52 virtual int32_t GetDisplayPos(FDE_TEXTEDITPIECE* hText, |
53 FXTEXT_CHARPOS* pCharPos, | 53 FXTEXT_CHARPOS* pCharPos, |
54 FX_BOOL bCharCode = FALSE, | 54 FX_BOOL bCharCode = FALSE, |
55 CFX_WideString* pWSForms = nullptr) = 0; | 55 CFX_WideString* pWSForms = nullptr) = 0; |
56 virtual int32_t GetCharRects(const FDE_TEXTEDITPIECE* hText, | 56 virtual int32_t GetCharRects(const FDE_TEXTEDITPIECE* hText, |
57 CFX_RectFArray& rtArray, | 57 CFX_RectFArray& rtArray, |
58 FX_BOOL bbox) = 0; | 58 FX_BOOL bbox) = 0; |
59 }; | 59 }; |
60 | 60 |
61 #endif // XFA_FDE_FDE_VISUALSET_H_ | 61 #endif // XFA_FDE_FDE_VISUALSET_H_ |
OLD | NEW |