LibreOffice Module vcl (master)
1
|
#include <gdimtf.hxx>
Public Member Functions | |
GDIMetaFile () | |
GDIMetaFile (const GDIMetaFile &rMtf) | |
~GDIMetaFile () | |
GDIMetaFile & | operator= (const GDIMetaFile &rMtf) |
bool | operator== (const GDIMetaFile &rMtf) const |
bool | operator!= (const GDIMetaFile &rMtf) const |
void | Clear () |
void | Mirror (BmpMirrorFlags nMirrorFlags) |
void | Move (long nX, long nY) |
void | Move (long nX, long nY, long nDPIX, long nDPIY) |
void | Scale (double fScaleX, double fScaleY) |
void | Scale (const Fraction &rScaleX, const Fraction &rScaleY) |
void | Rotate (long nAngle10) |
void | Clip (const tools::Rectangle &) |
tools::Rectangle | GetBoundRect (OutputDevice &i_rReference, tools::Rectangle *pHairline=nullptr) 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 *pOutDev, size_t nPos=GDI_METAFILE_END) |
void | Play (OutputDevice *pOutDev, 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) |
MetaAction * | FirstAction () |
MetaAction * | NextAction () |
MetaAction * | GetAction (size_t nAction) const |
MetaAction * | GetCurAction () const |
const Size & | GetPrefSize () const |
void | SetPrefSize (const Size &rSize) |
const MapMode & | GetPrefMapMode () const |
void | SetPrefMapMode (const MapMode &rMapMode) |
BitmapChecksum | GetChecksum () const |
sal_uLong | GetSizeBytes () const |
SvStream & | Read (SvStream &rIStm) |
SvStream & | Write (SvStream &rOStm) |
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 |
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 *pOut, 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 |
GDIMetaFile * | m_pPrev |
GDIMetaFile * | m_pNext |
VclPtr< OutputDevice > | m_pOutDev |
bool | m_bPause |
bool | m_bRecord |
bool | m_bUseCanvas |
Friends | |
VCL_DLLPUBLIC SvStream & | ReadGDIMetaFile (SvStream &rIStm, GDIMetaFile &rGDIMetaFile, ImplMetaReadData *pReadData) |
VCL_DLLPUBLIC SvStream & | WriteGDIMetaFile (SvStream &rOStm, const GDIMetaFile &rGDIMetaFile) |
Definition at line 57 of file gdimtf.hxx.
GDIMetaFile::GDIMetaFile | ( | ) |
Definition at line 115 of file gdimtf.cxx.
GDIMetaFile::GDIMetaFile | ( | const GDIMetaFile & | rMtf | ) |
Definition at line 127 of file gdimtf.cxx.
References GetAction(), GetActionSize(), i, m_aList, m_bPause, m_bRecord, m_pOutDev, n, Pause(), and Record().
GDIMetaFile::~GDIMetaFile | ( | ) |
Definition at line 152 of file gdimtf.cxx.
References Clear().
void GDIMetaFile::AddAction | ( | const rtl::Reference< MetaAction > & | pAction | ) |
Definition at line 544 of file gdimtf.cxx.
References AddAction(), m_aList, and m_pPrev.
Referenced by AddAction(), OutputDevice::AddGradientActions(), OutputDevice::AddHatchActions(), appendSubPage(), clipMetafileContentAgainstOwnRegions(), OutputDevice::DrawArc(), OutputDevice::DrawBitmap(), OutputDevice::DrawBitmapEx(), OutputDevice::DrawChord(), OutputDevice::DrawComplexGradientToMetafile(), OutputDevice::DrawEllipse(), OutputDevice::DrawEPS(), OutputDevice::DrawGradientToMetafile(), OutputDevice::DrawHatch(), OutputDevice::DrawHatchLine(), OutputDevice::DrawLine(), OutputDevice::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(), MetaGradientExAction::Execute(), MetaCommentAction::Execute(), vcl::PrinterController::getFilteredPageFile(), OutputDevice::GetSysTextLayoutData(), ImplAddGradientEx(), SVMConverter::ImplConvertFromSVM1(), ImpGraphic::ImplGetGDIMetaFile(), ImplVectorizer::ImplVectorize(), OutputDevice::IntersectClipRegion(), OutputDevice::MoveClipRegion(), Play(), OutputDevice::Pop(), OutputDevice::Push(), ReadGDIMetaFile(), 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().
void GDIMetaFile::AddAction | ( | const rtl::Reference< MetaAction > & | pAction, |
size_t | nPos | ||
) |
Definition at line 554 of file gdimtf.cxx.
References AddAction(), m_aList, and m_pPrev.
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 |
||
) |
Definition at line 2054 of file gdimtf.cxx.
References FRound(), GAMMA, ImplBmpAdjustFnc(), ImplColAdjustFnc(), ImplExchangeColors(), and MinMax().
void GDIMetaFile::Clear | ( | ) |
Definition at line 248 of file gdimtf.cxx.
References m_aList, m_bRecord, and Stop().
Referenced by vcl::PrinterController::getFilteredPageFile(), vcl::PrinterController::getPageFile(), ImpGraphic::ImplClearGraphics(), ImplVectorizer::ImplVectorize(), operator=(), Read(), ReadGDIMetaFile(), OutputDevice::RemoveTransparenciesFromMetaFile(), and ~GDIMetaFile().
void GDIMetaFile::Clip | ( | const tools::Rectangle & | i_rClipRect | ) |
Definition at line 715 of file gdimtf.cxx.
References CLIPREGION, FirstAction(), VclPtr< reference_type >::get(), GetPrefMapMode(), MetaClipRegionAction::GetRegion(), vcl::Region::Intersect(), MetaClipRegionAction::IsClipping(), OutputDevice::LogicToLogic(), m_aList, m_nCurrentActionElement, MAPMODE, NextAction(), nType, POP, and PUSH.
Referenced by appendSubPage().
void GDIMetaFile::Convert | ( | MtfConversion | eConversion | ) |
Definition at line 2135 of file gdimtf.cxx.
References ImplBmpConvertFnc(), ImplColConvertFnc(), ImplExchangeColors(), N1BitThreshold, and N8BitGreys.
bool GDIMetaFile::CreateThumbnail | ( | BitmapEx & | rBitmapEx, |
BmpConversion | nColorConversion = BmpConversion::N24Bit , |
||
BmpScaleFlag | nScaleFlag = BmpScaleFlag::BestQuality |
||
) | const |
Creates an antialiased thumbnail.
Definition at line 2761 of file gdimtf.cxx.
References BitmapEx::Convert(), FRound(), VclPtr< reference_type >::get(), GetPrefMapMode(), GetPrefSize(), BitmapEx::GetSizePixel(), Height, Size::Height(), BitmapEx::IsEmpty(), Play(), BitmapEx::Scale(), BitmapEx::SetEmpty(), Size::Width(), Width, and WindStart().
void GDIMetaFile::dumpAsXml | ( | const char * | pFileName = nullptr | ) | const |
Dumps the meta actions as XML in metafile.xml.
Definition at line 2835 of file gdimtf.cxx.
References MetafileXmlDump::dump(), and SvStream::good().
MetaAction * GDIMetaFile::FirstAction | ( | ) |
Definition at line 167 of file gdimtf.cxx.
References m_aList, and m_nCurrentActionElement.
Referenced by Clip(), ImplExchangeColors(), Move(), Rotate(), Scale(), and Write().
MetaAction * GDIMetaFile::GetAction | ( | size_t | nAction | ) | const |
Definition at line 162 of file gdimtf.cxx.
References m_aList.
Referenced by clipMetafileContentAgainstOwnRegions(), WMFWriter::CountActionsAndBitmaps(), GDIMetaFile(), GetBoundRect(), GetChecksum(), GetSizeBytes(), ImplAddGradientEx(), SVMConverter::ImplConvertFromSVM1(), ImpGraphic::ImplIsEPS(), EMFWriter::ImplWrite(), operator=(), operator==(), vcl::PDFWriterImpl::playMetafile(), vcl::PageSyncData::PlaySyncPageAct(), usesClipActions(), WMFWriter::WriteRecords(), and MetafileXmlDump::writeXml().
size_t GDIMetaFile::GetActionSize | ( | ) | const |
Definition at line 157 of file gdimtf.cxx.
References m_aList.
Referenced by clipMetafileContentAgainstOwnRegions(), WMFWriter::CountActionsAndBitmaps(), GDIMetaFile(), GetBoundRect(), GetChecksum(), TransferableDataHelper::GetGDIMetaFile(), GetSizeBytes(), GraphicID::GraphicID(), ImplAddGradientEx(), SVMConverter::ImplConvertFromSVM1(), ImpGraphic::ImplGetGDIMetaFile(), ImpGraphic::ImplIsEPS(), ImplVectorizer::ImplVectorize(), EMFWriter::ImplWrite(), operator=(), operator==(), vcl::PDFWriterImpl::playMetafile(), vcl::PageSyncData::PushAction(), OutputDevice::RemoveTransparenciesFromMetaFile(), TransferableHelper::SetGDIMetaFile(), usesClipActions(), Write(), WMFWriter::WriteRecords(), and MetafileXmlDump::writeXml().
tools::Rectangle GDIMetaFile::GetBoundRect | ( | OutputDevice & | i_rReference, |
tools::Rectangle * | pHairline = nullptr |
||
) | const |
Definition at line 1285 of file gdimtf.cxx.
References a, ARC, aStr, BMP, BMPEX, BMPEXSCALE, BMPEXSCALEPART, BMPSCALE, BMPSCALEPART, CHORD, CLIPREGION, COMMENT, ELLIPSE, EPS, MetaAction::Execute(), FLOATTRANSPARENT, VclPtr< reference_type >::get(), GetAction(), GetActionSize(), MetaBmpAction::GetBitmap(), MetaMaskAction::GetBitmap(), MetaBmpExAction::GetBitmapEx(), tools::PolyPolygon::GetBoundRect(), tools::Polygon::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(), MetaTextAction::GetLen(), MetaTextArrayAction::GetLen(), MetaStretchTextAction::GetLen(), MetaLineAction::GetLineInfo(), MetaPolyLineAction::GetLineInfo(), 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(), BitmapEx::GetSizePixel(), Bitmap::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, Point::Move(), tools::Rectangle::Move(), MOVECLIPREGION, nCount, PIE, PIXEL, POINT, POLYGON, POLYLINE, POLYPOLYGON, POP, PUSH, RECT, ROUNDRECT, tools::Rectangle::SetRight(), STRETCHTEXT, TEXT, TEXTARRAY, TEXTLINE, TEXTRECT, Transparent, and WALLPAPER.
Referenced by ImpGraphic::ImplGetBitmap().
BitmapChecksum GDIMetaFile::GetChecksum | ( | ) | const |
Definition at line 2200 of file gdimtf.cxx.
References BCToBCOA(), BITMAP_CHECKSUM_SIZE, BMP, BMPEX, BMPEXSCALE, BMPEXSCALEPART, BMPSCALE, BMPSCALEPART, CLIPREGION, EPS, GetAction(), GetActionSize(), vcl::Region::GetAsB2DPolyPolygon(), MetaBmpAction::GetBitmap(), MetaBmpScaleAction::GetBitmap(), MetaBmpScalePartAction::GetBitmap(), MetaMaskAction::GetBitmap(), MetaMaskScaleAction::GetBitmap(), MetaMaskScalePartAction::GetBitmap(), MetaBmpExAction::GetBitmapEx(), MetaBmpExScaleAction::GetBitmapEx(), MetaBmpExScalePartAction::GetBitmapEx(), BitmapEx::GetChecksum(), Bitmap::GetChecksum(), MetaMaskAction::GetColor(), MetaMaskScaleAction::GetColor(), MetaMaskScalePartAction::GetColor(), SvMemoryStream::GetData(), GfxLink::GetData(), GfxLink::GetDataSize(), MetaBmpScalePartAction::GetDestPoint(), MetaBmpExScalePartAction::GetDestPoint(), MetaMaskScalePartAction::GetDestPoint(), MetaBmpScalePartAction::GetDestSize(), MetaBmpExScalePartAction::GetDestSize(), MetaMaskScalePartAction::GetDestSize(), MetaEPSAction::GetLink(), MetaBmpAction::GetPoint(), MetaBmpScaleAction::GetPoint(), MetaBmpExAction::GetPoint(), MetaBmpExScaleAction::GetPoint(), MetaMaskAction::GetPoint(), MetaMaskScaleAction::GetPoint(), MetaClipRegionAction::GetRegion(), MetaBmpScaleAction::GetSize(), MetaBmpExScaleAction::GetSize(), MetaMaskScaleAction::GetSize(), MetaBmpScalePartAction::GetSrcPoint(), MetaBmpExScalePartAction::GetSrcPoint(), MetaMaskScalePartAction::GetSrcPoint(), MetaBmpScalePartAction::GetSrcSize(), MetaBmpExScalePartAction::GetSrcSize(), MetaMaskScalePartAction::GetSrcSize(), SvStream::GetStreamCharSet(), MetaAction::GetType(), vcl::Region::HasPolyPolygonOrB2DPolyPolygon(), Size::Height(), i, MetaClipRegionAction::IsClipping(), MASK, MASKSCALE, MASKSCALEPART, ImplMetaWriteData::meActualCharSet, SvStream::Seek(), SvStream::Tell(), vcl_get_checksum(), Size::Width(), MetaAction::Write(), Point::X(), and Point::Y().
Referenced by ImpGraphic::ImplGetChecksum().
|
inline |
Definition at line 171 of file gdimtf.hxx.
Referenced by Play().
GDIMetaFile GDIMetaFile::GetMonochromeMtf | ( | const Color & | rCol | ) | const |
Definition at line 2185 of file gdimtf.cxx.
References ImplBmpMonoFnc(), ImplColMonoFnc(), and ImplExchangeColors().
Referenced by ImpGraphic::ImplGetBitmapEx().
|
inline |
Definition at line 176 of file gdimtf.hxx.
Referenced by Clip(), clipMetafileContentAgainstOwnRegions(), CreateThumbnail(), GetBoundRect(), ImpGraphic::ImplGetBitmap(), ImpGraphic::ImplGetPrefMapMode(), Move(), operator==(), Play(), vcl::PDFWriterImpl::playMetafile(), OutputDevice::RemoveTransparenciesFromMetaFile(), Rotate(), EMFWriter::WriteEMF(), and WMFWriter::WriteWMF().
|
inline |
Definition at line 173 of file gdimtf.hxx.
Referenced by clipMetafileContentAgainstOwnRegions(), CreateThumbnail(), GraphicID::GraphicID(), ImpGraphic::ImplDraw(), ImpGraphic::ImplGetBitmap(), ImpGraphic::ImplGetPrefSize(), Mirror(), operator==(), Play(), OutputDevice::RemoveTransparenciesFromMetaFile(), Rotate(), EMFWriter::WriteEMF(), and WMFWriter::WriteWMF().
sal_uLong GDIMetaFile::GetSizeBytes | ( | ) | const |
Definition at line 2544 of file gdimtf.cxx.
References BMP, BMPEX, BMPEXSCALE, BMPEXSCALEPART, BMPSCALE, BMPSCALEPART, tools::PolyPolygon::Count(), GetAction(), GetActionSize(), MetaTextArrayAction::GetDXArray(), MetaTextArrayAction::GetLen(), MetaTextArrayAction::GetText(), MetaAction::GetType(), i, MASK, MASKSCALE, MASKSCALEPART, n, POLYGON, POLYLINE, POLYPOLYGON, STRETCHTEXT, TEXT, TEXTARRAY, and TEXTRECT.
Referenced by ImpGraphic::ImplGetSizeBytes().
|
inline |
Definition at line 199 of file gdimtf.hxx.
Referenced by Play().
|
staticprivate |
Definition at line 778 of file gdimtf.cxx.
References AddAction(), DEFAULT, VclPtr< reference_type >::get(), GetAction(), GetActionSize(), i, Record(), and Stop().
Referenced by Rotate().
|
staticprivate |
Definition at line 1716 of file gdimtf.cxx.
References BitmapEx::Adjust(), and p.
Referenced by Adjust().
|
staticprivate |
Definition at line 1738 of file gdimtf.cxx.
References BitmapEx::Convert().
Referenced by Convert().
|
staticprivate |
Definition at line 1752 of file gdimtf.cxx.
References COL_BLACK(), COL_WHITE(), Bitmap::Erase(), BitmapEx::GetAlpha(), BitmapEx::GetMask(), BitmapEx::GetSizePixel(), BitmapEx::IsAlpha(), and BitmapEx::IsTransparent().
Referenced by GetMonochromeMtf().
|
staticprivate |
Definition at line 1791 of file gdimtf.cxx.
References p, and BitmapEx::Replace().
Referenced by ReplaceColors().
Definition at line 1707 of file gdimtf.cxx.
References Color::GetBlue(), Color::GetGreen(), Color::GetRed(), and Color::GetTransparency().
Referenced by Adjust().
Definition at line 1728 of file gdimtf.cxx.
References Color::GetLuminance(), Color::GetTransparency(), and N1BitThreshold.
Referenced by Convert().
Definition at line 1747 of file gdimtf.cxx.
Referenced by GetMonochromeMtf().
Definition at line 1771 of file gdimtf.cxx.
References Color::GetBlue(), Color::GetGreen(), Color::GetRed(), i, and nCount.
Referenced by ReplaceColors().
|
private |
Definition at line 1801 of file gdimtf.cxx.
References BMP, BMPEX, BMPEXSCALE, BMPEXSCALEPART, BMPSCALE, BMPSCALEPART, EPS, FILLCOLOR, FirstAction(), FLOATTRANSPARENT, FONT, MetaBmpScaleAction::GetBitmap(), MetaBmpScalePartAction::GetBitmap(), MetaMaskScaleAction::GetBitmap(), MetaMaskScalePartAction::GetBitmap(), MetaBmpExScaleAction::GetBitmapEx(), MetaBmpExScalePartAction::GetBitmapEx(), MetaPixelAction::GetColor(), MetaMaskScaleAction::GetColor(), MetaMaskScalePartAction::GetColor(), MetaLineColorAction::GetColor(), MetaFillColorAction::GetColor(), MetaTextColorAction::GetColor(), MetaTextFillColorAction::GetColor(), MetaTextLineColorAction::GetColor(), MetaOverlineColorAction::GetColor(), MetaBmpScalePartAction::GetDestPoint(), MetaBmpExScalePartAction::GetDestPoint(), MetaMaskScalePartAction::GetDestPoint(), MetaBmpScalePartAction::GetDestSize(), MetaBmpExScalePartAction::GetDestSize(), MetaMaskScalePartAction::GetDestSize(), MetaFontAction::GetFont(), MetaFloatTransparentAction::GetGDIMetaFile(), MetaGradientAction::GetGradient(), MetaGradientExAction::GetGradient(), MetaFloatTransparentAction::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(), MetaEPSAction::GetSubstitute(), MetaWallpaperAction::GetWallpaper(), GRADIENT, GRADIENTEX, HATCH, ImplExchangeColors(), MetaLineColorAction::IsSetting(), MetaFillColorAction::IsSetting(), MetaTextFillColorAction::IsSetting(), MetaTextLineColorAction::IsSetting(), MetaOverlineColorAction::IsSetting(), LINECOLOR, m_aPrefMapMode, m_aPrefSize, m_bUseCanvas, MASK, MASKSCALE, MASKSCALEPART, NextAction(), nType, OVERLINECOLOR, PIXEL, push_back(), Hatch::SetColor(), vcl::Font::SetColor(), Gradient::SetStartColor(), TEXTCOLOR, TEXTFILLCOLOR, TEXTLINECOLOR, and WALLPAPER.
Referenced by Adjust(), Convert(), GetMonochromeMtf(), ImplExchangeColors(), and ReplaceColors().
|
staticprivate |
Definition at line 746 of file gdimtf.cxx.
References FRound(), Size::Height(), Size::Width(), Point::X(), and Point::Y().
Referenced by Rotate().
|
staticprivate |
Definition at line 756 of file gdimtf.cxx.
References Size::Height(), tools::Polygon::Move(), tools::Polygon::Rotate(), and Size::Width().
Referenced by Rotate().
|
staticprivate |
Definition at line 767 of file gdimtf.cxx.
References Size::Height(), tools::PolyPolygon::Move(), tools::PolyPolygon::Rotate(), and Size::Width().
Referenced by Rotate().
|
private |
Definition at line 365 of file gdimtf.cxx.
References BitmapEx::Create(), OutputDevice::DrawBitmapEx(), Application::GetActiveTopWindow(), Application::GetFirstTopLevelWindow(), OutputDevice::GetMapMode(), MapMode::GetMapUnit(), comphelper::getProcessComponentContext(), vcl::unotools::integerSize2DFromSize(), OutputDevice::LogicToPixel(), m_bUseCanvas, and TOOLS_WARN_EXCEPTION.
Referenced by Play().
|
inline |
Definition at line 150 of file gdimtf.hxx.
|
inline |
Definition at line 142 of file gdimtf.hxx.
Referenced by Play().
|
private |
Definition at line 256 of file gdimtf.cxx.
References OutputDevice::GetConnectMetaFile(), m_pNext, m_pPrev, and OutputDevice::SetConnectMetaFile().
void GDIMetaFile::Mirror | ( | BmpMirrorFlags | nMirrorFlags | ) |
Definition at line 576 of file gdimtf.cxx.
References GetPrefSize(), Size::Height(), Horizontal, Move(), Scale(), SetPrefSize(), Vertical, and Size::Width().
void GDIMetaFile::Move | ( | long | nX, |
long | nY | ||
) |
Definition at line 612 of file gdimtf.cxx.
References MetaAction::Execute(), FirstAction(), VclPtr< reference_type >::get(), GetPrefMapMode(), Size::Height(), OutputDevice::LogicToLogic(), m_aList, m_nCurrentActionElement, MAPMODE, MetaAction::Move(), NextAction(), nType, POP, PUSH, and Size::Width().
Referenced by vcl::PrinterController::getFilteredPageFile(), ImplVectorizer::ImplVectorize(), Mirror(), vcl::PrintDialog::preparePreview(), and vcl::PrinterController::printFilteredPage().
void GDIMetaFile::Move | ( | long | nX, |
long | nY, | ||
long | nDPIX, | ||
long | nDPIY | ||
) |
Definition at line 646 of file gdimtf.cxx.
References aMap, MetaAction::Execute(), FirstAction(), VclPtr< reference_type >::get(), GetPrefMapMode(), Size::Height(), OutputDevice::LogicToLogic(), m_aList, m_nCurrentActionElement, MAPMODE, MetaAction::Move(), NextAction(), nType, POP, PUSH, Size::setHeight(), Size::setWidth(), and Size::Width().
MetaAction * GDIMetaFile::NextAction | ( | ) |
Definition at line 173 of file gdimtf.cxx.
References m_aList, and m_nCurrentActionElement.
Referenced by Clip(), ImplExchangeColors(), Move(), Play(), Rotate(), Scale(), and Write().
|
inline |
Definition at line 110 of file gdimtf.hxx.
GDIMetaFile & GDIMetaFile::operator= | ( | const GDIMetaFile & | rMtf | ) |
Definition at line 189 of file gdimtf.cxx.
References Clear(), GetAction(), GetActionSize(), i, m_aList, m_aPrefMapMode, m_aPrefSize, m_bPause, m_bRecord, m_bUseCanvas, m_pNext, m_pOutDev, m_pPrev, n, Pause(), and Record().
bool GDIMetaFile::operator== | ( | const GDIMetaFile & | rMtf | ) | const |
Definition at line 222 of file gdimtf.cxx.
References GetAction(), GetActionSize(), GetPrefMapMode(), GetPrefSize(), m_aList, m_aPrefMapMode, m_aPrefSize, and n.
void GDIMetaFile::Pause | ( | bool | bPause | ) |
Definition at line 499 of file gdimtf.cxx.
References Linker(), m_bPause, m_bRecord, and m_pOutDev.
Referenced by GDIMetaFile(), and operator=().
void GDIMetaFile::Play | ( | GDIMetaFile & | rMtf | ) |
Definition at line 300 of file gdimtf.cxx.
References AddAction(), GetCurAction(), GetUseCanvas(), m_aList, m_bRecord, m_bUseCanvas, m_nCurrentActionElement, NextAction(), and UseCanvas().
Referenced by appendSubPage(), CreateThumbnail(), ImpGraphic::ImplDraw(), vcl::Window::ImplPaintToDevice(), Play(), vcl::PrintDialog::PrintPreviewWindow::preparePreviewBitmap(), and vcl::PrinterController::printFilteredPage().
void GDIMetaFile::Play | ( | OutputDevice * | pOutDev, |
size_t | nPos = GDI_METAFILE_END |
||
) |
Definition at line 321 of file gdimtf.cxx.
References Default, MetaAction::Execute(), GetCurAction(), OutputDevice::GetOutDevType(), OutputDevice::GetOutputSize(), OutputDevice::GetOutputSizePixel(), Size::Height(), i, ImplPlayWithRenderer(), LANGUAGE_SYSTEM, m_aList, m_bRecord, m_nCurrentActionElement, NextAction(), OUTDEV_WINDOW, OutputDevice::Pop(), OutputDevice::Push(), SAL_INFO, OutputDevice::SetDigitLanguage(), OutputDevice::SetLayoutMode(), TEXTLANGUAGE, TEXTLAYOUTMODE, and Size::Width().
void GDIMetaFile::Play | ( | OutputDevice * | pOutDev, |
const Point & | rPos, | ||
const Size & | rSize | ||
) |
Definition at line 434 of file gdimtf.cxx.
References Default, OutputDevice::GetConnectMetaFile(), OutputDevice::GetOutDevType(), OutputDevice::GetPixelOffset(), GetPrefMapMode(), GetPrefSize(), MapMode::GetScaleX(), MapMode::GetScaleY(), ImplPlayWithRenderer(), IsRecord(), LANGUAGE_SYSTEM, OutputDevice::LogicToPixel(), OUTDEV_PRINTER, OutputDevice::PixelToLogic(), Play(), OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetDigitLanguage(), OutputDevice::SetLayoutMode(), OutputDevice::SetMapMode(), MapMode::SetOrigin(), OutputDevice::SetPixelOffset(), OutputDevice::SetRelativeMapMode(), MapMode::SetScaleX(), MapMode::SetScaleY(), and Size::setWidth().
void GDIMetaFile::push_back | ( | const rtl::Reference< MetaAction > & | pAction | ) |
Definition at line 2718 of file gdimtf.cxx.
References Clear(), and ReadGDIMetaFile.
void GDIMetaFile::Record | ( | OutputDevice * | pOutDev | ) |
Definition at line 289 of file gdimtf.cxx.
References Linker(), m_aList, m_bRecord, m_nCurrentActionElement, m_pOutDev, and Stop().
Referenced by GDIMetaFile(), vcl::PrinterController::getPageFile(), ImplAddGradientEx(), and operator=().
void GDIMetaFile::ReplaceAction | ( | rtl::Reference< MetaAction > | pAction, |
size_t | nAction | ||
) |
pAction | takes ownership |
nAction | the action to replace |
Definition at line 178 of file gdimtf.cxx.
References m_aList.
Referenced by SVMConverter::ImplConvertFromSVM1().
void GDIMetaFile::ReplaceColors | ( | const Color * | pSearchColors, |
const Color * | rReplaceColors, | ||
sal_uLong | nColorCount | ||
) |
Definition at line 2146 of file gdimtf.cxx.
References Color::GetBlue(), Color::GetGreen(), Color::GetRed(), i, ImplBmpReplaceFnc(), ImplColReplaceFnc(), and ImplExchangeColors().
void GDIMetaFile::Rotate | ( | long | nAngle10 | ) |
Definition at line 800 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, F_PI1800, FirstAction(), FLOATTRANSPARENT, FONT, VclPtr< reference_type >::get(), vcl::Region::GetAsPolyPolygon(), MetaBmpScaleAction::GetBitmap(), MetaBmpScalePartAction::GetBitmap(), MetaBmpExScaleAction::GetBitmapEx(), MetaBmpExScalePartAction::GetBitmapEx(), tools::Polygon::GetBoundRect(), MetaPixelAction::GetColor(), MetaCommentAction::GetComment(), 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(), MetaTextAction::GetLen(), MetaTextArrayAction::GetLen(), MetaStretchTextAction::GetLen(), MetaLineAction::GetLineInfo(), MetaPolyLineAction::GetLineInfo(), MetaEPSAction::GetLink(), 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(), 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(), 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(), BitmapEx::Rotate(), ROUNDRECT, Hatch::SetAngle(), vcl::Font::SetOrientation(), SvtGraphicStroke::setPath(), SvtGraphicFill::setPath(), STRETCHTEXT, TEXT, TEXTARRAY, TEXTLINE, TEXTRECT, Transparent, WALLPAPER, WriteSvtGraphicFill(), WriteSvtGraphicStroke(), X, and Y.
void GDIMetaFile::Scale | ( | double | fScaleX, |
double | fScaleY | ||
) |
Definition at line 689 of file gdimtf.cxx.
References FirstAction(), FRound(), Size::Height(), m_aList, m_aPrefSize, m_nCurrentActionElement, NextAction(), MetaAction::Scale(), Size::setHeight(), Size::setWidth(), and Size::Width().
Referenced by vcl::PrinterController::getFilteredPageFile(), vcl::Window::ImplPaintToDevice(), ImplVectorizer::ImplVectorize(), Mirror(), vcl::PrintDialog::PrintPreviewWindow::preparePreviewBitmap(), and Scale().
Definition at line 710 of file gdimtf.cxx.
References Scale().
Definition at line 177 of file gdimtf.hxx.
Referenced by clipMetafileContentAgainstOwnRegions(), vcl::PrinterController::getFilteredPageFile(), vcl::PrinterController::getPageFile(), SVMConverter::ImplConvertFromSVM1(), ImpGraphic::ImplGetGDIMetaFile(), ImpGraphic::ImplReadEmbedded(), ImpGraphic::ImplSetPrefMapMode(), ImplVectorizer::ImplVectorize(), and OutputDevice::RemoveTransparenciesFromMetaFile().
Definition at line 174 of file gdimtf.hxx.
Referenced by clipMetafileContentAgainstOwnRegions(), vcl::PrinterController::getFilteredPageFile(), vcl::PrinterController::getPageFile(), SVMConverter::ImplConvertFromSVM1(), ImpGraphic::ImplGetGDIMetaFile(), ImpGraphic::ImplReadEmbedded(), ImpGraphic::ImplSetPrefSize(), ImplVectorizer::ImplVectorize(), Mirror(), and OutputDevice::RemoveTransparenciesFromMetaFile().
void GDIMetaFile::Stop | ( | ) |
Definition at line 518 of file gdimtf.cxx.
References Linker(), m_bPause, m_bRecord, and m_pOutDev.
Referenced by Clear(), vcl::PrinterController::getPageFile(), ImplAddGradientEx(), ImpGraphic::ImplGetGDIMetaFile(), and Record().
void GDIMetaFile::UseCanvas | ( | bool | _bUseCanvas | ) |
Definition at line 2830 of file gdimtf.cxx.
References m_bUseCanvas.
Referenced by Play(), and ReadGDIMetaFile().
void GDIMetaFile::WindPrev | ( | ) |
Definition at line 537 of file gdimtf.cxx.
References m_bRecord, and m_nCurrentActionElement.
void GDIMetaFile::WindStart | ( | ) |
Definition at line 531 of file gdimtf.cxx.
References m_bRecord, and m_nCurrentActionElement.
Referenced by appendSubPage(), CreateThumbnail(), vcl::PrinterController::getFilteredPageFile(), vcl::PrinterController::getPageFile(), ImpGraphic::ImplDraw(), ImpGraphic::ImplGetGDIMetaFile(), vcl::Window::ImplPaintToDevice(), vcl::PrintDialog::PrintPreviewWindow::preparePreviewBitmap(), and vcl::PrinterController::printFilteredPage().
Definition at line 2726 of file gdimtf.cxx.
References FirstAction(), GetActionSize(), SvStream::GetCompressMode(), SvStream::GetEndian(), SvStream::GetStreamCharSet(), m_aPrefMapMode, m_aPrefSize, ImplMetaWriteData::meActualCharSet, NextAction(), SvStream::SetEndian(), MetaAction::Write(), SvStream::WriteBytes(), WriteMapMode(), tools::GenericTypeSerializer::writeSize(), and SvStream::WriteUInt32().
Referenced by GraphicFilter::ExportGraphic(), MetaFloatTransparentAction::Write(), and MetaEPSAction::Write().
|
friend |
Definition at line 2625 of file gdimtf.cxx.
Referenced by Read().
|
friend |
Definition at line 2709 of file gdimtf.cxx.
|
private |
Definition at line 60 of file gdimtf.hxx.
Referenced by AddAction(), Clear(), Clip(), FirstAction(), GDIMetaFile(), GetAction(), GetActionSize(), Move(), NextAction(), operator=(), operator==(), Play(), push_back(), Record(), ReplaceAction(), and Scale().
|
private |
Definition at line 63 of file gdimtf.hxx.
Referenced by ImplExchangeColors(), operator=(), operator==(), ReadGDIMetaFile(), Rotate(), and Write().
|
private |
Definition at line 64 of file gdimtf.hxx.
Referenced by ImplExchangeColors(), operator=(), operator==(), ReadGDIMetaFile(), Rotate(), Scale(), and Write().
|
private |
Definition at line 68 of file gdimtf.hxx.
Referenced by GDIMetaFile(), operator=(), Pause(), and Stop().
|
private |
Definition at line 69 of file gdimtf.hxx.
Referenced by Clear(), GDIMetaFile(), operator=(), Pause(), Play(), Record(), Stop(), WindPrev(), and WindStart().
|
private |
Definition at line 70 of file gdimtf.hxx.
Referenced by ImplExchangeColors(), ImplPlayWithRenderer(), operator=(), Play(), and UseCanvas().
|
private |
Definition at line 61 of file gdimtf.hxx.
Referenced by Clip(), FirstAction(), Move(), NextAction(), Play(), Record(), Scale(), WindPrev(), and WindStart().
|
private |
Definition at line 66 of file gdimtf.hxx.
Referenced by Linker(), and operator=().
|
private |
Definition at line 67 of file gdimtf.hxx.
Referenced by GDIMetaFile(), operator=(), Pause(), Record(), and Stop().
|
private |
Definition at line 65 of file gdimtf.hxx.
Referenced by AddAction(), Linker(), and operator=().