Kaydet (Commit) 4d8a5ebd authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

tdf#117835 Paste as Unformatted for comments in Writer

Change-Id: Ia96f8c51cc0a3898c1169454bd7c3031e08c45d4
Reviewed-on: https://gerrit.libreoffice.org/59906
Tested-by: Jenkins
Reviewed-by: 's avatarMaxim Monastirsky <momonasmon@gmail.com>
üst 8fb5567d
...@@ -96,6 +96,13 @@ interface _Annotation ...@@ -96,6 +96,13 @@ interface _Annotation
DisableFlags="SfxDisableFlags::SwOnProtectedCursor"; DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
] ]
SID_PASTE_UNFORMATTED
[
ExecMethod = ExecClpbrd ;
StateMethod = StateClpbrd ;
DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
]
SID_PASTE_SPECIAL // api: SID_PASTE_SPECIAL // api:
[ [
StateMethod = StateClpbrd ; StateMethod = StateClpbrd ;
......
...@@ -906,6 +906,10 @@ void SwAnnotationShell::ExecClpbrd(SfxRequest const &rReq) ...@@ -906,6 +906,10 @@ void SwAnnotationShell::ExecClpbrd(SfxRequest const &rReq)
if (pPostItMgr->GetActiveSidebarWin()->GetLayoutStatus()!=SwPostItHelper::DELETED) if (pPostItMgr->GetActiveSidebarWin()->GetLayoutStatus()!=SwPostItHelper::DELETED)
pOLV->PasteSpecial(); pOLV->PasteSpecial();
break; break;
case SID_PASTE_UNFORMATTED:
if (pPostItMgr->GetActiveSidebarWin()->GetLayoutStatus()!=SwPostItHelper::DELETED)
pOLV->Paste();
break;
case SID_PASTE_SPECIAL: case SID_PASTE_SPECIAL:
{ {
if (pPostItMgr->GetActiveSidebarWin()->GetLayoutStatus()!=SwPostItHelper::DELETED) if (pPostItMgr->GetActiveSidebarWin()->GetLayoutStatus()!=SwPostItHelper::DELETED)
...@@ -986,6 +990,7 @@ void SwAnnotationShell::StateClpbrd(SfxItemSet &rSet) ...@@ -986,6 +990,7 @@ void SwAnnotationShell::StateClpbrd(SfxItemSet &rSet)
break; break;
} }
case SID_PASTE: case SID_PASTE:
case SID_PASTE_UNFORMATTED:
case SID_PASTE_SPECIAL: case SID_PASTE_SPECIAL:
{ {
if( !bPastePossible ) if( !bPastePossible )
......
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