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

#include <SvmWriter.hxx>

Collaboration diagram for SvmWriter:
[legend]

Public Member Functions

 SvmWriter (SvStream &rIStm)
 
SvStreamWrite (const GDIMetaFile &rMetaFile)
 
void MetaActionHandler (MetaAction *pAction, ImplMetaWriteData *pData)
 
void ActionHandler (const MetaAction *pAction)
 
void PixelHandler (const MetaPixelAction *pAction)
 
void PointHandler (const MetaPointAction *pAction)
 
void LineHandler (const MetaLineAction *pAction)
 
void RectHandler (const MetaRectAction *pAction)
 
void RoundRectHandler (const MetaRoundRectAction *pAction)
 
void EllipseHandler (const MetaEllipseAction *pAction)
 
void ArcHandler (const MetaArcAction *pAction)
 
void PieHandler (const MetaPieAction *pAction)
 
void ChordHandler (const MetaChordAction *pAction)
 
void PolyLineHandler (const MetaPolyLineAction *pAction)
 
void PolygonHandler (const MetaPolygonAction *pAction)
 
void PolyPolygonHandler (const MetaPolyPolygonAction *pAction)
 
void TextHandler (const MetaTextAction *pAction, const ImplMetaWriteData *pData)
 
void TextArrayHandler (const MetaTextArrayAction *pAction, const ImplMetaWriteData *pData)
 
void StretchTextHandler (const MetaStretchTextAction *pAction, const ImplMetaWriteData *pData)
 
void TextRectHandler (const MetaTextRectAction *pAction, const ImplMetaWriteData *pData)
 
void TextLineHandler (const MetaTextLineAction *pAction)
 
void BmpHandler (const MetaBmpAction *pAction)
 
void BmpScaleHandler (const MetaBmpScaleAction *pAction)
 
void BmpScalePartHandler (const MetaBmpScalePartAction *pAction)
 
void BmpExHandler (const MetaBmpExAction *pAction)
 
void BmpExScaleHandler (const MetaBmpExScaleAction *pAction)
 
void BmpExScalePartHandler (const MetaBmpExScalePartAction *pAction)
 
void MaskHandler (const MetaMaskAction *pAction)
 
void MaskScaleHandler (const MetaMaskScaleAction *pAction)
 
void MaskScalePartHandler (const MetaMaskScalePartAction *pAction)
 
void GradientHandler (const MetaGradientAction *pAction)
 
void GradientExHandler (const MetaGradientExAction *pAction)
 
void HatchHandler (const MetaHatchAction *pAction)
 
void WallpaperHandler (const MetaWallpaperAction *pAction)
 
void ClipRegionHandler (const MetaClipRegionAction *pAction)
 
void ISectRectClipRegionHandler (const MetaISectRectClipRegionAction *pAction)
 
void ISectRegionClipRegionHandler (const MetaISectRegionClipRegionAction *pAction)
 
void MoveClipRegionHandler (const MetaMoveClipRegionAction *pAction)
 
void LineColorHandler (const MetaLineColorAction *pAction)
 
void FillColorHandler (const MetaFillColorAction *pAction)
 
void TextColorHandler (const MetaTextColorAction *pAction)
 
void TextFillColorHandler (const MetaTextFillColorAction *pAction)
 
void TextLineColorHandler (const MetaTextLineColorAction *pAction)
 
void OverlineColorHandler (const MetaOverlineColorAction *pAction)
 
void TextAlignHandler (const MetaTextAlignAction *pAction)
 
void MapModeHandler (const MetaMapModeAction *pAction)
 
void FontHandler (const MetaFontAction *pAction, ImplMetaWriteData *pData)
 
void PushHandler (const MetaPushAction *pAction)
 
void PopHandler (const MetaPopAction *pAction)
 
void RasterOpHandler (const MetaRasterOpAction *pAction)
 
void TransparentHandler (const MetaTransparentAction *pAction)
 
void FloatTransparentHandler (const MetaFloatTransparentAction *pAction)
 
void EPSHandler (const MetaEPSAction *pAction)
 
