LibreOffice Module vcl (master) 1
|
#include <printergfx.hxx>
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 (Degree10 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 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) |
PrintFontManager & | GetFontMgr () |
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, Degree10 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) |
GraphicsStatus & | currentState () |
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 |
Degree10 | mnTextAngle |
bool | mbTextVertical |
PrintFontManager & | mrFontMgr |
std::list< tools::Rectangle > | maClipRegion |
PrinterColor | maFillColor |
PrinterColor | maTextColor |
PrinterColor | maLineColor |
GraphicsStatus | maVirtualStatus |
std::list< GraphicsStatus > | maGraphicsStack |
Definition at line 157 of file printergfx.hxx.
Enumerator | |
---|---|
moveto | |
lineto |
Definition at line 234 of file printergfx.hxx.
psp::PrinterGfx::PrinterGfx | ( | ) |
psp::PrinterGfx::~PrinterGfx | ( | ) |
void psp::PrinterGfx::BeginSetClipRegion | ( | ) |
void psp::PrinterGfx::Clear | ( | ) |
|
inlineprivate |
Definition at line 213 of file printergfx.hxx.
References maGraphicsStack.
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 | ||
) |
|
inline |
Definition at line 285 of file printergfx.hxx.
References DrawPixel(), and maLineColor.
void psp::PrinterGfx::DrawPixel | ( | const Point & | rPoint, |
const PrinterColor & | rPixelColor | ||
) |
Referenced by DrawPixel().
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 | ||
) |
|
private |
|
private |
|
private |
|
private |
|
private |
void psp::PrinterGfx::DrawRect | ( | const tools::Rectangle & | rRectangle | ) |
void psp::PrinterGfx::EndSetClipRegion | ( | ) |
|
inline |
Definition at line 332 of file printergfx.hxx.
References maVirtualStatus, and psp::GraphicsStatus::mbArtBold.
|
inline |
Definition at line 330 of file printergfx.hxx.
References maVirtualStatus, and psp::GraphicsStatus::mbArtItalic.
|
inline |
Definition at line 268 of file printergfx.hxx.
References mnDepth.
|
inline |
Definition at line 326 of file printergfx.hxx.
References maVirtualStatus, and psp::GraphicsStatus::mnTextHeight.
|
inline |
Definition at line 322 of file printergfx.hxx.
References mnFontID.
|
inline |
Definition at line 256 of file printergfx.hxx.
References mrFontMgr.
|
inline |
Definition at line 324 of file printergfx.hxx.
References mbTextVertical.
|
inline |
Definition at line 328 of file printergfx.hxx.
References maVirtualStatus, and psp::GraphicsStatus::mnTextWidth.
void psp::PrinterGfx::Init | ( | const JobData & | rData | ) |
void psp::PrinterGfx::Init | ( | PrinterJob & | rPrinterSpec | ) |
|
private |
void psp::PrinterGfx::OnEndJob | ( | ) |
void psp::PrinterGfx::PSBinCurrentPath | ( | sal_uInt32 | nPoints, |
const Point * | pPath | ||
) |
void psp::PrinterGfx::PSBinEndPath | ( | ) |
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 char * | pOperator | ||
) |
void psp::PrinterGfx::PSRotate | ( | Degree10 | nAngle | ) |
void psp::PrinterGfx::PSScale | ( | double | fScaleX, |
double | fScaleY | ||
) |
void psp::PrinterGfx::PSSetColor | ( | ) |
|
inline |
Definition at line 222 of file printergfx.hxx.
References psp::GraphicsStatus::maColor, and maVirtualStatus.
void psp::PrinterGfx::PSSetFont | ( | ) |
|
inline |
Definition at line 225 of file printergfx.hxx.
References psp::GraphicsStatus::maEncoding, psp::GraphicsStatus::maFont, and maVirtualStatus.
void psp::PrinterGfx::PSSetLineWidth | ( | ) |
void psp::PrinterGfx::PSShowGlyph | ( | const unsigned char | nGlyphId | ) |
void psp::PrinterGfx::PSTranslate | ( | const Point & | rPoint | ) |
void psp::PrinterGfx::ResetClipRegion | ( | ) |
|
inline |
Definition at line 280 of file printergfx.hxx.
References maFillColor.
void psp::PrinterGfx::SetFont | ( | sal_Int32 | nFontID, |
sal_Int32 | nPointHeight, | ||
sal_Int32 | nPointWidth, | ||
Degree10 | nAngle, | ||
bool | bVertical, | ||
bool | bArtItalic, | ||
bool | bArtBold | ||
) |
|
inline |
Definition at line 278 of file printergfx.hxx.
References maLineColor.
|
inline |
Definition at line 334 of file printergfx.hxx.
References maTextColor.
void psp::PrinterGfx::UnionClipRegion | ( | sal_Int32 | nX, |
sal_Int32 | nY, | ||
sal_Int32 | nDX, | ||
sal_Int32 | nDY | ||
) |
|
private |
|
private |
void psp::PrinterGfx::writeResources | ( | osl::File * | pFile, |
std::vector< OString > & | rSuppliedFonts | ||
) |
|
private |
Definition at line 201 of file printergfx.hxx.
|
private |
Definition at line 206 of file printergfx.hxx.
Referenced by SetFillColor().
|
private |
Definition at line 212 of file printergfx.hxx.
Referenced by currentState().
|
private |
Definition at line 208 of file printergfx.hxx.
Referenced by DrawPixel(), and SetLineColor().
|
private |
Definition at line 182 of file printergfx.hxx.
|
private |
Definition at line 207 of file printergfx.hxx.
Referenced by SetTextColor().
|
private |
Definition at line 211 of file printergfx.hxx.
Referenced by GetArtificialBold(), GetArtificialItalic(), GetFontHeight(), GetFontWidth(), PSSetColor(), and PSSetFont().
|
private |
Definition at line 170 of file printergfx.hxx.
|
private |
Definition at line 186 of file printergfx.hxx.
Referenced by GetFontVertical().
|
private |
Definition at line 171 of file printergfx.hxx.
|
private |
Definition at line 163 of file printergfx.hxx.
|
private |
Definition at line 164 of file printergfx.hxx.
|
private |
Definition at line 167 of file printergfx.hxx.
Referenced by GetBitCount().
|
private |
Definition at line 166 of file printergfx.hxx.
|
private |
Definition at line 184 of file printergfx.hxx.
Referenced by GetFontID().
|
private |
Definition at line 169 of file printergfx.hxx.
|
private |
Definition at line 185 of file printergfx.hxx.
|
private |
Definition at line 173 of file printergfx.hxx.
|
private |
Definition at line 187 of file printergfx.hxx.
Referenced by GetFontMgr().