diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/chrdlg/swuiccoll.cxx | 10 | ||||
-rw-r--r-- | sw/source/ui/fldui/flddb.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/fldui/flddinf.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/fldui/fldpage.cxx | 9 | ||||
-rw-r--r-- | sw/source/ui/fldui/fldpage.hxx | 4 | ||||
-rw-r--r-- | sw/source/ui/fldui/fldref.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/misc/glossary.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/inc/conttree.hxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/inc/glossary.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/swuiccoll.hxx | 3 | ||||
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/utlui/glbltree.cxx | 4 |
12 files changed, 31 insertions, 19 deletions
diff --git a/sw/source/ui/chrdlg/swuiccoll.cxx b/sw/source/ui/chrdlg/swuiccoll.cxx index 63f5f77d4121..1d109958cc99 100644 --- a/sw/source/ui/chrdlg/swuiccoll.cxx +++ b/sw/source/ui/chrdlg/swuiccoll.cxx @@ -82,7 +82,7 @@ SwCondCollPage::SwCondCollPage(vcl::Window *pParent, const SfxItemSet &rSet) // Install handlers m_pConditionCB->SetClickHdl( LINK(this, SwCondCollPage, OnOffHdl)); - m_pTbLinks->SetDoubleClickHdl( LINK(this, SwCondCollPage, AssignRemoveHdl )); + m_pTbLinks->SetDoubleClickHdl( LINK(this, SwCondCollPage, AssignRemoveTreeListBoxHdl )); m_pStyleLB->SetDoubleClickHdl( LINK(this, SwCondCollPage, AssignRemoveHdl )); m_pRemovePB->SetClickHdl( LINK(this, SwCondCollPage, AssignRemoveClickHdl )); m_pAssignPB->SetClickHdl( LINK(this, SwCondCollPage, AssignRemoveClickHdl )); @@ -230,9 +230,13 @@ IMPL_LINK_TYPED( SwCondCollPage, OnOffHdl, Button*, pBox, void ) IMPL_LINK_TYPED( SwCondCollPage, AssignRemoveClickHdl, Button*, pBtn, void) { - AssignRemoveHdl(static_cast<PushButton*>(pBtn)); + AssignRemoveHdl(pBtn); } -IMPL_LINK( SwCondCollPage, AssignRemoveHdl, PushButton*, pBtn) +IMPL_LINK_TYPED( SwCondCollPage, AssignRemoveTreeListBoxHdl, SvTreeListBox*, pBtn, bool) +{ + return AssignRemoveHdl(pBtn) != 0; +} +IMPL_LINK( SwCondCollPage, AssignRemoveHdl, void*, pBtn) { SvTreeListEntry* pE = m_pTbLinks->FirstSelected(); sal_uLong nPos; diff --git a/sw/source/ui/fldui/flddb.cxx b/sw/source/ui/fldui/flddb.cxx index 71c871a23b2a..7c2375914f08 100644 --- a/sw/source/ui/fldui/flddb.cxx +++ b/sw/source/ui/fldui/flddb.cxx @@ -66,7 +66,7 @@ SwFieldDBPage::SwFieldDBPage(vcl::Window* pParent, const SfxItemSet& rCoreSet) m_pNumFormatLB->SetSelectHdl(LINK(this, SwFieldDBPage, NumSelectHdl)); m_pDatabaseTLB->SetSelectHdl(LINK(this, SwFieldDBPage, TreeSelectHdl)); - m_pDatabaseTLB->SetDoubleClickHdl(LINK(this, SwFieldDBPage, InsertHdl)); + m_pDatabaseTLB->SetDoubleClickHdl(LINK(this, SwFieldDBPage, TreeListBoxInsertHdl)); m_pValueED->SetModifyHdl(LINK(this, SwFieldDBPage, ModifyHdl)); m_pAddDBPB->SetClickHdl(LINK(this, SwFieldDBPage, AddDBHdl)); diff --git a/sw/source/ui/fldui/flddinf.cxx b/sw/source/ui/fldui/flddinf.cxx index 267c634535e4..5719d923edce 100644 --- a/sw/source/ui/fldui/flddinf.cxx +++ b/sw/source/ui/fldui/flddinf.cxx @@ -206,7 +206,7 @@ void SwFieldDokInfPage::Reset(const SfxItemSet* ) m_pTypeTLB->SetUpdateMode(true); m_pTypeTLB->SetSelectHdl(LINK(this, SwFieldDokInfPage, TypeHdl)); - m_pTypeTLB->SetDoubleClickHdl(LINK(this, SwFieldDokInfPage, InsertHdl)); + m_pTypeTLB->SetDoubleClickHdl(LINK(this, SwFieldDokInfPage, TreeListBoxInsertHdl)); m_pSelectionLB->SetSelectHdl(LINK(this, SwFieldDokInfPage, SubTypeHdl)); m_pSelectionLB->SetDoubleClickHdl(LINK(this, SwFieldDokInfPage, InsertHdl)); m_pFormatLB->SetDoubleClickHdl(LINK(this, SwFieldDokInfPage, InsertHdl)); diff --git a/sw/source/ui/fldui/fldpage.cxx b/sw/source/ui/fldui/fldpage.cxx index 9db03bdcae0c..6e2e274851cc 100644 --- a/sw/source/ui/fldui/fldpage.cxx +++ b/sw/source/ui/fldui/fldpage.cxx @@ -307,7 +307,12 @@ void SwFieldPage::RestorePos(ListBox* pLst1, ListBox* pLst2, ListBox* pLst3) } // Insert new fields -IMPL_LINK( SwFieldPage, InsertHdl, Button *, pBtn ) +IMPL_LINK_TYPED( SwFieldPage, TreeListBoxInsertHdl, SvTreeListBox*, pBtn, bool ) +{ + return InsertHdl(pBtn); +} + +IMPL_LINK( SwFieldPage, InsertHdl, void *, pBtn ) { SwFieldDlg *pDlg = static_cast<SwFieldDlg*>(GetTabDialog()); if (pDlg) @@ -315,7 +320,7 @@ IMPL_LINK( SwFieldPage, InsertHdl, Button *, pBtn ) pDlg->InsertHdl(); if (pBtn) - pBtn->GrabFocus(); // because of InputField-Dlg + static_cast<Button*>(pBtn)->GrabFocus(); // because of InputField-Dlg } else { diff --git a/sw/source/ui/fldui/fldpage.hxx b/sw/source/ui/fldui/fldpage.hxx index 845f4499d766..09c7ac7eea46 100644 --- a/sw/source/ui/fldui/fldpage.hxx +++ b/sw/source/ui/fldui/fldpage.hxx @@ -25,6 +25,7 @@ #define FIELD_COLUMN_WIDTH 76 class ListBox; +class SvTreeListBox; const int coLBCount = 3; @@ -53,7 +54,8 @@ protected: SwField* GetCurField() { return m_pCurField;} SwWrtShell* GetWrtShell() { return m_pWrtShell;} - DECL_LINK( InsertHdl, Button * = 0); + DECL_LINK( InsertHdl, void * = 0); + DECL_LINK_TYPED( TreeListBoxInsertHdl, SvTreeListBox*, bool); DECL_LINK(NumFormatHdl, void *); void Init(); diff --git a/sw/source/ui/fldui/fldref.cxx b/sw/source/ui/fldui/fldref.cxx index c7a135a61c8d..4eb1cfd3dac5 100644 --- a/sw/source/ui/fldui/fldref.cxx +++ b/sw/source/ui/fldui/fldref.cxx @@ -99,7 +99,7 @@ SwFieldRefPage::SwFieldRefPage(vcl::Window* pParent, const SfxItemSet& rCoreSet // #i83479# m_pSelectionToolTipLB->SetSelectHdl( LINK(this, SwFieldRefPage, SubTypeTreeListBoxHdl) ); - m_pSelectionToolTipLB->SetDoubleClickHdl( LINK(this, SwFieldRefPage, InsertHdl) ); + m_pSelectionToolTipLB->SetDoubleClickHdl( LINK(this, SwFieldRefPage, TreeListBoxInsertHdl) ); m_pSelectionToolTipLB->SetStyle( m_pSelectionToolTipLB->GetStyle() | WB_HSCROLL ); m_pSelectionToolTipLB->SetSpaceBetweenEntries(1); m_pSelectionToolTipLB->SetHighlightRange(); diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx index d89f30d81fac..e65f3334beca 100644 --- a/sw/source/ui/misc/glossary.cxx +++ b/sw/source/ui/misc/glossary.cxx @@ -410,12 +410,12 @@ IMPL_LINK( SwGlossaryDlg, NameModify, Edit *, pEdit ) return 0; } -IMPL_LINK( SwGlossaryDlg, NameDoubleClick, SvTreeListBox*, pBox ) +IMPL_LINK_TYPED( SwGlossaryDlg, NameDoubleClick, SvTreeListBox*, pBox, bool ) { SvTreeListEntry* pEntry = pBox->FirstSelected(); if(pBox->GetParent(pEntry) && !bIsDocReadOnly) EndDialog( RET_OK ); - return 0; + return false; } IMPL_LINK_TYPED( SwGlossaryDlg, EnableHdl, Menu *, pMn, bool ) diff --git a/sw/source/uibase/inc/conttree.hxx b/sw/source/uibase/inc/conttree.hxx index 58051ad62fd4..aa6ff6b9ef4c 100644 --- a/sw/source/uibase/inc/conttree.hxx +++ b/sw/source/uibase/inc/conttree.hxx @@ -185,7 +185,7 @@ public: const SwWrtShell* GetActiveWrtShell() {return pActiveShell;} SwWrtShell* GetHiddenWrtShell() {return pHiddenShell;} - DECL_LINK( ContentDoubleClickHdl, void * ); + DECL_LINK_TYPED( ContentDoubleClickHdl, SvTreeListBox*, bool ); DECL_LINK_TYPED( TimerUpdate, Timer *, void ); virtual sal_IntPtr GetTabPos( SvTreeListEntry*, SvLBoxTab* ) SAL_OVERRIDE; @@ -289,7 +289,7 @@ protected: DECL_LINK_TYPED( PopupHdl, Menu*, bool ); DECL_LINK_TYPED( Timeout, Timer*, void ); - DECL_LINK( DoubleClickHdl, void* ); + DECL_LINK_TYPED( DoubleClickHdl, SvTreeListBox*, bool ); SwNavigationPI* GetParentWindow(); diff --git a/sw/source/uibase/inc/glossary.hxx b/sw/source/uibase/inc/glossary.hxx index d1d81dc5747e..22c175e99bb2 100644 --- a/sw/source/uibase/inc/glossary.hxx +++ b/sw/source/uibase/inc/glossary.hxx @@ -124,7 +124,7 @@ class SwGlossaryDlg : public SvxStandardDialog void ShowPreview(); DECL_LINK( NameModify, Edit * ); - DECL_LINK( NameDoubleClick, SvTreeListBox * ); + DECL_LINK_TYPED( NameDoubleClick, SvTreeListBox*, bool ); DECL_LINK_TYPED( GrpSelect, SvTreeListBox *, void ); DECL_LINK_TYPED( MenuHdl, Menu *, bool ); DECL_LINK_TYPED( EnableHdl, Menu *, bool ); diff --git a/sw/source/uibase/inc/swuiccoll.hxx b/sw/source/uibase/inc/swuiccoll.hxx index 6da63e4bbfdc..4988e11f4d7f 100644 --- a/sw/source/uibase/inc/swuiccoll.hxx +++ b/sw/source/uibase/inc/swuiccoll.hxx @@ -53,7 +53,8 @@ class SwCondCollPage : public SfxTabPage virtual sfxpg DeactivatePage(SfxItemSet *pSet) SAL_OVERRIDE; DECL_LINK_TYPED( OnOffHdl, Button*, void ); - DECL_LINK( AssignRemoveHdl, PushButton*); + DECL_LINK( AssignRemoveHdl, void*); + DECL_LINK_TYPED( AssignRemoveTreeListBoxHdl, SvTreeListBox*, bool); DECL_LINK_TYPED( AssignRemoveClickHdl, Button*, void); DECL_LINK_TYPED( SelectTreeListBoxHdl, SvTreeListBox*, void ); DECL_LINK( SelectHdl, void* ); diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 6c560d81615d..bb4af2f7a464 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -1509,7 +1509,7 @@ bool SwContentTree::Collapse( SvTreeListEntry* pParent ) // Also on double click will be initially opened only. -IMPL_LINK_NOARG(SwContentTree, ContentDoubleClickHdl) +IMPL_LINK_NOARG_TYPED(SwContentTree, ContentDoubleClickHdl, SvTreeListBox*, bool) { SvTreeListEntry* pEntry = GetCurEntry(); // Is it a content type? @@ -1532,7 +1532,7 @@ IMPL_LINK_NOARG(SwContentTree, ContentDoubleClickHdl) pActiveShell->EnterStdMode(); } } - return 0; + return false; } // Show the file diff --git a/sw/source/uibase/utlui/glbltree.cxx b/sw/source/uibase/utlui/glbltree.cxx index 6047282f016b..530698a5af79 100644 --- a/sw/source/uibase/utlui/glbltree.cxx +++ b/sw/source/uibase/utlui/glbltree.cxx @@ -1197,7 +1197,7 @@ void SwGlobalTree::OpenDoc(const SwGlblDocContent* pCont) } } -IMPL_LINK_NOARG( SwGlobalTree, DoubleClickHdl) +IMPL_LINK_NOARG_TYPED( SwGlobalTree, DoubleClickHdl, SvTreeListBox*, bool) { SvTreeListEntry* pEntry = GetCurEntry(); SwGlblDocContent* pCont = static_cast<SwGlblDocContent*>(pEntry->GetUserData()); @@ -1208,7 +1208,7 @@ IMPL_LINK_NOARG( SwGlobalTree, DoubleClickHdl) GotoContent(pCont); pActiveShell->GetView().GetEditWin().GrabFocus(); } - return 0; + return false; } SwNavigationPI* SwGlobalTree::GetParentWindow() |