LibreOffice Module vcl (master)  1
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
psp::PrinterGfx Class Reference

#include <printergfx.hxx>

Collaboration diagram for psp::PrinterGfx:
[legend]

Public Types

enum  pspath_t {
  moveto = 0,
  lineto = 1
}
 

Public Member Functions

void PSSetColor ()
 
void PSSetLineWidth ()
 
void PSSetFont ()
 
void PSSetColor (const PrinterColor &rColor)
 
void PSSetFont (const OString &rName, rtl_TextEncoding nEncoding)
 
void PSGSave ()
 
void PSGRestore ()
 
void PSBinLineTo (const Point &rCurrent, Point &rOld, sal_Int32 &nColumn)
 
void PSBinMoveTo (const Point &rCurrent, Point &rOld, sal_Int32 &nColumn)
 
void PSBinStartPath ()
 
void PSBinEndPath ()
 
void PSBinCurrentPath (sal_uInt32 nPoints, const Point *pPath)
 
void PSBinPath (const Point &rCurrent, Point &rOld, pspath_t eType, sal_Int32 &nColumn)
 
void PSRotate (sal_Int32 nAngle)
 
void PSTranslate (const Point &rPoint)
 
void PSMoveTo (const Point &rPoint)
 
void PSScale (double fScaleX, double fScaleY)
 
void PSLineTo (const Point &rPoint)
 
void PSPointOp (const Point &rPoint, const sal_Char *pOperator)
 
void PSHexString (const unsigned char *pString, sal_Int16 nLen)
 
void PSShowGlyph (const unsigned char nGlyphId)
 
void OnEndJob ()
 
void writeResources (osl::File *pFile, std::vector< OString > &rSuppliedFonts)
 
PrintFontManagerGetFontMgr ()
 
void drawGlyph (const Point &rPoint, sal_GlyphId aGlyphId)
 
 PrinterGfx ()
 
 ~PrinterGfx ()
 
void Init (PrinterJob &rPrinterSpec)
 
void Init (const JobData &rData)
 
void Clear ()
 
sal_uInt16 GetBitCount () const
 
void ResetClipRegion ()
 
void BeginSetClipRegion ()
 
void UnionClipRegion (sal_Int32 nX, sal_Int32 nY, sal_Int32 nDX, sal_Int32 nDY)
 
void EndSetClipRegion ()
 
void SetLineColor (const PrinterColor &rLineColor=PrinterColor())
 
void SetFillColor (const PrinterColor &rFillColor=PrinterColor())
 
void DrawPixel (const Point &rPoint, const PrinterColor &rPixelColor)
 
void DrawPixel (const Point &rPoint)
 
void DrawLine (const Point &rFrom, const Point &rTo)
 
void DrawRect (const tools::Rectangle &rRectangle)
 
void DrawPolyLine (sal_uInt32 nPoints, const Point *pPath)
 
void DrawPolygon (sal_uInt32 nPoints, const Point *pPath)
 
void DrawPolyPolygon (sal_uInt32 nPoly, const sal_uInt32 *pPolygonSize, const Point **pPolygonList)
 
void DrawPolyLineBezier (sal_uInt32 nPoints, const Point *pPath, const PolyFlags *pFlgAry)
 
void DrawPolygonBezier (sal_uInt32 nPoints, const Point *pPath, const PolyFlags *pFlgAry)
 
void DrawPolyPolygonBezier (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point *const *pPtAry, const PolyFlags *const *pFlgAry)
 
bool DrawEPS (const tools::Rectangle &rBoundingBox, void *pPtr, sal_uInt32 nSize)
 
void DrawBitmap (const tools::Rectangle &rDest, const tools::Rectangle &rSrc, const PrinterBmp &rBitmap)
 
void SetFont (sal_Int32 nFontID, sal_Int32 nPointHeight, sal_Int32 nPointWidth, sal_Int32 nAngle, bool bVertical, bool bArtItalic, bool bArtBold)
 
sal_Int32 GetFontID () const
 
bool GetFontVertical () const
 
sal_Int32 GetFontHeight () const
 
sal_Int32 GetFontWidth () const
 
bool GetArtificialItalic () const
 
bool GetArtificialBold () const
 
void SetTextColor (PrinterColor const &rTextColor)
 
