summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2018-09-02 14:40:45 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2018-09-02 19:30:04 +0200
commit4d8a5ebdf9d2bef608a77559e93b5c543acfe6fd (patch)
tree373e66409c96ae216fcda4ba5f39164ff39c40b3
parent8fb5567dc05397e9b28b821b2d3ff2735ccdeb33 (diff)
tdf#117835 Paste as Unformatted for comments in Writer
Change-Id: Ia96f8c51cc0a3898c1169454bd7c3031e08c45d4 Reviewed-on: https://gerrit.libreoffice.org/59906 Tested-by: Jenkins Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
-rw-r--r--sw/sdi/_annotsh.sdi7
-rw-r--r--sw/source/uibase/shells/annotsh.cxx5
2 files changed, 12 insertions, 0 deletions
diff --git a/sw/sdi/_annotsh.sdi b/sw/sdi/_annotsh.sdi
index 27c200944c0f..e271625bcdd8 100644
--- a/sw/sdi/_annotsh.sdi
+++ b/sw/sdi/_annotsh.sdi
@@ -96,6 +96,13 @@ interface _Annotation
DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
]
+ SID_PASTE_UNFORMATTED
+ [
+ ExecMethod = ExecClpbrd ;
+ StateMethod = StateClpbrd ;
+ DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
+ ]
+
SID_PASTE_SPECIAL // api:
[
StateMethod = StateClpbrd ;
diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx
index 19a513387e3f..9a519715a5c9 100644
--- a/sw/source/uibase/shells/annotsh.cxx
+++ b/sw/source/uibase/shells/annotsh.cxx
@@ -906,6 +906,10 @@ void SwAnnotationShell::ExecClpbrd(SfxRequest const &rReq)
if (pPostItMgr->GetActiveSidebarWin()->GetLayoutStatus()!=SwPostItHelper::DELETED)
pOLV->PasteSpecial();
break;
+ case SID_PASTE_UNFORMATTED:
+ if (pPostItMgr->GetActiveSidebarWin()->GetLayoutStatus()!=SwPostItHelper::DELETED)
+ pOLV->Paste();
+ break;
case SID_PASTE_SPECIAL:
{
if (pPostItMgr->GetActiveSidebarWin()->GetLayoutStatus()!=SwPostItHelper::DELETED)
@@ -986,6 +990,7 @@ void SwAnnotationShell::StateClpbrd(SfxItemSet &rSet)
break;
}
case SID_PASTE:
+ case SID_PASTE_UNFORMATTED:
case SID_PASTE_SPECIAL:
{
if( !bPastePossible )