LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
GDIMetaFile Class Referencefinal

#include <gdimtf.hxx>

Collaboration diagram for GDIMetaFile:
[legend]

Public Member Functions

 GDIMetaFile ()
 
 GDIMetaFile (const GDIMetaFile &rMtf)
 
 ~GDIMetaFile ()
 
GDIMetaFileoperator= (const GDIMetaFile &rMtf)
 
bool operator== (const GDIMetaFile &rMtf) const
 
bool operator!= (const GDIMetaFile &rMtf) const
 
void Clear ()
 
void Mirror (BmpMirrorFlags nMirrorFlags)
 
void Move (tools::Long nX, tools::Long nY)
 
void Move (tools::Long nX, tools::Long nY, tools::Long nDPIX, tools::Long nDPIY)
 
void ScaleActions (double fScaleX, double fScaleY)
 
void Scale (double fScaleX, double fScaleY)
 
void Scale (const Fraction &rScaleX, const Fraction &rScaleY)
 
void Rotate (Degree10 nAngle10)
 
void Clip (const tools::Rectangle &)
 
bool HasTransparentActions () const
 
tools::Rectangle GetBoundRect (OutputDevice &i_rReference) const
 
void Adjust (short nLuminancePercent, short nContrastPercent, short nChannelRPercent=0, short nChannelGPercent=0, short nChannelBPercent=0, double fGamma=1.0, bool bInvert=false, bool msoBrightness=false)
 
void Convert (MtfConversion eConversion)
 
void ReplaceColors (const Color *pSearchColors, const Color *rReplaceColors, sal_uLong nColorCount)
 
GDIMetaFile GetMonochromeMtf (const Color &rCol) const
 
void Record (OutputDevice *pOutDev)
 
bool IsRecord () const
 
void Play (GDIMetaFile &rMtf)
 
void Play (OutputDevice &rOutDev, size_t nPos=GDI_METAFILE_END)
 
void Play (OutputDevice &rOutDev, const Point &rPos, const Size &rSize)
 
void Pause (bool bPause)
 
bool IsPause () const
 
void Stop ()
 
void WindStart ()
 
void WindPrev ()
 
size_t GetActionSize () const
 
void AddAction (const rtl::Reference< MetaAction > &pAction)
 
void AddAction (const rtl::Reference< MetaAction > &pAction, size_t nPos)
 
void push_back (const rtl::Reference< MetaAction > &pAction)
 
void ReplaceAction (rtl::Reference< MetaAction > pAction, size_t nAction)
 
MetaActionFirstAction ()
 
MetaActionNextAction ()
 
MetaActionGetAction (size_t nAction) const
 
MetaActionGetCurAction () const
 
const SizeGetPrefSize () const
 
void SetPrefSize (const Size &rSize)
 
const MapModeGetPrefMapMode () const
 
void SetPrefMapMode (const MapMode &rMapMode)
 
sal_uLong GetSizeBytes () const
 
bool CreateThumbnail (BitmapEx &rBitmapEx, BmpConversion nColorConversion=BmpConversion::N24Bit, BmpScaleFlag nScaleFlag=BmpScaleFlag::BestQuality) const
 Creates an antialiased thumbnail. More...
 
void UseCanvas (bool _bUseCanvas)
 
bool GetUseCanvas () const
 
bool getSVG () const
 
void setSVG (bool bNew)
 
void dumpAsXml (const char *pFileName=nullptr) const
 Dumps the meta actions as XML in metafile.xml. More...
 

Private Member Functions

SAL_DLLPRIVATE void ImplExchangeColors (ColorExchangeFnc pFncCol, const void *pColParam, BmpExchangeFnc pFncBmp, const void *pBmpParam)
 
SAL_DLLPRIVATE bool ImplPlayWithRenderer (OutputDevice &rOut, const Point &rPos, Size rLogicDestSize)
 
void Linker (OutputDevice *pOut, bool bLink)
 

Static Private Member Functions

static SAL_DLLPRIVATE Color ImplColAdjustFnc (const Color &rColor, const void *pColParam)
 
static SAL_DLLPRIVATE BitmapEx ImplBmpAdjustFnc (const BitmapEx &rBmpEx, const void *pBmpParam)
 
static SAL_DLLPRIVATE Color ImplColConvertFnc (const Color &rColor, const void *pColParam)
 
static SAL_DLLPRIVATE BitmapEx ImplBmpConvertFnc (const BitmapEx &rBmpEx, const void *pBmpParam)
 
static SAL_DLLPRIVATE Color ImplColMonoFnc (const Color &rColor, const void *pColParam)
 
static SAL_DLLPRIVATE BitmapEx ImplBmpMonoFnc (const BitmapEx &rBmpEx, const void *pBmpParam)
 
static SAL_DLLPRIVATE Color ImplColReplaceFnc (const Color &rColor, const void *pColParam)
 
static SAL_DLLPRIVATE BitmapEx ImplBmpReplaceFnc (const BitmapEx &rBmpEx, const void *pBmpParam)
 