void DrawGlyph (const Point &rPoint, const GlyphItem &rGlyph)
 

Private Member Functions

void DrawPS1GrayImage (const PrinterBmp &rBitmap, const tools::Rectangle &rArea)
 
void writePS2ImageHeader (const tools::Rectangle &rArea, psp::ImageType nType)
 
void writePS2Colorspace (const PrinterBmp &rBitmap, psp::ImageType nType)
 
void DrawPS2GrayImage (const PrinterBmp &rBitmap, const tools::Rectangle &rArea)
 
void DrawPS2PaletteImage (const PrinterBmp &rBitmap, const tools::Rectangle &rArea)
 
void DrawPS2TrueColorImage (const PrinterBmp &rBitmap, const tools::Rectangle &rArea)
 
void DrawPS2MonoImage (const PrinterBmp &rBitmap, const tools::Rectangle &rArea)
 
bool JoinVerticalClipRectangles (std::list< tools::Rectangle >::iterator &it, Point &aOldPoint, sal_Int32 &nColumn)
 
GraphicsStatuscurrentState ()
 

Private Attributes

double mfScaleX
 
double mfScaleY
 
sal_uInt32 mnDpi
 
sal_uInt16 mnDepth
 
sal_uInt16 mnPSLevel
 
bool mbColor
 
bool mbUploadPS42Fonts
 
osl::File * mpPageBody
 
std::vector< GlyphSet > maPS3Font
 
sal_Int32 mnFontID
 
sal_Int32 mnTextAngle
 
bool mbTextVertical
 
PrintFontManagermrFontMgr
 
std::list< tools::RectanglemaClipRegion
 
PrinterColor maFillColor
 
PrinterColor maTextColor
 
PrinterColor maLineColor
 
GraphicsStatus maVirtualStatus
 
std::list< GraphicsStatusmaGraphicsStack
 

Detailed Description

Definition at line 158 of file printergfx.hxx.

Member Enumeration Documentation

Enumerator
moveto 
lineto 

Definition at line 235 of file printergfx.hxx.

Constructor & Destructor Documentation

psp::PrinterGfx::PrinterGfx ( )
psp::PrinterGfx::~PrinterGfx ( )

Member Function Documentation

void psp::PrinterGfx::BeginSetClipRegion ( )
void psp::PrinterGfx::Clear ( )
GraphicsStatus& psp::PrinterGfx::currentState ( )
inlineprivate

Definition at line 214 of file printergfx.hxx.

void psp::PrinterGfx::DrawBitmap ( const tools::Rectangle rDest,
const tools::Rectangle rSrc,
const PrinterBmp rBitmap 
)
bool psp::PrinterGfx::DrawEPS ( const tools::Rectangle rBoundingBox,
void pPtr,
sal_uInt32  nSize 
)
void psp::PrinterGfx::drawGlyph ( const Point rPoint,
sal_GlyphId  aGlyphId 
)
void psp::PrinterGfx::DrawGlyph ( const Point rPoint,
const GlyphItem rGlyph 
)
void psp::PrinterGfx::DrawLine ( const Point rFrom,
const Point rTo 
)
void psp::PrinterGfx::DrawPixel ( const Point rPoint,
const PrinterColor rPixelColor 
)
void psp::PrinterGfx::DrawPixel ( const Point rPoint)
inline

Definition at line 286 of file printergfx.hxx.

