diff options
Diffstat (limited to 'sd/source/ui/toolpanel/controls/RecentMasterPagesSelector.cxx')
-rw-r--r-- | sd/source/ui/toolpanel/controls/RecentMasterPagesSelector.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sd/source/ui/toolpanel/controls/RecentMasterPagesSelector.cxx b/sd/source/ui/toolpanel/controls/RecentMasterPagesSelector.cxx index 569f877f74c4..72dbc094de6a 100644 --- a/sd/source/ui/toolpanel/controls/RecentMasterPagesSelector.cxx +++ b/sd/source/ui/toolpanel/controls/RecentMasterPagesSelector.cxx @@ -39,6 +39,7 @@ #include "MasterPageObserver.hxx" #include "sdpage.hxx" #include "drawdoc.hxx" +#include "app.hrc" #include <vcl/bitmap.hxx> #include <tools/color.hxx> @@ -145,4 +146,17 @@ void RecentMasterPagesSelector::AssignMasterPageToPageList ( } } + + + +void RecentMasterPagesSelector::GetState (SfxItemSet& rItemSet) +{ + MasterPagesSelector::GetState (rItemSet); + if (rItemSet.GetItemState(SID_TP_EDIT_MASTER) == SFX_ITEM_AVAILABLE) + rItemSet.DisableItem (SID_TP_EDIT_MASTER); +} + + + + } } } // end of namespace ::sd::toolpanel::controls |