LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
WMFWriter Class Reference

#include <wmfwr.hxx>

Collaboration diagram for WMFWriter:
[legend]

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)
 

Private Attributes

bool bStatus
 
sal_uLong nLastPercent
 
css::uno::Reference< css::task::XStatusIndicator > xStatusIndicator
 
SvStreampWMF
 
VclPtr< VirtualDevicepVirDev
 
MapMode aTargetMapMode
 
Size aTargetSize
 
sal_uLong nMetafileHeaderPos
 
sal_uInt32 nMaxRecordSize
 
sal_uLong nActRecordPos
 
Color aSrcLineColor
 
Color aSrcFillColor
 
Color aSrcTextColor
 
LineInfo aSrcLineInfo
 
RasterOp eSrcRasterOp
 
TextAlign eSrcTextAlign
 
vcl::Font aSrcFont
 
MapMode aSrcMapMode
 
vcl::Region aSrcClipRegion
 
WMFWriterAttrStackMemberpAttrStack
 
sal_uInt16 eSrcHorTextAlign
 
Color aDstLineColor
 
Color aDstFillColor
 
Color aDstTextColor
 
LineInfo aDstLineInfo
 
RasterOp eDstROP2
 
TextAlign eDstTextAlign
 
vcl::Font aDstFont
 
sal_uInt16 eDstHorTextAlign
 
vcl::Region aDstClipRegion
 
bool bHandleAllocated [MAXOBJECTHANDLES]
 
sal_uInt16 nDstPenHandle
 
sal_uInt16 nDstFontHandle
 
sal_uInt16 nDstBrushHandle
 
sal_uLong nNumberOfActions
 
sal_uLong nNumberOfBitmaps
 
sal_uLong nWrittenActions
 
sal_uLong nWrittenBitmaps
 
sal_uLong nActBitmapPercent
 
bool bEmbedEMF
 

Detailed Description

Definition at line 50 of file wmfwr.hxx.

Constructor & Destructor Documentation

◆ WMFWriter()

WMFWriter::WMFWriter ( )

Definition at line 138 of file wmfwr.cxx.

References ALIGN_BASELINE, and OverPaint.

Member Function Documentation

◆ AllocHandle()

sal_uInt16 WMFWriter::AllocHandle ( )
private

◆ CalcSaveTargetMapMode()

sal_uInt16 WMFWriter::CalcSaveTargetMapMode ( MapMode rMapMode,
const Size rPrefSize 
)
private

◆ CountActionsAndBitmaps()

void WMFWriter::CountActionsAndBitmaps ( const GDIMetaFile rMTF)
private

◆ CreateSelectDeleteBrush()

void WMFWriter::CreateSelectDeleteBrush ( const Color rColor)
private

◆ CreateSelectDeleteFont()

void WMFWriter::CreateSelectDeleteFont ( const vcl::Font rFont)
private

◆ CreateSelectDeletePen()

void WMFWriter::CreateSelectDeletePen ( const Color rColor,
const LineInfo rLineInfo 
)
private

◆ FreeHandle()

void WMFWriter::FreeHandle ( sal_uInt16  nObjectHandle)
private

◆ HandleLineInfoPolyPolygons()

void WMFWriter::HandleLineInfoPolyPolygons ( const LineInfo rInfo,
const basegfx::B2DPolygon rLinePolygon 
)
private

◆ MayCallback()

void WMFWriter::MayCallback ( )
private

◆ ScaleWidth()

sal_Int32 WMFWriter::ScaleWidth ( sal_Int32  nDX)
private

Definition at line 227 of file wmfwr.cxx.

References aSrcMapMode, aTargetMapMode, OutputDevice::LogicToLogic(), and Size::Width().

Referenced by TrueExtTextOut().

◆ SetAllAttr()

void WMFWriter::SetAllAttr ( )
private

◆ SetLineAndFillAttr()

void WMFWriter::SetLineAndFillAttr ( )
private

◆ TrueExtTextOut()

void WMFWriter::TrueExtTextOut ( const Point rPoint,
std::u16string_view  rString,
const OString &  rByteString,
KernArraySpan  pDXAry 
)
private

◆ TrueTextOut()

void WMFWriter::TrueTextOut ( const Point rPoint,
const OString &  rString 
)
private

◆ UpdateHeader()

void WMFWriter::UpdateHeader ( )
private

◆ UpdateRecordHeader()

