From 575898e6251c1dbb8de0d40a5b6ce90762aa2af2 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 13 Mar 2017 10:16:05 -0400 Subject: Remove some single use interfaces Remove interfaces which are only implemented once. Change-Id: I73ceaa7bfd7ef2a630479c7eebed5e32ecb99940 Reviewed-on: https://pdfium-review.googlesource.com/2944 Commit-Queue: dsinclair Reviewed-by: Tom Sepez --- xfa/fde/cfde_txtedttextset.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'xfa/fde/cfde_txtedttextset.h') diff --git a/xfa/fde/cfde_txtedttextset.h b/xfa/fde/cfde_txtedttextset.h index 8ab6578793..8046d38d79 100644 --- a/xfa/fde/cfde_txtedttextset.h +++ b/xfa/fde/cfde_txtedttextset.h @@ -13,7 +13,7 @@ class CFDE_TxtEdtPage; -class CFDE_TxtEdtTextSet : public IFDE_TextSet { +class CFDE_TxtEdtTextSet : public IFDE_VisualSet { public: explicit CFDE_TxtEdtTextSet(CFDE_TxtEdtPage* pPage); ~CFDE_TxtEdtTextSet() override; @@ -22,17 +22,16 @@ class CFDE_TxtEdtTextSet : public IFDE_TextSet { FDE_VISUALOBJTYPE GetType() override; CFX_RectF GetRect(const FDE_TEXTEDITPIECE& hVisualObj) override; - // IFDE_TextSet - int32_t GetString(FDE_TEXTEDITPIECE* pPiece, CFX_WideString& wsText) override; - CFX_RetainPtr GetFont() override; - FX_FLOAT GetFontSize() override; - FX_ARGB GetFontColor() override; + int32_t GetString(FDE_TEXTEDITPIECE* pPiece, CFX_WideString& wsText); + CFX_RetainPtr GetFont(); + FX_FLOAT GetFontSize(); + FX_ARGB GetFontColor(); int32_t GetDisplayPos(const FDE_TEXTEDITPIECE& pPiece, FXTEXT_CHARPOS* pCharPos, bool bCharCode = false, - CFX_WideString* pWSForms = nullptr) override; + CFX_WideString* pWSForms = nullptr); std::vector GetCharRects(const FDE_TEXTEDITPIECE* pPiece, - bool bBBox) override; + bool bBBox); private: CFDE_TxtEdtPage* const m_pPage; -- cgit v1.2.3