static SAL_DLLPRIVATE Point ImplGetRotatedPoint (const Point &rPt, const Point &rRotatePt, const Size &rOffset, double fSin, double fCos)
 
static SAL_DLLPRIVATE tools::Polygon ImplGetRotatedPolygon (const tools::Polygon &rPoly, const Point &rRotatePt, const Size &rOffset, double fSin, double fCos)
 
static SAL_DLLPRIVATE tools::PolyPolygon ImplGetRotatedPolyPolygon (const tools::PolyPolygon &rPoly, const Point &rRotatePt, const Size &rOffset, double fSin, double fCos)
 
static SAL_DLLPRIVATE void ImplAddGradientEx (GDIMetaFile &rMtf, const OutputDevice &rMapDev, const tools::PolyPolygon &rPolyPoly, const Gradient &rGrad)
 

Private Attributes

::std::vector< rtl::Reference< MetaAction > > m_aList
 
size_t m_nCurrentActionElement
 
MapMode m_aPrefMapMode
 
Size m_aPrefSize
 
GDIMetaFilem_pPrev
 
GDIMetaFilem_pNext
 
VclPtr< OutputDevicem_pOutDev
 
bool m_bPause
 
bool m_bRecord
 
bool m_bUseCanvas
 
bool m_bSVG
 

Detailed Description

Definition at line 55 of file gdimtf.hxx.

Constructor & Destructor Documentation

◆ GDIMetaFile() [1/2]

GDIMetaFile::GDIMetaFile ( )

Definition at line 112 of file gdimtf.cxx.

◆ GDIMetaFile() [2/2]

GDIMetaFile::GDIMetaFile ( const GDIMetaFile rMtf)

Definition at line 125 of file gdimtf.cxx.

References GetAction(), GetActionSize(), i, m_aList, m_bPause, m_bRecord, m_pOutDev, n, Pause(), and Record().

◆ ~GDIMetaFile()

GDIMetaFile::~GDIMetaFile ( )

Definition at line 151 of file gdimtf.cxx.

References Clear().

Member Function Documentation

◆ AddAction() [1/2]

void GDIMetaFile::AddAction ( const rtl::Reference< MetaAction > &  pAction)

Definition at line 585 of file gdimtf.cxx.

References AddAction(), m_aList, and m_pPrev.

Referenced by AddAction(), Gradient::AddGradientActions(), OutputDevice::AddHatchActions(), appendSubPage(), clipMetafileContentAgainstOwnRegions(), CreateMtfReplacementAction(), OutputDevice::DrawArc(), OutputDevice::DrawBitmap(), OutputDevice::DrawBitmapEx(), OutputDevice::DrawChord(), Gradient::DrawComplexGradientToMetafile(), OutputDevice::DrawEllipse(), OutputDevice::DrawEPS(), OutputDevice::DrawGradientToMetafile(), OutputDevice::DrawHatch(), OutputDevice::DrawHatchLine(), DXF2GDIMetaFile::DrawLine(), OutputDevice::DrawLine(), Gradient::DrawLinearGradientToMetafile(), OutputDevice::DrawMask(), OutputDevice::DrawOutDev(), OutputDevice::DrawPie(), OutputDevice::DrawPixel(), OutputDevice::DrawPolygon(), OutputDevice::DrawPolyLine(), OutputDevice::DrawPolyLineDirect(), OutputDevice::DrawPolyPolygon(), OutputDevice::DrawRect(), OutputDevice::DrawStretchText(), OutputDevice::DrawText(), OutputDevice::DrawTextArray(), OutputDevice::DrawTextLine(), OutputDevice::DrawTransparent(), OutputDevice::DrawWallpaper(), vcl::PrinterController::getFilteredPageFile(), ImpGraphic::getGDIMetaFile(), GraphicObject::GetTransformedGraphic(), ImplAddGradientEx(), SVMConverter::ImplConvertFromSVM1(), ImplVectorizer::ImplVectorize(), ImportEpsGraphic(), OutputDevice::IntersectClipRegion(), OutputDevice::MoveClipRegion(), Play(), OutputDevice::Pop(), OutputDevice::Push(), SvmReader::Read(), OutputDevice::RemoveTransparenciesFromMetaFile(), Rotate(), OutputDevice::SetClipRegion(), OutputDevice::SetDigitLanguage(), OutputDevice::SetFillColor(), OutputDevice::SetFont(), OutputDevice::SetLayoutMode(), OutputDevice::SetLineColor(), OutputDevice::SetMapMode(), OutputDevice::SetOverlineColor(), OutputDevice::SetRasterOp(), OutputDevice::SetRefPoint(), and OutputDevice::SetTextLineColor().

◆ AddAction() [2/2]

void GDIMetaFile::AddAction ( const rtl::Reference< MetaAction > &  pAction,
size_t  nPos 
)

Definition at line 595 of file gdimtf.cxx.

References AddAction(), m_aList, m_pPrev, and nPos.

