* rewrote header file

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24684 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Karsten Heimrich
2008-03-30 17:42:13 +00:00
parent 1bc2fbc25d
commit e0a750ce0b
+13 -23
View File
@@ -1,25 +1,19 @@
/*******************************************************************************
/
/ File: PrintJob.h
/
/ Description: BPrintJob runs a printing session.
/
/ Copyright 1996-98, Be Incorporated, All Rights Reserved
/
*******************************************************************************/
/*
* Copyright 2008, Haiku Inc.
* Distributed under the terms of the MIT License.
*/
#ifndef _PRINTSESSION_H
#define _PRINTSESSION_H
#include <BeBuild.h>
#include <Picture.h> /* For convenience */
#include <Picture.h>
#include <Rect.h>
class BFile;
class BView;
/*----------------------------------------------------------------*/
/*----- BPrintJob related structures -----------------------------*/
struct print_file_header {
int32 version;
@@ -30,16 +24,14 @@ struct print_file_header {
int32 _reserved_5_;
};
struct _page_header_;
/*----------------------------------------------------------------*/
/*----- BPrintJob class ------------------------------------------*/
class BPrintJob {
public:
enum // These values are returned by PrinterType()
{
enum {
B_BW_PRINTER = 0,
B_COLOR_PRINTER
};
@@ -73,9 +65,7 @@ virtual void DrawView(BView *a_view, BRect a_rect, BPoint where);
int32 PrinterType(void * = NULL) const;
/*----- Private or reserved -----------------------------------------*/
private:
virtual void _ReservedPrintJob1();
virtual void _ReservedPrintJob2();
virtual void _ReservedPrintJob3();
@@ -84,7 +74,8 @@ virtual void _ReservedPrintJob4();
BPrintJob(const BPrintJob &);
BPrintJob &operator=(const BPrintJob &);
void _RecurseView(BView *view, BPoint origin, BPicture *p, BRect r);
void _RecurseView(BView *view, BPoint origin,
BPicture *picture, BRect r);
void _GetMangledName(char *buffer, size_t bufferSize) const;
void _HandlePageSetup(BMessage *setup);
bool _HandlePrintSetup(BMessage *setup);
@@ -98,6 +89,7 @@ virtual void _ReservedPrintJob4();
char * _GetCurrentPrinterName() const;
void _LoadDefaultSettings();
private:
char * fPrintJobName;
int32 fPageNumber;
BFile * fSpoolFile;
@@ -118,7 +110,5 @@ virtual void _ReservedPrintJob4();
uint32 _reserved[2];
};
/*-------------------------------------------------------------*/
/*-------------------------------------------------------------*/
#endif /* _PRINTSESSION_H */
#endif // _PRINTSESSION_H