void WMFWriter::UpdateRecordHeader ( )
private

◆ WMFRecord_Arc()

void WMFWriter::WMFRecord_Arc ( const tools::Rectangle rRect,
const Point rStartPt,
const Point rEndPt 
)
private

Definition at line 280 of file wmfwr.cxx.

References W_META_ARC, WritePointYX(), WriteRecordHeader(), and WriteRectangle().

Referenced by WriteRecords().

◆ WMFRecord_Chord()

void WMFWriter::WMFRecord_Chord ( const tools::Rectangle rRect,
const Point rStartPt,
const Point rEndPt 
)
private

Definition at line 288 of file wmfwr.cxx.

References W_META_CHORD, WritePointYX(), WriteRecordHeader(), and WriteRectangle().

Referenced by WriteRecords().

◆ WMFRecord_CreateBrushIndirect()

void WMFWriter::WMFRecord_CreateBrushIndirect ( const Color rColor)
private

◆ WMFRecord_CreateFontIndirect()

void WMFWriter::WMFRecord_CreateFontIndirect ( const vcl::Font rFont)
private

◆ WMFRecord_CreatePenIndirect()

void WMFWriter::WMFRecord_CreatePenIndirect ( const Color rColor,
const LineInfo rLineInfo 
)
private

◆ WMFRecord_DeleteObject()

void WMFWriter::WMFRecord_DeleteObject ( sal_uInt16  nObjectHandle)
private

◆ WMFRecord_Ellipse()

void WMFWriter::WMFRecord_Ellipse ( const tools::Rectangle rRect)
private

Definition at line 413 of file wmfwr.cxx.

References W_META_ELLIPSE, WriteRecordHeader(), and WriteRectangle().

Referenced by WriteRecords().

◆ WMFRecord_Escape()

void WMFWriter::WMFRecord_Escape ( sal_uInt32  nEsc,
sal_uInt32  nLen,
const sal_Int8 pData 
)
private

◆ WMFRecord_Escape_Unicode()

bool WMFWriter::WMFRecord_Escape_Unicode ( const Point rPoint,
const OUString &  rStr,
KernArraySpan  pDXAry 
)
private

◆ WMFRecord_ExtTextOut()

void WMFWriter::WMFRecord_ExtTextOut ( const Point rPoint,
std::u16string_view  rString,
KernArraySpan  pDXAry 
)
private

◆ WMFRecord_IntersectClipRect()

void WMFWriter::WMFRecord_IntersectClipRect ( const tools::Rectangle rRect)
private

Definition at line 845 of file wmfwr.cxx.

References W_META_INTERSECTCLIPRECT, WriteRecordHeader(), and WriteRectangle().

Referenced by WriteRecords().

◆ WMFRecord_LineTo()

void WMFWriter::WMFRecord_LineTo ( const Point rPoint)
private

Definition at line 600 of file wmfwr.cxx.

References W_META_LINETO, WritePointYX(), and WriteRecordHeader().

Referenced by WriteRecords().

◆ WMFRecord_MoveTo()

void WMFWriter::WMFRecord_MoveTo ( const Point rPoint)
private

Definition at line 606 of file wmfwr.cxx.

References W_META_MOVETO, WritePointYX(), and WriteRecordHeader().

Referenced by WriteRecords().

◆ WMFRecord_Pie()

void WMFWriter::WMFRecord_Pie ( const tools::Rectangle rRect,
const Point rStartPt,
const Point rEndPt 
)
private

Definition at line 612 of file wmfwr.cxx.

References W_META_PIE, WritePointYX(), WriteRecordHeader(), and WriteRectangle().

Referenced by WriteRecords().

◆ WMFRecord_Polygon()

void WMFWriter::WMFRecord_Polygon ( const tools::Polygon rPoly)
private

◆ WMFRecord_PolyLine()

void WMFWriter::WMFRecord_PolyLine ( const tools::Polygon rPoly)
private

◆ WMFRecord_PolyPolygon()

void WMFWriter::WMFRecord_PolyPolygon ( const tools::PolyPolygon rPolyPoly)
private

◆ WMFRecord_Rectangle()

void WMFWriter::WMFRecord_Rectangle ( const tools::Rectangle rRect)
private

Definition at line 675 of file wmfwr.cxx.

References W_META_RECTANGLE, WriteRecordHeader(), and WriteRectangle().

Referenced by WriteRecords().

◆ WMFRecord_RestoreDC()