◆ Adjust()

void GDIMetaFile::Adjust ( short  nLuminancePercent,
short  nContrastPercent,
short  nChannelRPercent = 0,
short  nChannelGPercent = 0,
short  nChannelBPercent = 0,
double  fGamma = 1.0,
bool  bInvert = false,
bool  msoBrightness = false 
)

◆ Clear()

void GDIMetaFile::Clear ( )

◆ Clip()

void GDIMetaFile::Clip ( const tools::Rectangle i_rClipRect)

◆ Convert()

void GDIMetaFile::Convert ( MtfConversion  eConversion)

◆ CreateThumbnail()

bool GDIMetaFile::CreateThumbnail ( BitmapEx rBitmapEx,
BmpConversion  nColorConversion = BmpConversion::N24Bit,
BmpScaleFlag  nScaleFlag = BmpScaleFlag::BestQuality 
) const

◆ dumpAsXml()

void GDIMetaFile::dumpAsXml ( const char *  pFileName = nullptr) const

Dumps the meta actions as XML in metafile.xml.

Definition at line 2348 of file gdimtf.cxx.

References MetafileXmlDump::dump(), and SvStream::good().

◆ FirstAction()

MetaAction * GDIMetaFile::FirstAction ( )

Definition at line 191 of file gdimtf.cxx.

References m_aList, and m_nCurrentActionElement.

Referenced by Clip(), HasTransparentActions(), ImplExchangeColors(), Move(), Rotate(), and ScaleActions().

◆ GetAction()

MetaAction * GDIMetaFile::GetAction ( size_t  nAction) const

◆ GetActionSize()

size_t GDIMetaFile::GetActionSize ( ) const

◆ GetBoundRect()

tools::Rectangle GDIMetaFile::GetBoundRect ( OutputDevice i_rReference) const

Definition at line 1322 of file gdimtf.cxx.

References a, ARC, aStr, BMP, BMPEX, BMPEXSCALE, BMPEXSCALEPART, BMPSCALE, BMPSCALEPART, CHORD, CLIPREGION, vcl::CLIPREGION, COMMENT, ELLIPSE, EPS, MetaAction::Execute(), FLOATTRANSPARENT, VclPtr< reference_type >::get(), GetAction(), GetActionSize(), MetaBmpAction::GetBitmap(), MetaMaskAction::GetBitmap(), MetaBmpExAction::GetBitmapEx(), tools::Polygon::GetBoundRect(), tools::PolyPolygon::GetBoundRect(), vcl::Region::GetBoundRect(), MetaBmpScalePartAction::GetDestPoint(), MetaBmpExScalePartAction::GetDestPoint(), MetaMaskScalePartAction::GetDestPoint(), MetaBmpScalePartAction::GetDestSize(), MetaBmpExScalePartAction::GetDestSize(), MetaMaskScalePartAction::GetDestSize(), MetaTextArrayAction::GetDXArray(), MetaLineAction::GetEndPoint(), MetaPushAction::GetFlags(), MetaMoveClipRegionAction::GetHorzMove(), MetaTextAction::GetIndex(), MetaTextArrayAction::GetIndex(), MetaStretchTextAction::GetIndex(), MetaTextArrayAction::GetKashidaArray(), MetaTextAction::GetLen(), MetaTextArrayAction::GetLen(), MetaStretchTextAction::GetLen(), MetaPixelAction::GetPoint(), MetaPointAction::GetPoint(), MetaTextAction::GetPoint(), MetaTextArrayAction::GetPoint(), MetaStretchTextAction::GetPoint(), MetaBmpAction::GetPoint(), MetaBmpScaleAction::GetPoint(), MetaBmpExAction::GetPoint(), MetaBmpExScaleAction::GetPoint(), MetaMaskAction::GetPoint(), MetaFloatTransparentAction::GetPoint(), MetaEPSAction::GetPoint(), MetaPolyLineAction::GetPolygon(), MetaPolygonAction::GetPolygon(), MetaPolyPolygonAction::GetPolyPolygon(), MetaGradientExAction::GetPolyPolygon(), MetaHatchAction::GetPolyPolygon(), MetaTransparentAction::GetPolyPolygon(), GetPrefMapMode(), MetaRectAction::GetRect(), MetaRoundRectAction::GetRect(), MetaEllipseAction::GetRect(), MetaArcAction::GetRect(), MetaPieAction::GetRect(), MetaChordAction::GetRect(), MetaTextRectAction::GetRect(), MetaGradientAction::GetRect(), MetaWallpaperAction::GetRect(), MetaISectRectClipRegionAction::GetRect(), MetaClipRegionAction::GetRegion(), MetaISectRegionClipRegionAction::GetRegion(), MetaBmpScaleAction::GetSize(), MetaBmpExScaleAction::GetSize(), MetaFloatTransparentAction::GetSize(), MetaEPSAction::GetSize(), Bitmap::GetSizePixel(), BitmapEx::GetSizePixel(), MetaLineAction::GetStartPoint(), MetaTextLineAction::GetStartPoint(), MetaTextAction::GetText(), MetaTextArrayAction::GetText(), MetaStretchTextAction::GetText(), MetaAction::GetType(), MetaMoveClipRegionAction::GetVertMove(), MetaStretchTextAction::GetWidth(), MetaTextLineAction::GetWidth(), GRADIENT, GRADIENTEX, HATCH, ImplActionBounds(), tools::Rectangle::Intersection(), MetaClipRegionAction::IsClipping(), ISECTRECTCLIPREGION, ISECTREGIONCLIPREGION, tools::Rectangle::Left(), LINE, OutputDevice::LogicToLogic(), MASK, MASKSCALE, MASKSCALEPART, tools::Rectangle::Move(), MOVECLIPREGION, nCount, tools::Rectangle::Normalize(), PIE, PIXEL, POINT, POLYGON, POLYLINE, POLYPOLYGON, POP, PUSH, RECT, ROUNDRECT, tools::Rectangle::SetRight(), STRETCHTEXT, TEXT, TEXTARRAY, TEXTLINE, TEXTRECT, Transparent, u, WALLPAPER, Size::Width(), Point::X(), and Point::Y().

