diff options
Diffstat (limited to 'sd/source/ui/dlg/dlgpage.cxx')
-rw-r--r-- | sd/source/ui/dlg/dlgpage.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sd/source/ui/dlg/dlgpage.cxx b/sd/source/ui/dlg/dlgpage.cxx index bba44fd63aed..e23b8328b49b 100644 --- a/sd/source/ui/dlg/dlgpage.cxx +++ b/sd/source/ui/dlg/dlgpage.cxx @@ -62,9 +62,13 @@ SdPageDlg::SdPageDlg( SfxObjectShell* pDocSh, vcl::Window* pParent, const SfxIte mnPage = AddTabPage( "RID_SVXPAGE_PAGE", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_PAGE ), nullptr ); mnArea = AddTabPage( "RID_SVXPAGE_AREA", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_AREA ), nullptr ); + mnTransparence = AddTabPage( "RID_SVXPAGE_TRANSPARENCE", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_TRANSPARENCE ), nullptr ); if(!bAreaPage) // I have to add the page before I remove it ! + { RemoveTabPage( "RID_SVXPAGE_AREA" ); + RemoveTabPage( "RID_SVXPAGE_TRANSPARENCE" ); + } } void SdPageDlg::PageCreated(sal_uInt16 nId, SfxTabPage& rPage) @@ -89,6 +93,12 @@ void SdPageDlg::PageCreated(sal_uInt16 nId, SfxTabPage& rPage) aSet.Put (SfxUInt16Item(SID_TABPAGE_POS,0)); rPage.PageCreated(aSet); } + else if (nId == mnTransparence) + { + aSet.Put(SfxUInt16Item(SID_PAGE_TYPE,0)); + aSet.Put(SfxUInt16Item(SID_DLG_TYPE,1)); + rPage.PageCreated(aSet); + } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |