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 ...@@ -2615,32 +2615,32 @@ interface DrawView
SID_ATTR_PAGE_SIZE SID_ATTR_PAGE_SIZE
[ [
ExecMethod = FuTemporary ; ExecMethod = FuTemporary ;
StateMethod = GetMenuState ; StateMethod = GetPageProperties ;
] ]
SID_ATTR_PAGE_COLOR SID_ATTR_PAGE_COLOR
[ [
ExecMethod = FuTemporary ; ExecMethod = FuTemporary ;
StateMethod = GetMenuState; StateMethod = GetPageProperties;
] ]
SID_ATTR_PAGE_GRADIENT SID_ATTR_PAGE_GRADIENT
[ [
ExecMethod = FuTemporary ; ExecMethod = FuTemporary ;
StateMethod = GetMenuState ; StateMethod = GetPageProperties ;
] ]
SID_ATTR_PAGE_HATCH SID_ATTR_PAGE_HATCH
[ [
ExecMethod = FuTemporary ; ExecMethod = FuTemporary ;
StateMethod = GetMenuState ; StateMethod = GetPageProperties ;
] ]
SID_ATTR_PAGE_BITMAP SID_ATTR_PAGE_BITMAP
[ [
ExecMethod = FuTemporary ; ExecMethod = FuTemporary ;
StateMethod = GetMenuState ; StateMethod = GetPageProperties ;
] ]
SID_ATTR_PAGE_FILLSTYLE SID_ATTR_PAGE_FILLSTYLE
[ [
ExecMethod = FuTemporary; ExecMethod = FuTemporary;
StateMethod = GetMenuState; StateMethod = GetPageProperties;
] ]
SID_DISPLAY_MASTER_BACKGROUND SID_DISPLAY_MASTER_BACKGROUND
[ [
......
...@@ -147,7 +147,10 @@ void FuPage::DoExecute( SfxRequest& ) ...@@ -147,7 +147,10 @@ void FuPage::DoExecute( SfxRequest& )
// if we now have arguments, apply them to current page // if we now have arguments, apply them to current page
if( mpArgs ) if( mpArgs )
{
ApplyItemSet( mpArgs ); ApplyItemSet( mpArgs );
mpView->SetAttributes( *mpArgs );
}
static sal_uInt16 SidArray[] = { static sal_uInt16 SidArray[] = {
SID_ATTR_PAGE_COLOR, SID_ATTR_PAGE_COLOR,
......
...@@ -148,6 +148,7 @@ public: ...@@ -148,6 +148,7 @@ public:
void GetCtrlState(SfxItemSet& rSet); void GetCtrlState(SfxItemSet& rSet);
void GetDrawAttrState(SfxItemSet& rSet); void GetDrawAttrState(SfxItemSet& rSet);
void GetMenuState(SfxItemSet& rSet); void GetMenuState(SfxItemSet& rSet);
void GetPageProperties(SfxItemSet& rSet);
void GetTableMenuState(SfxItemSet& rSet); void GetTableMenuState(SfxItemSet& rSet);
/** Set the items of the given item set that are related to /** Set the items of the given item set that are related to
switching the editing mode to the correct values. switching the editing mode to the correct values.
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <editeng/eeitem.hxx> #include <editeng/eeitem.hxx>
#include <editeng/flditem.hxx> #include <editeng/flditem.hxx>
#include <editeng/outlobj.hxx> #include <editeng/outlobj.hxx>
#include <editeng/sizeitem.hxx>
#include <officecfg/Office/Common.hxx> #include <officecfg/Office/Common.hxx>
#include <officecfg/Office/Impress.hxx> #include <officecfg/Office/Impress.hxx>
#include <svx/svxids.hrc> #include <svx/svxids.hrc>
...@@ -1547,6 +1548,11 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) ...@@ -1547,6 +1548,11 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet )
GetModeSwitchingMenuState (rSet); GetModeSwitchingMenuState (rSet);
} }
void DrawViewShell::GetPageProperties( SfxItemSet &rSet )
{
rSet.Put(SvxSizeItem( SID_ATTR_PAGE_SIZE, getCurrentPage()->GetSize()));
}
void DrawViewShell::GetModeSwitchingMenuState (SfxItemSet &rSet) void DrawViewShell::GetModeSwitchingMenuState (SfxItemSet &rSet)
{ {
//DrawView //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