void WMFWriter::WMFRecord_RestoreDC ( )
private

Definition at line 681 of file wmfwr.cxx.

References pWMF, W_META_RESTOREDC, SvStream::WriteInt16(), and WriteRecordHeader().

Referenced by WriteRecords().

◆ WMFRecord_RoundRect()

void WMFWriter::WMFRecord_RoundRect ( const tools::Rectangle rRect,
tools::Long  nHorzRound,
tools::Long  nVertRound 
)
private

Definition at line 687 of file wmfwr.cxx.

References W_META_ROUNDRECT, WriteHeightWidth(), WriteRecordHeader(), and WriteRectangle().

Referenced by WriteRecords().

◆ WMFRecord_SaveDC()

void WMFWriter::WMFRecord_SaveDC ( )
private

Definition at line 694 of file wmfwr.cxx.

References W_META_SAVEDC, and WriteRecordHeader().

Referenced by WriteRecords().

◆ WMFRecord_SelectObject()

void WMFWriter::WMFRecord_SelectObject ( sal_uInt16  nObjectHandle)
private

◆ WMFRecord_SetBkMode()

void WMFWriter::WMFRecord_SetBkMode ( bool  bTransparent)
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().

◆ WMFRecord_SetPixel()

void WMFWriter::WMFRecord_SetPixel ( const Point rPoint,
const Color rColor 
)
private

Definition at line 718 of file wmfwr.cxx.

References W_META_SETPIXEL, WriteColor(), WritePointYX(), and WriteRecordHeader().

Referenced by WriteRecords().

◆ WMFRecord_SetROP2()

void WMFWriter::WMFRecord_SetROP2 ( RasterOp  eROP)
private

◆ WMFRecord_SetStretchBltMode()

void WMFWriter::WMFRecord_SetStretchBltMode ( )
private

Definition at line 712 of file wmfwr.cxx.

References pWMF, W_META_SETSTRETCHBLTMODE, WriteRecordHeader(), and SvStream::WriteUInt16().

Referenced by WriteRecords().

◆ WMFRecord_SetTextAlign()

void WMFWriter::WMFRecord_SetTextAlign ( TextAlign  eFontAlign,
sal_uInt16  eHorTextAlign 
)
private

◆ WMFRecord_SetTextColor()

void WMFWriter::WMFRecord_SetTextColor ( const Color rColor)
private

Definition at line 754 of file wmfwr.cxx.

References W_META_SETTEXTCOLOR, WriteColor(), and WriteRecordHeader().

Referenced by SetAllAttr(), and WriteWMF().

◆ WMFRecord_SetWindowExt()

void WMFWriter::WMFRecord_SetWindowExt ( const Size rSize)
private

Definition at line 760 of file wmfwr.cxx.

References W_META_SETWINDOWEXT, WriteHeightWidth(), and WriteRecordHeader().

Referenced by WriteWMF().

◆ WMFRecord_SetWindowOrg()

void WMFWriter::WMFRecord_SetWindowOrg ( const Point rPoint)
private

Definition at line 766 of file wmfwr.cxx.

References W_META_SETWINDOWORG, WritePointYX(), and WriteRecordHeader().

Referenced by WriteWMF().

◆ WMFRecord_StretchDIB()

void WMFWriter::WMFRecord_StretchDIB ( const Point rPoint,
const Size rSize,
const Bitmap rBitmap,
sal_uInt32  nROP = 0 
)
private

◆ WMFRecord_TextOut()

void WMFWriter::WMFRecord_TextOut ( const Point rPoint,
std::u16string_view  rString 
)
private

Definition at line 827 of file wmfwr.cxx.

References aSrcFont, vcl::Font::GetCharSet(), OUStringToOString(), and TrueTextOut().

Referenced by WMFRecord_ExtTextOut(), and WriteRecords().

◆ WriteColor()

void WMFWriter::WriteColor ( const Color rColor)
private

◆ WriteEmbeddedEMF()

void WMFWriter::WriteEmbeddedEMF ( const GDIMetaFile rMTF)
private

◆ WriteEMFRecord()

void WMFWriter::WriteEMFRecord ( SvMemoryStream rStream,
sal_uInt32  nCurSize,
sal_uInt32  nRemainingSize,
sal_uInt32  nTotalSize,
sal_uInt32  nRecCounts,
sal_uInt16  nCheckSum 
)
private

◆ WriteHeader()

void WMFWriter::WriteHeader ( bool  bPlaceable)
private

