summaryrefslogtreecommitdiff
path: root/xfa/fde/ifde_txtedtpage.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-05-18 11:09:47 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-18 11:09:47 -0700
commit653951828cf934afb48b57989089a99b38620d02 (patch)
tree8a91b6f3ffac3d992e47e5d6fd4da31245597ff9 /xfa/fde/ifde_txtedtpage.h
parent3b093630d55ad97807bcc710227b03819944605b (diff)
downloadpdfium-653951828cf934afb48b57989089a99b38620d02.tar.xz
Split xfa/fee files into individual class files.
This CL splits the xfa/fee files into individual class files and moves them into the xfa/fde directory where they belong. Review-Url: https://codereview.chromium.org/1994693002
Diffstat (limited to 'xfa/fde/ifde_txtedtpage.h')
-rw-r--r--xfa/fde/ifde_txtedtpage.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/xfa/fde/ifde_txtedtpage.h b/xfa/fde/ifde_txtedtpage.h
new file mode 100644
index 0000000000..7dddea2709
--- /dev/null
+++ b/xfa/fde/ifde_txtedtpage.h
@@ -0,0 +1,43 @@
+// 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 XFA_FDE_IFDE_TXTEDTPAGE_H_
+#define XFA_FDE_IFDE_TXTEDTPAGE_H_
+
+#include "core/fxge/include/fx_ge.h"
+#include "xfa/fde/fde_visualset.h"
+#include "xfa/fgas/layout/fgas_textbreak.h"
+
+class CFDE_TxtEdtEngine;
+
+class IFDE_TxtEdtPage : public IFDE_CanvasSet, public IFX_TxtAccess {
+ public:
+ static IFDE_TxtEdtPage* Create(CFDE_TxtEdtEngine* pEngine, int32_t nIndex);
+
+ virtual void Release() = 0;
+
+ virtual CFDE_TxtEdtEngine* GetEngine() const = 0;
+ virtual int32_t GetCharRect(int32_t nIndex,
+ CFX_RectF& rect,
+ FX_BOOL bBBox = FALSE) const = 0;
+ virtual int32_t GetCharIndex(const CFX_PointF& fPoint, FX_BOOL& bBefore) = 0;
+ virtual void CalcRangeRectArray(int32_t nStart,
+ int32_t nCount,
+ CFX_RectFArray& RectFArr) const = 0;
+ virtual int32_t SelectWord(const CFX_PointF& fPoint, int32_t& nCount) = 0;
+ virtual int32_t GetCharStart() const = 0;
+ virtual int32_t GetCharCount() const = 0;
+
+ virtual int32_t GetDisplayPos(const CFX_RectF& rtClip,
+ FXTEXT_CHARPOS*& pCharPos,
+ CFX_RectF* pBBox) const = 0;
+ virtual FX_BOOL IsLoaded(const CFX_RectF* pClipBox) = 0;
+ virtual int32_t LoadPage(const CFX_RectF* pClipBox, IFX_Pause* pPause) = 0;
+ virtual void UnloadPage(const CFX_RectF* pClipBox) = 0;
+ virtual const CFX_RectF& GetContentsBox() = 0;
+};
+
+#endif // XFA_FDE_IFDE_TXTEDTPAGE_H_