diff options
author | dsinclair <dsinclair@chromium.org> | 2016-04-07 12:39:44 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-07 12:39:44 -0700 |
commit | 8da140e8747920057a2f2bbcf5c78e40bb198733 (patch) | |
tree | e6500e1812669c52fb55abe818703f30183ba844 /fpdfsdk/pdfwindow/PWL_Wnd.h | |
parent | 1596f0ae0a289da6f16ede1dd7e3fbcc55ef8b41 (diff) | |
download | pdfium-8da140e8747920057a2f2bbcf5c78e40bb198733.tar.xz |
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
Diffstat (limited to 'fpdfsdk/pdfwindow/PWL_Wnd.h')
-rw-r--r-- | fpdfsdk/pdfwindow/PWL_Wnd.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/fpdfsdk/pdfwindow/PWL_Wnd.h b/fpdfsdk/pdfwindow/PWL_Wnd.h index 7cad1cc664..b9448c4362 100644 --- a/fpdfsdk/pdfwindow/PWL_Wnd.h +++ b/fpdfsdk/pdfwindow/PWL_Wnd.h @@ -21,7 +21,6 @@ class CPWL_Wnd; class IPVT_FontMap; class IFX_SystemHandler; class IPWL_Provider; -class IPWL_SpellCheck; // window styles #define PWS_CHILD 0x80000000L @@ -65,7 +64,6 @@ class IPWL_SpellCheck; #define PRES_MULTILINE 0x0001L #define PRES_AUTORETURN 0x0002L #define PRES_AUTOSCROLL 0x0004L -#define PRES_SPELLCHECK 0x0008L #define PRES_UNDO 0x0100L #define PRES_MULTIPAGES 0x0200L #define PRES_TEXTOVERFLOW 0x0400L @@ -168,14 +166,6 @@ inline bool operator!=(const CPWL_Color& c1, const CPWL_Color& c2) { #define PWL_CBBUTTON_TRIANGLE_HALFLEN 3.0f #define PWL_INVALIDATE_INFLATE 2 -class IPWL_SpellCheck { - public: - virtual ~IPWL_SpellCheck() {} - virtual FX_BOOL CheckWord(const FX_CHAR* sWord) = 0; - virtual void SuggestWords(const FX_CHAR* sWord, - std::vector<CFX_ByteString>& sSuggest) = 0; -}; - class IPWL_Provider { public: virtual ~IPWL_Provider() {} @@ -213,7 +203,6 @@ struct PWL_CREATEPARAM { dwFlags(0), sBackgroundColor(), hAttachedWnd(NULL), - pSpellCheck(NULL), nBorderStyle(PBS_SOLID), dwBorderWidth(1), sBorderColor(), @@ -236,7 +225,6 @@ struct PWL_CREATEPARAM { uint32_t dwFlags; // optional CPWL_Color sBackgroundColor; // optional FX_HWND hAttachedWnd; // required for no-reader framework - IPWL_SpellCheck* pSpellCheck; // required for spellchecking int32_t nBorderStyle; // optional int32_t dwBorderWidth; // optional CPWL_Color sBorderColor; // optional |