summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-15 08:13:49 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-10-16 09:11:29 +0000
commit6f1313b3d44ea54e9a331e0fc00871081fa662fe (patch)
treefa6d9b6da04daedcb63ea2a0bc8c414288ed8bc6 /include/svtools
parent14bf708ef586b15dffed66ffaf524baf4d8fcbfa (diff)
convert Link<> to typed
Change-Id: Icbba339dac0be31e30dff021bba06a219f8aecd6 Reviewed-on: https://gerrit.libreoffice.org/19405 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/GraphicExportOptionsDialog.hxx6
-rw-r--r--include/svtools/PlaceEditDialog.hxx6
-rw-r--r--include/svtools/ServerDetailsControls.hxx2
-rw-r--r--include/svtools/editbrowsebox.hxx18
-rw-r--r--include/svtools/editimplementation.hxx2
-rw-r--r--include/svtools/filectrl.hxx2
6 files changed, 18 insertions, 18 deletions
diff --git a/include/svtools/GraphicExportOptionsDialog.hxx b/include/svtools/GraphicExportOptionsDialog.hxx
index 34fd5968c589..420b3ba21e33 100644
--- a/include/svtools/GraphicExportOptionsDialog.hxx
+++ b/include/svtools/GraphicExportOptionsDialog.hxx
@@ -56,9 +56,9 @@ private:
double getViewWidthInch();
double getViewHeightInch();
- DECL_LINK( widthModifiedHandle, void* );
- DECL_LINK( heightModifiedHandle, void* );
- DECL_LINK( resolutionModifiedHandle, void* );
+ DECL_LINK_TYPED( widthModifiedHandle, Edit&, void );
+ DECL_LINK_TYPED( heightModifiedHandle, Edit&, void );
+ DECL_LINK_TYPED( resolutionModifiedHandle, Edit&, void );
public:
GraphicExportOptionsDialog( vcl::Window* pWindow, const css::uno::Reference<css::lang::XComponent>& rxSourceDocument );
diff --git a/include/svtools/PlaceEditDialog.hxx b/include/svtools/PlaceEditDialog.hxx
index 6fcd3c608bc5..f6825808b6de 100644
--- a/include/svtools/PlaceEditDialog.hxx
+++ b/include/svtools/PlaceEditDialog.hxx
@@ -85,10 +85,10 @@ private:
DECL_LINK_TYPED ( OKHdl, Button *, void );
DECL_LINK_TYPED ( DelHdl, Button *, void );
DECL_LINK_TYPED ( EditHdl, DetailsContainer*, void );
- DECL_LINK ( ModifyHdl, void* );
+ DECL_LINK_TYPED ( ModifyHdl, Edit&, void );
DECL_LINK_TYPED ( SelectTypeHdl, ListBox&, void );
- DECL_LINK ( EditLabelHdl, void * );
- DECL_LINK ( EditUsernameHdl, void * );
+ DECL_LINK_TYPED ( EditLabelHdl, Edit&, void );
+ DECL_LINK_TYPED ( EditUsernameHdl, Edit&, void );
};
diff --git a/include/svtools/ServerDetailsControls.hxx b/include/svtools/ServerDetailsControls.hxx
index 80d9bcc539ee..3e71209d77e4 100644
--- a/include/svtools/ServerDetailsControls.hxx
+++ b/include/svtools/ServerDetailsControls.hxx
@@ -61,7 +61,7 @@ class DetailsContainer
protected:
void notifyChange( );
- DECL_LINK ( ValueChangeHdl, void * );
+ DECL_LINK_TYPED ( ValueChangeHdl, Edit&, void );
};
class HostDetailsContainer : public DetailsContainer
diff --git a/include/svtools/editbrowsebox.hxx b/include/svtools/editbrowsebox.hxx
index 991f9b18f990..e1c7c1047b4b 100644
--- a/include/svtools/editbrowsebox.hxx
+++ b/include/svtools/editbrowsebox.hxx
@@ -147,7 +147,7 @@ namespace svt
virtual void SetModified() = 0;
virtual bool IsModified() const = 0;
virtual void ClearModified() = 0;
- virtual void SetModifyHdl( const Link<>& _rLink ) = 0;
+ virtual void SetModifyHdl( const Link<Edit&,void>& _rLink ) = 0;
};
@@ -182,7 +182,7 @@ namespace svt
virtual void SetModified() override;
virtual bool IsModified() const override;
virtual void ClearModified() override;
- virtual void SetModifyHdl( const Link<>& _rLink ) override;
+ virtual void SetModifyHdl( const Link<Edit&,void>& _rLink ) override;
};
#include <svtools/editimplementation.hxx>
@@ -252,7 +252,7 @@ namespace svt
protected:
virtual bool MoveAllowed(const KeyEvent& rEvt) const override;
private:
- DECL_LINK(ModifyHdl, void*);
+ DECL_LINK_TYPED(ModifyHdl, Edit&, void);
};
@@ -273,7 +273,7 @@ namespace svt
protected:
virtual bool MoveAllowed(const KeyEvent& rEvt) const override;
private:
- DECL_LINK(ModifyHdl, void*);
+ DECL_LINK_TYPED(ModifyHdl, Edit&, void);
};
@@ -360,7 +360,7 @@ namespace svt
protected:
virtual bool MoveAllowed(const KeyEvent& rEvt) const override;
private:
- DECL_LINK(ModifyHdl, void*);
+ DECL_LINK_TYPED(ModifyHdl, Edit&, void);
};
@@ -673,10 +673,10 @@ namespace svt
SVT_DLLPRIVATE void implActivateCellOnMouseEvent(const BrowserMouseEvent& _rEvt, bool _bUp);
SVT_DLLPRIVATE void impl_construct();
- DECL_DLLPRIVATE_LINK_TYPED(ModifyHdl, LinkParamNone*, void );
- DECL_DLLPRIVATE_LINK_TYPED(StartEditHdl, void*, void );
- DECL_DLLPRIVATE_LINK_TYPED(EndEditHdl, void*, void );
- DECL_DLLPRIVATE_LINK_TYPED(CellModifiedHdl, void*, void );
+ DECL_DLLPRIVATE_LINK_TYPED( ModifyHdl, LinkParamNone*, void );
+ DECL_DLLPRIVATE_LINK_TYPED( StartEditHdl, void*, void );
+ DECL_DLLPRIVATE_LINK_TYPED( EndEditHdl, void*, void );
+ DECL_DLLPRIVATE_LINK_TYPED( CellModifiedHdl, void*, void );
};
diff --git a/include/svtools/editimplementation.hxx b/include/svtools/editimplementation.hxx
index f6a98a6ad80d..c43c44d66db2 100644
--- a/include/svtools/editimplementation.hxx
+++ b/include/svtools/editimplementation.hxx
@@ -129,7 +129,7 @@ void GenericEditImplementation< EDIT >::ClearModified()
template <class EDIT>
-void GenericEditImplementation< EDIT >::SetModifyHdl( const Link<>& _rLink )
+void GenericEditImplementation< EDIT >::SetModifyHdl( const Link<Edit&,void>& _rLink )
{
m_rEdit.SetModifyHdl( _rLink );
}
diff --git a/include/svtools/filectrl.hxx b/include/svtools/filectrl.hxx
index 741e3c509409..14fe9466a84f 100644
--- a/include/svtools/filectrl.hxx
+++ b/include/svtools/filectrl.hxx
@@ -86,7 +86,7 @@ public:
void SetText( const OUString& rStr ) override;
OUString GetText() const override;
- void SetEditModifyHdl( const Link<>& rLink );
+ void SetEditModifyHdl( const Link<Edit&,void>& rLink );
};
#endif