summaryrefslogtreecommitdiffstats
path: root/include/filter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2018-03-27 12:06:25 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-03-27 15:00:07 +0200
commit6d05579c7fceb0f3ce83abe25bdfe62b26c29671 (patch)
tree4a82c2c20f36c68dee1cd4c6ee1a7225e513d127 /include/filter
parentgla11y: update heuristics but don't enable warnings yet (diff)
downloadcore-6d05579c7fceb0f3ce83abe25bdfe62b26c29671.tar.gz
core-6d05579c7fceb0f3ce83abe25bdfe62b26c29671.zip
msfilter: extract duplicated WriteHex() from HTML/RTF filter
The RtfAttributeOutput one is a superset of the HTML one, so use that. Change-Id: I3e342113a7ba26946320f43a164e457d6cbb6946 Reviewed-on: https://gerrit.libreoffice.org/51937 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'include/filter')
-rw-r--r--include/filter/msfilter/rtfutil.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/filter/msfilter/rtfutil.hxx b/include/filter/msfilter/rtfutil.hxx
index 48351d382786..1cadaa94bd50 100644
--- a/include/filter/msfilter/rtfutil.hxx
+++ b/include/filter/msfilter/rtfutil.hxx
@@ -62,6 +62,10 @@ MSFILTER_DLLPUBLIC OString OutStringUpr(const sal_Char* pToken, const OUString&
*/
MSFILTER_DLLPUBLIC int AsHex(char ch);
+/// Writes binary data as a hex dump.
+MSFILTER_DLLPUBLIC OString WriteHex(const sal_uInt8* pData, sal_uInt32 nSize,
+ SvStream* pStream = nullptr, sal_uInt32 nLimit = 64);
+
/**
* Extract OLE2 data from an \objdata hex dump.
*/