◆ WriteHeightWidth()

void WMFWriter::WriteHeightWidth ( const Size rSize)
private

◆ WritePointXY()

void WMFWriter::WritePointXY ( const Point rPoint)
private

◆ WritePointYX()

void WMFWriter::WritePointYX ( const Point rPoint)
private

◆ WriteRecordHeader()

void WMFWriter::WriteRecordHeader ( sal_uInt32  nSizeWords,
sal_uInt16  nType 
)
private

◆ WriteRecords()

void WMFWriter::WriteRecords ( const GDIMetaFile rMTF)
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().

◆ WriteRectangle()

void WMFWriter::WriteRectangle ( const tools::Rectangle rRect)
private

◆ WriteSize()

void WMFWriter::WriteSize ( const Size rSize)
private

◆ WriteWMF()

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().

Member Data Documentation

◆ aDstClipRegion

vcl::Region WMFWriter::aDstClipRegion
private

Definition at line 94 of file wmfwr.hxx.

Referenced by WriteRecords(), and WriteWMF().

◆ aDstFillColor

Color WMFWriter::aDstFillColor
private

Definition at line 85 of file wmfwr.hxx.

Referenced by SetLineAndFillAttr(), WriteRecords(), and WriteWMF().

◆ aDstFont

vcl::Font WMFWriter::aDstFont
private

Definition at line 90 of file wmfwr.hxx.

Referenced by SetAllAttr(), WriteRecords(), and WriteWMF().

◆ aDstLineColor

Color WMFWriter::aDstLineColor
private

Definition at line 84 of file wmfwr.hxx.

Referenced by SetLineAndFillAttr(), WriteRecords(), and WriteWMF().

◆ aDstLineInfo

LineInfo WMFWriter::aDstLineInfo
private

Definition at line 87 of file wmfwr.hxx.

Referenced by SetLineAndFillAttr(), WriteRecords(), and WriteWMF().

◆ aDstTextColor

Color WMFWriter::aDstTextColor
private

Definition at line 86 of file wmfwr.hxx.

Referenced by SetAllAttr(), WriteRecords(), and WriteWMF().

◆ aSrcClipRegion

vcl::Region WMFWriter::aSrcClipRegion
private

Definition at line 78 of file wmfwr.hxx.

Referenced by WriteRecords(), and WriteWMF().

◆ aSrcFillColor

Color WMFWriter::aSrcFillColor
private

◆ aSrcFont

vcl::Font WMFWriter::aSrcFont
private

◆ aSrcLineColor

Color WMFWriter::aSrcLineColor
private

◆ aSrcLineInfo

LineInfo WMFWriter::aSrcLineInfo
private

◆ aSrcMapMode

MapMode WMFWriter::aSrcMapMode
private

◆ aSrcTextColor

Color WMFWriter::aSrcTextColor
private

Definition at line 72 of file wmfwr.hxx.

Referenced by SetAllAttr(), WMFRecord_Escape_Unicode(), WriteRecords(), and WriteWMF().

◆ aTargetMapMode

MapMode WMFWriter::aTargetMapMode
private

◆ aTargetSize

Size WMFWriter::aTargetSize
private

Definition at line 63 of file wmfwr.hxx.

Referenced by WriteHeader(), and WriteWMF().

◆ bEmbedEMF

bool WMFWriter::bEmbedEMF
private

Definition at line 108 of file wmfwr.hxx.

Referenced by WriteWMF().

◆ bHandleAllocated

bool WMFWriter::bHandleAllocated[MAXOBJECTHANDLES]
private

Definition at line 95 of file wmfwr.hxx.

Referenced by AllocHandle(), FreeHandle(), and WriteWMF().

◆ bStatus

bool WMFWriter::bStatus
private

Definition at line 54 of file wmfwr.hxx.

Referenced by AllocHandle(), WriteRecords(), and WriteWMF().

◆ eDstHorTextAlign

sal_uInt16 WMFWriter::eDstHorTextAlign
private

Definition at line 92 of file wmfwr.hxx.

Referenced by SetAllAttr(), and WriteWMF().

◆ eDstROP2

RasterOp WMFWriter::eDstROP2
private

Definition at line 88 of file wmfwr.hxx.

Referenced by SetLineAndFillAttr(), WriteRecords(), and WriteWMF().

◆ eDstTextAlign

TextAlign WMFWriter::eDstTextAlign
private

