#i112791# add missing update for SID_INSERTPAGE slot on slide change

This commit is contained in:
Christian Lippka 2010-07-07 15:53:12 +02:00
parent 976f6be2e6
commit 78ce81b376

View file

@ -614,6 +614,17 @@ void SlotManager::GetMenuState ( SfxItemSet& rSet)
break;
}
}
PageKind ePageKind = mrSlideSorter.GetModel().GetPageType();
if( (eEditMode == EM_MASTERPAGE) && (ePageKind != PK_HANDOUT ) )
{
rSet.DisableItem(SID_ASSIGN_LAYOUT);
}
if( (eEditMode == EM_MASTERPAGE) || (ePageKind==PK_NOTES) )
{
rSet.DisableItem(SID_INSERTPAGE);
}
}