diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-03-27 12:06:25 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-03-27 15:00:07 +0200 |
commit | 6d05579c7fceb0f3ce83abe25bdfe62b26c29671 (patch) | |
tree | 4a82c2c20f36c68dee1cd4c6ee1a7225e513d127 /include | |
parent | d0f1a431eab9a7a503bf6487732eeaec0e881053 (diff) |
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')
-rw-r--r-- | include/filter/msfilter/rtfutil.hxx | 4 |
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. */ |