◆ GetCurAction()

MetaAction * GDIMetaFile::GetCurAction ( ) const
inline

Definition at line 174 of file gdimtf.hxx.

Referenced by Play().

◆ GetMonochromeMtf()

GDIMetaFile GDIMetaFile::GetMonochromeMtf ( const Color rCol) const

Definition at line 2198 of file gdimtf.cxx.

References ImplBmpMonoFnc(), ImplColMonoFnc(), and ImplExchangeColors().

Referenced by ImpGraphic::getBitmapEx().

◆ GetPrefMapMode()

const MapMode & GDIMetaFile::GetPrefMapMode ( ) const
inline

◆ GetPrefSize()

const Size & GDIMetaFile::GetPrefSize ( ) const
inline

◆ GetSizeBytes()

sal_uLong GDIMetaFile::GetSizeBytes ( ) const

◆ getSVG()

bool GDIMetaFile::getSVG ( ) const
inline

Definition at line 194 of file gdimtf.hxx.

Referenced by Play().

◆ GetUseCanvas()

bool GDIMetaFile::GetUseCanvas ( ) const
inline

Definition at line 191 of file gdimtf.hxx.

Referenced by Play().

◆ HasTransparentActions()

bool GDIMetaFile::HasTransparentActions ( ) const

◆ ImplAddGradientEx()

void GDIMetaFile::ImplAddGradientEx ( GDIMetaFile rMtf,
const OutputDevice rMapDev,
const tools::PolyPolygon rPolyPoly,
const Gradient rGrad 
)
staticprivate

Definition at line 824 of file gdimtf.cxx.

References AddAction(), VclPtr< reference_type >::get(), GetAction(), GetActionSize(), i, Record(), Stop(), and WITHOUT_ALPHA.

Referenced by Rotate().

◆ ImplBmpAdjustFnc()

BitmapEx GDIMetaFile::ImplBmpAdjustFnc ( const BitmapEx rBmpEx,
const void *  pBmpParam 
)
staticprivate

Definition at line 1731 of file gdimtf.cxx.

References BitmapEx::Adjust(), and p.

Referenced by Adjust().

◆ ImplBmpConvertFnc()

BitmapEx GDIMetaFile::ImplBmpConvertFnc ( const BitmapEx rBmpEx,
const void *  pBmpParam 
)
staticprivate

Definition at line 1753 of file gdimtf.cxx.

References BitmapEx::Convert().

Referenced by Convert().

◆ ImplBmpMonoFnc()

BitmapEx GDIMetaFile::ImplBmpMonoFnc ( const BitmapEx rBmpEx,
const void *  pBmpParam 
)
staticprivate

◆ ImplBmpReplaceFnc()

BitmapEx GDIMetaFile::ImplBmpReplaceFnc ( const BitmapEx rBmpEx,
const void *  pBmpParam 
)
staticprivate

Definition at line 1803 of file gdimtf.cxx.

References p, and BitmapEx::Replace().

Referenced by ReplaceColors().

◆ ImplColAdjustFnc()

Color GDIMetaFile::ImplColAdjustFnc ( const Color rColor,
const void *  pColParam 
)
staticprivate

Definition at line 1722 of file gdimtf.cxx.

References ColorAlpha, Color::GetAlpha(), Color::GetBlue(), Color::GetGreen(), and Color::GetRed().

Referenced by Adjust().

◆ ImplColConvertFnc()

Color GDIMetaFile::ImplColConvertFnc ( const Color rColor,
const void *  pColParam 
)
staticprivate

Definition at line 1743 of file gdimtf.cxx.

References ColorAlpha, Color::GetAlpha(), Color::GetLuminance(), and N1BitThreshold.

Referenced by Convert().

◆ ImplColMonoFnc()

