20#ifndef INCLUDED_VCL_INC_GENERIC_PRINTERGFX_HXX
21#define INCLUDED_VCL_INC_GENERIC_PRINTERGFX_HXX
23#include <osl/file.hxx>
71 mnRed ((nRGB & 0x00ff0000) >> 16),
72 mnGreen ((nRGB & 0x0000ff00) >> 8),
73 mnBlue ((nRGB & 0x000000ff) ),
88 return aColor.
Is() &&
Is()
94 {
return ! (aColor==*
this); }
99 mnBlue = (nRGB & 0x000000ff);
100 mnGreen = (nRGB & 0x0000ff00) >> 8;
101 mnRed = (nRGB & 0x00ff0000) >> 16;
109class PrintFontManager;
110struct CharacterMetric;
126 virtual sal_uInt32
GetPixelRGB (sal_uInt32 nRow, sal_uInt32 nColumn)
const = 0;
203 Point& aOldPoint, sal_Int32& nColumn );
226 rtl_TextEncoding nEncoding)
243 pspath_t eType, sal_Int32& nColumn);
248 void PSScale (
double fScaleX,
double fScaleY);
274 sal_Int32 nDX, sal_Int32 nDY);
292 const sal_uInt32 *pPolygonSize,
293 const Point** pPolygonList);
301 const sal_uInt32* pPoints,
302 const Point*
const* pPtAry,
315 sal_Int32 nPointHeight,
316 sal_Int32 nPointWidth,
virtual sal_uInt8 GetPixelGray(sal_uInt32 nRow, sal_uInt32 nColumn) const =0
virtual sal_uInt32 GetPixelRGB(sal_uInt32 nRow, sal_uInt32 nColumn) const =0
virtual sal_uInt32 GetPaletteEntryCount() const =0
virtual sal_uInt32 GetDepth() const =0
virtual sal_uInt8 GetPixelIdx(sal_uInt32 nRow, sal_uInt32 nColumn) const =0
virtual sal_uInt32 GetPaletteColor(sal_uInt32 nIdx) const =0
sal_uInt16 GetRed() const
PrinterColor & operator=(sal_uInt32 nRGB)
sal_uInt16 GetBlue() const
PrinterColor(sal_uInt16 nRed, sal_uInt16 nGreen, sal_uInt16 nBlue)
bool operator==(const PrinterColor &aColor) const
sal_uInt16 GetGreen() const
PrinterColor(sal_uInt32 nRGB)
bool operator!=(const PrinterColor &aColor) const
sal_Int32 GetFontHeight() const
void PSScale(double fScaleX, double fScaleY)
bool GetArtificialBold() const
void UnionClipRegion(sal_Int32 nX, sal_Int32 nY, sal_Int32 nDX, sal_Int32 nDY)
PrintFontManager & GetFontMgr()
sal_uInt16 GetBitCount() const
void PSHexString(const unsigned char *pString, sal_Int16 nLen)
void DrawPixel(const Point &rPoint)
void PSSetFont(const OString &rName, rtl_TextEncoding nEncoding)
void BeginSetClipRegion()
void DrawRect(const tools::Rectangle &rRectangle)
void Init(PrinterJob &rPrinterSpec)
void SetTextColor(PrinterColor const &rTextColor)
void PSBinLineTo(const Point &rCurrent, Point &rOld, sal_Int32 &nColumn)
void DrawPolygon(sal_uInt32 nPoints, const Point *pPath)
void SetLineColor(const PrinterColor &rLineColor=PrinterColor())
void PSPointOp(const Point &rPoint, const char *pOperator)
PrintFontManager & mrFontMgr
void DrawPolyPolygon(sal_uInt32 nPoly, const sal_uInt32 *pPolygonSize, const Point **pPolygonList)
void writeResources(osl::File *pFile, std::vector< OString > &rSuppliedFonts)
bool GetArtificialItalic() const
bool JoinVerticalClipRectangles(std::list< tools::Rectangle >::iterator &it, Point &aOldPoint, sal_Int32 &nColumn)
void DrawPolyPolygonBezier(sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point *const *pPtAry, const PolyFlags *const *pFlgAry)
void DrawLine(const Point &rFrom, const Point &rTo)
void PSBinCurrentPath(sal_uInt32 nPoints, const Point *pPath)
std::list< GraphicsStatus > maGraphicsStack
void writePS2ImageHeader(const tools::Rectangle &rArea, psp::ImageType nType)
void PSLineTo(const Point &rPoint)
sal_Int32 GetFontID() const
std::vector< GlyphSet > maPS3Font
std::list< tools::Rectangle > maClipRegion
void PSSetColor(const PrinterColor &rColor)
void DrawPS2MonoImage(const PrinterBmp &rBitmap, const tools::Rectangle &rArea)
void DrawPS1GrayImage(const PrinterBmp &rBitmap, const tools::Rectangle &rArea)
void DrawBitmap(const tools::Rectangle &rDest, const tools::Rectangle &rSrc, const PrinterBmp &rBitmap)
sal_Int32 GetFontWidth() const
void PSTranslate(const Point &rPoint)
void Init(const JobData &rData)
void PSBinMoveTo(const Point &rCurrent, Point &rOld, sal_Int32 &nColumn)
void PSMoveTo(const Point &rPoint)
void DrawGlyph(const Point &rPoint, const GlyphItem &rGlyph)
GraphicsStatus maVirtualStatus
GraphicsStatus & currentState()
void DrawPixel(const Point &rPoint, const PrinterColor &rPixelColor)
void DrawPolygonBezier(sal_uInt32 nPoints, const Point *pPath, const PolyFlags *pFlgAry)
void writePS2Colorspace(const PrinterBmp &rBitmap, psp::ImageType nType)
void PSShowGlyph(const unsigned char nGlyphId)
void DrawPolyLineBezier(sal_uInt32 nPoints, const Point *pPath, const PolyFlags *pFlgAry)
void DrawPS2TrueColorImage(const PrinterBmp &rBitmap, const tools::Rectangle &rArea)
void DrawPS2PaletteImage(const PrinterBmp &rBitmap, const tools::Rectangle &rArea)
void DrawPolyLine(sal_uInt32 nPoints, const Point *pPath)
void DrawPS2GrayImage(const PrinterBmp &rBitmap, const tools::Rectangle &rArea)
bool DrawEPS(const tools::Rectangle &rBoundingBox, void *pPtr, sal_uInt32 nSize)
void PSBinPath(const Point &rCurrent, Point &rOld, pspath_t eType, sal_Int32 &nColumn)
bool GetFontVertical() const
void drawGlyph(const Point &rPoint, sal_GlyphId aGlyphId)
void PSRotate(Degree10 nAngle)
void SetFont(sal_Int32 nFontID, sal_Int32 nPointHeight, sal_Int32 nPointWidth, Degree10 nAngle, bool bVertical, bool bArtItalic, bool bArtBold)
void SetFillColor(const PrinterColor &rFillColor=PrinterColor())
rtl_TextEncoding maEncoding