summaryrefslogtreecommitdiff
path: root/sw/source/uibase/sidebar/PagePropertyPanel.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-05 22:43:11 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-06 08:20:55 +0200
commitb515d1f36fdf8c242079da60eb4ecd5fd456583c (patch)
treef26dd6feb936ddec4799bed60d4966d46acff938 /sw/source/uibase/sidebar/PagePropertyPanel.cxx
parentf593be5bcde09965bb3478e00bcdedbc6bd5bc57 (diff)
Use various typed ToolBox::Set*Hdl Links
Change-Id: Iddfd36ae0de86fdd2d4febb2c05d1fe0c02801f0
Diffstat (limited to 'sw/source/uibase/sidebar/PagePropertyPanel.cxx')
-rw-r--r--sw/source/uibase/sidebar/PagePropertyPanel.cxx18
1 files changed, 5 insertions, 13 deletions
diff --git a/sw/source/uibase/sidebar/PagePropertyPanel.cxx b/sw/source/uibase/sidebar/PagePropertyPanel.cxx
index a4b11c9ae026..73bf32b90ee8 100644
--- a/sw/source/uibase/sidebar/PagePropertyPanel.cxx
+++ b/sw/source/uibase/sidebar/PagePropertyPanel.cxx
@@ -237,7 +237,7 @@ void PagePropertyPanel::Initialize()
{
// popup for page orientation
const sal_uInt16 nIdOrientation = mpToolBoxOrientation->GetItemId(UNO_ORIENTATION);
- Link<> aLink = LINK( this, PagePropertyPanel, ClickOrientationHdl );
+ Link<ToolBox *, void> aLink = LINK( this, PagePropertyPanel, ClickOrientationHdl );
mpToolBoxOrientation->SetDropdownClickHdl( aLink );
mpToolBoxOrientation->SetSelectHdl( aLink );
mpToolBoxOrientation->SetItemImage( nIdOrientation, mImgPortrait);
@@ -300,11 +300,9 @@ VclPtr< svx::sidebar::PopupControl> PagePropertyPanel::CreatePageOrientationCont
return VclPtr<PageOrientationControl>::Create( pParent, *this , mpPageItem->IsLandscape() );
}
-IMPL_LINK( PagePropertyPanel, ClickOrientationHdl, ToolBox*, pToolBox )
+IMPL_LINK_TYPED( PagePropertyPanel, ClickOrientationHdl, ToolBox*, pToolBox, void )
{
maOrientationPopup.Show( *pToolBox );
-
- return 0L;
}
void PagePropertyPanel::ExecuteOrientationChange( const bool bLandscape )
@@ -411,11 +409,9 @@ void PagePropertyPanel::ExecutePageLayoutChange( const bool bMirrored )
GetBindings()->GetDispatcher()->Execute( SID_ATTR_PAGE, SfxCallMode::RECORD, mpPageItem.get(), 0L );
}
-IMPL_LINK( PagePropertyPanel, ClickMarginHdl, ToolBox*, pToolBox )
+IMPL_LINK_TYPED( PagePropertyPanel, ClickMarginHdl, ToolBox*, pToolBox, void )
{
maMarginPopup.Show( *pToolBox );
-
- return 0L;
}
void PagePropertyPanel::ClosePageMarginPopup()
@@ -446,11 +442,9 @@ void PagePropertyPanel::ExecuteSizeChange( const Paper ePaper )
mpBindings->GetDispatcher()->Execute(SID_ATTR_PAGE_SIZE, SfxCallMode::RECORD, mpPageSizeItem.get(), 0L );
}
-IMPL_LINK( PagePropertyPanel, ClickSizeHdl, ToolBox*, pToolBox )
+IMPL_LINK_TYPED( PagePropertyPanel, ClickSizeHdl, ToolBox*, pToolBox, void )
{
maSizePopup.Show( *pToolBox );
-
- return 0L;
}
void PagePropertyPanel::ClosePageSizePopup()
@@ -474,11 +468,9 @@ void PagePropertyPanel::ExecuteColumnChange( const sal_uInt16 nColumnType )
mpBindings->GetDispatcher()->Execute(SID_ATTR_PAGE_COLUMN, SfxCallMode::RECORD, mpPageColumnTypeItem.get(), 0L );
}
-IMPL_LINK( PagePropertyPanel, ClickColumnHdl, ToolBox*, pToolBox )
+IMPL_LINK_TYPED( PagePropertyPanel, ClickColumnHdl, ToolBox*, pToolBox, void )
{
maColumnPopup.Show( *pToolBox );
-
- return 0L;
}
void PagePropertyPanel::ClosePageColumnPopup()