diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-31 08:59:43 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-31 09:50:11 +0200 |
commit | 42ee163bc0a1b1b58a4481f9da7fb294dea9d6df (patch) | |
tree | 87f79c902ee93857b3c8a4827763592a43c12222 /include/svtools/simptabl.hxx | |
parent | b6e95a8c9997e03099492079ebc34c4a47b8b502 (diff) |
convert Link<> to typed
Change-Id: I22f995b905e7abf1451a0636083bf19b3f2d9bc4
Diffstat (limited to 'include/svtools/simptabl.hxx')
-rw-r--r-- | include/svtools/simptabl.hxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/svtools/simptabl.hxx b/include/svtools/simptabl.hxx index d62ee3991457..4e1c64a6ec13 100644 --- a/include/svtools/simptabl.hxx +++ b/include/svtools/simptabl.hxx @@ -51,9 +51,8 @@ class SVT_DLLPUBLIC SvSimpleTable : public SvHeaderTabListBox private: SvSimpleTableContainer& m_rParentTableContainer; - Link<> aHeaderBarClickLink; - Link<> aHeaderBarDblClickLink; - Link<> aCommandLink; + Link<SvSimpleTable*, void> aHeaderBarClickLink; + Link<SvSimpleTable*, void> aCommandLink; CommandEvent aCEvt; VclPtr<HeaderBar> aHeaderBar; long nOldPos; @@ -68,7 +67,6 @@ private: DECL_LINK_TYPED( DragHdl, HeaderBar*, void ); DECL_LINK_TYPED( EndDragHdl, HeaderBar*, void ); DECL_LINK_TYPED( HeaderBarClick, HeaderBar*, void ); - DECL_LINK_TYPED( HeaderBarDblClick, HeaderBar*, void ); DECL_LINK( CompareHdl, SvSortData* ); protected: @@ -79,7 +77,6 @@ protected: virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) SAL_OVERRIDE; virtual void HBarClick(); - void HBarDblClick(); void HBarStartDrag(); void HBarDrag(); void HBarEndDrag(); @@ -119,9 +116,9 @@ public: CommandEvent GetCommandEvent()const { return aCEvt;} inline bool IsFocusOnCellEnabled() const { return IsCellFocusEnabled(); } - void SetCommandHdl( const Link<>& rLink ) { aCommandLink = rLink; } + void SetCommandHdl( const Link<SvSimpleTable*,void>& rLink ) { aCommandLink = rLink; } - void SetHeaderBarClickHdl( const Link<>& rLink ) { aHeaderBarClickLink = rLink; } + void SetHeaderBarClickHdl( const Link<SvSimpleTable*,void>& rLink ) { aHeaderBarClickLink = rLink; } HeaderBar& GetTheHeaderBar() { return *aHeaderBar.get(); } }; |