LibreOffice Module vcl (master) 1
|
#include <wmfwr.hxx>
Public Member Functions | |
WMFWriter () | |
bool | WriteWMF (const GDIMetaFile &rMTF, SvStream &rTargetStream, FilterConfigItem const *pFilterConfigItem, bool bPlaceable) |
Private Member Functions | |
void | MayCallback () |
void | CountActionsAndBitmaps (const GDIMetaFile &rMTF) |
void | WritePointXY (const Point &rPoint) |
void | WritePointYX (const Point &rPoint) |
sal_Int32 | ScaleWidth (sal_Int32 nDX) |
void | WriteSize (const Size &rSize) |
void | WriteHeightWidth (const Size &rSize) |
void | WriteRectangle (const tools::Rectangle &rRect) |
void | WriteColor (const Color &rColor) |
void | WriteRecordHeader (sal_uInt32 nSizeWords, sal_uInt16 nType) |
void | UpdateRecordHeader () |
void | WMFRecord_Arc (const tools::Rectangle &rRect, const Point &rStartPt, const Point &rEndPt) |
void | WMFRecord_Chord (const tools::Rectangle &rRect, const Point &rStartPt, const Point &rEndPt) |
void | WMFRecord_CreateBrushIndirect (const Color &rColor) |
void | WMFRecord_CreateFontIndirect (const vcl::Font &rFont) |
void | WMFRecord_CreatePenIndirect (const Color &rColor, const LineInfo &rLineInfo) |
void | WMFRecord_DeleteObject (sal_uInt16 nObjectHandle) |
void | WMFRecord_Ellipse (const tools::Rectangle &rRect) |
void | WMFRecord_Escape (sal_uInt32 nEsc, sal_uInt32 nLen, const sal_Int8 *pData) |
bool | WMFRecord_Escape_Unicode (const Point &rPoint, const OUString &rStr, KernArraySpan pDXAry) |
void | WMFRecord_ExtTextOut (const Point &rPoint, std::u16string_view rString, KernArraySpan pDXAry) |
void | TrueExtTextOut (const Point &rPoint, std::u16string_view rString, const OString &rByteString, KernArraySpan pDXAry) |
void | TrueTextOut (const Point &rPoint, const OString &rString) |
void | WMFRecord_LineTo (const Point &rPoint) |
void | WMFRecord_MoveTo (const Point &rPoint) |
void | WMFRecord_Pie (const tools::Rectangle &rRect, const Point &rStartPt, const Point &rEndPt) |
void | WMFRecord_Polygon (const tools::Polygon &rPoly) |
void | WMFRecord_PolyLine (const tools::Polygon &rPoly) |
void | WMFRecord_PolyPolygon (const tools::PolyPolygon &rPolyPoly) |
void | WMFRecord_Rectangle (const tools::Rectangle &rRect) |
void | WMFRecord_RestoreDC () |
void | WMFRecord_RoundRect (const tools::Rectangle &rRect, tools::Long nHorzRound, tools::Long nVertRound) |
void | WMFRecord_SaveDC () |
void | WMFRecord_SelectObject (sal_uInt16 nObjectHandle) |
void | WMFRecord_SetBkMode (bool bTransparent) |
void | WMFRecord_SetStretchBltMode () |
void | WMFRecord_SetPixel (const Point &rPoint, const Color &rColor) |
void | WMFRecord_SetROP2 (RasterOp eROP) |
void | WMFRecord_SetTextAlign (TextAlign eFontAlign, sal_uInt16 eHorTextAlign) |
void | WMFRecord_SetTextColor (const Color &rColor) |
void | WMFRecord_SetWindowExt (const Size &rSize) |
void | WMFRecord_SetWindowOrg (const Point &rPoint) |
void | WMFRecord_StretchDIB (const Point &rPoint, const Size &rSize, const Bitmap &rBitmap, sal_uInt32 nROP=0) |
void | WMFRecord_TextOut (const Point &rPoint, std::u16string_view rString) |
void | WMFRecord_IntersectClipRect (const tools::Rectangle &rRect) |
sal_uInt16 | AllocHandle () |
void | FreeHandle (sal_uInt16 nObjectHandle) |
void | CreateSelectDeletePen (const Color &rColor, const LineInfo &rLineInfo) |
void | CreateSelectDeleteFont (const vcl::Font &rFont) |
void | CreateSelectDeleteBrush (const Color &rColor) |
void | SetLineAndFillAttr () |
void | SetAllAttr () |
void | HandleLineInfoPolyPolygons (const LineInfo &rInfo, const basegfx::B2DPolygon &rLinePolygon) |
void | WriteRecords (const GDIMetaFile &rMTF) |
void | WriteHeader (bool bPlaceable) |
void | UpdateHeader () |
void | WriteEmbeddedEMF (const GDIMetaFile &rMTF) |
void | WriteEMFRecord (SvMemoryStream &rStream, sal_uInt32 nCurSize, sal_uInt32 nRemainingSize, sal_uInt32 nTotalSize, sal_uInt32 nRecCounts, sal_uInt16 nCheckSum) |
sal_uInt16 | CalcSaveTargetMapMode (MapMode &rMapMode, const Size &rPrefSize) |
WMFWriter::WMFWriter | ( | ) |
Definition at line 138 of file wmfwr.cxx.
References ALIGN_BASELINE, and OverPaint.
|
private |
Definition at line 851 of file wmfwr.cxx.
References bHandleAllocated, bStatus, i, and MAXOBJECTHANDLES.
Referenced by CreateSelectDeleteBrush(), CreateSelectDeleteFont(), and CreateSelectDeletePen().
Definition at line 1803 of file wmfwr.cxx.
References aSrcMapMode, MapMode::GetScaleX(), MapMode::GetScaleY(), Size::Height(), OutputDevice::LogicToLogic(), MapMode::SetScaleX(), MapMode::SetScaleY(), and Size::Width().
Referenced by WriteWMF().
|
private |
Definition at line 189 of file wmfwr.cxx.
References BMP, BMPEX, BMPEXSCALE, BMPEXSCALEPART, BMPSCALE, BMPSCALEPART, GDIMetaFile::GetAction(), GDIMetaFile::GetActionSize(), MetaAction::GetType(), nNumberOfActions, and nNumberOfBitmaps.
Referenced by WriteWMF().
|
private |
Definition at line 898 of file wmfwr.cxx.
References AllocHandle(), FreeHandle(), MAXOBJECTHANDLES, nDstBrushHandle, WMFRecord_CreateBrushIndirect(), WMFRecord_DeleteObject(), and WMFRecord_SelectObject().
Referenced by SetLineAndFillAttr(), and WriteWMF().
|
private |
Definition at line 884 of file wmfwr.cxx.
References AllocHandle(), FreeHandle(), MAXOBJECTHANDLES, nDstFontHandle, WMFRecord_CreateFontIndirect(), WMFRecord_DeleteObject(), and WMFRecord_SelectObject().
Referenced by SetAllAttr(), and WriteWMF().
Definition at line 870 of file wmfwr.cxx.
References AllocHandle(), FreeHandle(), MAXOBJECTHANDLES, nDstPenHandle, WMFRecord_CreatePenIndirect(), WMFRecord_DeleteObject(), and WMFRecord_SelectObject().
Referenced by SetLineAndFillAttr(), and WriteWMF().
|
private |
Definition at line 865 of file wmfwr.cxx.
References bHandleAllocated, and MAXOBJECTHANDLES.
Referenced by CreateSelectDeleteBrush(), CreateSelectDeleteFont(), and CreateSelectDeletePen().
|
private |
Definition at line 966 of file wmfwr.cxx.
References aSrcFillColor, aSrcLineColor, aSrcLineInfo, COL_TRANSPARENT(), basegfx::B2DPolygon::count(), basegfx::B2DPolyPolygon::count(), SetLineAndFillAttr(), WMFRecord_Polygon(), and WMFRecord_PolyLine().
Referenced by WriteRecords().
|
private |
Definition at line 166 of file wmfwr.cxx.
References nActBitmapPercent, nLastPercent, nNumberOfActions, nNumberOfBitmaps, nWrittenActions, nWrittenBitmaps, and xStatusIndicator.
Referenced by WMFRecord_StretchDIB(), and WriteRecords().
|
private |
Definition at line 227 of file wmfwr.cxx.
References aSrcMapMode, aTargetMapMode, OutputDevice::LogicToLogic(), and Size::Width().
Referenced by TrueExtTextOut().
|
private |
Definition at line 932 of file wmfwr.cxx.
References aDstFont, aDstTextColor, aSrcFont, aSrcTextColor, CreateSelectDeleteFont(), eDstHorTextAlign, eDstTextAlign, eSrcHorTextAlign, eSrcTextAlign, vcl::Font::GetCharSet(), vcl::Font::GetFamilyName(), OutputDevice::GetFontCharMap(), pVirDev, vcl::Font::SetCharSet(), OutputDevice::SetFont(), SetLineAndFillAttr(), WMFRecord_SetTextAlign(), and WMFRecord_SetTextColor().
Referenced by WMFRecord_Escape_Unicode(), and WriteRecords().
|
private |
Definition at line 912 of file wmfwr.cxx.
References aDstFillColor, aDstLineColor, aDstLineInfo, aSrcFillColor, aSrcLineColor, aSrcLineInfo, CreateSelectDeleteBrush(), CreateSelectDeletePen(), eDstROP2, eSrcRasterOp, and WMFRecord_SetROP2().
Referenced by HandleLineInfoPolyPolygons(), SetAllAttr(), WMFRecord_Escape_Unicode(), and WriteRecords().
|
private |
Definition at line 564 of file wmfwr.cxx.
References aSrcFont, vcl::Font::GetCharSet(), i, pWMF, ScaleWidth(), UpdateRecordHeader(), W_META_EXTTEXTOUT, write_uInt8s_FromOString(), SvStream::WriteInt16(), WritePointYX(), WriteRecordHeader(), SvStream::WriteUChar(), and SvStream::WriteUInt16().
Referenced by WMFRecord_ExtTextOut().
|
private |
Definition at line 834 of file wmfwr.cxx.
References pWMF, UpdateRecordHeader(), W_META_TEXTOUT, write_uInt16_lenPrefixed_uInt8s_FromOString(), WritePointYX(), WriteRecordHeader(), and SvStream::WriteUChar().
Referenced by WMFRecord_TextOut().
|
private |
Definition at line 1657 of file wmfwr.cxx.
References nMaxRecordSize, nMetafileHeaderPos, nPos, pWMF, SvStream::Seek(), SvStream::SeekRel(), SvStream::Tell(), SvStream::WriteUChar(), and SvStream::WriteUInt32().
Referenced by WriteWMF().
|
private |
Definition at line 263 of file wmfwr.cxx.
References nActRecordPos, nMaxRecordSize, nPos, pWMF, SvStream::Seek(), SvStream::Tell(), SvStream::WriteUChar(), and SvStream::WriteUInt32().
Referenced by TrueExtTextOut(), TrueTextOut(), WMFRecord_CreateFontIndirect(), WMFRecord_PolyPolygon(), WMFRecord_StretchDIB(), and WriteEMFRecord().
|
private |
Definition at line 280 of file wmfwr.cxx.
References W_META_ARC, WritePointYX(), WriteRecordHeader(), and WriteRectangle().
Referenced by WriteRecords().
|
private |
Definition at line 288 of file wmfwr.cxx.
References W_META_CHORD, WritePointYX(), WriteRecordHeader(), and WriteRectangle().
Referenced by WriteRecords().
|
private |
Definition at line 296 of file wmfwr.cxx.
References COL_TRANSPARENT(), pWMF, W_BS_HOLLOW, W_BS_SOLID, W_META_CREATEBRUSHINDIRECT, WriteColor(), WriteRecordHeader(), and SvStream::WriteUInt16().
Referenced by CreateSelectDeleteBrush().
|
private |
Definition at line 309 of file wmfwr.cxx.
References FAMILY_DECORATIVE, FAMILY_MODERN, FAMILY_ROMAN, FAMILY_SCRIPT, FAMILY_SWISS, o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::get(), vcl::Font::GetCharSet(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), vcl::Font::GetFontSize(), vcl::Font::GetItalic(), vcl::Font::GetOrientation(), vcl::Font::GetPitch(), vcl::Font::GetStrikeout(), vcl::Font::GetUnderline(), vcl::Font::GetWeight(), Size::Height(), i, ITALIC_NONE, LINESTYLE_NONE, OUStringToOString(), PITCH_FIXED, PITCH_VARIABLE, pWMF, STRIKEOUT_NONE, UpdateRecordHeader(), W_ANSI_CHARSET, W_DEFAULT_PITCH, W_FF_DECORATIVE, W_FF_DONTCARE, W_FF_MODERN, W_FF_ROMAN, W_FF_SCRIPT, W_FF_SWISS, W_FIXED_PITCH, W_FW_BLACK, W_FW_BOLD, W_FW_DONTCARE, W_FW_LIGHT, W_FW_MEDIUM, W_FW_NORMAL, W_FW_SEMIBOLD, W_FW_THIN, W_FW_ULTRABOLD, W_FW_ULTRALIGHT, W_LF_FACESIZE, W_META_CREATEFONTINDIRECT, W_VARIABLE_PITCH, WEIGHT_BLACK, WEIGHT_BOLD, WEIGHT_LIGHT, WEIGHT_MEDIUM, WEIGHT_NORMAL, WEIGHT_SEMIBOLD, WEIGHT_SEMILIGHT, WEIGHT_THIN, WEIGHT_ULTRABOLD, WEIGHT_ULTRALIGHT, Size::Width(), SvStream::WriteChar(), WriteHeightWidth(), SvStream::WriteInt16(), WriteRecordHeader(), SvStream::WriteUChar(), and SvStream::WriteUInt16().
Referenced by CreateSelectDeleteFont().
|
private |
Definition at line 371 of file wmfwr.cxx.
References COL_TRANSPARENT(), Dash, NONE, pWMF, W_META_CREATEPENINDIRECT, W_PS_DASH, W_PS_DASHDOT, W_PS_DASHDOTDOT, W_PS_DOT, W_PS_NULL, W_PS_SOLID, WriteColor(), WriteRecordHeader(), WriteSize(), and SvStream::WriteUInt16().
Referenced by CreateSelectDeletePen().
|
private |
Definition at line 407 of file wmfwr.cxx.
References pWMF, W_META_DELETEOBJECT, WriteRecordHeader(), and SvStream::WriteUInt16().
Referenced by CreateSelectDeleteBrush(), CreateSelectDeleteFont(), and CreateSelectDeletePen().
|
private |
Definition at line 413 of file wmfwr.cxx.
References W_META_ELLIPSE, WriteRecordHeader(), and WriteRectangle().
Referenced by WriteRecords().
|
private |
Definition at line 419 of file wmfwr.cxx.
References pData, pWMF, W_META_ESCAPE, W_MFCOMMENT, SvStream::WriteBytes(), WriteRecordHeader(), SvStream::WriteUChar(), SvStream::WriteUInt16(), and SvStream::WriteUInt32().
Referenced by WMFRecord_Escape_Unicode().
|
private |
Definition at line 445 of file wmfwr.cxx.
References aSrcFillColor, aSrcFont, aSrcLineColor, aSrcLineInfo, aSrcMapMode, aSrcTextColor, aTargetMapMode, COL_TRANSPARENT(), KernArraySpan::empty(), getBestMSEncodingByChar(), vcl::Font::GetCharSet(), SvMemoryStream::GetData(), vcl::Font::GetFamilyName(), OutputDevice::GetTextOutlines(), i, IsOpenSymbol(), OutputDevice::LogicToLogic(), tools::PolyPolygon::Move(), OUStringToOString(), PRIVATE_ESCAPE_UNICODE, pVirDev, SetAllAttr(), vcl::Font::SetCharSet(), OutputDevice::SetFont(), SetLineAndFillAttr(), WMFRecord_Escape(), WMFRecord_PolyPolygon(), SvStream::WriteInt32(), SvStream::WriteUInt16(), SvStream::WriteUInt32(), Point::X(), and Point::Y().
Referenced by WriteRecords().
|
private |
Definition at line 548 of file wmfwr.cxx.
References aSrcFont, KernArraySpan::empty(), vcl::Font::GetCharSet(), OUStringToOString(), TrueExtTextOut(), and WMFRecord_TextOut().
Referenced by WriteRecords().
|
private |
Definition at line 845 of file wmfwr.cxx.
References W_META_INTERSECTCLIPRECT, WriteRecordHeader(), and WriteRectangle().
Referenced by WriteRecords().
|
private |
Definition at line 600 of file wmfwr.cxx.
References W_META_LINETO, WritePointYX(), and WriteRecordHeader().
Referenced by WriteRecords().
|
private |
Definition at line 606 of file wmfwr.cxx.
References W_META_MOVETO, WritePointYX(), and WriteRecordHeader().
Referenced by WriteRecords().
|
private |
Definition at line 612 of file wmfwr.cxx.
References W_META_PIE, WritePointYX(), WriteRecordHeader(), and WriteRectangle().
Referenced by WriteRecords().
|
private |
Definition at line 620 of file wmfwr.cxx.
References tools::Polygon::AdaptiveSubdivide(), tools::Polygon::GetPoint(), tools::Polygon::GetSize(), tools::Polygon::HasFlags(), i, pWMF, W_META_POLYGON, WritePointXY(), WriteRecordHeader(), and SvStream::WriteUInt16().
Referenced by HandleLineInfoPolyPolygons(), and WriteRecords().
|
private |
Definition at line 634 of file wmfwr.cxx.
References tools::Polygon::AdaptiveSubdivide(), tools::Polygon::GetPoint(), tools::Polygon::GetSize(), tools::Polygon::HasFlags(), i, pWMF, W_META_POLYLINE, WritePointXY(), WriteRecordHeader(), and SvStream::WriteUInt16().
Referenced by HandleLineInfoPolyPolygons(), and WriteRecords().
|
private |
Definition at line 648 of file wmfwr.cxx.
References tools::PolyPolygon::AdaptiveSubdivide(), tools::PolyPolygon::Count(), tools::PolyPolygon::GetObject(), tools::Polygon::GetPoint(), tools::Polygon::GetSize(), i, nCount, pWMF, UpdateRecordHeader(), W_META_POLYPOLYGON, WritePointXY(), WriteRecordHeader(), and SvStream::WriteUInt16().
Referenced by WMFRecord_Escape_Unicode(), and WriteRecords().
|
private |
Definition at line 675 of file wmfwr.cxx.
References W_META_RECTANGLE, WriteRecordHeader(), and WriteRectangle().
Referenced by WriteRecords().
|
private |
Definition at line 681 of file wmfwr.cxx.
References pWMF, W_META_RESTOREDC, SvStream::WriteInt16(), and WriteRecordHeader().
Referenced by WriteRecords().
|
private |
Definition at line 687 of file wmfwr.cxx.
References W_META_ROUNDRECT, WriteHeightWidth(), WriteRecordHeader(), and WriteRectangle().
Referenced by WriteRecords().
|
private |
Definition at line 694 of file wmfwr.cxx.
References W_META_SAVEDC, and WriteRecordHeader().
Referenced by WriteRecords().
|
private |
Definition at line 699 of file wmfwr.cxx.
References pWMF, W_META_SELECTOBJECT, WriteRecordHeader(), and SvStream::WriteUInt16().
Referenced by CreateSelectDeleteBrush(), CreateSelectDeleteFont(), and CreateSelectDeletePen().
|
private |
Definition at line 705 of file wmfwr.cxx.
References pWMF, W_META_SETBKMODE, W_OPAQUE, W_TRANSPARENT, WriteRecordHeader(), and SvStream::WriteUInt16().
Referenced by WriteWMF().
Definition at line 718 of file wmfwr.cxx.
References W_META_SETPIXEL, WriteColor(), WritePointYX(), and WriteRecordHeader().
Referenced by WriteRecords().
|
private |
Definition at line 725 of file wmfwr.cxx.
References Invert, pWMF, W_META_SETROP2, W_R2_COPYPEN, W_R2_NOT, W_R2_XORPEN, WriteRecordHeader(), SvStream::WriteUInt16(), and Xor.
Referenced by SetLineAndFillAttr(), and WriteWMF().
|
private |
Definition at line 712 of file wmfwr.cxx.
References pWMF, W_META_SETSTRETCHBLTMODE, WriteRecordHeader(), and SvStream::WriteUInt16().
Referenced by WriteRecords().
|
private |
Definition at line 738 of file wmfwr.cxx.
References ALIGN_BOTTOM, ALIGN_TOP, pWMF, W_META_SETTEXTALIGN, W_TA_BASELINE, W_TA_BOTTOM, W_TA_NOUPDATECP, W_TA_TOP, WriteRecordHeader(), and SvStream::WriteUInt16().
Referenced by SetAllAttr(), and WriteWMF().
|
private |
Definition at line 754 of file wmfwr.cxx.
References W_META_SETTEXTCOLOR, WriteColor(), and WriteRecordHeader().
Referenced by SetAllAttr(), and WriteWMF().
|
private |
Definition at line 760 of file wmfwr.cxx.
References W_META_SETWINDOWEXT, WriteHeightWidth(), and WriteRecordHeader().
Referenced by WriteWMF().
|
private |
Definition at line 766 of file wmfwr.cxx.
References W_META_SETWINDOWORG, WritePointYX(), and WriteRecordHeader().
Referenced by WriteWMF().
|
private |
Definition at line 772 of file wmfwr.cxx.
References eSrcRasterOp, Bitmap::GetSizePixel(), Size::Height(), Invert, MayCallback(), nActBitmapPercent, nWrittenBitmaps, pWMF, SvStream::Seek(), SvStream::Tell(), UpdateRecordHeader(), W_DSTINVERT, W_META_STRETCHDIB, W_SRCCOPY, W_SRCINVERT, Size::Width(), WriteDIB(), WriteHeightWidth(), SvStream::WriteInt32(), WritePointYX(), WriteRecordHeader(), SvStream::WriteUInt32(), and Xor.
Referenced by WriteRecords().
|
private |
Definition at line 827 of file wmfwr.cxx.
References aSrcFont, vcl::Font::GetCharSet(), OUStringToOString(), and TrueTextOut().
Referenced by WMFRecord_ExtTextOut(), and WriteRecords().
|
private |
Definition at line 251 of file wmfwr.cxx.
References Color::GetBlue(), Color::GetGreen(), Color::GetRed(), pWMF, and SvStream::WriteUChar().
Referenced by WMFRecord_CreateBrushIndirect(), WMFRecord_CreatePenIndirect(), WMFRecord_SetPixel(), and WMFRecord_SetTextColor().
|
private |
Definition at line 1827 of file wmfwr.cxx.
References nPos, SvStream::ReadUInt16(), SAL_MAX_UINT32, SvStream::Seek(), SvStream::Tell(), EMFWriter::WriteEMF(), and WriteEMFRecord().
Referenced by WriteWMF().
|
private |
Definition at line 1879 of file wmfwr.cxx.
References SvMemoryStream::GetData(), pWMF, SvStream::SeekRel(), SvStream::Tell(), UpdateRecordHeader(), W_META_ESCAPE, W_MFCOMMENT, SvStream::WriteBytes(), WriteRecordHeader(), SvStream::WriteUInt16(), and SvStream::WriteUInt32().
Referenced by WriteEmbeddedEMF().
|
private |
Definition at line 1625 of file wmfwr.cxx.
References aTargetMapMode, aTargetSize, Size::Height(), OutputDevice::LogicToLogic(), MAXOBJECTHANDLES, nMetafileHeaderPos, nValue, pWMF, SvStream::Tell(), Size::Width(), SvStream::WriteUInt16(), and SvStream::WriteUInt32().
Referenced by WriteWMF().
|
private |
Definition at line 239 of file wmfwr.cxx.
References aSrcMapMode, aTargetMapMode, Size::Height(), OutputDevice::LogicToLogic(), pWMF, Size::Width(), and SvStream::WriteInt16().
Referenced by WMFRecord_CreateFontIndirect(), WMFRecord_RoundRect(), WMFRecord_SetWindowExt(), and WMFRecord_StretchDIB().
|
private |
Definition at line 215 of file wmfwr.cxx.
References aSrcMapMode, aTargetMapMode, OutputDevice::LogicToLogic(), pWMF, SvStream::WriteInt16(), Point::X(), and Point::Y().
Referenced by WMFRecord_Polygon(), WMFRecord_PolyLine(), and WMFRecord_PolyPolygon().
|
private |
Definition at line 221 of file wmfwr.cxx.
References aSrcMapMode, aTargetMapMode, OutputDevice::LogicToLogic(), pWMF, SvStream::WriteInt16(), Point::X(), and Point::Y().
Referenced by TrueExtTextOut(), TrueTextOut(), WMFRecord_Arc(), WMFRecord_Chord(), WMFRecord_LineTo(), WMFRecord_MoveTo(), WMFRecord_Pie(), WMFRecord_SetPixel(), WMFRecord_SetWindowOrg(), WMFRecord_StretchDIB(), and WriteRectangle().
|
private |
Definition at line 256 of file wmfwr.cxx.
References nActRecordPos, nMaxRecordSize, nType, pWMF, SvStream::Tell(), SvStream::WriteUInt16(), and SvStream::WriteUInt32().
Referenced by TrueExtTextOut(), TrueTextOut(), WMFRecord_Arc(), WMFRecord_Chord(), WMFRecord_CreateBrushIndirect(), WMFRecord_CreateFontIndirect(), WMFRecord_CreatePenIndirect(), WMFRecord_DeleteObject(), WMFRecord_Ellipse(), WMFRecord_Escape(), WMFRecord_IntersectClipRect(), WMFRecord_LineTo(), WMFRecord_MoveTo(), WMFRecord_Pie(), WMFRecord_Polygon(), WMFRecord_PolyLine(), WMFRecord_PolyPolygon(), WMFRecord_Rectangle(), WMFRecord_RestoreDC(), WMFRecord_RoundRect(), WMFRecord_SaveDC(), WMFRecord_SelectObject(), WMFRecord_SetBkMode(), WMFRecord_SetPixel(), WMFRecord_SetROP2(), WMFRecord_SetStretchBltMode(), WMFRecord_SetTextAlign(), WMFRecord_SetTextColor(), WMFRecord_SetWindowExt(), WMFRecord_SetWindowOrg(), WMFRecord_StretchDIB(), WriteEMFRecord(), and WriteWMF().
|
private |
Definition at line 1007 of file wmfwr.cxx.
References WMFWriterAttrStackMember::aClipRegion, Gradient::AddGradientActions(), OutputDevice::AddHatchActions(), aDstClipRegion, aDstFillColor, aDstFont, aDstLineColor, aDstLineInfo, aDstTextColor, WMFWriterAttrStackMember::aFillColor, WMFWriterAttrStackMember::aFont, ALIGN_BASELINE, WMFWriterAttrStackMember::aLineColor, WMFWriterAttrStackMember::aLineInfo, WMFWriterAttrStackMember::aMapMode, basegfx::B2DPolygon::append(), ARC, aSrcClipRegion, aSrcFillColor, aSrcFont, aSrcLineColor, aSrcLineInfo, aSrcMapMode, aSrcTextColor, WMFWriterAttrStackMember::aTextColor, vcl::text::BiDiRtl, BMP, BMPEX, BMPEXSCALE, BMPEXSCALEPART, BMPSCALE, BMPSCALEPART, bStatus, CHORD, KernArray::clear(), CLIPREGION, vcl::CLIPREGION, COL_TRANSPARENT(), COL_WHITE(), COMMENT, Bitmap::Crop(), BitmapEx::Crop(), vcl::text::Default, eDstROP2, eDstTextAlign, ELLIPSE, EPS, WMFWriterAttrStackMember::eRasterOp, eSrcHorTextAlign, eSrcRasterOp, eSrcTextAlign, WMFWriterAttrStackMember::eTextAlign, FILLCOLOR, vcl::FILLCOLOR, FLOATTRANSPARENT, FONT, vcl::FONT, FRound(), GDIMetaFile::GetAction(), GDIMetaFile::GetActionSize(), vcl::Font::GetAlignment(), BitmapEx::GetAlphaMask(), tools::Polygon::getB2DPolygon(), MetaBmpAction::GetBitmap(), MetaBmpScaleAction::GetBitmap(), MetaBmpScalePartAction::GetBitmap(), BitmapEx::GetBitmap(), MetaBmpExAction::GetBitmapEx(), MetaBmpExScaleAction::GetBitmapEx(), MetaBmpExScalePartAction::GetBitmapEx(), vcl::Font::GetCharSet(), vcl::Font::GetColor(), MetaPixelAction::GetColor(), MetaLineColorAction::GetColor(), MetaFillColorAction::GetColor(), MetaTextColorAction::GetColor(), MetaTextFillColorAction::GetColor(), Wallpaper::GetColor(), Fraction::GetDenominator(), MetaBmpScalePartAction::GetDestPoint(), MetaBmpExScalePartAction::GetDestPoint(), MetaBmpScalePartAction::GetDestSize(), MetaBmpExScalePartAction::GetDestSize(), MetaTextArrayAction::GetDXArray(), MetaLineAction::GetEndPoint(), MetaArcAction::GetEndPoint(), MetaPieAction::GetEndPoint(), MetaChordAction::GetEndPoint(), SvStream::GetError(), MetaPushAction::GetFlags(), MetaFontAction::GetFont(), MetaFloatTransparentAction::GetGDIMetaFile(), MetaGradientAction::GetGradient(), MetaHatchAction::GetHatch(), MetaRoundRectAction::GetHorzRound(), MetaTextAction::GetIndex(), MetaTextArrayAction::GetIndex(), MetaStretchTextAction::GetIndex(), MetaTextAction::GetLen(), MetaTextArrayAction::GetLen(), MetaStretchTextAction::GetLen(), MetaLineAction::GetLineInfo(), MetaPolyLineAction::GetLineInfo(), MetaMapModeAction::GetMapMode(), MapMode::GetMapUnit(), Fraction::GetNumerator(), MapMode::GetOrigin(), MetaPixelAction::GetPoint(), MetaPointAction::GetPoint(), MetaTextAction::GetPoint(), MetaTextArrayAction::GetPoint(), MetaStretchTextAction::GetPoint(), MetaBmpAction::GetPoint(), MetaBmpScaleAction::GetPoint(), MetaBmpExAction::GetPoint(), MetaBmpExScaleAction::GetPoint(), MetaFloatTransparentAction::GetPoint(), MetaEPSAction::GetPoint(), MetaPolyLineAction::GetPolygon(), MetaPolygonAction::GetPolygon(), MetaPolyPolygonAction::GetPolyPolygon(), MetaHatchAction::GetPolyPolygon(), GDIMetaFile::GetPrefMapMode(), GDIMetaFile::GetPrefSize(), MetaRasterOpAction::GetRasterOp(), MetaRectAction::GetRect(), MetaRoundRectAction::GetRect(), MetaEllipseAction::GetRect(), MetaArcAction::GetRect(), MetaPieAction::GetRect(), MetaChordAction::GetRect(), MetaTextRectAction::GetRect(), MetaGradientAction::GetRect(), MetaWallpaperAction::GetRect(), MetaISectRectClipRegionAction::GetRect(), MapMode::GetScaleX(), MapMode::GetScaleY(), tools::Polygon::GetSize(), MetaBmpScaleAction::GetSize(), MetaBmpExScaleAction::GetSize(), MetaFloatTransparentAction::GetSize(), MetaEPSAction::GetSize(), Bitmap::GetSizePixel(), MetaBmpScalePartAction::GetSrcPoint(), MetaBmpExScalePartAction::GetSrcPoint(), MetaBmpScalePartAction::GetSrcSize(), MetaBmpExScalePartAction::GetSrcSize(), MetaLineAction::GetStartPoint(), MetaArcAction::GetStartPoint(), MetaPieAction::GetStartPoint(), MetaChordAction::GetStartPoint(), MetaEPSAction::GetSubstitute(), MetaTextAction::GetText(), MetaTextArrayAction::GetText(), MetaStretchTextAction::GetText(), MetaTextRectAction::GetText(), MetaTextAlignAction::GetTextAlign(), OutputDevice::GetTextArray(), MetaAction::GetType(), MetaRoundRectAction::GetVertRound(), MetaWallpaperAction::GetWallpaper(), MetaStretchTextAction::GetWidth(), GRADIENT, HandleLineInfoPolyPolygons(), HATCH, Size::Height(), i, ISECTRECTCLIPREGION, AlphaMask::IsEmpty(), MetaLineColorAction::IsSetting(), MetaFillColorAction::IsSetting(), MetaTextFillColorAction::IsSetting(), LAYOUTMODE, LINE, LINECOLOR, vcl::LINECOLOR, MAPMODE, vcl::MAPMODE, MayCallback(), GDIMetaFile::Move(), nCount, WMFWriterAttrStackMember::nFlags, nWrittenActions, pAttrStack, PIE, PIXEL, POINT, POLYGON, POLYLINE, POLYPOLYGON, POP, WMFWriterAttrStackMember::pSucc, PUSH, pVirDev, pWMF, RASTEROP, vcl::RASTEROP, RECT, Bitmap::Replace(), ROUNDRECT, GDIMetaFile::Scale(), KernArray::set(), vcl::Font::SetAlignment(), SetAllAttr(), vcl::Font::SetCharSet(), vcl::Font::SetColor(), vcl::Font::SetFillColor(), OutputDevice::SetFont(), SetLineAndFillAttr(), MapMode::SetOrigin(), MapMode::SetScaleX(), MapMode::SetScaleY(), Point::setX(), Point::setY(), STRETCHTEXT, TEXT, TEXTALIGN, vcl::TEXTALIGN, TEXTARRAY, TEXTCOLOR, vcl::TEXTCOLOR, TEXTFILLCOLOR, TEXTLANGUAGE, vcl::text::TextOriginLeft, vcl::text::TextOriginRight, TEXTRECT, tools::Rectangle::TopLeft(), Transparent, W_SRCAND, W_SRCPAINT, W_TA_RIGHT, W_TA_RTLREADING, WALLPAPER, Size::Width(), WMFRecord_Arc(), WMFRecord_Chord(), WMFRecord_Ellipse(), WMFRecord_Escape_Unicode(), WMFRecord_ExtTextOut(), WMFRecord_IntersectClipRect(), WMFRecord_LineTo(), WMFRecord_MoveTo(), WMFRecord_Pie(), WMFRecord_Polygon(), WMFRecord_PolyLine(), WMFRecord_PolyPolygon(), WMFRecord_Rectangle(), WMFRecord_RestoreDC(), WMFRecord_RoundRect(), WMFRecord_SaveDC(), WMFRecord_SetPixel(), WMFRecord_SetStretchBltMode(), WMFRecord_StretchDIB(), WMFRecord_TextOut(), WriteRecords(), Point::X(), and Point::Y().
Referenced by WriteRecords(), and WriteWMF().
|
private |
Definition at line 245 of file wmfwr.cxx.
References tools::Rectangle::Bottom(), tools::Rectangle::Right(), tools::Rectangle::TopLeft(), and WritePointYX().
Referenced by WMFRecord_Arc(), WMFRecord_Chord(), WMFRecord_Ellipse(), WMFRecord_IntersectClipRect(), WMFRecord_Pie(), WMFRecord_Rectangle(), and WMFRecord_RoundRect().
|
private |
Definition at line 233 of file wmfwr.cxx.
References aSrcMapMode, aTargetMapMode, Size::Height(), OutputDevice::LogicToLogic(), pWMF, Size::Width(), and SvStream::WriteInt16().
Referenced by WMFRecord_CreatePenIndirect().
bool WMFWriter::WriteWMF | ( | const GDIMetaFile & | rMTF, |
SvStream & | rTargetStream, | ||
FilterConfigItem const * | pFilterConfigItem, | ||
bool | bPlaceable | ||
) |
Definition at line 1677 of file wmfwr.cxx.
References aDstClipRegion, aDstFillColor, aDstFont, aDstLineColor, aDstLineInfo, aDstTextColor, ALIGN_BASELINE, aMap, aSrcClipRegion, aSrcFillColor, aSrcFont, aSrcLineColor, aSrcMapMode, aSrcTextColor, aTargetMapMode, aTargetSize, bEmbedEMF, bHandleAllocated, bStatus, CalcSaveTargetMapMode(), COL_BLACK(), COL_WHITE(), CountActionsAndBitmaps(), VclPtr< reference_type >::Create(), CreateSelectDeleteBrush(), CreateSelectDeleteFont(), CreateSelectDeletePen(), VclPtr< reference_type >::disposeAndClear(), eDstHorTextAlign, eDstROP2, eDstTextAlign, eSrcHorTextAlign, eSrcRasterOp, eSrcTextAlign, GetExtendedTextEncoding(), FilterConfigItem::GetFilterData(), GDIMetaFile::GetPrefMapMode(), GDIMetaFile::GetPrefSize(), FilterConfigItem::GetStatusIndicator(), Size::Height(), OutputDevice::LogicToLogic(), OutputDevice::LogicToPixel(), nActBitmapPercent, nDstBrushHandle, nDstFontHandle, nDstPenHandle, nLastPercent, nMaxRecordSize, nNumberOfActions, nNumberOfBitmaps, nWrittenActions, nWrittenBitmaps, OverPaint, pAttrStack, WMFWriterAttrStackMember::pSucc, pVirDev, pWMF, vcl::Font::SetAlignment(), vcl::Font::SetCharSet(), vcl::Font::SetColor(), SvStream::SetEndian(), Size::setHeight(), OutputDevice::SetMapMode(), MapMode::SetScaleX(), MapMode::SetScaleY(), Size::setWidth(), UpdateHeader(), W_TA_LEFT, Size::Width(), WMFRecord_SetBkMode(), WMFRecord_SetROP2(), WMFRecord_SetTextAlign(), WMFRecord_SetTextColor(), WMFRecord_SetWindowExt(), WMFRecord_SetWindowOrg(), WriteEmbeddedEMF(), WriteHeader(), WriteRecordHeader(), WriteRecords(), and xStatusIndicator.
Referenced by ConvertGDIMetaFileToWMF(), and WriteWindowMetafileBits().
|
private |
Definition at line 94 of file wmfwr.hxx.
Referenced by WriteRecords(), and WriteWMF().
|
private |
Definition at line 85 of file wmfwr.hxx.
Referenced by SetLineAndFillAttr(), WriteRecords(), and WriteWMF().
|
private |
Definition at line 90 of file wmfwr.hxx.
Referenced by SetAllAttr(), WriteRecords(), and WriteWMF().
|
private |
Definition at line 84 of file wmfwr.hxx.
Referenced by SetLineAndFillAttr(), WriteRecords(), and WriteWMF().
|
private |
Definition at line 87 of file wmfwr.hxx.
Referenced by SetLineAndFillAttr(), WriteRecords(), and WriteWMF().
|
private |
Definition at line 86 of file wmfwr.hxx.
Referenced by SetAllAttr(), WriteRecords(), and WriteWMF().
|
private |
Definition at line 78 of file wmfwr.hxx.
Referenced by WriteRecords(), and WriteWMF().
|
private |
Definition at line 71 of file wmfwr.hxx.
Referenced by HandleLineInfoPolyPolygons(), SetLineAndFillAttr(), WMFRecord_Escape_Unicode(), WriteRecords(), and WriteWMF().
|
private |
Definition at line 76 of file wmfwr.hxx.
Referenced by SetAllAttr(), TrueExtTextOut(), WMFRecord_Escape_Unicode(), WMFRecord_ExtTextOut(), WMFRecord_TextOut(), WriteRecords(), and WriteWMF().
|
private |
Definition at line 70 of file wmfwr.hxx.
Referenced by HandleLineInfoPolyPolygons(), SetLineAndFillAttr(), WMFRecord_Escape_Unicode(), WriteRecords(), and WriteWMF().
|
private |
Definition at line 73 of file wmfwr.hxx.
Referenced by HandleLineInfoPolyPolygons(), SetLineAndFillAttr(), WMFRecord_Escape_Unicode(), and WriteRecords().
|
private |
Definition at line 77 of file wmfwr.hxx.
Referenced by CalcSaveTargetMapMode(), ScaleWidth(), WMFRecord_Escape_Unicode(), WriteHeightWidth(), WritePointXY(), WritePointYX(), WriteRecords(), WriteSize(), and WriteWMF().
|
private |
Definition at line 72 of file wmfwr.hxx.
Referenced by SetAllAttr(), WMFRecord_Escape_Unicode(), WriteRecords(), and WriteWMF().
|
private |
Definition at line 62 of file wmfwr.hxx.
Referenced by ScaleWidth(), WMFRecord_Escape_Unicode(), WriteHeader(), WriteHeightWidth(), WritePointXY(), WritePointYX(), WriteSize(), and WriteWMF().
|
private |
Definition at line 63 of file wmfwr.hxx.
Referenced by WriteHeader(), and WriteWMF().
|
private |
Definition at line 108 of file wmfwr.hxx.
Referenced by WriteWMF().
|
private |
Definition at line 95 of file wmfwr.hxx.
Referenced by AllocHandle(), FreeHandle(), and WriteWMF().
|
private |
Definition at line 54 of file wmfwr.hxx.
Referenced by AllocHandle(), WriteRecords(), and WriteWMF().
|
private |
Definition at line 92 of file wmfwr.hxx.
Referenced by SetAllAttr(), and WriteWMF().
|
private |
Definition at line 88 of file wmfwr.hxx.
Referenced by SetLineAndFillAttr(), WriteRecords(), and WriteWMF().
|
private |
Definition at line 89 of file wmfwr.hxx.
Referenced by SetAllAttr(), WriteRecords(), and WriteWMF().
|
private |
Definition at line 81 of file wmfwr.hxx.
Referenced by SetAllAttr(), WriteRecords(), and WriteWMF().
|
private |
Definition at line 74 of file wmfwr.hxx.
Referenced by SetLineAndFillAttr(), WMFRecord_StretchDIB(), WriteRecords(), and WriteWMF().
|
private |
Definition at line 75 of file wmfwr.hxx.
Referenced by SetAllAttr(), WriteRecords(), and WriteWMF().
|
private |
Definition at line 106 of file wmfwr.hxx.
Referenced by MayCallback(), WMFRecord_StretchDIB(), and WriteWMF().
|
private |
Definition at line 67 of file wmfwr.hxx.
Referenced by UpdateRecordHeader(), and WriteRecordHeader().
|
private |
Definition at line 96 of file wmfwr.hxx.
Referenced by CreateSelectDeleteBrush(), and WriteWMF().
|
private |
Definition at line 96 of file wmfwr.hxx.
Referenced by CreateSelectDeleteFont(), and WriteWMF().
|
private |
Definition at line 96 of file wmfwr.hxx.
Referenced by CreateSelectDeletePen(), and WriteWMF().
|
private |
Definition at line 56 of file wmfwr.hxx.
Referenced by MayCallback(), and WriteWMF().
|
private |
Definition at line 66 of file wmfwr.hxx.
Referenced by UpdateHeader(), UpdateRecordHeader(), WriteRecordHeader(), and WriteWMF().
|
private |
Definition at line 65 of file wmfwr.hxx.
Referenced by UpdateHeader(), and WriteHeader().
|
private |
Definition at line 102 of file wmfwr.hxx.
Referenced by CountActionsAndBitmaps(), MayCallback(), and WriteWMF().
|
private |
Definition at line 103 of file wmfwr.hxx.
Referenced by CountActionsAndBitmaps(), MayCallback(), and WriteWMF().
|
private |
Definition at line 104 of file wmfwr.hxx.
Referenced by MayCallback(), WriteRecords(), and WriteWMF().
|
private |
Definition at line 105 of file wmfwr.hxx.
Referenced by MayCallback(), WMFRecord_StretchDIB(), and WriteWMF().
|
private |
Definition at line 79 of file wmfwr.hxx.
Referenced by WriteRecords(), and WriteWMF().
|
private |
Definition at line 61 of file wmfwr.hxx.
Referenced by SetAllAttr(), WMFRecord_Escape_Unicode(), WriteRecords(), and WriteWMF().
|
private |
Definition at line 60 of file wmfwr.hxx.
Referenced by TrueExtTextOut(), TrueTextOut(), UpdateHeader(), UpdateRecordHeader(), WMFRecord_CreateBrushIndirect(), WMFRecord_CreateFontIndirect(), WMFRecord_CreatePenIndirect(), WMFRecord_DeleteObject(), WMFRecord_Escape(), WMFRecord_Polygon(), WMFRecord_PolyLine(), WMFRecord_PolyPolygon(), WMFRecord_RestoreDC(), WMFRecord_SelectObject(), WMFRecord_SetBkMode(), WMFRecord_SetROP2(), WMFRecord_SetStretchBltMode(), WMFRecord_SetTextAlign(), WMFRecord_StretchDIB(), WriteColor(), WriteEMFRecord(), WriteHeader(), WriteHeightWidth(), WritePointXY(), WritePointYX(), WriteRecordHeader(), WriteRecords(), WriteSize(), and WriteWMF().
|
private |
Definition at line 58 of file wmfwr.hxx.
Referenced by MayCallback(), and WriteWMF().