summaryrefslogtreecommitdiff
path: root/cui/source/options/fontsubs.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-13 13:17:30 +0200
committerNoel Grandin <noel@peralex.com>2015-10-15 09:58:34 +0200
commit99b21cc9f3f32284061be255f437b2954a7aada0 (patch)
treef26509e7b905d147bc14fcda9fd30e2861ed00e3 /cui/source/options/fontsubs.cxx
parentc837bfda8c646fe2f7ff789032dd9a6ee6fd396f (diff)
convert Link<> to typed
Change-Id: I6c55c74d47b13149c2fa210bb9de4e8c430c57cc
Diffstat (limited to 'cui/source/options/fontsubs.cxx')
-rw-r--r--cui/source/options/fontsubs.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/cui/source/options/fontsubs.cxx b/cui/source/options/fontsubs.cxx
index 1967ab3ed09c..9b6537236c04 100644
--- a/cui/source/options/fontsubs.cxx
+++ b/cui/source/options/fontsubs.cxx
@@ -89,13 +89,14 @@ SvxFontSubstTabPage::SvxFontSubstTabPage( vcl::Window* pParent,
aTextColor = m_pCheckLB->GetTextColor();
Link<> aLink(LINK(this, SvxFontSubstTabPage, SelectHdl));
+ Link<ComboBox&,void> aLink2(LINK(this, SvxFontSubstTabPage, SelectComboBoxHdl));
Link<Button*,void> aClickLink(LINK(this, SvxFontSubstTabPage, ClickHdl));
m_pCheckLB->SetSelectHdl(LINK(this, SvxFontSubstTabPage, TreeListBoxSelectHdl));
m_pUseTableCB->SetClickHdl(aClickLink);
- m_pFont1CB->SetSelectHdl(aLink);
+ m_pFont1CB->SetSelectHdl(aLink2);
m_pFont1CB->SetModifyHdl(aLink);
- m_pFont2CB->SetSelectHdl(aLink);
+ m_pFont2CB->SetSelectHdl(aLink2);
m_pFont2CB->SetModifyHdl(aLink);
m_pApply->SetClickHdl(aClickLink);
m_pDelete->SetClickHdl(aClickLink);
@@ -265,6 +266,10 @@ IMPL_LINK_TYPED(SvxFontSubstTabPage, TreeListBoxSelectHdl, SvTreeListBox*, pButt
{
SelectHdl(pButton);
}
+IMPL_LINK_TYPED(SvxFontSubstTabPage, SelectComboBoxHdl, ComboBox&, rBox, void)
+{
+ SelectHdl(&rBox);
+}
IMPL_LINK(SvxFontSubstTabPage, SelectHdl, vcl::Window*, pWin)
{
if (pWin == m_pApply || pWin == m_pDelete)