haiku/headers/libs/print/libprint/PagesView.h
Michael Pfeiffer 4a0c1e139d * Code style changes (missing header files from r39770)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39771 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-08 20:07:22 +00:00

32 lines
567 B
C++

/*
* PagesView.h
* Copyright 2005 Michael Pfeiffer. All Rights Reserved.
*/
#ifndef _PAGES_VIEW_H
#define _PAGES_VIEW_H
#include <View.h>
class PagesView : public BView
{
public:
PagesView(BRect frame, const char* name, uint32 resizeMask, uint32 flags);
void GetPreferredSize(float *width, float *height);
void Draw(BRect rect);
void SetCollate(bool collate);
void SetReverse(bool reverse);
private:
void _DrawPages(BPoint position, int number, int count);
void _DrawPage(BPoint position, int number);
bool fCollate;
bool fReverse;
};
#endif