Lines 39-44
Link Here
|
39 |
#include "CurrentMasterPagesSelector.hxx" |
39 |
#include "CurrentMasterPagesSelector.hxx" |
40 |
#include "PreviewValueSet.hxx" |
40 |
#include "PreviewValueSet.hxx" |
41 |
#include "ViewShellBase.hxx" |
41 |
#include "ViewShellBase.hxx" |
|
|
42 |
#include "DrawViewShell.hxx" |
42 |
#include "drawdoc.hxx" |
43 |
#include "drawdoc.hxx" |
43 |
#include "sdpage.hxx" |
44 |
#include "sdpage.hxx" |
44 |
#include "MasterPageContainer.hxx" |
45 |
#include "MasterPageContainer.hxx" |
Lines 243-247
Link Here
|
243 |
return 0; |
244 |
return 0; |
244 |
} |
245 |
} |
245 |
|
246 |
|
|
|
247 |
void CurrentMasterPagesSelector::GetState (SfxItemSet& rItemSet) |
248 |
{ |
249 |
MasterPagesSelector::GetState (rItemSet); |
250 |
DrawViewShell* pDrawViewShell = dynamic_cast<DrawViewShell*>(mrBase.GetMainViewShell().get()); |
251 |
if (pDrawViewShell && pDrawViewShell->GetEditMode() == EM_MASTERPAGE) |
252 |
rItemSet.DisableItem (SID_TP_EDIT_MASTER); |
253 |
} |
246 |
|
254 |
|
247 |
} } } // end of namespace ::sd::toolpanel::controls |
255 |
} } } // end of namespace ::sd::toolpanel::controls |