summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/newhelp.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-15 12:02:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-08-15 13:52:57 +0100
commit9fbb4c6cf42857e80090e0b81ecde7ea2913e427 (patch)
tree056322e91ee1eb852694fc65c972df74ef08571f /sfx2/source/appl/newhelp.hxx
parent5df98e8bc54953fb69492ba46f880f174af4d04e (diff)
convert WIN_HELPINDEX sport to .ui
Change-Id: I80d1f3f3cb4e062bc19489205e325bc4ff17b3c6
Diffstat (limited to 'sfx2/source/appl/newhelp.hxx')
-rw-r--r--sfx2/source/appl/newhelp.hxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/sfx2/source/appl/newhelp.hxx b/sfx2/source/appl/newhelp.hxx
index 476652245353..53bb10c23fbf 100644
--- a/sfx2/source/appl/newhelp.hxx
+++ b/sfx2/source/appl/newhelp.hxx
@@ -268,13 +268,12 @@ public:
class SfxHelpWindow_Impl;
-class SfxHelpIndexWindow_Impl : public Window
+class SfxHelpIndexWindow_Impl : public Window, public VclBuilderContainer
{
private:
- ListBox aActiveLB;
- FixedLine aActiveLine;
+ ListBox* m_pActiveLB;
+ TabControl* m_pTabCtrl;
- TabControl aTabCtrl;
Timer aTimer;
Link aSelectFactoryLink;
@@ -313,6 +312,7 @@ public:
virtual ~SfxHelpIndexWindow_Impl();
virtual void Resize() SAL_OVERRIDE;
+ virtual Size GetOptimalSize() const SAL_OVERRIDE;
virtual bool PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
@@ -323,8 +323,8 @@ public:
OUString GetSelectEntry() const;
void AddBookmarks( const OUString& rTitle, const OUString& rURL );
bool IsValidFactory( const OUString& _rFactory );
- inline OUString GetActiveFactoryTitle() const { return aActiveLB.GetSelectEntry(); }
- inline void UpdateTabControl() { aTabCtrl.Invalidate(); }
+ inline OUString GetActiveFactoryTitle() const { return m_pActiveLB->GetSelectEntry(); }
+ inline void UpdateTabControl() { m_pTabCtrl->Invalidate(); }
void ClearSearchPage();
void GrabFocusBack();
bool HasFocusOnEdit() const;
@@ -341,7 +341,7 @@ ContentTabPage_Impl* SfxHelpIndexWindow_Impl::GetContentPage()
{
if ( !pCPage )
{
- pCPage = new ContentTabPage_Impl( &aTabCtrl, this );
+ pCPage = new ContentTabPage_Impl( m_pTabCtrl, this );
pCPage->SetOpenHdl( aPageDoubleClickLink );
}
return pCPage;
@@ -350,7 +350,7 @@ IndexTabPage_Impl* SfxHelpIndexWindow_Impl::GetIndexPage()
{
if ( !pIPage )
{
- pIPage = new IndexTabPage_Impl( &aTabCtrl, this );
+ pIPage = new IndexTabPage_Impl( m_pTabCtrl, this );
pIPage->SetDoubleClickHdl( aPageDoubleClickLink );
pIPage->SetKeywordHdl( aIndexKeywordLink );
}
@@ -361,7 +361,7 @@ SearchTabPage_Impl* SfxHelpIndexWindow_Impl::GetSearchPage()
{
if ( !pSPage )
{
- pSPage = new SearchTabPage_Impl( &aTabCtrl, this );
+ pSPage = new SearchTabPage_Impl( m_pTabCtrl, this );
pSPage->SetDoubleClickHdl( aPageDoubleClickLink );
}
return pSPage;
@@ -371,7 +371,7 @@ BookmarksTabPage_Impl* SfxHelpIndexWindow_Impl::GetBookmarksPage()
{
if ( !pBPage )
{
- pBPage = new BookmarksTabPage_Impl( &aTabCtrl, this );
+ pBPage = new BookmarksTabPage_Impl( m_pTabCtrl, this );
pBPage->SetDoubleClickHdl( aPageDoubleClickLink );
}
return pBPage;