summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-04 17:28:40 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-05 10:21:54 +0200
commit8cafd08278c0b925aac91ea94d8f907d98f07047 (patch)
tree1c2b0e57c895511fdc67f8063647cc520ef5eaeb /include/vcl
parent3363f828d63775a11073276dce927b9538b57be6 (diff)
Use typed Timer::SetTimeoutHdl Link
Change-Id: Iaaf0c93e5b28c0f7dbe4f02eda8beeae30708100
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/animate.hxx2
-rw-r--r--include/vcl/cursor.hxx3
-rw-r--r--include/vcl/edit.hxx2
-rw-r--r--include/vcl/menubtn.hxx2
-rw-r--r--include/vcl/scrbar.hxx2
-rw-r--r--include/vcl/seleng.hxx2
-rw-r--r--include/vcl/spin.hxx2
-rw-r--r--include/vcl/spinfld.hxx2
-rw-r--r--include/vcl/throbber.hxx2
-rw-r--r--include/vcl/timer.hxx6
-rw-r--r--include/vcl/toolbox.hxx2
-rw-r--r--include/vcl/vclmedit.hxx2
-rw-r--r--include/vcl/window.hxx2
13 files changed, 16 insertions, 15 deletions
diff --git a/include/vcl/animate.hxx b/include/vcl/animate.hxx
index 0d89bc9c4f1b..74a527fc5c84 100644
--- a/include/vcl/animate.hxx
+++ b/include/vcl/animate.hxx
@@ -229,7 +229,7 @@ private:
bool mbIsWaiting;
SAL_DLLPRIVATE void ImplRestartTimer( sal_uLong nTimeout );
- DECL_DLLPRIVATE_LINK( ImplTimeoutHdl, void* );
+ DECL_DLLPRIVATE_LINK_TYPED( ImplTimeoutHdl, Timer*, void );
};
diff --git a/include/vcl/cursor.hxx b/include/vcl/cursor.hxx
index eecbd0c0ca8a..c56ef3c4b0d9 100644
--- a/include/vcl/cursor.hxx
+++ b/include/vcl/cursor.hxx
@@ -25,6 +25,7 @@
#include <vcl/dllapi.h>
#include <vcl/vclptr.hxx>
+class Timer;
struct ImplCursorData;
namespace vcl { class Window; }
@@ -53,7 +54,7 @@ private:
public:
SAL_DLLPRIVATE void ImplDraw();
SAL_DLLPRIVATE void ImplRestore();
- DECL_DLLPRIVATE_LINK( ImplTimerHdl, void* );
+ DECL_DLLPRIVATE_LINK_TYPED( ImplTimerHdl, Timer*, void );
SAL_DLLPRIVATE void ImplShow( bool bDrawDirect = true );
SAL_DLLPRIVATE void ImplHide( bool bStopTimer );
SAL_DLLPRIVATE void ImplResume( bool bRestore = false );
diff --git a/include/vcl/edit.hxx b/include/vcl/edit.hxx
index 3eb655ccd09b..8df899a34219 100644
--- a/include/vcl/edit.hxx
+++ b/include/vcl/edit.hxx
@@ -99,7 +99,7 @@ private:
css::uno::Reference < css::i18n::XExtendedInputSequenceChecker > mxISC;
- DECL_DLLPRIVATE_LINK( ImplUpdateDataHdl, void* );
+ DECL_DLLPRIVATE_LINK_TYPED( ImplUpdateDataHdl, Timer*, void );
SAL_DLLPRIVATE bool ImplTruncateToMaxLen( OUString&, sal_Int32 nSelectionLen ) const;
SAL_DLLPRIVATE void ImplInitEditData();
diff --git a/include/vcl/menubtn.hxx b/include/vcl/menubtn.hxx
index 035e1fc82dc2..b89db354dc9e 100644
--- a/include/vcl/menubtn.hxx
+++ b/include/vcl/menubtn.hxx
@@ -45,7 +45,7 @@ private:
Link<MenuButton *, void> maSelectHdl;
SAL_DLLPRIVATE void ImplInitMenuButtonData();
- DECL_DLLPRIVATE_LINK( ImplMenuTimeoutHdl, void* );
+ DECL_DLLPRIVATE_LINK_TYPED( ImplMenuTimeoutHdl, Timer*, void );
MenuButton( const MenuButton & ) SAL_DELETED_FUNCTION;
MenuButton& operator=( const MenuButton & ) SAL_DELETED_FUNCTION;
diff --git a/include/vcl/scrbar.hxx b/include/vcl/scrbar.hxx
index 71bda7168c3b..18efc600681c 100644
--- a/include/vcl/scrbar.hxx
+++ b/include/vcl/scrbar.hxx
@@ -86,7 +86,7 @@ private:
SAL_DLLPRIVATE void ImplDragThumb( const Point& rMousePos );
SAL_DLLPRIVATE Size getCurrentCalcSize() const;
DECL_DLLPRIVATE_LINK( ImplTimerHdl, Timer* );
- DECL_DLLPRIVATE_LINK( ImplAutoTimerHdl, void* );
+ DECL_DLLPRIVATE_LINK_TYPED( ImplAutoTimerHdl, Timer*, void );
public:
explicit ScrollBar( vcl::Window* pParent, WinBits nStyle = WB_VERT );
diff --git a/include/vcl/seleng.hxx b/include/vcl/seleng.hxx
index 781527157607..d5b9ef572d28 100644
--- a/include/vcl/seleng.hxx
+++ b/include/vcl/seleng.hxx
@@ -91,7 +91,7 @@ private:
sal_uLong nUpdateInterval;
sal_uInt16 nLockedMods;
SelectionEngineFlags nFlags;
- DECL_DLLPRIVATE_LINK( ImpWatchDog, void* );
+ DECL_DLLPRIVATE_LINK_TYPED( ImpWatchDog, Timer*, void );
inline bool ShouldDeselect( bool bModifierKey1 ) const;
// determines to deselect or not when Ctrl-key is pressed on CursorPosChanging
diff --git a/include/vcl/spin.hxx b/include/vcl/spin.hxx
index 1e40c6d6f017..48c8b4e9463c 100644
--- a/include/vcl/spin.hxx
+++ b/include/vcl/spin.hxx
@@ -53,7 +53,7 @@ private:
SAL_DLLPRIVATE Rectangle* ImplFindPartRect( const Point& rPt );
using Window::ImplInit;
SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
- DECL_DLLPRIVATE_LINK( ImplTimeout, Timer* );
+ DECL_DLLPRIVATE_LINK_TYPED( ImplTimeout, Timer*, void );
public:
explicit SpinButton( vcl::Window* pParent, WinBits nStyle = 0 );
diff --git a/include/vcl/spinfld.hxx b/include/vcl/spinfld.hxx
index 8060271d1777..bf4879b52425 100644
--- a/include/vcl/spinfld.hxx
+++ b/include/vcl/spinfld.hxx
@@ -51,7 +51,7 @@ protected:
SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
private:
- DECL_DLLPRIVATE_LINK( ImplTimeout, Timer* );
+ DECL_DLLPRIVATE_LINK_TYPED( ImplTimeout, Timer*, void );
SAL_DLLPRIVATE void ImplInitSpinFieldData();
SAL_DLLPRIVATE void ImplCalcButtonAreas( OutputDevice* pDev, const Size& rOutSz, Rectangle& rDDArea, Rectangle& rSpinUpArea, Rectangle& rSpinDownArea );
diff --git a/include/vcl/throbber.hxx b/include/vcl/throbber.hxx
index f7cbbedf62e2..2c986adc23f3 100644
--- a/include/vcl/throbber.hxx
+++ b/include/vcl/throbber.hxx
@@ -86,7 +86,7 @@ private:
AutoTimer maWaitTimer;
ImageSet meImageSet;
- DECL_LINK( TimeOutHdl, void* );
+ DECL_LINK_TYPED( TimeOutHdl, Timer*, void );
};
#endif // INCLUDED_VCL_THROBBER_HXX
diff --git a/include/vcl/timer.hxx b/include/vcl/timer.hxx
index c1779ce04294..458ad4e52bc8 100644
--- a/include/vcl/timer.hxx
+++ b/include/vcl/timer.hxx
@@ -26,7 +26,7 @@
class VCL_DLLPUBLIC Timer : public Scheduler
{
protected:
- Link<> maTimeoutHdl; // Callback Link
+ Link<Timer *, void> maTimeoutHdl; // Callback Link
sal_uInt64 mnTimeout;
bool mbAuto;
@@ -43,8 +43,8 @@ public:
/// Make it possible to associate a callback with this timer handler
/// of course, you can also sub-class and override 'Invoke'
- void SetTimeoutHdl( const Link<>& rLink ) { maTimeoutHdl = rLink; }
- const Link<>& GetTimeoutHdl() const { return maTimeoutHdl; }
+ void SetTimeoutHdl( const Link<Timer *, void>& rLink ) { maTimeoutHdl = rLink; }
+ const Link<Timer *, void>& GetTimeoutHdl() const { return maTimeoutHdl; }
void SetTimeout( sal_uInt64 nTimeoutMs );
sal_uInt64 GetTimeout() const { return mnTimeout; }
virtual void Invoke() SAL_OVERRIDE;
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx
index 661ea918a641..076f4342f9c3 100644
--- a/include/vcl/toolbox.hxx
+++ b/include/vcl/toolbox.hxx
@@ -239,7 +239,7 @@ private:
DECL_DLLPRIVATE_LINK( ImplUpdateHdl, void* );
DECL_DLLPRIVATE_LINK( ImplResetAutoSizeTriesHdl, void* );
DECL_DLLPRIVATE_LINK( ImplCustomMenuListener, VclMenuEvent* );
- DECL_DLLPRIVATE_LINK( ImplDropdownLongClickHdl, void* );
+ DECL_DLLPRIVATE_LINK_TYPED( ImplDropdownLongClickHdl, Timer*, void );
ToolBox (const ToolBox &) SAL_DELETED_FUNCTION;
ToolBox& operator= (const ToolBox &) SAL_DELETED_FUNCTION;
diff --git a/include/vcl/vclmedit.hxx b/include/vcl/vclmedit.hxx
index 441edcd45bf4..12d03e14f512 100644
--- a/include/vcl/vclmedit.hxx
+++ b/include/vcl/vclmedit.hxx
@@ -43,7 +43,7 @@ private:
protected:
- DECL_LINK( ImpUpdateDataHdl, void* );
+ DECL_LINK_TYPED( ImpUpdateDataHdl, Timer*, void );
void StateChanged( StateChangedType nType ) SAL_OVERRIDE;
void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
virtual bool PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx
index ccee88b2c20d..a3012e79455f 100644
--- a/include/vcl/window.hxx
+++ b/include/vcl/window.hxx
@@ -426,7 +426,7 @@ public:
DECL_DLLPRIVATE_LINK( ImplHandlePaintHdl, void* );
DECL_DLLPRIVATE_LINK( ImplGenerateMouseMoveHdl, void* );
- DECL_DLLPRIVATE_LINK( ImplTrackTimerHdl, Timer* );
+ DECL_DLLPRIVATE_LINK_TYPED( ImplTrackTimerHdl, Timer*, void );
DECL_DLLPRIVATE_LINK( ImplAsyncFocusHdl, void* );
DECL_DLLPRIVATE_LINK( ImplHandleResizeTimerHdl, void* );
DECL_DLLPRIVATE_LINK( ImplHideOwnerDrawWindowsHdl, void* );