summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorOliver Specht <oliver.specht@cib.de>2023-11-21 17:32:23 +0100
committerThorsten Behrens <thorsten.behrens@allotropia.de>2023-11-24 15:55:50 +0100
commitc47100e478301085ffb1e71bed41b9e5c39377fd (patch)
tree85dfa1236d3f9fe57813e3a3dfade142151aa811 /sc/source/ui
parent418af212a7f506784d88f5a7a7800140f4f9dd30 (diff)
tdf#158294 HTML simple format also added to paste special toolbox
adds the format HTML simple to the paste special toolbox controller in impress and with draw text selection in calc and writer Change-Id: Ibdca5d3cd5ab4640320cff3b03b30f6575e8fec8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159791 Tested-by: Jenkins Tested-by: Gabor Kelemen <kelemeng@ubuntu.com> Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/drawfunc/drtxtob.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/drawfunc/drtxtob.cxx b/sc/source/ui/drawfunc/drtxtob.cxx
index 78bafa27f63e..189ae2793a10 100644
--- a/sc/source/ui/drawfunc/drtxtob.cxx
+++ b/sc/source/ui/drawfunc/drtxtob.cxx
@@ -183,7 +183,7 @@ void ScDrawTextObjectBar::Execute( SfxRequest &rReq )
if (nFormat == SotClipboardFormatId::STRING)
pOutView->Paste();
else
- pOutView->PasteSpecial();
+ pOutView->PasteSpecial(nFormat);
}
}
break;
@@ -532,6 +532,8 @@ void ScDrawTextObjectBar::GetClipState( SfxItemSet& rSet )
aFormats.AddClipbrdFormat( SotClipboardFormatId::RTF );
if ( aDataHelper.HasFormat( SotClipboardFormatId::RICHTEXT ) )
aFormats.AddClipbrdFormat( SotClipboardFormatId::RICHTEXT );
+ if (aDataHelper.HasFormat(SotClipboardFormatId::HTML_SIMPLE))
+ aFormats.AddClipbrdFormat(SotClipboardFormatId::HTML_SIMPLE);
rSet.Put( aFormats );
}