LibreOffice Module filter (master) 1
Namespaces | Functions
rtfutil.cxx File Reference
#include <filter/msfilter/rtfutil.hxx>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <svtools/rtfkeywd.hxx>
#include <rtl/character.hxx>
#include <tools/stream.hxx>
#include <sot/storage.hxx>
Include dependency graph for rtfutil.cxx:

Go to the source code of this file.

Namespaces

namespace  msfilter
 
namespace  msfilter::rtfutil
 

Functions

OString msfilter::rtfutil::OutHex (sal_uLong nHex, sal_uInt8 nLen)
 Outputs a single character in hex form. More...
 
OString msfilter::rtfutil::OutChar (sal_Unicode c, int *pUCMode, rtl_TextEncoding eDestEnc, bool *pSuccess, bool bUnicode=true)
 Handles correct unicode and legacy export of a single character. More...
 
OString msfilter::rtfutil::OutString (std::u16string_view rStr, rtl_TextEncoding eDestEnc, bool bUnicode=true)
 Handles correct unicode and legacy export of a string. More...
 
static bool msfilter::rtfutil::TryOutString (std::u16string_view rStr, rtl_TextEncoding eDestEnc)
 Checks if lossless conversion of the string to eDestEnc is possible or not. More...
 
OString msfilter::rtfutil::OutStringUpr (std::string_view pToken, std::u16string_view rStr, rtl_TextEncoding eDestEnc)
 Handles correct unicode and legacy export of a string, when a '{' \upr '{' keyword ansi_text '}{*' \ud '{' keyword Unicode_text '}}}' construct should be used. More...
 
int msfilter::rtfutil::AsHex (char ch)
 Get the numeric value of a single character, representing a hex value. More...
 
OString msfilter::rtfutil::WriteHex (const sal_uInt8 *pData, sal_uInt32 nSize, SvStream *pStream=nullptr, sal_uInt32 nLimit=64)
 Writes binary data as a hex dump. More...
 
bool msfilter::rtfutil::ExtractOLE2FromObjdata (const OString &rObjdata, SvStream &rOle2)
 Extract OLE2 data from an \objdata hex dump. More...
 
bool msfilter::rtfutil::StripMetafileHeader (const sal_uInt8 *&rpGraphicAry, sal_uInt64 &rSize)
 Strips the header of a WMF file. More...