summaryrefslogtreecommitdiff
path: root/cui/source/factory
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-01-18 13:33:18 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-01-18 14:35:11 +0000
commit4b529841d34ffdbcf6befe6f1eb70fe7ff8c159c (patch)
treee96e4517f086d5cb9b0581349b69aac969014cc9 /cui/source/factory
parentf710a2db4c6d2994e2ab3d44bf5d3f825a8f5da4 (diff)
add a way to select the current SfxTabPage by name
Change-Id: Ib7a07bc0e6ec9f47b83839fb3eb8f31c014dedff
Diffstat (limited to 'cui/source/factory')
-rw-r--r--cui/source/factory/dlgfact.cxx22
-rw-r--r--cui/source/factory/dlgfact.hxx4
2 files changed, 26 insertions, 0 deletions
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 );