void psp::PrinterGfx::DrawPolygon ( sal_uInt32  nPoints,
const Point pPath 
)
void psp::PrinterGfx::DrawPolygonBezier ( sal_uInt32  nPoints,
const Point pPath,
const PolyFlags pFlgAry 
)
void psp::PrinterGfx::DrawPolyLine ( sal_uInt32  nPoints,
const Point pPath 
)
void psp::PrinterGfx::DrawPolyLineBezier ( sal_uInt32  nPoints,
const Point pPath,
const PolyFlags pFlgAry 
)
void psp::PrinterGfx::DrawPolyPolygon ( sal_uInt32  nPoly,
const sal_uInt32 *  pPolygonSize,
const Point **  pPolygonList 
)
void psp::PrinterGfx::DrawPolyPolygonBezier ( sal_uInt32  nPoly,
const sal_uInt32 *  pPoints,
const Point *const *  pPtAry,
const PolyFlags *const *  pFlgAry 
)
void psp::PrinterGfx::DrawPS1GrayImage ( const PrinterBmp rBitmap,
const tools::Rectangle rArea 
)
private
void psp::PrinterGfx::DrawPS2GrayImage ( const PrinterBmp rBitmap,
const tools::Rectangle rArea 
)
private
void psp::PrinterGfx::DrawPS2MonoImage ( const PrinterBmp rBitmap,
const tools::Rectangle rArea 
)
private
void psp::PrinterGfx::DrawPS2PaletteImage ( const PrinterBmp rBitmap,
const tools::Rectangle rArea 
)
private
void psp::PrinterGfx::DrawPS2TrueColorImage ( const PrinterBmp rBitmap,
const tools::Rectangle rArea 
)
private
void psp::PrinterGfx::DrawRect ( const tools::Rectangle rRectangle)
void psp::PrinterGfx::EndSetClipRegion ( )
bool psp::PrinterGfx::GetArtificialBold ( ) const
inline

Definition at line 333 of file printergfx.hxx.

References psp::GraphicsStatus::mbArtBold.

bool psp::PrinterGfx::GetArtificialItalic ( ) const
inline

Definition at line 331 of file printergfx.hxx.

References psp::GraphicsStatus::mbArtItalic.

sal_uInt16 psp::PrinterGfx::GetBitCount ( ) const
inline

Definition at line 269 of file printergfx.hxx.

sal_Int32 psp::PrinterGfx::GetFontHeight ( ) const
inline

Definition at line 327 of file printergfx.hxx.

References psp::GraphicsStatus::mnTextHeight.

sal_Int32 psp::PrinterGfx::GetFontID ( ) const
inline

Definition at line 323 of file printergfx.hxx.

PrintFontManager& psp::PrinterGfx::GetFontMgr ( )
inline

Definition at line 257 of file printergfx.hxx.

bool psp::PrinterGfx::GetFontVertical ( ) const
inline

Definition at line 325 of file printergfx.hxx.

sal_Int32 psp::PrinterGfx::GetFontWidth ( ) const
inline

Definition at line 329 of file printergfx.hxx.

References psp::GraphicsStatus::mnTextWidth.

void psp::PrinterGfx::Init ( PrinterJob rPrinterSpec)
void psp::PrinterGfx::Init ( const JobData rData)
bool psp::PrinterGfx::JoinVerticalClipRectangles ( std::list< tools::Rectangle >::iterator &  it,
Point aOldPoint,
sal_Int32 &  nColumn 
)
private
void psp::PrinterGfx::OnEndJob ( )
void psp::PrinterGfx::PSBinCurrentPath ( sal_uInt32  nPoints,
const Point pPath 
)
void psp::PrinterGfx::PSBinEndPath ( )
void psp::PrinterGfx::PSBinLineTo ( const Point rCurrent,
Point rOld,
sal_Int32 &  nColumn 
)
void psp::PrinterGfx::PSBinMoveTo ( const Point rCurrent,
Point rOld,
sal_Int32 &  nColumn 
)
void psp::PrinterGfx::PSBinPath ( const Point rCurrent,
Point rOld,
pspath_t  eType,
sal_Int32 &  nColumn 
)
void psp::PrinterGfx::PSBinStartPath ( )
void psp::PrinterGfx::PSGRestore ( )
void psp::PrinterGfx::PSGSave ( )
void psp::PrinterGfx::PSHexString ( const unsigned char *  pString,
sal_Int16  nLen 
)
void psp::PrinterGfx::PSLineTo ( const Point rPoint)
void psp::PrinterGfx::PSMoveTo ( const Point rPoint)
void psp::PrinterGfx::PSPointOp ( const Point rPoint,
const sal_Char pOperator 
)
void psp::PrinterGfx::PSRotate ( sal_Int32  nAngle)
void psp::PrinterGfx::PSScale ( double  fScaleX,
double  fScaleY 
)
void psp::PrinterGfx::PSSetColor ( )
void psp::PrinterGfx::PSSetColor ( const PrinterColor rColor)
inline

Definition at line 223 of file printergfx.hxx.

