From 8da140e8747920057a2f2bbcf5c78e40bb198733 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Thu, 7 Apr 2016 12:39:44 -0700 Subject: Remove all PWL_Note classes The PWL_Note clasess are never instantiated, remove them and their implementation. PWL_Note was the only caller to enable spellcheck so this allows us to remove IPWL_SpellCheck and the conditionals for PES_SPELLCHECK. BUG=pdfium:468 Review URL: https://codereview.chromium.org/1869533003 --- fpdfsdk/pdfwindow/PWL_Edit.h | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'fpdfsdk/pdfwindow/PWL_Edit.h') diff --git a/fpdfsdk/pdfwindow/PWL_Edit.h b/fpdfsdk/pdfwindow/PWL_Edit.h index 2cdc4d149d..29747dd2ae 100644 --- a/fpdfsdk/pdfwindow/PWL_Edit.h +++ b/fpdfsdk/pdfwindow/PWL_Edit.h @@ -12,8 +12,6 @@ #include "fpdfsdk/pdfwindow/PWL_EditCtrl.h" #include "fpdfsdk/pdfwindow/PWL_Wnd.h" -class IPWL_SpellCheck; - class IPWL_Filler_Notify { public: virtual ~IPWL_Filler_Notify() {} @@ -81,8 +79,6 @@ class CPWL_Edit : public CPWL_EditCtrl, public IFX_Edit_OprNotify { void SetLineLeading(FX_FLOAT fLineLeading, FX_BOOL bPaint = TRUE); - void EnableSpellCheck(FX_BOOL bEnabled); - FX_BOOL CanSelectAll() const; FX_BOOL CanClear() const; FX_BOOL CanCopy() const; @@ -117,6 +113,9 @@ class CPWL_Edit : public CPWL_EditCtrl, public IFX_Edit_OprNotify { void GeneratePageObjects(CPDF_PageObjectHolder* pObjectHolder, const CFX_FloatPoint& ptOffset); + FX_BOOL IsProceedtoOnChar(uint16_t nKeyCode, uint32_t nFlag); + void AttachFFLData(void* pData) { m_pFormFiller = pData; } + protected: // IFX_Edit_OprNotify void OnInsertWord(const CPVT_WordPlace& place, @@ -152,20 +151,9 @@ class CPWL_Edit : public CPWL_EditCtrl, public IFX_Edit_OprNotify { CPVT_WordRange GetSameWordsRange(const CPVT_WordPlace& place, FX_BOOL bLatin, FX_BOOL bArabic) const; - - public: - FX_BOOL IsProceedtoOnChar(uint16_t nKeyCode, uint32_t nFlag); - - private: IPWL_Filler_Notify* m_pFillerNotify; - IPWL_SpellCheck* m_pSpellCheck; FX_BOOL m_bFocus; CFX_FloatRect m_rcOldWindow; - - public: - void AttachFFLData(void* pData) { m_pFormFiller = pData; } - - private: void* m_pFormFiller; }; -- cgit v1.2.3