20 #ifndef INCLUDED_VCL_INC_GENERIC_PRINTERGFX_HXX
21 #define INCLUDED_VCL_INC_GENERIC_PRINTERGFX_HXX
23 #include <osl/file.hxx>
62 , meColorspace(eInvalid)
72 mnRed ((nRGB & 0x00ff0000) >> 16),
73 mnGreen ((nRGB & 0x0000ff00) >> 8),
74 mnBlue ((nRGB & 0x000000ff) ),
79 {
return meColorspace != eInvalid; }
89 return aColor.
Is() && Is()
90 && mnRed == aColor.
mnRed
92 && mnBlue == aColor.
mnBlue;
95 {
return ! (aColor==*
this); }
100 mnBlue = (nRGB & 0x000000ff);
101 mnGreen = (nRGB & 0x0000ff00) >> 8;
102 mnRed = (nRGB & 0x00ff0000) >> 16;
110 class PrintFontManager;
111 struct CharacterMetric;
125 virtual sal_uInt32 GetPaletteColor (sal_uInt32 nIdx)
const = 0;
126 virtual sal_uInt32 GetPaletteEntryCount ()
const = 0;
127 virtual sal_uInt32 GetPixelRGB (sal_uInt32 nRow, sal_uInt32 nColumn)
const = 0;
128 virtual sal_uInt8 GetPixelGray (sal_uInt32 nRow, sal_uInt32 nColumn)
const = 0;
129 virtual sal_uInt8 GetPixelIdx (sal_uInt32 nRow, sal_uInt32 nColumn)
const = 0;
130 virtual sal_uInt32 GetDepth ()
const = 0;
203 bool JoinVerticalClipRectangles( std::list< tools::Rectangle >::iterator& it,
204 Point& aOldPoint, sal_Int32& nColumn );
219 void PSSetLineWidth ();
224 { maVirtualStatus.
maColor = rColor; }
227 rtl_TextEncoding nEncoding)
236 void PSBinLineTo (
const Point& rCurrent, Point& rOld,
238 void PSBinMoveTo (
const Point& rCurrent, Point& rOld,
240 void PSBinStartPath ();
241 void PSBinEndPath ();
242 void PSBinCurrentPath (sal_uInt32 nPoints,
const Point* pPath);
243 void PSBinPath (
const Point& rCurrent, Point& rOld,
244 pspath_t eType, sal_Int32& nColumn);
247 void PSTranslate (
const Point& rPoint);
248 void PSMoveTo (
const Point& rPoint);
249 void PSScale (
double fScaleX,
double fScaleY);
250 void PSLineTo(
const Point& rPoint );
251 void PSPointOp (
const Point& rPoint,
const char* pOperator);
252 void PSHexString (
const unsigned char* pString, sal_Int16 nLen);
253 void PSShowGlyph (
const unsigned char nGlyphId);
256 void writeResources( osl::File* pFile, std::vector< OString >& rSuppliedFonts );
259 void drawGlyph(
const Point& rPoint,
272 void ResetClipRegion ();
273 void BeginSetClipRegion();
274 void UnionClipRegion (sal_Int32 nX, sal_Int32 nY,
275 sal_Int32 nDX, sal_Int32 nDY);
276 void EndSetClipRegion ();
280 { maLineColor = rLineColor; }
282 { maFillColor = rFillColor; }
285 void DrawPixel (
const Point& rPoint,
const PrinterColor& rPixelColor);
287 { DrawPixel (rPoint, maLineColor); }
288 void DrawLine (
const Point& rFrom,
const Point& rTo);
290 void DrawPolyLine (sal_uInt32 nPoints,
const Point* pPath );
291 void DrawPolygon (sal_uInt32 nPoints,
const Point* pPath);
292 void DrawPolyPolygon (sal_uInt32 nPoly,
293 const sal_uInt32 *pPolygonSize,
294 const Point** pPolygonList);
295 void DrawPolyLineBezier (sal_uInt32 nPoints,
298 void DrawPolygonBezier (sal_uInt32 nPoints,
301 void DrawPolyPolygonBezier (sal_uInt32 nPoly,
302 const sal_uInt32* pPoints,
303 const Point*
const* pPtAry,
307 bool DrawEPS (
const tools::Rectangle& rBoundingBox,
void* pPtr, sal_uInt32 nSize);
316 sal_Int32 nPointHeight,
317 sal_Int32 nPointWidth,
326 {
return mbTextVertical; }
336 { maTextColor = rTextColor; }
338 void DrawGlyph(
const Point& rPoint,
345 #endif // INCLUDED_VCL_INC_GENERIC_PRINTERGFX_HXX
bool GetArtificialItalic() const
PrintFontManager & GetFontMgr()
bool operator!=(const ItalicMatrix &a, const ItalicMatrix &b)
void SetLineColor(const PrinterColor &rLineColor=PrinterColor())
PrintFontManager & mrFontMgr
PrinterColor(sal_uInt32 nRGB)
GraphicsStatus maVirtualStatus
void PSSetColor(const PrinterColor &rColor)
std::list< tools::Rectangle > maClipRegion
sal_Int32 GetFontWidth() const
PrinterColor(sal_uInt16 nRed, sal_uInt16 nGreen, sal_uInt16 nBlue)
bool operator==(const ItalicMatrix &a, const ItalicMatrix &b)
sal_Int32 GetFontHeight() const
bool GetArtificialBold() const
sal_uInt16 GetRed() const
void DrawPixel(const Point &rPoint)
rtl_TextEncoding maEncoding
void SetFillColor(const PrinterColor &rFillColor=PrinterColor())
void PSSetFont(const OString &rName, rtl_TextEncoding nEncoding)
sal_uInt16 GetBitCount() const
bool GetFontVertical() const
sal_uInt16 GetGreen() const
sal_uInt16 GetBlue() const
std::vector< GlyphSet > maPS3Font
std::list< GraphicsStatus > maGraphicsStack
void SetTextColor(PrinterColor const &rTextColor)
GraphicsStatus & currentState()
sal_Int32 GetFontID() const