112fd6cc2SKarsten Heimrich /* 212fd6cc2SKarsten Heimrich * PagesView.h 312fd6cc2SKarsten Heimrich * Copyright 2005 Michael Pfeiffer. All Rights Reserved. 412fd6cc2SKarsten Heimrich */ 512fd6cc2SKarsten Heimrich 612fd6cc2SKarsten Heimrich #ifndef _PAGES_VIEW_H 712fd6cc2SKarsten Heimrich #define _PAGES_VIEW_H 812fd6cc2SKarsten Heimrich 912fd6cc2SKarsten Heimrich #include <View.h> 1012fd6cc2SKarsten Heimrich 1112fd6cc2SKarsten Heimrich class PagesView : public BView 1212fd6cc2SKarsten Heimrich { 1312fd6cc2SKarsten Heimrich public: 1412fd6cc2SKarsten Heimrich PagesView(BRect frame, const char* name, uint32 resizeMask, uint32 flags); 1512fd6cc2SKarsten Heimrich 1612fd6cc2SKarsten Heimrich void GetPreferredSize(float *width, float *height); 1712fd6cc2SKarsten Heimrich void Draw(BRect rect); 1812fd6cc2SKarsten Heimrich 19*4a0c1e13SMichael Pfeiffer void SetCollate(bool collate); 20*4a0c1e13SMichael Pfeiffer void SetReverse(bool reverse); 2112fd6cc2SKarsten Heimrich 2212fd6cc2SKarsten Heimrich private: 23*4a0c1e13SMichael Pfeiffer void _DrawPages(BPoint position, int number, int count); 24*4a0c1e13SMichael Pfeiffer void _DrawPage(BPoint position, int number); 2512fd6cc2SKarsten Heimrich 2612fd6cc2SKarsten Heimrich bool fCollate; 2712fd6cc2SKarsten Heimrich bool fReverse; 2812fd6cc2SKarsten Heimrich }; 2912fd6cc2SKarsten Heimrich 3012fd6cc2SKarsten Heimrich #endif 3112fd6cc2SKarsten Heimrich 32