summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-09-22 22:00:22 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-09-23 13:06:48 +0000
commitb2cd2e79b6fc152072d0f1e46b5c4ed2d489c09c (patch)
treec309da3b2afeb4839146b1c6877c52481a363641 /sw/source/ui
parent28329d7cacdf8c37a9c1863530615e1b9cfa6935 (diff)
convert Link<> to typed
Change-Id: If1e53fee4b39daed44632b2395ddb42064c698fb Reviewed-on: https://gerrit.libreoffice.org/18800 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/dbui/mmlayoutpage.cxx7
-rw-r--r--sw/source/ui/dbui/mmlayoutpage.hxx2
-rw-r--r--sw/source/ui/envelp/labelexp.cxx5
-rw-r--r--sw/source/ui/envelp/swuilabimp.hxx2
-rw-r--r--sw/source/ui/index/cntex.cxx3
-rw-r--r--sw/source/ui/index/cnttab.cxx2
-rw-r--r--sw/source/ui/misc/glossary.cxx5
7 files changed, 11 insertions, 15 deletions
diff --git a/sw/source/ui/dbui/mmlayoutpage.cxx b/sw/source/ui/dbui/mmlayoutpage.cxx
index 0662cde60cf7..678db1815b43 100644
--- a/sw/source/ui/dbui/mmlayoutpage.cxx
+++ b/sw/source/ui/dbui/mmlayoutpage.cxx
@@ -118,7 +118,7 @@ SwMailMergeLayoutPage::SwMailMergeLayoutPage( SwMailMergeWizard* _pParent) :
uno::Reference< frame::XStorable > xStore( pView->GetDocShell()->GetModel(), uno::UNO_QUERY);
xStore->storeToURL( m_sExampleURL, aValues );
- Link<> aLink(LINK(this, SwMailMergeLayoutPage, PreviewLoadedHdl_Impl));
+ Link<SwOneExampleFrame&,void> aLink(LINK(this, SwMailMergeLayoutPage, PreviewLoadedHdl_Impl));
m_pExampleFrame = new SwOneExampleFrame( *m_pExampleContainerWIN,
EX_SHOW_DEFAULT_PAGE, &aLink, &m_sExampleURL );
@@ -619,7 +619,7 @@ void SwMailMergeLayoutPage::InsertGreeting(SwWrtShell& rShell, SwMailMergeConfig
OSL_ENSURE(0 == rShell.GetTableFormat(), "What to do with a table here?");
}
-IMPL_LINK_NOARG(SwMailMergeLayoutPage, PreviewLoadedHdl_Impl)
+IMPL_LINK_NOARG_TYPED(SwMailMergeLayoutPage, PreviewLoadedHdl_Impl, SwOneExampleFrame&, void)
{
m_pExampleContainerWIN->Show(true);
@@ -633,7 +633,7 @@ IMPL_LINK_NOARG(SwMailMergeLayoutPage, PreviewLoadedHdl_Impl)
m_pExampleWrtShell = pDocShell->GetWrtShell();
OSL_ENSURE(m_pExampleWrtShell, "No SwWrtShell found!");
if(!m_pExampleWrtShell)
- return 0;
+ return;
SwMailMergeConfigItem& rConfigItem = m_pWizard->GetConfigItem();
if(rConfigItem.IsAddressBlock())
@@ -657,7 +657,6 @@ IMPL_LINK_NOARG(SwMailMergeLayoutPage, PreviewLoadedHdl_Impl)
m_pExampleWrtShell->GetCurPageDesc()).GetMaster().GetFrmSize();
m_pLeftMF->SetMax(rPageSize.GetWidth() - DEFAULT_LEFT_DISTANCE);
m_pTopMF->SetMax(rPageSize.GetHeight() - DEFAULT_TOP_DISTANCE);
- return 0;
}
IMPL_LINK(SwMailMergeLayoutPage, ZoomHdl_Impl, ListBox*, pBox)
diff --git a/sw/source/ui/dbui/mmlayoutpage.hxx b/sw/source/ui/dbui/mmlayoutpage.hxx
index fcd387e2cd56..2b46221beb7c 100644
--- a/sw/source/ui/dbui/mmlayoutpage.hxx
+++ b/sw/source/ui/dbui/mmlayoutpage.hxx
@@ -65,7 +65,7 @@ class SwMailMergeLayoutPage : public svt::OWizardPage
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > m_xViewProperties;
- DECL_LINK(PreviewLoadedHdl_Impl, void*);
+ DECL_LINK_TYPED(PreviewLoadedHdl_Impl, SwOneExampleFrame&, void);
DECL_LINK(ZoomHdl_Impl, ListBox*);
DECL_LINK(ChangeAddressHdl_Impl, void *);
DECL_LINK_TYPED(GreetingsHdl_Impl, Button*, void);
diff --git a/sw/source/ui/envelp/labelexp.cxx b/sw/source/ui/envelp/labelexp.cxx
index 346349a1cbfc..206d9353d892 100644
--- a/sw/source/ui/envelp/labelexp.cxx
+++ b/sw/source/ui/envelp/labelexp.cxx
@@ -38,7 +38,7 @@ using namespace ::comphelper;
void SwVisitingCardPage::InitFrameControl()
{
- Link<> aLink(LINK(this, SwVisitingCardPage, FrameControlInitializedHdl));
+ Link<SwOneExampleFrame&,void> aLink(LINK(this, SwVisitingCardPage, FrameControlInitializedHdl));
m_pExampleWIN->Show();
pExampleFrame = new SwOneExampleFrame( *m_pExampleWIN,
EX_SHOW_BUSINESS_CARDS, &aLink );
@@ -101,7 +101,7 @@ void SwVisitingCardPage::InitFrameControl()
}
}
-IMPL_LINK_NOARG(SwVisitingCardPage, FrameControlInitializedHdl)
+IMPL_LINK_NOARG_TYPED(SwVisitingCardPage, FrameControlInitializedHdl, SwOneExampleFrame&, void)
{
SvTreeListEntry* pSel = m_pAutoTextLB->FirstSelected();
OUString sEntry;
@@ -130,7 +130,6 @@ IMPL_LINK_NOARG(SwVisitingCardPage, FrameControlInitializedHdl)
UpdateFields();
}
}
- return 0;
}
IMPL_LINK_TYPED( SwVisitingCardPage, AutoTextSelectTreeListBoxHdl, SvTreeListBox*, pBox, void )
diff --git a/sw/source/ui/envelp/swuilabimp.hxx b/sw/source/ui/envelp/swuilabimp.hxx
index 4167c43c94fe..6dacd6bc6b60 100644
--- a/sw/source/ui/envelp/swuilabimp.hxx
+++ b/sw/source/ui/envelp/swuilabimp.hxx
@@ -99,7 +99,7 @@ class SwVisitingCardPage : public SfxTabPage
DECL_LINK_TYPED( AutoTextSelectTreeListBoxHdl, SvTreeListBox*, void );
DECL_LINK( AutoTextSelectHdl, void* );
- DECL_LINK( FrameControlInitializedHdl, void* );
+ DECL_LINK_TYPED( FrameControlInitializedHdl, SwOneExampleFrame&, void );
void InitFrameControl();
void UpdateFields();
diff --git a/sw/source/ui/index/cntex.cxx b/sw/source/ui/index/cntex.cxx
index e01520743416..f94e1e185053 100644
--- a/sw/source/ui/index/cntex.cxx
+++ b/sw/source/ui/index/cntex.cxx
@@ -96,7 +96,7 @@ static void lcl_SetBOOLProp(
}
}
-IMPL_LINK_NOARG(SwMultiTOXTabDialog, CreateExample_Hdl)
+IMPL_LINK_NOARG_TYPED(SwMultiTOXTabDialog, CreateExample_Hdl, SwOneExampleFrame&, void)
{
try
{
@@ -139,7 +139,6 @@ IMPL_LINK_NOARG(SwMultiTOXTabDialog, CreateExample_Hdl)
{
OSL_FAIL("::CreateExample() - exception caught");
}
- return 0;
}
void SwMultiTOXTabDialog::CreateOrUpdateExample(
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index fdab9dc634a8..d1347b8f540a 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -494,7 +494,7 @@ IMPL_LINK_NOARG_TYPED( SwMultiTOXTabDialog, ShowPreviewHdl, Button*, void )
}
else
{
- Link<> aLink(LINK(this, SwMultiTOXTabDialog, CreateExample_Hdl));
+ Link<SwOneExampleFrame&,void> aLink(LINK(this, SwMultiTOXTabDialog, CreateExample_Hdl));
pExampleFrame = new SwOneExampleFrame(
*m_pExampleContainerWIN, EX_SHOW_ONLINE_LAYOUT, &aLink, &sTemplate);
diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx
index 6162a97d18be..4d9e78b0ce32 100644
--- a/sw/source/ui/misc/glossary.cxx
+++ b/sw/source/ui/misc/glossary.cxx
@@ -1063,7 +1063,7 @@ void SwGlossaryDlg::ShowPreview()
//create example
if (!pExampleFrame)
{
- Link<> aLink(LINK(this, SwGlossaryDlg, PreviewLoadedHdl));
+ Link<SwOneExampleFrame&,void> aLink(LINK(this, SwGlossaryDlg, PreviewLoadedHdl));
pExampleFrame = new SwOneExampleFrame( *m_pExampleWIN,
EX_SHOW_ONLINE_LAYOUT, &aLink );
}
@@ -1071,10 +1071,9 @@ void SwGlossaryDlg::ShowPreview()
ShowAutoText(::GetCurrGlosGroup(), m_pShortNameEdit->GetText());
};
-IMPL_LINK_NOARG(SwGlossaryDlg, PreviewLoadedHdl)
+IMPL_LINK_NOARG_TYPED(SwGlossaryDlg, PreviewLoadedHdl, SwOneExampleFrame&, void)
{
ResumeShowAutoText();
- return 0;
}
void SwGlossaryDlg::ShowAutoText(const OUString& rGroup, const OUString& rShortName)