diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2016-03-09 13:16:17 -0500 |
---|---|---|
committer | Dan Sinclair <dsinclair@chromium.org> | 2016-03-09 13:16:17 -0500 |
commit | f1fa151e146d70c5e031726581e176a8c7d0d579 (patch) | |
tree | d50e40ce3925aa41d5139f541facda7ed381a109 /xfa/src/fee/ifde_txtedtpage.h | |
parent | c76831bb60d3c938b82a64a45f6b2af5b5f24bed (diff) | |
download | pdfium-f1fa151e146d70c5e031726581e176a8c7d0d579.tar.xz |
Collapse xfa/src/fee directorieschromium/2674chromium/2673
This CL moves xfa/src/fee/src/fee up to xfa/src/fee and moves the
xfa/src/fee/include files up to xfa/src/fee.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1778633003 .
Diffstat (limited to 'xfa/src/fee/ifde_txtedtpage.h')
-rw-r--r-- | xfa/src/fee/ifde_txtedtpage.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/xfa/src/fee/ifde_txtedtpage.h b/xfa/src/fee/ifde_txtedtpage.h new file mode 100644 index 0000000000..c0236ff0b0 --- /dev/null +++ b/xfa/src/fee/ifde_txtedtpage.h @@ -0,0 +1,42 @@ +// 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_SRC_FEE_IFDE_TXTEDTPAGE_H_ +#define XFA_SRC_FEE_IFDE_TXTEDTPAGE_H_ + +#include "core/include/fxge/fx_ge.h" +#include "xfa/src/fdp/include/fde_psr.h" +#include "xfa/src/fgas/include/fx_tbk.h" + +class IFDE_TxtEdtEngine; +class IFDE_TxtEdtPage : public IFDE_CanvasSet, public IFX_TxtAccess { + public: + static IFDE_TxtEdtPage* Create(IFDE_TxtEdtEngine* pEngine, int32_t nIndex); + + virtual void Release() = 0; + + virtual IFDE_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_SRC_FEE_IFDE_TXTEDTPAGE_H_ |