xref: /haiku/headers/libs/print/libprint/PagesView.h (revision 95c9effd68127df2dce202d5e254a7c86560010a)
1 /*
2  * PagesView.h
3  * Copyright 2005 Michael Pfeiffer. All Rights Reserved.
4  */
5 
6 #ifndef _PAGES_VIEW_H
7 #define _PAGES_VIEW_H
8 
9 #include <View.h>
10 
11 class PagesView : public BView
12 {
13 public:
14 	PagesView(BRect frame, const char* name, uint32 resizeMask, uint32 flags);
15 
16 	void GetPreferredSize(float *width, float *height);
17 	void Draw(BRect rect);
18 
19 	void SetCollate(bool collate);
20 	void SetReverse(bool reverse);
21 
22 private:
23 	void _DrawPages(BPoint position, int number, int count);
24 	void _DrawPage(BPoint position, int number);
25 
26 	bool fCollate;
27 	bool fReverse;
28 };
29 
30 #endif
31 
32