summaryrefslogtreecommitdiffstats
path: root/sd/source/ui/view/drviews7.cxx
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2010-01-21 18:32:05 +0100
committerChristian Lippka <cl@openoffice.org>2010-01-21 18:32:05 +0100
commitde4d52bd5546170ccdf93e97faee5f8cfb2d904c (patch)
tree6954f0df31b977d2c8780dc6dfc578c9548e95fa /sd/source/ui/view/drviews7.cxx
parentadded vertical layouts again (diff)
downloadcore-de4d52bd5546170ccdf93e97faee5f8cfb2d904c.tar.gz
core-de4d52bd5546170ccdf93e97faee5f8cfb2d904c.zip
added new toolbar controler for insert page
Diffstat (limited to 'sd/source/ui/view/drviews7.cxx')
-rw-r--r--sd/source/ui/view/drviews7.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx
index 0ba354fbe8d8..e8d5146faa86 100644
--- a/sd/source/ui/view/drviews7.cxx
+++ b/sd/source/ui/view/drviews7.cxx
@@ -365,6 +365,26 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet )
}
}
+ if (SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_ASSIGN_LAYOUT))
+ {
+ bool bDisable = true;
+ if( pPageView )
+ {
+ SdPage* pPage = dynamic_cast< SdPage* >( pPageView->GetPage() );
+
+ if( pPage && !pPage->IsMasterPage() )
+ {
+ rSet.Put( SfxUInt32Item(SID_ASSIGN_LAYOUT, pPage->GetAutoLayout()) );
+ bDisable = false;
+ }
+ }
+
+ if(bDisable)
+ {
+ rSet.DisableItem(SID_ASSIGN_LAYOUT);
+ }
+ }
+
// Starten der Praesentation moeglich?
if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_PRESENTATION ) ||
SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_REHEARSE_TIMINGS ) )