Kaydet (Commit) c4170770 authored tarafından Katarina Behrens's avatar Katarina Behrens

tdf#89466: Give those slots a separate GetState method

only SID_ATTR_PAGE_SIZE does anything so far

Change-Id: I30de1b8b72702b0ddd536ed4026b433ed9295bb7
Reviewed-on: https://gerrit.libreoffice.org/24450Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
üst e0dd123b
......@@ -2615,32 +2615,32 @@ interface DrawView
SID_ATTR_PAGE_SIZE
[
ExecMethod = FuTemporary ;
StateMethod = GetMenuState ;
StateMethod = GetPageProperties ;
]
SID_ATTR_PAGE_COLOR
[
ExecMethod = FuTemporary ;
StateMethod = GetMenuState;
StateMethod = GetPageProperties;
]
SID_ATTR_PAGE_GRADIENT
[
ExecMethod = FuTemporary ;
StateMethod = GetMenuState ;
StateMethod = GetPageProperties ;
]
SID_ATTR_PAGE_HATCH
[
ExecMethod = FuTemporary ;
StateMethod = GetMenuState ;
StateMethod = GetPageProperties ;
]
SID_ATTR_PAGE_BITMAP
[
ExecMethod = FuTemporary ;
StateMethod = GetMenuState ;
StateMethod = GetPageProperties ;
]
SID_ATTR_PAGE_FILLSTYLE
[
ExecMethod = FuTemporary;
StateMethod = GetMenuState;
StateMethod = GetPageProperties;
]
SID_DISPLAY_MASTER_BACKGROUND
[
......
......@@ -147,7 +147,10 @@ void FuPage::DoExecute( SfxRequest& )
// if we now have arguments, apply them to current page
if( mpArgs )
{
ApplyItemSet( mpArgs );
mpView->SetAttributes( *mpArgs );
}
static sal_uInt16 SidArray[] = {
SID_ATTR_PAGE_COLOR,
......
......@@ -148,6 +148,7 @@ public:
void GetCtrlState(SfxItemSet& rSet);
void GetDrawAttrState(SfxItemSet& rSet);
void GetMenuState(SfxItemSet& rSet);
void GetPageProperties(SfxItemSet& rSet);
void GetTableMenuState(SfxItemSet& rSet);
/** Set the items of the given item set that are related to
switching the editing mode to the correct values.
......
......@@ -30,6 +30,7 @@
#include <editeng/eeitem.hxx>
#include <editeng/flditem.hxx>
#include <editeng/outlobj.hxx>
#include <editeng/sizeitem.hxx>
#include <officecfg/Office/Common.hxx>
#include <officecfg/Office/Impress.hxx>
#include <svx/svxids.hrc>
......@@ -1547,6 +1548,11 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet )
GetModeSwitchingMenuState (rSet);
}
void DrawViewShell::GetPageProperties( SfxItemSet &rSet )
{
rSet.Put(SvxSizeItem( SID_ATTR_PAGE_SIZE, getCurrentPage()->GetSize()));
}
void DrawViewShell::GetModeSwitchingMenuState (SfxItemSet &rSet)
{
//DrawView
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment