Kaydet (Commit) 40c09650 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: implement select-all for the frame shell

There is no reason why Ctrl-A should be a NOP when you have an image
selected.

No test, there is one in the cp-6.0 copy&paste code, that coverage will
arrive as part of that copy&paste code forward-port.

Change-Id: If0013ee0e9ff9a6fb038a22de7b5d3c76e5c52b9
Reviewed-on: https://gerrit.libreoffice.org/73118Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
üst 479ee00e
......@@ -406,5 +406,10 @@ interface BaseTextFrame
ExecMethod = Execute ;
DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
]
SID_SELECTALL
[
ExecMethod = ExecMove ;
StateMethod = NoState ;
]
}
......@@ -35,6 +35,7 @@ public:
virtual ~SwFrameShell() override;
void Execute(SfxRequest &);
void ExecMove(SfxRequest& rReq);
void GetState(SfxItemSet &);
void ExecFrameStyle(SfxRequest const & rReq);
void GetLineStyleState(SfxItemSet &rSet);
......
......@@ -115,6 +115,19 @@ void SwFrameShell::InitInterface_Impl()
GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SfxVisibilityFlags::Invisible, ToolbarId::Frame_Toolbox);
}
void SwFrameShell::ExecMove(SfxRequest& rReq)
{
SwWrtShell& rSh = GetShell();
sal_uInt16 nSlot = rReq.GetSlot();
switch (nSlot)
{
case SID_SELECTALL:
rSh.SelAll();
rReq.Done();
break;
}
}
void SwFrameShell::Execute(SfxRequest &rReq)
{
//First those who do not need FrameMgr.
......
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