From 4b529841d34ffdbcf6befe6f1eb70fe7ff8c159c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 18 Jan 2013 13:33:18 +0000 Subject: add a way to select the current SfxTabPage by name Change-Id: Ib7a07bc0e6ec9f47b83839fb3eb8f31c014dedff --- cui/source/factory/dlgfact.cxx | 22 ++++++++++++++++++++++ cui/source/factory/dlgfact.hxx | 4 ++++ 2 files changed, 26 insertions(+) (limited to 'cui/source/factory') diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx index 41124d6b9d2e..8664374846e9 100644 --- a/cui/source/factory/dlgfact.cxx +++ b/cui/source/factory/dlgfact.cxx @@ -196,6 +196,11 @@ void CuiAbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId ) pDlg->SetCurPageId( nId ); } +void CuiAbstractTabDialog_Impl::SetCurPageId( const OString& rName ) +{ + pDlg->SetCurPageId( rName ); +} + const SfxItemSet* CuiAbstractTabDialog_Impl::GetOutputItemSet() const { return pDlg->GetOutputItemSet(); @@ -617,6 +622,12 @@ void AbstractSvxTransformTabDialog_Impl::SetCurPageId( sal_uInt16 nId ) { pDlg->SetCurPageId( nId ); } + +void AbstractSvxTransformTabDialog_Impl::SetCurPageId( const OString& rName ) +{ + pDlg->SetCurPageId( rName ); +} + const SfxItemSet* AbstractSvxTransformTabDialog_Impl::GetOutputItemSet() const { return pDlg->GetOutputItemSet(); @@ -650,6 +661,12 @@ void AbstractSvxCaptionDialog_Impl::SetCurPageId( sal_uInt16 nId ) { pDlg->SetCurPageId( nId ); } + +void AbstractSvxCaptionDialog_Impl::SetCurPageId( const OString& rName ) +{ + pDlg->SetCurPageId( rName ); +} + const SfxItemSet* AbstractSvxCaptionDialog_Impl::GetOutputItemSet() const { return pDlg->GetOutputItemSet(); @@ -870,6 +887,11 @@ void AbstractSvxAreaTabDialog_Impl::SetCurPageId( sal_uInt16 nId ) pDlg->SetCurPageId( nId ); } +void AbstractSvxAreaTabDialog_Impl::SetCurPageId( const OString& rName ) +{ + pDlg->SetCurPageId( rName ); +} + const SfxItemSet* AbstractSvxAreaTabDialog_Impl::GetOutputItemSet() const { return pDlg->GetOutputItemSet(); diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx index 3c97f2ba7c7e..080d8b760460 100644 --- a/cui/source/factory/dlgfact.hxx +++ b/cui/source/factory/dlgfact.hxx @@ -123,6 +123,7 @@ class CuiAbstractTabDialog_Impl : public SfxAbstractTabDialog { DECL_ABSTDLG_BASE(CuiAbstractTabDialog_Impl,SfxTabDialog) virtual void SetCurPageId( sal_uInt16 nId ); + virtual void SetCurPageId( const OString& rName ); virtual const SfxItemSet* GetOutputItemSet() const; virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem ); virtual void SetInputSet( const SfxItemSet* pInSet ); @@ -341,6 +342,7 @@ class AbstractSvxTransformTabDialog_Impl : public AbstractSvxTransformTabDialog DECL_ABSTDLG_BASE(AbstractSvxTransformTabDialog_Impl,SvxTransformTabDialog) virtual void SetValidateFramePosLink( const Link& rLink ); virtual void SetCurPageId( sal_uInt16 nId ); + virtual void SetCurPageId( const OString& rName ); virtual const SfxItemSet* GetOutputItemSet() const; virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem ); virtual void SetInputSet( const SfxItemSet* pInSet ); @@ -352,6 +354,7 @@ class AbstractSvxCaptionDialog_Impl : public AbstractSvxCaptionDialog DECL_ABSTDLG_BASE(AbstractSvxCaptionDialog_Impl,SvxCaptionTabDialog) virtual void SetValidateFramePosLink( const Link& rLink ); virtual void SetCurPageId( sal_uInt16 nId ); + virtual void SetCurPageId( const OString& rName ); virtual const SfxItemSet* GetOutputItemSet() const; virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem ); virtual void SetInputSet( const SfxItemSet* pInSet ); @@ -498,6 +501,7 @@ class AbstractSvxAreaTabDialog_Impl :public AbstractSvxAreaTabDialog { DECL_ABSTDLG_BASE(AbstractSvxAreaTabDialog_Impl,SvxAreaTabDialog) virtual void SetCurPageId( sal_uInt16 nId ); + virtual void SetCurPageId( const OString& rName ); virtual const SfxItemSet* GetOutputItemSet() const; virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem ); virtual void SetInputSet( const SfxItemSet* pInSet ); -- cgit