diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-16 16:10:05 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-17 08:19:34 +0200 |
commit | 1e2119fd0211b671cad7ba7005a99a1da1a0caf5 (patch) | |
tree | c4298af25e9a082066ad98a69c5c6c281a360ac5 /sfx2/source/appl/newhelp.hxx | |
parent | f4f05ab199101b9f11718ddc82e139815c1fc521 (diff) |
convert Link<> to typed
Change-Id: I3d35a0bb75b6989dd13371543d1bdf3ef5f47641
Diffstat (limited to 'sfx2/source/appl/newhelp.hxx')
-rw-r--r-- | sfx2/source/appl/newhelp.hxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sfx2/source/appl/newhelp.hxx b/sfx2/source/appl/newhelp.hxx index 175b6f5f3b3e..fcbf5ed7f257 100644 --- a/sfx2/source/appl/newhelp.hxx +++ b/sfx2/source/appl/newhelp.hxx @@ -227,15 +227,15 @@ public: virtual void ActivatePage() SAL_OVERRIDE; virtual Control* GetLastFocusControl() SAL_OVERRIDE; - void SetDoubleClickHdl( const Link<>& rLink ); + void SetDoubleClickHdl( const Link<ListBox&,void>& rLink ); inline void SetFactory( const OUString& rFactory ) { aFactory = rFactory; } OUString GetSelectEntry() const; void ClearPage(); inline void SetFocusOnBox() { m_pResultsLB->GrabFocus(); } - inline bool HasFocusOnEdit() const { return m_pSearchED->HasChildPathFocus(); } + inline bool HasFocusOnEdit() const { return m_pSearchED->HasChildPathFocus(); } inline OUString GetSearchText() const { return m_pSearchED->GetText(); } - inline bool IsFullWordSearch() const { return m_pFullWordsCB->IsChecked(); } - bool OpenKeyword( const OUString& rKeyword ); + inline bool IsFullWordSearch() const { return m_pFullWordsCB->IsChecked(); } + bool OpenKeyword( const OUString& rKeyword ); }; // class BookmarksTabPage_Impl ------------------------------------------- @@ -269,7 +269,7 @@ public: virtual void ActivatePage() SAL_OVERRIDE; virtual Control* GetLastFocusControl() SAL_OVERRIDE; - void SetDoubleClickHdl( const Link<>& rLink ); + void SetDoubleClickHdl( const Link<ListBox&,void>& rLink ); OUString GetSelectEntry() const; void AddBookmarks( const OUString& rTitle, const OUString& rURL ); void SetFocusOnBox() { m_pBookmarksBox->GrabFocus(); } @@ -318,6 +318,7 @@ private: DECL_LINK_TYPED(SelectFactoryHdl, Idle *, void); DECL_LINK_TYPED(KeywordHdl, IndexTabPage_Impl&, void); DECL_LINK_TYPED(ContentTabPageDoubleClickHdl, SvTreeListBox*, bool); + DECL_LINK_TYPED(TabPageDoubleClickHdl, ListBox&, void); public: SfxHelpIndexWindow_Impl( SfxHelpWindow_Impl* pParent ); @@ -374,7 +375,7 @@ SearchTabPage_Impl* SfxHelpIndexWindow_Impl::GetSearchPage() if ( !pSPage ) { pSPage = VclPtr<SearchTabPage_Impl>::Create( m_pTabCtrl, this ); - pSPage->SetDoubleClickHdl( aPageDoubleClickLink ); + pSPage->SetDoubleClickHdl( LINK(this, SfxHelpIndexWindow_Impl, TabPageDoubleClickHdl) ); } return pSPage; } @@ -384,7 +385,7 @@ BookmarksTabPage_Impl* SfxHelpIndexWindow_Impl::GetBookmarksPage() if ( !pBPage ) { pBPage = VclPtr<BookmarksTabPage_Impl>::Create( m_pTabCtrl, this ); - pBPage->SetDoubleClickHdl( aPageDoubleClickLink ); + pBPage->SetDoubleClickHdl( LINK(this, SfxHelpIndexWindow_Impl, TabPageDoubleClickHdl) ); } return pBPage; } |