Color GDIMetaFile::ImplColMonoFnc ( const Color rColor,
const void *  pColParam 
)
staticprivate

Definition at line 1762 of file gdimtf.cxx.

Referenced by GetMonochromeMtf().

◆ ImplColReplaceFnc()

Color GDIMetaFile::ImplColReplaceFnc ( const Color rColor,
const void *  pColParam 
)
staticprivate

Definition at line 1783 of file gdimtf.cxx.

References Color::GetBlue(), Color::GetGreen(), Color::GetRed(), and i.

Referenced by ReplaceColors().

◆ ImplExchangeColors()

void GDIMetaFile::ImplExchangeColors ( ColorExchangeFnc  pFncCol,
const void *  pColParam,
BmpExchangeFnc  pFncBmp,
const void *  pBmpParam 
)
private

Definition at line 1813 of file gdimtf.cxx.

References BMP, BMPEX, BMPEXSCALE, BMPEXSCALEPART, BMPSCALE, BMPSCALEPART, EPS, FILLCOLOR, FirstAction(), FLOATTRANSPARENT, FONT, MetaBmpScaleAction::GetBitmap(), MetaBmpScalePartAction::GetBitmap(), MetaMaskScaleAction::GetBitmap(), MetaMaskScalePartAction::GetBitmap(), Wallpaper::GetBitmap(), MetaBmpExScaleAction::GetBitmapEx(), MetaBmpExScalePartAction::GetBitmapEx(), vcl::Font::GetColor(), Hatch::GetColor(), MetaPixelAction::GetColor(), MetaMaskScaleAction::GetColor(), MetaMaskScalePartAction::GetColor(), MetaLineColorAction::GetColor(), MetaFillColorAction::GetColor(), MetaTextColorAction::GetColor(), MetaTextFillColorAction::GetColor(), MetaTextLineColorAction::GetColor(), MetaOverlineColorAction::GetColor(), Wallpaper::GetColor(), MetaBmpScalePartAction::GetDestPoint(), MetaBmpExScalePartAction::GetDestPoint(), MetaMaskScalePartAction::GetDestPoint(), MetaBmpScalePartAction::GetDestSize(), MetaBmpExScalePartAction::GetDestSize(), MetaMaskScalePartAction::GetDestSize(), Gradient::GetEndColor(), vcl::Font::GetFillColor(), MetaFontAction::GetFont(), MetaFloatTransparentAction::GetGDIMetaFile(), MetaGradientAction::GetGradient(), MetaGradientExAction::GetGradient(), MetaFloatTransparentAction::GetGradient(), Wallpaper::GetGradient(), MetaHatchAction::GetHatch(), MetaEPSAction::GetLink(), MetaPixelAction::GetPoint(), MetaBmpScaleAction::GetPoint(), MetaBmpExScaleAction::GetPoint(), MetaMaskScaleAction::GetPoint(), MetaFloatTransparentAction::GetPoint(), MetaEPSAction::GetPoint(), MetaGradientExAction::GetPolyPolygon(), MetaHatchAction::GetPolyPolygon(), MetaGradientAction::GetRect(), MetaWallpaperAction::GetRect(), MetaBmpScaleAction::GetSize(), MetaBmpExScaleAction::GetSize(), MetaMaskScaleAction::GetSize(), MetaFloatTransparentAction::GetSize(), MetaEPSAction::GetSize(), MetaBmpScalePartAction::GetSrcPoint(), MetaBmpExScalePartAction::GetSrcPoint(), MetaMaskScalePartAction::GetSrcPoint(), MetaBmpScalePartAction::GetSrcSize(), MetaBmpExScalePartAction::GetSrcSize(), MetaMaskScalePartAction::GetSrcSize(), Gradient::GetStartColor(), MetaEPSAction::GetSubstitute(), MetaWallpaperAction::GetWallpaper(), GRADIENT, GRADIENTEX, HATCH, ImplExchangeColors(), Wallpaper::IsBitmap(), Wallpaper::IsGradient(), MetaLineColorAction::IsSetting(), MetaFillColorAction::IsSetting(), MetaTextFillColorAction::IsSetting(), MetaTextLineColorAction::IsSetting(), MetaOverlineColorAction::IsSetting(), LINECOLOR, m_aPrefMapMode, m_aPrefSize, m_bSVG, m_bUseCanvas, MASK, MASKSCALE, MASKSCALEPART, NextAction(), nType, OVERLINECOLOR, PIXEL, push_back(), Wallpaper::SetBitmap(), vcl::Font::SetColor(), Hatch::SetColor(), Wallpaper::SetColor(), Gradient::SetEndColor(), vcl::Font::SetFillColor(), Wallpaper::SetGradient(), Gradient::SetStartColor(), TEXTCOLOR, TEXTFILLCOLOR, TEXTLINECOLOR, and WALLPAPER.

Referenced by Adjust(), Convert(), GetMonochromeMtf(), ImplExchangeColors(), and ReplaceColors().

