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 ( SvStream rIStm)

Definition at line 28 of file SvmWriter.cxx.

Member Function Documentation

void SvmWriter::ActionHandler ( const MetaAction pAction)

Definition at line 804 of file SvmWriter.cxx.

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

Referenced by MetaActionHandler().

void SvmWriter::ArcHandler ( const MetaArcAction pAction)
void SvmWriter::BmpExHandler ( const MetaBmpExAction pAction)
void SvmWriter::BmpExScaleHandler ( const MetaBmpExScaleAction pAction)
void SvmWriter::BmpExScalePartHandler ( const MetaBmpExScalePartAction *  pAction)

Definition at line 1115 of file SvmWriter.cxx.

References mrStream, WriteDIBBitmapEx(), and SvStream::WriteUInt16().

Referenced by MetaActionHandler().

void SvmWriter::BmpHandler ( const MetaBmpAction pAction)
void SvmWriter::BmpScaleHandler ( const MetaBmpScaleAction pAction)
void SvmWriter::BmpScalePartHandler ( const MetaBmpScalePartAction *  pAction)

Definition at line 1075 of file SvmWriter.cxx.

References mrStream, WriteDIB(), and SvStream::WriteUInt16().

Referenced by MetaActionHandler().

void SvmWriter::ChordHandler ( const MetaChordAction pAction)
void SvmWriter::ClipRegionHandler ( const MetaClipRegionAction pAction)
void SvmWriter::CommentHandler ( const MetaCommentAction pAction)
void SvmWriter::EllipseHandler ( const MetaEllipseAction pAction)
void SvmWriter::EPSHandler ( const MetaEPSAction pAction)
void SvmWriter::FillColorHandler ( const MetaFillColorAction pAction)
void SvmWriter::FloatTransparentHandler ( const MetaFloatTransparentAction pAction)
void SvmWriter::FontHandler ( const MetaFontAction pAction,
ImplMetaWriteData pData 
)
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(), MetaMaskAction::GetBitmap(), MetaMaskScaleAction::GetBitmap(), MetaMaskScalePartAction::GetBitmap(), MetaBmpExAction::GetBitmapEx(), MetaBmpExScaleAction::GetBitmapEx(), BitmapEx::GetChecksum(), Bitmap::GetChecksum(), MetaMaskAction::GetColor(), MetaMaskScaleAction::GetColor(), MetaMaskScalePartAction::GetColor(), SvMemoryStream::GetData(), GfxLink::GetData(), GfxLink::GetDataSize(), MetaMaskScalePartAction::GetDestPoint(), MetaMaskScalePartAction::GetDestSize(), MetaEPSAction::GetLink(), MetaBmpAction::GetPoint(), MetaBmpScaleAction::GetPoint(), MetaBmpExAction::GetPoint(), MetaBmpExScaleAction::GetPoint(), MetaMaskAction::GetPoint(), MetaMaskScaleAction::GetPoint(), MetaClipRegionAction::GetRegion(), MetaBmpScaleAction::GetSize(), MetaBmpExScaleAction::GetSize(), MetaMaskScaleAction::GetSize(), MetaMaskScalePartAction::GetSrcPoint(), MetaMaskScalePartAction::GetSrcSize(), SvStream::GetStreamCharSet(), MetaAction::GetType(), vcl::Region::HasPolyPolygonOrB2DPolyPolygon(), Size::Height(), i, MetaClipRegionAction::IsClipping(), MASK, MASKSCALE, MASKSCALEPART, ImplMetaWriteData::meActualCharSet, MetaActionHandler(), SvStream::Seek(), SvStream::Tell(), vcl_get_checksum(), and Size::Width().

Referenced by ImpGraphic::getChecksum().

void SvmWriter::GradientExHandler ( const MetaGradientExAction pAction)
void SvmWriter::GradientHandler ( const MetaGradientAction pAction)
void SvmWriter::HatchHandler ( const MetaHatchAction pAction)
void SvmWriter::ISectRectClipRegionHandler ( const MetaISectRectClipRegionAction pAction)
void SvmWriter::ISectRegionClipRegionHandler ( const MetaISectRegionClipRegionAction pAction)
void SvmWriter::LayoutModeHandler ( const MetaLayoutModeAction pAction)
void SvmWriter::LineColorHandler ( const MetaLineColorAction pAction)
void SvmWriter::LineHandler ( const MetaLineAction pAction)
void SvmWriter::MapModeHandler ( const MetaMapModeAction pAction)
void SvmWriter::MaskHandler ( const MetaMaskAction pAction)
void SvmWriter::MaskScaleHandler ( const MetaMaskScaleAction pAction)
void SvmWriter::MaskScalePartHandler ( const MetaMaskScalePartAction pAction)
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(), 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().

void SvmWriter::MoveClipRegionHandler ( const MetaMoveClipRegionAction pAction)
void SvmWriter::OverlineColorHandler ( const MetaOverlineColorAction pAction)
void SvmWriter::PieHandler ( const MetaPieAction pAction)
void SvmWriter::PixelHandler ( const MetaPixelAction pAction)
void SvmWriter::PointHandler ( const MetaPointAction pAction)
void SvmWriter::PolygonHandler ( const MetaPolygonAction pAction)
void SvmWriter::PolyLineHandler ( const MetaPolyLineAction pAction)
void SvmWriter::PolyPolygonHandler ( const MetaPolyPolygonAction pAction)
void SvmWriter::PopHandler ( const MetaPopAction pAction)

Definition at line 1324 of file SvmWriter.cxx.

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

Referenced by MetaActionHandler().

void SvmWriter::PushHandler ( const MetaPushAction pAction)
void SvmWriter::RasterOpHandler ( const MetaRasterOpAction pAction)
void SvmWriter::RectHandler ( const MetaRectAction pAction)
void SvmWriter::RefPointHandler ( const MetaRefPointAction pAction)
void SvmWriter::RoundRectHandler ( const MetaRoundRectAction pAction)
void SvmWriter::StretchTextHandler ( const MetaStretchTextAction pAction,
const ImplMetaWriteData pData 
)
void SvmWriter::TextAlignHandler ( const MetaTextAlignAction pAction)
void SvmWriter::TextArrayHandler ( const MetaTextArrayAction *  pAction,
const ImplMetaWriteData pData 
)
void SvmWriter::TextColorHandler ( const MetaTextColorAction pAction)
void SvmWriter::TextFillColorHandler ( const MetaTextFillColorAction pAction)
void SvmWriter::TextHandler ( const MetaTextAction pAction,
const ImplMetaWriteData pData 
)
void SvmWriter::TextLanguageHandler ( const MetaTextLanguageAction pAction)
void SvmWriter::TextLineColorHandler ( const MetaTextLineColorAction pAction)
void SvmWriter::TextLineHandler ( const MetaTextLineAction pAction)
void SvmWriter::TextRectHandler ( const MetaTextRectAction pAction,
const ImplMetaWriteData pData 
)
void SvmWriter::TransparentHandler ( const MetaTransparentAction pAction)
void SvmWriter::WallpaperHandler ( const MetaWallpaperAction *  pAction)

Definition at line 1207 of file SvmWriter.cxx.

References mrStream, SvStream::WriteUInt16(), and WriteWallpaper().

Referenced by MetaActionHandler().

SvStream & SvmWriter::Write ( const GDIMetaFile rMetaFile)
void SvmWriter::WriteColor ( ::Color  aColor)
private

Member Data Documentation

SvStream& SvmWriter::mrStream
private

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