summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_txtedtpage.h
diff options
context:
space:
mode:
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; }