haiku/headers/libs/print/libprint/PagesView.h

32 lines
565 B
C
Raw Normal View History

/*
* 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