Definition at line 89 of file wmfwr.hxx.

Referenced by SetAllAttr(), WriteRecords(), and WriteWMF().

◆ eSrcHorTextAlign

sal_uInt16 WMFWriter::eSrcHorTextAlign
private

Definition at line 81 of file wmfwr.hxx.

Referenced by SetAllAttr(), WriteRecords(), and WriteWMF().

◆ eSrcRasterOp

RasterOp WMFWriter::eSrcRasterOp
private

Definition at line 74 of file wmfwr.hxx.

Referenced by SetLineAndFillAttr(), WMFRecord_StretchDIB(), WriteRecords(), and WriteWMF().

◆ eSrcTextAlign

TextAlign WMFWriter::eSrcTextAlign
private

Definition at line 75 of file wmfwr.hxx.

Referenced by SetAllAttr(), WriteRecords(), and WriteWMF().

◆ nActBitmapPercent

sal_uLong WMFWriter::nActBitmapPercent
private

Definition at line 106 of file wmfwr.hxx.

Referenced by MayCallback(), WMFRecord_StretchDIB(), and WriteWMF().

◆ nActRecordPos

sal_uLong WMFWriter::nActRecordPos
private

Definition at line 67 of file wmfwr.hxx.

Referenced by UpdateRecordHeader(), and WriteRecordHeader().

◆ nDstBrushHandle

sal_uInt16 WMFWriter::nDstBrushHandle
private

Definition at line 96 of file wmfwr.hxx.

Referenced by CreateSelectDeleteBrush(), and WriteWMF().

◆ nDstFontHandle

sal_uInt16 WMFWriter::nDstFontHandle
private

Definition at line 96 of file wmfwr.hxx.

Referenced by CreateSelectDeleteFont(), and WriteWMF().

◆ nDstPenHandle

sal_uInt16 WMFWriter::nDstPenHandle
private

Definition at line 96 of file wmfwr.hxx.

Referenced by CreateSelectDeletePen(), and WriteWMF().

◆ nLastPercent

sal_uLong WMFWriter::nLastPercent
private

Definition at line 56 of file wmfwr.hxx.

Referenced by MayCallback(), and WriteWMF().

◆ nMaxRecordSize

sal_uInt32 WMFWriter::nMaxRecordSize
private

Definition at line 66 of file wmfwr.hxx.

Referenced by UpdateHeader(), UpdateRecordHeader(), WriteRecordHeader(), and WriteWMF().

◆ nMetafileHeaderPos

sal_uLong WMFWriter::nMetafileHeaderPos
private

Definition at line 65 of file wmfwr.hxx.

Referenced by UpdateHeader(), and WriteHeader().

◆ nNumberOfActions

sal_uLong WMFWriter::nNumberOfActions
private

Definition at line 102 of file wmfwr.hxx.

Referenced by CountActionsAndBitmaps(), MayCallback(), and WriteWMF().

◆ nNumberOfBitmaps

sal_uLong WMFWriter::nNumberOfBitmaps
private

Definition at line 103 of file wmfwr.hxx.

Referenced by CountActionsAndBitmaps(), MayCallback(), and WriteWMF().

◆ nWrittenActions

sal_uLong WMFWriter::nWrittenActions
private

Definition at line 104 of file wmfwr.hxx.

Referenced by MayCallback(), WriteRecords(), and WriteWMF().

◆ nWrittenBitmaps

sal_uLong WMFWriter::nWrittenBitmaps
private

Definition at line 105 of file wmfwr.hxx.

Referenced by MayCallback(), WMFRecord_StretchDIB(), and WriteWMF().

◆ pAttrStack

WMFWriterAttrStackMember* WMFWriter::pAttrStack
private

Definition at line 79 of file wmfwr.hxx.

Referenced by WriteRecords(), and WriteWMF().

◆ pVirDev

VclPtr<VirtualDevice> WMFWriter::pVirDev
private

Definition at line 61 of file wmfwr.hxx.

Referenced by SetAllAttr(), WMFRecord_Escape_Unicode(), WriteRecords(), and WriteWMF().

◆ pWMF

SvStream* WMFWriter::pWMF
private

◆ xStatusIndicator

css::uno::Reference< css::task::XStatusIndicator > WMFWriter::xStatusIndicator
private

Definition at line 58 of file wmfwr.hxx.

Referenced by MayCallback(), and WriteWMF().


The documentation for this class was generated from the following files: