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 _IFDE_TXTEDTPAGE_H | 7 #ifndef XFA_SRC_FEE_INCLUDE_IFDE_TXTEDTPAGE_H_ |
8 #define _IFDE_TXTEDTPAGE_H | 8 #define XFA_SRC_FEE_INCLUDE_IFDE_TXTEDTPAGE_H_ |
| 9 |
9 class IFDE_TxtEdtEngine; | 10 class IFDE_TxtEdtEngine; |
10 class IFDE_TxtEdtPage; | 11 class IFDE_TxtEdtPage; |
11 class IFDE_TxtEdtPage : public IFDE_CanvasSet, public IFX_TxtAccess { | 12 class IFDE_TxtEdtPage : public IFDE_CanvasSet, public IFX_TxtAccess { |
12 public: | 13 public: |
13 static IFDE_TxtEdtPage* Create(IFDE_TxtEdtEngine* pEngine, int32_t nIndex); | 14 static IFDE_TxtEdtPage* Create(IFDE_TxtEdtEngine* pEngine, int32_t nIndex); |
14 | 15 |
15 virtual void Release() = 0; | 16 virtual void Release() = 0; |
16 | 17 |
17 virtual IFDE_TxtEdtEngine* GetEngine() const = 0; | 18 virtual IFDE_TxtEdtEngine* GetEngine() const = 0; |
18 virtual int32_t GetCharRect(int32_t nIndex, | 19 virtual int32_t GetCharRect(int32_t nIndex, |
19 CFX_RectF& rect, | 20 CFX_RectF& rect, |
20 FX_BOOL bBBox = FALSE) const = 0; | 21 FX_BOOL bBBox = FALSE) const = 0; |
21 virtual int32_t GetCharIndex(const CFX_PointF& fPoint, FX_BOOL& bBefore) = 0; | 22 virtual int32_t GetCharIndex(const CFX_PointF& fPoint, FX_BOOL& bBefore) = 0; |
22 virtual void CalcRangeRectArray(int32_t nStart, | 23 virtual void CalcRangeRectArray(int32_t nStart, |
23 int32_t nCount, | 24 int32_t nCount, |
24 CFX_RectFArray& RectFArr) const = 0; | 25 CFX_RectFArray& RectFArr) const = 0; |
25 virtual int32_t SelectWord(const CFX_PointF& fPoint, int32_t& nCount) = 0; | 26 virtual int32_t SelectWord(const CFX_PointF& fPoint, int32_t& nCount) = 0; |
26 virtual int32_t GetCharStart() const = 0; | 27 virtual int32_t GetCharStart() const = 0; |
27 virtual int32_t GetCharCount() const = 0; | 28 virtual int32_t GetCharCount() const = 0; |
28 | 29 |
29 virtual int32_t GetDisplayPos(const CFX_RectF& rtClip, | 30 virtual int32_t GetDisplayPos(const CFX_RectF& rtClip, |
30 FXTEXT_CHARPOS*& pCharPos, | 31 FXTEXT_CHARPOS*& pCharPos, |
31 FX_LPRECTF pBBox = NULL) const = 0; | 32 FX_LPRECTF pBBox = NULL) const = 0; |
32 virtual FX_BOOL IsLoaded(FX_LPCRECTF pClipBox = NULL) = 0; | 33 virtual FX_BOOL IsLoaded(FX_LPCRECTF pClipBox = NULL) = 0; |
33 virtual int32_t LoadPage(FX_LPCRECTF pClipBox = NULL, | 34 virtual int32_t LoadPage(FX_LPCRECTF pClipBox = NULL, |
34 IFX_Pause* pPause = NULL) = 0; | 35 IFX_Pause* pPause = NULL) = 0; |
35 virtual void UnloadPage(FX_LPCRECTF pClipBox = NULL) = 0; | 36 virtual void UnloadPage(FX_LPCRECTF pClipBox = NULL) = 0; |
36 virtual const CFX_RectF& GetContentsBox() = 0; | 37 virtual const CFX_RectF& GetContentsBox() = 0; |
37 }; | 38 }; |
38 #endif | 39 |
| 40 #endif // XFA_SRC_FEE_INCLUDE_IFDE_TXTEDTPAGE_H_ |
OLD | NEW |