◆ ImplGetRotatedPoint()

Point GDIMetaFile::ImplGetRotatedPoint ( const Point rPt,
const Point rRotatePt,
const Size rOffset,
double  fSin,
double  fCos 
)
staticprivate

Definition at line 792 of file gdimtf.cxx.

References FRound(), Size::Height(), Size::Width(), Point::X(), and Point::Y().

Referenced by Rotate().

◆ ImplGetRotatedPolygon()

tools::Polygon GDIMetaFile::ImplGetRotatedPolygon ( const tools::Polygon rPoly,
const Point rRotatePt,
const Size rOffset,
double  fSin,
double  fCos 
)
staticprivate

Definition at line 802 of file gdimtf.cxx.

References Size::Height(), tools::Polygon::Move(), tools::Polygon::Rotate(), and Size::Width().

Referenced by Rotate().

◆ ImplGetRotatedPolyPolygon()

tools::PolyPolygon GDIMetaFile::ImplGetRotatedPolyPolygon ( const tools::PolyPolygon rPoly,
const Point rRotatePt,
const Size rOffset,
double  fSin,
double  fCos 
)
staticprivate

Definition at line 813 of file gdimtf.cxx.

References Size::Height(), tools::PolyPolygon::Move(), tools::PolyPolygon::Rotate(), and Size::Width().

Referenced by Rotate().

◆ ImplPlayWithRenderer()

bool GDIMetaFile::ImplPlayWithRenderer ( OutputDevice rOut,
const Point rPos,
Size  rLogicDestSize 
)
private

◆ IsPause()

bool GDIMetaFile::IsPause ( ) const
inline

Definition at line 153 of file gdimtf.hxx.

◆ IsRecord()

bool GDIMetaFile::IsRecord ( ) const
inline

Definition at line 146 of file gdimtf.hxx.

Referenced by Play().

◆ Linker()

void GDIMetaFile::Linker ( OutputDevice pOut,
bool  bLink 
)
private

Definition at line 281 of file gdimtf.cxx.

References m_pNext, m_pPrev, and pOut.

Referenced by Pause(), Record(), and Stop().

◆ Mirror()

void GDIMetaFile::Mirror ( BmpMirrorFlags  nMirrorFlags)

◆ Move() [1/2]

void GDIMetaFile::Move ( tools::Long  nX,
tools::Long  nY 
)

◆ Move() [2/2]

void GDIMetaFile::Move ( tools::Long  nX,
tools::Long  nY,
tools::Long  nDPIX,
tools::Long  nDPIY 
)

◆ NextAction()

MetaAction * GDIMetaFile::NextAction ( )

◆ operator!=()

bool GDIMetaFile::operator!= ( const GDIMetaFile rMtf) const
inline

Definition at line 111 of file gdimtf.hxx.

◆ operator=()

GDIMetaFile & GDIMetaFile::operator= ( const GDIMetaFile rMtf)

◆ operator==()

bool GDIMetaFile::operator== ( const GDIMetaFile rMtf) const

◆ Pause()

void GDIMetaFile::Pause ( bool  bPause)

Definition at line 540 of file gdimtf.cxx.

References Linker(), m_bPause, m_bRecord, and m_pOutDev.

Referenced by GDIMetaFile(), and operator=().

◆ Play() [1/3]

void GDIMetaFile::Play ( GDIMetaFile rMtf)

◆ Play() [2/3]

void GDIMetaFile::Play ( OutputDevice rOutDev,
const Point rPos,
const Size rSize 
)

◆ Play() [3/3]

void GDIMetaFile::Play ( OutputDevice rOutDev,
size_t  nPos = GDI_METAFILE_END 
)

◆ push_back()

void GDIMetaFile::push_back ( const rtl::Reference< MetaAction > &  pAction)

Definition at line 612 of file gdimtf.cxx.

References m_aList.

Referenced by ImplExchangeColors().

◆ Record()

void GDIMetaFile::Record ( OutputDevice pOutDev)

◆ ReplaceAction()

void GDIMetaFile::ReplaceAction ( rtl::Reference< MetaAction pAction,
size_t  nAction 
)
Parameters
pActiontakes ownership
nActionthe action to replace

Definition at line 202 of file gdimtf.cxx.

References m_aList.

Referenced by SVMConverter::ImplConvertFromSVM1().

◆ ReplaceColors()

void GDIMetaFile::ReplaceColors ( const Color pSearchColors,
const Color rReplaceColors,
sal_uLong  nColorCount 
)

◆ Rotate()

void GDIMetaFile::Rotate ( Degree10  nAngle10)

Definition at line 846 of file gdimtf.cxx.

