summaryrefslogtreecommitdiff
path: root/xfa/src/fee/include/ifde_txtedtpage.h
diff options
context:
space:
mode:
authorBo Xu <bo_xu@foxitsoftware.com>2014-10-28 23:03:33 -0700
committerBo Xu <bo_xu@foxitsoftware.com>2014-11-03 11:10:11 -0800
commitfdc00a7042d912aafaabddae4d9c84199921ef23 (patch)
tree32ab8ac91cc68d2cd15b9168782a71b3f3f5e7b9 /xfa/src/fee/include/ifde_txtedtpage.h
parente9b38fa38de2c95d8260be31c57d9272c4d127ed (diff)
downloadpdfium-fdc00a7042d912aafaabddae4d9c84199921ef23.tar.xz
Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
Diffstat (limited to 'xfa/src/fee/include/ifde_txtedtpage.h')
-rw-r--r--xfa/src/fee/include/ifde_txtedtpage.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/xfa/src/fee/include/ifde_txtedtpage.h b/xfa/src/fee/include/ifde_txtedtpage.h
new file mode 100644
index 0000000000..7555434f5f
--- /dev/null
+++ b/xfa/src/fee/include/ifde_txtedtpage.h
@@ -0,0 +1,32 @@
+// Copyright 2014 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#ifndef _IFDE_TXTEDTPAGE_H
+#define _IFDE_TXTEDTPAGE_H
+class IFDE_TxtEdtEngine;
+class IFDE_TxtEdtPage;
+class IFDE_TxtEdtPage : public IFDE_CanvasSet, public IFX_TxtAccess
+{
+public:
+ static IFDE_TxtEdtPage * Create(IFDE_TxtEdtEngine * pEngine, FX_INT32 nIndex);
+
+ virtual void Release() = 0;
+
+ virtual IFDE_TxtEdtEngine * GetEngine() const = 0;
+ virtual FX_INT32 GetCharRect(FX_INT32 nIndex, CFX_RectF &rect, FX_BOOL bBBox = FALSE) const = 0;
+ virtual FX_INT32 GetCharIndex(const CFX_PointF &fPoint, FX_BOOL &bBefore) = 0;
+ virtual void CalcRangeRectArray(FX_INT32 nStart, FX_INT32 nCount, CFX_RectFArray &RectFArr) const = 0;
+ virtual FX_INT32 SelectWord (const CFX_PointF &fPoint, FX_INT32 &nCount) = 0;
+ virtual FX_INT32 GetCharStart() const = 0;
+ virtual FX_INT32 GetCharCount() const = 0;
+
+ virtual FX_INT32 GetDisplayPos(const CFX_RectF &rtClip, FXTEXT_CHARPOS* &pCharPos, FX_LPRECTF pBBox = NULL) const = 0;
+ virtual FX_BOOL IsLoaded(FX_LPCRECTF pClipBox = NULL) = 0;
+ virtual FX_INT32 LoadPage(FX_LPCRECTF pClipBox = NULL, IFX_Pause *pPause = NULL) = 0;
+ virtual void UnloadPage(FX_LPCRECTF pClipBox = NULL) = 0;
+ virtual const CFX_RectF& GetContentsBox() = 0;
+};
+#endif