summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_txtedtpage.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-16 16:37:16 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-17 15:39:14 +0000
commitb3e7bfa6ed35651a22df314352883ccb44a7203d (patch)
tree7d5c4734bb8203f358890d09d2bafc49bc7fa67a /xfa/fde/cfde_txtedtpage.h
parent1748c4f6e42cda6ffa6bf32731d2fd525c060cf1 (diff)
downloadpdfium-b3e7bfa6ed35651a22df314352883ccb44a7203d.tar.xz
Cleanup visibilty and unused methods in xfa/fde
This CL fixes the visibility of some methods in xfa/fde along with removing unused methods. Unused params are also removed. Change-Id: Ic6e6d2ac8d07dc4bdabb3e0121831e4bf3fbb8ec Reviewed-on: https://pdfium-review.googlesource.com/11271 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_txtedtpage.h')
-rw-r--r--xfa/fde/cfde_txtedtpage.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/xfa/fde/cfde_txtedtpage.h b/xfa/fde/cfde_txtedtpage.h
index 78814fb612..cdf6c55080 100644
--- a/xfa/fde/cfde_txtedtpage.h
+++ b/xfa/fde/cfde_txtedtpage.h
@@ -41,22 +41,23 @@ class CFDE_TxtEdtPage {
CFDE_TxtEdtPage(CFDE_TxtEdtEngine* pEngine, int32_t nLineIndex);
~CFDE_TxtEdtPage();
- CFX_RectF GetRect(const FDE_TEXTEDITPIECE& pPiece) { return CFX_RectF(); }
CFDE_TxtEdtEngine* GetEngine() const { return m_pEditEngine.Get(); }
+
int32_t GetCharRect(int32_t nIndex, CFX_RectF& rect, bool bBBox) const;
int32_t GetCharIndex(const CFX_PointF& fPoint, bool& bBefore);
+
void CalcRangeRectArray(int32_t nStart,
int32_t nCount,
std::vector<CFX_RectF>* RectFArr) const;
+
int32_t SelectWord(const CFX_PointF& fPoint, int32_t& nCount);
+
int32_t GetCharStart() const { return m_nPageStart; }
int32_t GetCharCount() const { return m_nCharCount; }
- int32_t GetDisplayPos(const CFX_RectF& rtClip,
- FXTEXT_CHARPOS*& pCharPos,
- CFX_RectF* pBBox) const;
- bool IsLoaded(const CFX_RectF* pClipBox) { return m_bLoaded; }
- int32_t LoadPage(const CFX_RectF* pClipBox);
- void UnloadPage(const CFX_RectF* pClipBox);
+
+ int32_t LoadPage();
+ void UnloadPage();
+
const CFX_RectF& GetContentsBox() { return m_rtPageContents; }
size_t GetTextPieceCount() const { return m_pTextSet ? m_Pieces.size() : 0; }