/* * Lips3.h * Copyright 1999-2000 Y.Takagi. All Rights Reserved. */ #ifndef __LIPS3_H #define __LIPS3_H #include "GraphicsDriver.h" class Halftone; class LIPS3Driver : public GraphicsDriver { public: LIPS3Driver(BMessage* msg, PrinterData* printer_data, const PrinterCap* printer_cap); protected: virtual bool StartDocument(); virtual bool StartPage(int page); virtual bool NextBand(BBitmap *bitmap, BPoint *offset); virtual bool EndPage(int page); virtual bool EndDocument(bool success); private: void _Move(int x, int y); void _BeginTextMode(); void _JobStart(); void _SoftReset(); void _SizeUnitMode(); void _SelectSizeUnit(); void _PaperFeedMode(); void _SelectPageFormat(); void _DisableAutoFF(); void _SetNumberOfCopies(); void _MemorizedPosition(); void _MoveAbsoluteHorizontal(int x); void _CarriageReturn(); void _MoveDown(int dy); void _RasterGraphics(int size, int widthbyte, int height, int compression_method, const uchar* buffer); void _FormFeed(); void _JobEnd(); int fCurrentX; int fCurrentY; Halftone* fHalftone; }; #endif // __LIPS3_H