void RefPointHandler (const MetaRefPointAction *pAction)
 
void CommentHandler (const MetaCommentAction *pAction)
 
void LayoutModeHandler (const MetaLayoutModeAction *pAction)
 
void TextLanguageHandler (const MetaTextLanguageAction *pAction)
 

Static Public Member Functions

static BitmapChecksum GetChecksum (const GDIMetaFile &rMetaFile)
 

Private Member Functions

void WriteColor (::Color aColor)
 

Private Attributes

SvStreammrStream
 

Detailed Description

Definition at line 27 of file SvmWriter.hxx.

Constructor & Destructor Documentation

◆ SvmWriter()

SvmWriter::SvmWriter ( SvStream rIStm)

Definition at line 28 of file SvmWriter.cxx.

Member Function Documentation

◆ ActionHandler()

void SvmWriter::ActionHandler ( const MetaAction pAction)

Definition at line 804 of file SvmWriter.cxx.

References MetaAction::GetType(), mrStream, and SvStream::WriteUInt16().

Referenced by MetaActionHandler().

◆ ArcHandler()

void SvmWriter::ArcHandler ( const MetaArcAction pAction)

◆ BmpExHandler()

void SvmWriter::BmpExHandler ( const MetaBmpExAction pAction)

◆ BmpExScaleHandler()

void SvmWriter::BmpExScaleHandler ( const MetaBmpExScaleAction pAction)

◆ BmpExScalePartHandler()

void SvmWriter::BmpExScalePartHandler ( const MetaBmpExScalePartAction pAction)

◆ BmpHandler()

void SvmWriter::BmpHandler ( const MetaBmpAction pAction)

◆ BmpScaleHandler()

void SvmWriter::BmpScaleHandler ( const MetaBmpScaleAction pAction)

◆ BmpScalePartHandler()

void SvmWriter::BmpScalePartHandler ( const MetaBmpScalePartAction pAction)

◆ ChordHandler()

void SvmWriter::ChordHandler ( const MetaChordAction pAction)

◆ ClipRegionHandler()

void SvmWriter::ClipRegionHandler ( const MetaClipRegionAction pAction)

◆ CommentHandler()

void SvmWriter::CommentHandler ( const MetaCommentAction pAction)

◆ EllipseHandler()

void SvmWriter::EllipseHandler ( const MetaEllipseAction pAction)

◆ EPSHandler()

void SvmWriter::EPSHandler ( const MetaEPSAction pAction)

◆ FillColorHandler()

void SvmWriter::FillColorHandler ( const MetaFillColorAction pAction)

◆ FloatTransparentHandler()

void SvmWriter::FloatTransparentHandler ( const MetaFloatTransparentAction pAction)

◆ FontHandler()

void SvmWriter::FontHandler ( const MetaFontAction pAction,
ImplMetaWriteData pData 
)

◆ GetChecksum()

BitmapChecksum SvmWriter::GetChecksum ( const GDIMetaFile rMetaFile)
static

Definition at line 72 of file SvmWriter.cxx.

References BCToBCOA(), BITMAP_CHECKSUM_SIZE, BMP, BMPEX, BMPEXSCALE, BMPEXSCALEPART, BMPSCALE, BMPSCALEPART, CLIPREGION, EPS, GDIMetaFile::GetAction(), GDIMetaFile::GetActionSize(), vcl::Region::GetAsB2DPolyPolygon(), MetaBmpAction::GetBitmap(), MetaBmpScaleAction::GetBitmap(), MetaBmpScalePartAction::GetBitmap(), MetaMaskAction::GetBitmap(), MetaMaskScaleAction::GetBitmap(), MetaMaskScalePartAction::GetBitmap(), MetaBmpExAction::GetBitmapEx(), MetaBmpExScaleAction::GetBitmapEx(), MetaBmpExScalePartAction::GetBitmapEx(), Bitmap::GetChecksum(), BitmapEx::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(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), vcl::Region::HasPolyPolygonOrB2DPolyPolygon(), Size::Height(), i, MetaClipRegionAction::IsClipping(), MASK, MASKSCALE, MASKSCALEPART, ImplMetaWriteData::meActualCharSet, MetaActionHandler(), SvStream::Seek(), SvStream::Tell(), vcl_get_checksum(), Size::Width(), Point::X(), and Point::Y().

