26#include <osl/thread.h>
64 pAct =
const_cast<GDIMetaFile&
>(rMetaFile).NextAction();
83 for (
size_t i = 0, nObjCount = rMetaFile.
GetActionSize();
i < nObjCount;
i++)
93 ShortToSVBT16(
static_cast<sal_uInt16
>(pAct->
GetType()), aBT16);
99 Int32ToSVBT32(pAct->
GetPoint().
X(), aBT32);
102 Int32ToSVBT32(pAct->
GetPoint().
Y(), aBT32);
111 ShortToSVBT16(
static_cast<sal_uInt16
>(pAct->
GetType()), aBT16);
117 Int32ToSVBT32(pAct->
GetPoint().
X(), aBT32);
120 Int32ToSVBT32(pAct->
GetPoint().
Y(), aBT32);
135 ShortToSVBT16(
static_cast<sal_uInt16
>(pAct->
GetType()), aBT16);
171 ShortToSVBT16(
static_cast<sal_uInt16
>(pAct->
GetType()), aBT16);
177 Int32ToSVBT32(pAct->
GetPoint().
X(), aBT32);
180 Int32ToSVBT32(pAct->
GetPoint().
Y(), aBT32);
189 ShortToSVBT16(
static_cast<sal_uInt16
>(pAct->
GetType()), aBT16);
195 Int32ToSVBT32(pAct->
GetPoint().
X(), aBT32);
198 Int32ToSVBT32(pAct->
GetPoint().
Y(), aBT32);
213 ShortToSVBT16(
static_cast<sal_uInt16
>(pAct->
GetType()), aBT16);
249 ShortToSVBT16(
static_cast<sal_uInt16
>(pAct->
GetType()), aBT16);
255 UInt32ToSVBT32(sal_uInt32(pAct->
GetColor()), aBT32);
258 Int32ToSVBT32(pAct->
GetPoint().
X(), aBT32);
261 Int32ToSVBT32(pAct->
GetPoint().
Y(), aBT32);
270 ShortToSVBT16(
static_cast<sal_uInt16
>(pAct->
GetType()), aBT16);
276 UInt32ToSVBT32(sal_uInt32(pAct->
GetColor()), aBT32);
279 Int32ToSVBT32(pAct->
GetPoint().
X(), aBT32);
282 Int32ToSVBT32(pAct->
GetPoint().
Y(), aBT32);
297 ShortToSVBT16(
static_cast<sal_uInt16
>(pAct->
GetType()), aBT16);
303 UInt32ToSVBT32(sal_uInt32(pAct->
GetColor()), aBT32);
353 for (
auto const& rPolygon : aPolyPolygon)
355 const sal_uInt32 nPointCount(rPolygon.count());
356 const bool bControl(rPolygon.areControlPointsUsed());
358 for (sal_uInt32 b(0); b < nPointCount; b++)
362 DoubleToSVBT64(aPoint.
getX(), aSVBT64);
364 DoubleToSVBT64(aPoint.
getY(), aSVBT64);
369 if (rPolygon.isPrevControlPointUsed(b))
373 DoubleToSVBT64(aCtrl.
getX(), aSVBT64);
375 DoubleToSVBT64(aCtrl.
getY(), aSVBT64);
379 if (rPolygon.isNextControlPointUsed(b))
383 DoubleToSVBT64(aCtrl.
getX(), aSVBT64);
385 DoubleToSVBT64(aCtrl.
getY(), aSVBT64);
941 sal_uInt16 nNumberOfComplexPolygons = 0;
946 for (
i = 0;
i < nPolyCount;
i++)
950 nNumberOfComplexPolygons++;
956 for (
i = 0; nNumberOfComplexPolygons && (
i < nPolyCount);
i++)
964 nNumberOfComplexPolygons--;
989 const sal_Int32 nAryLen = !rDXArray.
empty() ? pAction->
GetLen() : 0;
999 for (sal_Int32
i = 0;
i < nAryLen; ++
i)
1007 for (
const auto& val : rKashidaArray)
1319 if (
pData->meActualCharSet == RTL_TEXTENCODING_DONTKNOW)
1320 pData->meActualCharSet = osl_getThreadTextEncoding();
1370 const bool bSVG(
nullptr != pSVGTransparencyColorStops);
1376 aWriter.
Write(aMtf);
1385 sal_uInt16 nTmp(sal::static_int_cast<sal_uInt16>(pSVGTransparencyColorStops->size()));
1388 for (
auto const& rCand : *pSVGTransparencyColorStops)
1411 aWriter.
Write(aMtf);
#define BITMAP_CHECKSUM_SIZE
sal_uInt8 BitmapChecksumOctetArray[BITMAP_CHECKSUM_SIZE]
sal_uInt64 BitmapChecksum
void BCToBCOA(BitmapChecksum n, BitmapChecksumOctetArray p)
BitmapChecksum vcl_get_checksum(BitmapChecksum Checksum, const void *Data, sal_uInt32 DatLen)
BitmapChecksum GetChecksum() const
Bitmap GetBitmap(Color aTransparentReplaceColor) const
BitmapChecksum GetChecksum() const
const sal_uInt8 * GetData() const
sal_uInt32 GetDataSize() const
sal_uInt32 GetWidth() const
sal_Int32 GetIndex() const
const OUString & GetText() const
const Point & GetPoint() const
const Point & GetPoint() const
const OUString & GetText() const
sal_Int32 GetIndex() const
TextAlign GetTextAlign() const
sal_Int32 GetIndex() const
const KernArray & GetDXArray() const
const OUString & GetText() const
const Point & GetPoint() const
const std::vector< sal_Bool > & GetKashidaArray() const
const Color & GetColor() const
const Color & GetColor() const
LanguageType GetTextLanguage() const
const Point & GetStartPoint() const
tools::Long GetWidth() const
FontLineStyle GetUnderline() const
FontLineStyle GetOverline() const
FontStrikeout GetStrikeout() const
const Color & GetColor() const
DrawTextFlags GetStyle() const
const tools::Rectangle & GetRect() const
const OUString & GetText() const
constexpr tools::Long Y() const
constexpr tools::Long X() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
SvStream & WriteDouble(const double &rDouble)
SvStream & WriteInt32(sal_Int32 nInt32)
void SetEndian(SvStreamEndian SvStreamEndian)
SvStream & WriteUniOrByteString(std::u16string_view rStr, rtl_TextEncoding eDestCharSet)
SvStreamCompressFlags GetCompressMode() const
std::size_t WriteBytes(const void *pData, std::size_t nSize)
SvStream & WriteBool(bool b)
SvStream & WriteUChar(unsigned char nChar)
SvStream & WriteUInt16(sal_uInt16 nUInt16)
SvStream & WriteUInt32(sal_uInt32 nUInt32)
SvStreamEndian GetEndian() const
sal_uInt64 Seek(sal_uInt64 nPos)
rtl_TextEncoding GetStreamCharSet() const
void RasterOpHandler(const MetaRasterOpAction *pAction)
void PopHandler(const MetaPopAction *pAction)
void BmpExHandler(const MetaBmpExAction *pAction)
void EPSHandler(const MetaEPSAction *pAction)
void BmpScalePartHandler(const MetaBmpScalePartAction *pAction)
void ISectRegionClipRegionHandler(const MetaISectRegionClipRegionAction *pAction)
void OverlineColorHandler(const MetaOverlineColorAction *pAction)
void EllipseHandler(const MetaEllipseAction *pAction)
void BmpExScalePartHandler(const MetaBmpExScalePartAction *pAction)
void BmpExScaleHandler(const MetaBmpExScaleAction *pAction)
void CommentHandler(const MetaCommentAction *pAction)
void MaskHandler(const MetaMaskAction *pAction)
void TextLineColorHandler(const MetaTextLineColorAction *pAction)
SvStream & Write(const GDIMetaFile &rMetaFile)
void TextHandler(const MetaTextAction *pAction, const ImplMetaWriteData *pData)
void TextLanguageHandler(const MetaTextLanguageAction *pAction)
void PushHandler(const MetaPushAction *pAction)
void TextFillColorHandler(const MetaTextFillColorAction *pAction)
void BmpScaleHandler(const MetaBmpScaleAction *pAction)
void WallpaperHandler(const MetaWallpaperAction *pAction)
void RectHandler(const MetaRectAction *pAction)
SvmWriter(SvStream &rIStm)
void ChordHandler(const MetaChordAction *pAction)
void LineColorHandler(const MetaLineColorAction *pAction)
void MaskScalePartHandler(const MetaMaskScalePartAction *pAction)
void PolyLineHandler(const MetaPolyLineAction *pAction)
void MaskScaleHandler(const MetaMaskScaleAction *pAction)
void TransparentHandler(const MetaTransparentAction *pAction)
void RefPointHandler(const MetaRefPointAction *pAction)
void HatchHandler(const MetaHatchAction *pAction)
void TextLineHandler(const MetaTextLineAction *pAction)
void StretchTextHandler(const MetaStretchTextAction *pAction, const ImplMetaWriteData *pData)
void LayoutModeHandler(const MetaLayoutModeAction *pAction)
void FillColorHandler(const MetaFillColorAction *pAction)
void ArcHandler(const MetaArcAction *pAction)
void PointHandler(const MetaPointAction *pAction)
void MetaActionHandler(MetaAction *pAction, ImplMetaWriteData *pData)
static BitmapChecksum GetChecksum(const GDIMetaFile &rMetaFile)
void BmpHandler(const MetaBmpAction *pAction)
void ClipRegionHandler(const MetaClipRegionAction *pAction)
void PolygonHandler(const MetaPolygonAction *pAction)
void TextAlignHandler(const MetaTextAlignAction *pAction)
void TextColorHandler(const MetaTextColorAction *pAction)
void MapModeHandler(const MetaMapModeAction *pAction)
void WriteColor(::Color aColor)
void PieHandler(const MetaPieAction *pAction)
void LineHandler(const MetaLineAction *pAction)
void RoundRectHandler(const MetaRoundRectAction *pAction)
void TextArrayHandler(const MetaTextArrayAction *pAction, const ImplMetaWriteData *pData)
void ISectRectClipRegionHandler(const MetaISectRectClipRegionAction *pAction)
void PixelHandler(const MetaPixelAction *pAction)
void TextRectHandler(const MetaTextRectAction *pAction, const ImplMetaWriteData *pData)
void MoveClipRegionHandler(const MetaMoveClipRegionAction *pAction)
void GradientExHandler(const MetaGradientExAction *pAction)
void GradientHandler(const MetaGradientAction *pAction)
void ActionHandler(const MetaAction *pAction)
void FloatTransparentHandler(const MetaFloatTransparentAction *pAction)
void FontHandler(const MetaFontAction *pAction, ImplMetaWriteData *pData)
void PolyPolygonHandler(const MetaPolyPolygonAction *pAction)
void writeGradient(const Gradient &rGradient)
void writeMapMode(MapMode const &rMapMode)
void writeGfxLink(const GfxLink &rGfxLink)
rtl_TextEncoding GetCharSet() const
basegfx::B2DPolyPolygon GetAsB2DPolyPolygon() const
bool HasPolyPolygonOrB2DPolyPolygon() const
SvStream & WriteFont(SvStream &rOStm, const vcl::Font &rFont)
SvStream & WriteHatch(SvStream &rOStm, const Hatch &rHatch)
SvStream & WriteLineInfo(SvStream &rOStm, const LineInfo &rLineInfo)
std::unique_ptr< sal_Int32[]> pData
SvStream & WriteRegion(SvStream &rOStrm, const vcl::Region &rRegion)
std::size_t write_uInt16_lenPrefixed_uInt16s_FromOUString(SvStream &rStrm, std::u16string_view rStr)
TOOLS_DLLPUBLIC std::size_t write_uInt16_lenPrefixed_uInt8s_FromOString(SvStream &rStrm, std::string_view rStr)
SvStream & WriteWallpaper(SvStream &rOStm, const Wallpaper &rImplWallpaper)