References psp::GraphicsStatus::maColor.

void psp::PrinterGfx::PSSetFont ( )
void psp::PrinterGfx::PSSetFont ( const OString &  rName,
rtl_TextEncoding  nEncoding 
)
inline

Definition at line 226 of file printergfx.hxx.

References psp::GraphicsStatus::maEncoding, and psp::GraphicsStatus::maFont.

void psp::PrinterGfx::PSSetLineWidth ( )
void psp::PrinterGfx::PSShowGlyph ( const unsigned char  nGlyphId)
void psp::PrinterGfx::PSTranslate ( const Point rPoint)
void psp::PrinterGfx::ResetClipRegion ( )
void psp::PrinterGfx::SetFillColor ( const PrinterColor rFillColor = PrinterColor())
inline

Definition at line 281 of file printergfx.hxx.

void psp::PrinterGfx::SetFont ( sal_Int32  nFontID,
sal_Int32  nPointHeight,
sal_Int32  nPointWidth,
sal_Int32  nAngle,
bool  bVertical,
bool  bArtItalic,
bool  bArtBold 
)
void psp::PrinterGfx::SetLineColor ( const PrinterColor rLineColor = PrinterColor())
inline

Definition at line 279 of file printergfx.hxx.

void psp::PrinterGfx::SetTextColor ( PrinterColor const &  rTextColor)
inline

Definition at line 335 of file printergfx.hxx.

void psp::PrinterGfx::UnionClipRegion ( sal_Int32  nX,
sal_Int32  nY,
sal_Int32  nDX,
sal_Int32  nDY 
)
void psp::PrinterGfx::writePS2Colorspace ( const PrinterBmp rBitmap,
psp::ImageType  nType 
)
private
void psp::PrinterGfx::writePS2ImageHeader ( const tools::Rectangle rArea,
psp::ImageType  nType 
)
private
void psp::PrinterGfx::writeResources ( osl::File *  pFile,
std::vector< OString > &  rSuppliedFonts 
)

Member Data Documentation

std::list< tools::Rectangle > psp::PrinterGfx::maClipRegion
private

Definition at line 202 of file printergfx.hxx.

PrinterColor psp::PrinterGfx::maFillColor
private

Definition at line 207 of file printergfx.hxx.

std::list< GraphicsStatus > psp::PrinterGfx::maGraphicsStack
private

Definition at line 213 of file printergfx.hxx.

PrinterColor psp::PrinterGfx::maLineColor
private

Definition at line 209 of file printergfx.hxx.

std::vector< GlyphSet > psp::PrinterGfx::maPS3Font
private

Definition at line 183 of file printergfx.hxx.

PrinterColor psp::PrinterGfx::maTextColor
private

Definition at line 208 of file printergfx.hxx.

GraphicsStatus psp::PrinterGfx::maVirtualStatus
private

Definition at line 212 of file printergfx.hxx.

bool psp::PrinterGfx::mbColor
private

Definition at line 171 of file printergfx.hxx.

bool psp::PrinterGfx::mbTextVertical
private

Definition at line 187 of file printergfx.hxx.

bool psp::PrinterGfx::mbUploadPS42Fonts
private

Definition at line 172 of file printergfx.hxx.

double psp::PrinterGfx::mfScaleX
private

Definition at line 164 of file printergfx.hxx.

double psp::PrinterGfx::mfScaleY
private

Definition at line 165 of file printergfx.hxx.

sal_uInt16 psp::PrinterGfx::mnDepth
private

Definition at line 168 of file printergfx.hxx.

sal_uInt32 psp::PrinterGfx::mnDpi
private

Definition at line 167 of file printergfx.hxx.

sal_Int32 psp::PrinterGfx::mnFontID
private

Definition at line 185 of file printergfx.hxx.

sal_uInt16 psp::PrinterGfx::mnPSLevel
private

Definition at line 170 of file printergfx.hxx.

sal_Int32 psp::PrinterGfx::mnTextAngle
private

Definition at line 186 of file printergfx.hxx.

osl::File* psp::PrinterGfx::mpPageBody
private

Definition at line 174 of file printergfx.hxx.

PrintFontManager& psp::PrinterGfx::mrFontMgr
private

Definition at line 188 of file printergfx.hxx.


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