summaryrefslogtreecommitdiff
path: root/fpdfsdk/include/fxedit/fxet_list.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-11-19 22:20:59 -0800
committerLei Zhang <thestig@chromium.org>2015-11-19 22:20:59 -0800
commit5fd907b8266766152377a9836abfcac0161832fc (patch)
tree2b3f94e1b8a5e7f0c816139ceec79b2bca4eff0c /fpdfsdk/include/fxedit/fxet_list.h
parent237c3653bf7235ac5cab86bb61cfbd4ed8f18f75 (diff)
downloadpdfium-5fd907b8266766152377a9836abfcac0161832fc.tar.xz
Merge to XFA: Add more overrides.
Using Chromium's clang + build options, there's more override warnings. TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/1453643002 . (cherry picked from commit 126ba519bdd489ec6c285d1410dcae773e8ef673) Review URL: https://codereview.chromium.org/1458373002 .
Diffstat (limited to 'fpdfsdk/include/fxedit/fxet_list.h')
-rw-r--r--fpdfsdk/include/fxedit/fxet_list.h45
1 files changed, 19 insertions, 26 deletions
diff --git a/fpdfsdk/include/fxedit/fxet_list.h b/fpdfsdk/include/fxedit/fxet_list.h
index 63c6617cba..2700b92cf0 100644
--- a/fpdfsdk/include/fxedit/fxet_list.h
+++ b/fpdfsdk/include/fxedit/fxet_list.h
@@ -208,40 +208,33 @@ class CLST_ArrayTemplate : public CFX_ArrayTemplate<TYPE> {
class CFX_List : protected CFX_ListContainer, public IFX_List {
public:
CFX_List();
- virtual ~CFX_List();
+ ~CFX_List() override;
- public:
- virtual void SetFontMap(IFX_Edit_FontMap* pFontMap);
- virtual void SetFontSize(FX_FLOAT fFontSize);
-
- virtual CPDF_Rect GetPlateRect() const;
- virtual CPDF_Rect GetContentRect() const;
-
- virtual FX_FLOAT GetFontSize() const;
- virtual IFX_Edit* GetItemEdit(int32_t nIndex) const;
- virtual int32_t GetCount() const;
- virtual FX_BOOL IsItemSelected(int32_t nIndex) const;
- virtual FX_FLOAT GetFirstHeight() const;
-
- virtual void SetMultipleSel(FX_BOOL bMultiple);
- virtual FX_BOOL IsMultipleSel() const;
- virtual FX_BOOL IsValid(int32_t nItemIndex) const;
- virtual int32_t FindNext(int32_t nIndex, FX_WCHAR nChar) const;
+ // IFX_List:
+ void SetFontMap(IFX_Edit_FontMap* pFontMap) override;
+ void SetFontSize(FX_FLOAT fFontSize) override;
+ CPDF_Rect GetPlateRect() const override;
+ CPDF_Rect GetContentRect() const override;
+ FX_FLOAT GetFontSize() const override;
+ IFX_Edit* GetItemEdit(int32_t nIndex) const override;
+ int32_t GetCount() const override;
+ FX_BOOL IsItemSelected(int32_t nIndex) const override;
+ FX_FLOAT GetFirstHeight() const override;
+ void SetMultipleSel(FX_BOOL bMultiple) override;
+ FX_BOOL IsMultipleSel() const override;
+ FX_BOOL IsValid(int32_t nItemIndex) const override;
+ int32_t FindNext(int32_t nIndex, FX_WCHAR nChar) const override;
+ void Empty() override;
+ CPDF_Rect GetItemRect(int32_t nIndex) const override;
+ int32_t GetItemIndex(const CPDF_Point& point) const override;
+ int32_t GetFirstSelected() const override;
protected:
- virtual void Empty();
-
void AddItem(const FX_WCHAR* str);
virtual void ReArrange(int32_t nItemIndex);
-
- virtual CPDF_Rect GetItemRect(int32_t nIndex) const;
CFX_WideString GetItemText(int32_t nIndex) const;
-
void SetItemSelect(int32_t nItemIndex, FX_BOOL bSelected);
void SetItemCaret(int32_t nItemIndex, FX_BOOL bCaret);
-
- virtual int32_t GetItemIndex(const CPDF_Point& point) const;
- int32_t GetFirstSelected() const;
int32_t GetLastSelected() const;
FX_WCHAR Toupper(FX_WCHAR c) const;