21#include <rtl/ustrbuf.hxx>
28 OUStringBuffer sStyle;
31 sStyle =
"\n\t\t\tFontStyleBold";
34 sStyle.append(
"\n\t\t\tFontStyleItalic");
37 sStyle.append(
"\n\t\t\tFontStyleUnderline");
40 sStyle.append(
"\n\t\t\tFontStyleStrikeout");
42 return sStyle.makeStringAndClear();
51 SAL_WARN_IF((
header >> 12) != 0xdbc01,
"drawinglayer.emf",
"Invalid header - not 0xdbc01");
52 SAL_INFO(
"drawinglayer.emf",
"EMF+\tHeader: 0x" << std::hex << (
header >> 12));
53 SAL_INFO(
"drawinglayer.emf",
"EMF+\tVersion: 0x" << (
header & 0x1fff));
54 SAL_INFO(
"drawinglayer.emf",
"EMF+\tSize: " << std::dec <<
emSize);
57 SAL_INFO(
"drawinglayer.emf",
"EMF+\tReserved: 0x" << reserved << std::dec);
60 if (length <= 0 || length >= 0x4000)
63 rtl_uString *pStr = rtl_uString_alloc(
length);
71 family = OUString(pStr, SAL_NO_ACQUIRE);
constexpr sal_Int8 header[]
SvStream & ReadFloat(float &rFloat)
SvStream & ReadUInt32(sal_uInt32 &rUInt32)
SvStream & ReadUtf16(sal_Unicode &rUtf16)
SvStream & ReadInt32(sal_Int32 &rInt32)
#define SAL_WARN_IF(condition, area, stream)
#define SAL_INFO(area, stream)
const sal_uInt32 FontStyleBold
OUString UnitTypeToString(sal_uInt16 nType)
const sal_uInt32 FontStyleItalic
static OUString FontStyleToString(sal_uInt32 style)
const sal_uInt32 FontStyleUnderline
const sal_uInt32 FontStyleStrikeout
void Read(SvMemoryStream &s)