2002-11-27 02:03:14 +03:00
|
|
|
/*
|
|
|
|
* PrintProcess.h
|
|
|
|
* Copyright 1999-2000 Y.Takagi. All Rights Reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __PRINTPROCESS_H
|
|
|
|
#define __PRINTPROCESS_H
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <list>
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include <Rect.h>
|
|
|
|
#include <Point.h>
|
|
|
|
|
2010-10-25 15:44:09 +04:00
|
|
|
|
2002-11-27 02:03:14 +03:00
|
|
|
using namespace std;
|
2010-10-25 15:44:09 +04:00
|
|
|
|
2002-11-27 02:03:14 +03:00
|
|
|
|
|
|
|
class BFile;
|
|
|
|
class BPicture;
|
|
|
|
|
|
|
|
class PictureData {
|
|
|
|
public:
|
|
|
|
PictureData(BFile *file);
|
|
|
|
~PictureData();
|
|
|
|
BPoint point;
|
|
|
|
BRect rect;
|
|
|
|
BPicture *picture;
|
|
|
|
};
|
|
|
|
|
|
|
|
class PageData {
|
|
|
|
public:
|
|
|
|
PageData();
|
|
|
|
PageData(BFile *file, bool reverse);
|
|
|
|
bool startEnum();
|
|
|
|
bool enumObject(PictureData **);
|
|
|
|
|
|
|
|
private:
|
2004-01-30 20:10:36 +03:00
|
|
|
BFile *fFile;
|
|
|
|
bool fReverse;
|
2017-07-16 12:15:43 +03:00
|
|
|
int32 fPictureCount;
|
|
|
|
int32 fRest;
|
2004-01-30 20:10:36 +03:00
|
|
|
off_t fOffset;
|
|
|
|
bool fHollow;
|
2002-11-27 02:03:14 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef list<PageData *> PageDataList;
|
|
|
|
|
|
|
|
class SpoolData {
|
|
|
|
public:
|
2017-07-16 12:15:43 +03:00
|
|
|
SpoolData(BFile *file, int32 page_count, int32 nup, bool reverse);
|
2002-11-27 02:03:14 +03:00
|
|
|
~SpoolData();
|
|
|
|
bool startEnum();
|
|
|
|
bool enumObject(PageData **);
|
|
|
|
|
|
|
|
private:
|
2004-01-30 20:10:36 +03:00
|
|
|
PageDataList fPages;
|
|
|
|
PageDataList::iterator fIt;
|
2002-11-27 02:03:14 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __PRINTPROCESS_H */
|