References AddAction(), ARC, BMP, BMPEX, BMPEXSCALE, BMPEXSCALEPART, BMPSCALE, BMPSCALEPART, tools::Rectangle::Center(), CHORD, CLIPREGION, COL_TRANSPARENT(), COMMENT, BitmapEx::Crop(), ELLIPSE, EPS, FirstAction(), FLOATTRANSPARENT, FONT, VclPtr< reference_type >::get(), Hatch::GetAngle(), vcl::Region::GetAsPolyPolygon(), MetaBmpScaleAction::GetBitmap(), MetaBmpScalePartAction::GetBitmap(), MetaBmpExScaleAction::GetBitmapEx(), MetaBmpExScalePartAction::GetBitmapEx(), tools::Polygon::GetBoundRect(), MetaPixelAction::GetColor(), MetaCommentAction::GetComment(), SvMemoryStream::GetData(), MetaCommentAction::GetData(), MetaCommentAction::GetDataSize(), MetaBmpScalePartAction::GetDestPoint(), MetaBmpExScalePartAction::GetDestPoint(), MetaBmpScalePartAction::GetDestSize(), MetaBmpExScalePartAction::GetDestSize(), MetaTextArrayAction::GetDXArray(), MetaLineAction::GetEndPoint(), MetaArcAction::GetEndPoint(), MetaPieAction::GetEndPoint(), MetaChordAction::GetEndPoint(), MetaFontAction::GetFont(), MetaFloatTransparentAction::GetGDIMetaFile(), MetaGradientAction::GetGradient(), MetaGradientExAction::GetGradient(), MetaFloatTransparentAction::GetGradient(), MetaHatchAction::GetHatch(), tools::Rectangle::GetHeight(), MetaRoundRectAction::GetHorzRound(), MetaTextAction::GetIndex(), MetaTextArrayAction::GetIndex(), MetaStretchTextAction::GetIndex(), MetaTextArrayAction::GetKashidaArray(), MetaTextAction::GetLen(), MetaTextArrayAction::GetLen(), MetaStretchTextAction::GetLen(), MetaLineAction::GetLineInfo(), MetaPolyLineAction::GetLineInfo(), MetaEPSAction::GetLink(), vcl::Font::GetOrientation(), MetaTextLineAction::GetOverline(), SvtGraphicStroke::getPath(), SvtGraphicFill::getPath(), MetaPixelAction::GetPoint(), MetaPointAction::GetPoint(), MetaTextAction::GetPoint(), MetaTextArrayAction::GetPoint(), MetaStretchTextAction::GetPoint(), MetaBmpScaleAction::GetPoint(), MetaBmpExScaleAction::GetPoint(), MetaFloatTransparentAction::GetPoint(), MetaEPSAction::GetPoint(), MetaPolyLineAction::GetPolygon(), MetaPolygonAction::GetPolygon(), MetaPolyPolygonAction::GetPolyPolygon(), MetaGradientExAction::GetPolyPolygon(), MetaHatchAction::GetPolyPolygon(), MetaTransparentAction::GetPolyPolygon(), GetPrefMapMode(), GetPrefSize(), MetaRectAction::GetRect(), MetaRoundRectAction::GetRect(), MetaEllipseAction::GetRect(), MetaArcAction::GetRect(), MetaPieAction::GetRect(), MetaChordAction::GetRect(), MetaGradientAction::GetRect(), MetaISectRectClipRegionAction::GetRect(), MetaRefPointAction::GetRefPoint(), MetaClipRegionAction::GetRegion(), MetaISectRegionClipRegionAction::GetRegion(), tools::Rectangle::GetSize(), MetaBmpScaleAction::GetSize(), MetaBmpExScaleAction::GetSize(), MetaFloatTransparentAction::GetSize(), MetaEPSAction::GetSize(), MetaBmpScalePartAction::GetSrcPoint(), MetaBmpExScalePartAction::GetSrcPoint(), MetaBmpScalePartAction::GetSrcSize(), MetaBmpExScalePartAction::GetSrcSize(), MetaLineAction::GetStartPoint(), MetaArcAction::GetStartPoint(), MetaPieAction::GetStartPoint(), MetaChordAction::GetStartPoint(), MetaTextLineAction::GetStartPoint(), MetaTextLineAction::GetStrikeout(), MetaEPSAction::GetSubstitute(), MetaTextAction::GetText(), MetaTextArrayAction::GetText(), MetaStretchTextAction::GetText(), MetaTransparentAction::GetTransparence(), MetaTextLineAction::GetUnderline(), MetaRoundRectAction::GetVertRound(), tools::Rectangle::GetWidth(), MetaStretchTextAction::GetWidth(), MetaTextLineAction::GetWidth(), GRADIENT, GRADIENTEX, vcl::Region::HasPolyPolygonOrB2DPolyPolygon(), HATCH, ImplAddGradientEx(), ImplGetRotatedPoint(), ImplGetRotatedPolygon(), ImplGetRotatedPolyPolygon(), MetaClipRegionAction::IsClipping(), ISECTRECTCLIPREGION, ISECTREGIONCLIPREGION, MetaRefPointAction::IsSetting(), tools::Rectangle::Left(), LINE, OutputDevice::LogicToLogic(), m_aPrefMapMode, m_aPrefSize, MAPMODE, MASK, MASKSCALE, MASKSCALEPART, MOVECLIPREGION, NextAction(), nType, PIE, PIXEL, POINT, POLYGON, POLYLINE, POLYPOLYGON, POP, PUSH, ReadSvtGraphicFill(), ReadSvtGraphicStroke(), RECT, REFPOINT, tools::Polygon::Rotate(), Rotate(), BitmapEx::Rotate(), ROUNDRECT, Hatch::SetAngle(), vcl::Font::SetOrientation(), SvtGraphicStroke::setPath(), SvtGraphicFill::setPath(), STRETCHTEXT, SvStream::Tell(), TEXT, TEXTARRAY, TEXTLINE, TEXTRECT, tools::Rectangle::Top(), tools::Rectangle::TopLeft(), toRadians(), Transparent, WALLPAPER, WriteSvtGraphicFill(), WriteSvtGraphicStroke(), X, and Y.

