diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-03-27 18:12:18 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-03-27 18:12:18 +0100 |
commit | 567ef6d5782cdb729b49005caf6005610ce03e22 (patch) | |
tree | 7e3be1da41382e555d9091914ef7e064852a4fd4 /sc/source/ui/inc/fieldwnd.hxx | |
parent | c36daa01f444ebad799c1cc7a106f1b4bb3c3d12 (diff) |
Second batch of adding SAL_OVERRIDE to overriding function declarations
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.
Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
Diffstat (limited to 'sc/source/ui/inc/fieldwnd.hxx')
-rw-r--r-- | sc/source/ui/inc/fieldwnd.hxx | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/sc/source/ui/inc/fieldwnd.hxx b/sc/source/ui/inc/fieldwnd.hxx index f6c7f5004b9d..8442dc8862f4 100644 --- a/sc/source/ui/inc/fieldwnd.hxx +++ b/sc/source/ui/inc/fieldwnd.hxx @@ -85,7 +85,7 @@ public: { public: ScrollBar(Window* pParent, WinBits nStyle); - virtual void Command( const CommandEvent& rCEvt ); + virtual void Command( const CommandEvent& rCEvt ) SAL_OVERRIDE; private: Window* mpParent; }; @@ -171,26 +171,26 @@ public: size_t GetFieldIndexByData( const ScPivotFuncData& rData ) const; - virtual void Paint( const Rectangle& rRect ); + virtual void Paint( const Rectangle& rRect ) SAL_OVERRIDE; protected: - virtual void StateChanged( StateChangedType nStateChange ); - virtual void DataChanged( const DataChangedEvent& rDCEvt ); - virtual void KeyInput( const KeyEvent& rKEvt ); - virtual void Command( const CommandEvent& rCEvt ); - virtual void MouseButtonDown( const MouseEvent& rMEvt ); - virtual void MouseButtonUp( const MouseEvent& rMEvt ); - virtual void MouseMove( const MouseEvent& rMEvt ); - virtual void GetFocus(); - virtual void LoseFocus(); - virtual void Resize(); + virtual void StateChanged( StateChangedType nStateChange ) SAL_OVERRIDE; + virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE; + virtual void KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE; + virtual void Command( const CommandEvent& rCEvt ) SAL_OVERRIDE; + virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE; + virtual void MouseButtonUp( const MouseEvent& rMEvt ) SAL_OVERRIDE; + virtual void MouseMove( const MouseEvent& rMEvt ) SAL_OVERRIDE; + virtual void GetFocus() SAL_OVERRIDE; + virtual void LoseFocus() SAL_OVERRIDE; + virtual void Resize() SAL_OVERRIDE; protected: FieldNames& GetFieldNames(); const FieldNames& GetFieldNames() const; virtual ::com::sun::star::uno::Reference< - ::com::sun::star::accessibility::XAccessible > CreateAccessible(); + ::com::sun::star::accessibility::XAccessible > CreateAccessible() SAL_OVERRIDE; void FieldFocusChanged(size_t nOldSelected, size_t nFieldSelected); @@ -272,26 +272,26 @@ private: class ScDPHorFieldControl : public ScDPFieldControlBase { protected: - virtual size_t CalcNewFieldIndex(SCsCOL nDX, SCsROW nDY) const; - virtual size_t GetDisplayPosition(size_t nIndex) const; - virtual void Redraw(); + virtual size_t CalcNewFieldIndex(SCsCOL nDX, SCsROW nDY) const SAL_OVERRIDE; + virtual size_t GetDisplayPosition(size_t nIndex) const SAL_OVERRIDE; + virtual void Redraw() SAL_OVERRIDE; public: ScDPHorFieldControl(Window* pParent); virtual ~ScDPHorFieldControl(); - virtual void CalcSize(); - virtual bool IsValidIndex( size_t nIndex ) const; - virtual Point GetFieldPosition(size_t nIndex); - virtual Size GetFieldSize() const; - virtual size_t GetFieldIndex( const Point& rPos ); - virtual OUString GetDescription() const; + virtual void CalcSize() SAL_OVERRIDE; + virtual bool IsValidIndex( size_t nIndex ) const SAL_OVERRIDE; + virtual Point GetFieldPosition(size_t nIndex) SAL_OVERRIDE; + virtual Size GetFieldSize() const SAL_OVERRIDE; + virtual size_t GetFieldIndex( const Point& rPos ) SAL_OVERRIDE; + virtual OUString GetDescription() const SAL_OVERRIDE; - virtual void ScrollToEnd(); - virtual void ScrollToShowSelection(); - virtual void ResetScrollBar(); - virtual void HandleWheelScroll(long nNotch); + virtual void ScrollToEnd() SAL_OVERRIDE; + virtual void ScrollToShowSelection() SAL_OVERRIDE; + virtual void ResetScrollBar() SAL_OVERRIDE; + virtual void HandleWheelScroll(long nNotch) SAL_OVERRIDE; private: bool GetFieldBtnPosSize(size_t nPos, Point& rPos, Size& rSize); @@ -316,8 +316,8 @@ public: ScDPPageFieldControl( Window* pParent ); virtual ~ScDPPageFieldControl(); - virtual ScPivotFieldType GetFieldType() const; - virtual OUString GetDescription() const; + virtual ScPivotFieldType GetFieldType() const SAL_OVERRIDE; + virtual OUString GetDescription() const SAL_OVERRIDE; }; @@ -328,8 +328,8 @@ public: ScDPColFieldControl( Window* pParent ); virtual ~ScDPColFieldControl(); - virtual ScPivotFieldType GetFieldType() const; - virtual OUString GetDescription() const; + virtual ScPivotFieldType GetFieldType() const SAL_OVERRIDE; + virtual OUString GetDescription() const SAL_OVERRIDE; }; @@ -344,23 +344,23 @@ public: virtual ~ScDPRowFieldControl(); - virtual void CalcSize(); - virtual bool IsValidIndex( size_t nIndex ) const; - virtual Point GetFieldPosition( size_t nIndex ); - virtual Size GetFieldSize() const; - virtual size_t GetFieldIndex( const Point& rPos ); - virtual OUString GetDescription() const; - virtual ScPivotFieldType GetFieldType() const; + virtual void CalcSize() SAL_OVERRIDE; + virtual bool IsValidIndex( size_t nIndex ) const SAL_OVERRIDE; + virtual Point GetFieldPosition( size_t nIndex ) SAL_OVERRIDE; + virtual Size GetFieldSize() const SAL_OVERRIDE; + virtual size_t GetFieldIndex( const Point& rPos ) SAL_OVERRIDE; + virtual OUString GetDescription() const SAL_OVERRIDE; + virtual ScPivotFieldType GetFieldType() const SAL_OVERRIDE; - virtual void ScrollToEnd(); - virtual void ScrollToShowSelection(); - virtual void ResetScrollBar(); - virtual void HandleWheelScroll(long nNotch); + virtual void ScrollToEnd() SAL_OVERRIDE; + virtual void ScrollToShowSelection() SAL_OVERRIDE; + virtual void ResetScrollBar() SAL_OVERRIDE; + virtual void HandleWheelScroll(long nNotch) SAL_OVERRIDE; protected: - virtual size_t CalcNewFieldIndex( SCsCOL nDX, SCsROW nDY ) const; - virtual size_t GetDisplayPosition(size_t nIndex) const; - virtual void Redraw(); + virtual size_t CalcNewFieldIndex( SCsCOL nDX, SCsROW nDY ) const SAL_OVERRIDE; + virtual size_t GetDisplayPosition(size_t nIndex) const SAL_OVERRIDE; + virtual void Redraw() SAL_OVERRIDE; private: bool GetFieldBtnPosSize(size_t nPos, Point& rPos, Size& rSize); @@ -383,8 +383,8 @@ public: ScDPSelectFieldControl( Window* pParent ); virtual ~ScDPSelectFieldControl(); - virtual ScPivotFieldType GetFieldType() const; - virtual OUString GetDescription() const; + virtual ScPivotFieldType GetFieldType() const SAL_OVERRIDE; + virtual OUString GetDescription() const SAL_OVERRIDE; }; @@ -395,9 +395,9 @@ public: ScDPDataFieldControl( Window* pParent ); virtual ~ScDPDataFieldControl(); - virtual ScPivotFieldType GetFieldType() const; - virtual Size GetFieldSize() const; - virtual OUString GetDescription() const; + virtual ScPivotFieldType GetFieldType() const SAL_OVERRIDE; + virtual Size GetFieldSize() const SAL_OVERRIDE; + virtual OUString GetDescription() const SAL_OVERRIDE; }; #endif |