Referenced by ImpGraphic::getChecksum().

◆ GradientExHandler()

void SvmWriter::GradientExHandler ( const MetaGradientExAction pAction)

◆ GradientHandler()

void SvmWriter::GradientHandler ( const MetaGradientAction pAction)

◆ HatchHandler()

void SvmWriter::HatchHandler ( const MetaHatchAction pAction)

◆ ISectRectClipRegionHandler()

void SvmWriter::ISectRectClipRegionHandler ( const MetaISectRectClipRegionAction pAction)

◆ ISectRegionClipRegionHandler()

void SvmWriter::ISectRegionClipRegionHandler ( const MetaISectRegionClipRegionAction pAction)

◆ LayoutModeHandler()

void SvmWriter::LayoutModeHandler ( const MetaLayoutModeAction pAction)

◆ LineColorHandler()

void SvmWriter::LineColorHandler ( const MetaLineColorAction pAction)

◆ LineHandler()

void SvmWriter::LineHandler ( const MetaLineAction pAction)

◆ MapModeHandler()

void SvmWriter::MapModeHandler ( const MetaMapModeAction pAction)

◆ MaskHandler()

void SvmWriter::MaskHandler ( const MetaMaskAction pAction)

◆ MaskScaleHandler()

void SvmWriter::MaskScaleHandler ( const MetaMaskScaleAction pAction)

◆ MaskScalePartHandler()

void SvmWriter::MaskScalePartHandler ( const MetaMaskScalePartAction pAction)

◆ MetaActionHandler()

void SvmWriter::MetaActionHandler ( MetaAction pAction,
ImplMetaWriteData pData 
)

Definition at line 419 of file SvmWriter.cxx.

References ActionHandler(), ARC, ArcHandler(), BMP, BMPEX, BmpExHandler(), BMPEXSCALE, BmpExScaleHandler(), BMPEXSCALEPART, BmpExScalePartHandler(), BmpHandler(), BMPSCALE, BmpScaleHandler(), BMPSCALEPART, BmpScalePartHandler(), CHORD, ChordHandler(), CLIPREGION, ClipRegionHandler(), COMMENT, CommentHandler(), ELLIPSE, EllipseHandler(), EPS, EPSHandler(), FILLCOLOR, FillColorHandler(), FLOATTRANSPARENT, FloatTransparentHandler(), FONT, FontHandler(), MetaAction::GetType(), GRADIENT, GRADIENTEX, GradientExHandler(), GradientHandler(), HATCH, HatchHandler(), ISECTRECTCLIPREGION, ISectRectClipRegionHandler(), ISECTREGIONCLIPREGION, ISectRegionClipRegionHandler(), LAYOUTMODE, LayoutModeHandler(), LINE, LINECOLOR, LineColorHandler(), LineHandler(), MAPMODE, MapModeHandler(), MASK, MaskHandler(), MASKSCALE, MaskScaleHandler(), MASKSCALEPART, MaskScalePartHandler(), MOVECLIPREGION, MoveClipRegionHandler(), NONE, nType, OVERLINECOLOR, OverlineColorHandler(), pData, PIE, PieHandler(), PIXEL, PixelHandler(), POINT, PointHandler(), POLYGON, PolygonHandler(), POLYLINE, PolyLineHandler(), POLYPOLYGON, PolyPolygonHandler(), POP, PopHandler(), PUSH, PushHandler(), RASTEROP, RasterOpHandler(), RECT, RectHandler(), REFPOINT, RefPointHandler(), ROUNDRECT, RoundRectHandler(), STRETCHTEXT, StretchTextHandler(), TEXT, TEXTALIGN, TextAlignHandler(), TEXTARRAY, TextArrayHandler(), TEXTCOLOR, TextColorHandler(), TEXTFILLCOLOR, TextFillColorHandler(), TextHandler(), TEXTLANGUAGE, TextLanguageHandler(), TEXTLINE, TEXTLINECOLOR, TextLineColorHandler(), TextLineHandler(), TEXTRECT, TextRectHandler(), Transparent, TransparentHandler(), WALLPAPER, and WallpaperHandler().