Referenced by Rotate().

◆ Scale() [1/2]

void GDIMetaFile::Scale ( const Fraction rScaleX,
const Fraction rScaleY 
)

Definition at line 756 of file gdimtf.cxx.

References Scale().

◆ Scale() [2/2]

void GDIMetaFile::Scale ( double  fScaleX,
double  fScaleY 
)

◆ ScaleActions()

void GDIMetaFile::ScaleActions ( double  fScaleX,
double  fScaleY 
)

Definition at line 730 of file gdimtf.cxx.

References FirstAction(), m_aList, m_nCurrentActionElement, NextAction(), and MetaAction::Scale().

Referenced by Scale().

◆ SetPrefMapMode()

void GDIMetaFile::SetPrefMapMode ( const MapMode rMapMode)
inline

◆ SetPrefSize()

void GDIMetaFile::SetPrefSize ( const Size rSize)
inline

◆ setSVG()

void GDIMetaFile::setSVG ( bool  bNew)
inline

Definition at line 195 of file gdimtf.hxx.

Referenced by Play().

◆ Stop()

void GDIMetaFile::Stop ( )

◆ UseCanvas()

void GDIMetaFile::UseCanvas ( bool  _bUseCanvas)

Definition at line 2343 of file gdimtf.cxx.

References m_bUseCanvas.

Referenced by Play(), and SvmReader::Read().

◆ WindPrev()

void GDIMetaFile::WindPrev ( )

Definition at line 578 of file gdimtf.cxx.

References m_bRecord, and m_nCurrentActionElement.

◆ WindStart()

void GDIMetaFile::WindStart ( )

Member Data Documentation

◆ m_aList

::std::vector< rtl::Reference<MetaAction> > GDIMetaFile::m_aList
private

◆ m_aPrefMapMode

MapMode GDIMetaFile::m_aPrefMapMode
private

Definition at line 61 of file gdimtf.hxx.

Referenced by ImplExchangeColors(), operator=(), operator==(), and Rotate().

◆ m_aPrefSize

Size GDIMetaFile::m_aPrefSize
private

Definition at line 62 of file gdimtf.hxx.

Referenced by ImplExchangeColors(), operator=(), operator==(), Rotate(), and Scale().

◆ m_bPause

bool GDIMetaFile::m_bPause
private

Definition at line 66 of file gdimtf.hxx.

Referenced by GDIMetaFile(), operator=(), Pause(), and Stop().

◆ m_bRecord

bool GDIMetaFile::m_bRecord
private

Definition at line 67 of file gdimtf.hxx.

Referenced by Clear(), GDIMetaFile(), operator=(), Pause(), Play(), Record(), Stop(), WindPrev(), and WindStart().

◆ m_bSVG

bool GDIMetaFile::m_bSVG
private

Definition at line 71 of file gdimtf.hxx.

Referenced by ImplExchangeColors(), operator=(), and Play().

◆ m_bUseCanvas

bool GDIMetaFile::m_bUseCanvas
private

Definition at line 68 of file gdimtf.hxx.

Referenced by ImplExchangeColors(), ImplPlayWithRenderer(), operator=(), Play(), and UseCanvas().

◆ m_nCurrentActionElement

size_t GDIMetaFile::m_nCurrentActionElement
private

Definition at line 59 of file gdimtf.hxx.

Referenced by Clip(), FirstAction(), Move(), NextAction(), Play(), Record(), ScaleActions(), WindPrev(), and WindStart().

◆ m_pNext

GDIMetaFile* GDIMetaFile::m_pNext
private

Definition at line 64 of file gdimtf.hxx.

Referenced by Linker(), and operator=().

◆ m_pOutDev

VclPtr<OutputDevice> GDIMetaFile::m_pOutDev
private

Definition at line 65 of file gdimtf.hxx.

Referenced by GDIMetaFile(), operator=(), Pause(), Record(), and Stop().

◆ m_pPrev

GDIMetaFile* GDIMetaFile::m_pPrev
private

Definition at line 63 of file gdimtf.hxx.

Referenced by AddAction(), Linker(), and operator=().


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