Referenced by GetChecksum(), and Write().

◆ MoveClipRegionHandler()

void SvmWriter::MoveClipRegionHandler ( const MetaMoveClipRegionAction pAction)

◆ OverlineColorHandler()

void SvmWriter::OverlineColorHandler ( const MetaOverlineColorAction pAction)

◆ PieHandler()

void SvmWriter::PieHandler ( const MetaPieAction pAction)

◆ PixelHandler()

void SvmWriter::PixelHandler ( const MetaPixelAction pAction)

◆ PointHandler()

void SvmWriter::PointHandler ( const MetaPointAction pAction)

◆ PolygonHandler()

void SvmWriter::PolygonHandler ( const MetaPolygonAction pAction)

◆ PolyLineHandler()

void SvmWriter::PolyLineHandler ( const MetaPolyLineAction pAction)

◆ PolyPolygonHandler()

void SvmWriter::PolyPolygonHandler ( const MetaPolyPolygonAction pAction)

◆ PopHandler()

void SvmWriter::PopHandler ( const MetaPopAction pAction)

Definition at line 1330 of file SvmWriter.cxx.

References MetaAction::GetType(), mrStream, and SvStream::WriteUInt16().

Referenced by MetaActionHandler().

◆ PushHandler()

void SvmWriter::PushHandler ( const MetaPushAction pAction)

◆ RasterOpHandler()

void SvmWriter::RasterOpHandler ( const MetaRasterOpAction pAction)

◆ RectHandler()

void SvmWriter::RectHandler ( const MetaRectAction pAction)

◆ RefPointHandler()

void SvmWriter::RefPointHandler ( const MetaRefPointAction pAction)

◆ RoundRectHandler()

void SvmWriter::RoundRectHandler ( const MetaRoundRectAction pAction)

◆ StretchTextHandler()

void SvmWriter::StretchTextHandler ( const MetaStretchTextAction pAction,
const ImplMetaWriteData pData 
)

◆ TextAlignHandler()

void SvmWriter::TextAlignHandler ( const MetaTextAlignAction pAction)

◆ TextArrayHandler()

void SvmWriter::TextArrayHandler ( const MetaTextArrayAction pAction,
const ImplMetaWriteData pData 
)

◆ TextColorHandler()

void SvmWriter::TextColorHandler ( const MetaTextColorAction pAction)

◆ TextFillColorHandler()

void SvmWriter::TextFillColorHandler ( const MetaTextFillColorAction pAction)

◆ TextHandler()

void SvmWriter::TextHandler ( const MetaTextAction pAction,
const ImplMetaWriteData pData 
)

◆ TextLanguageHandler()

void SvmWriter::TextLanguageHandler ( const MetaTextLanguageAction pAction)

◆ TextLineColorHandler()

void SvmWriter::TextLineColorHandler ( const MetaTextLineColorAction pAction)

◆ TextLineHandler()

void SvmWriter::TextLineHandler ( const MetaTextLineAction pAction)

◆ TextRectHandler()

void SvmWriter::TextRectHandler ( const MetaTextRectAction pAction,
const ImplMetaWriteData pData 
)

◆ TransparentHandler()

void SvmWriter::TransparentHandler ( const MetaTransparentAction pAction)

◆ WallpaperHandler()

void SvmWriter::WallpaperHandler ( const MetaWallpaperAction pAction)

◆ Write()

SvStream & SvmWriter::Write ( const GDIMetaFile rMetaFile)

◆ WriteColor()

void SvmWriter::WriteColor ( ::Color  aColor)
private

Member Data Documentation

◆ mrStream

SvStream& SvmWriter::mrStream
private

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