2
* signature.h - class to handle coordinate calculations for n-up rectangular layouts
4
* Copyright (c) 2004 by Alastair M. Robinson
5
* Distributed under the terms of the GNU General Public License -
6
* see the file named "COPYING" for more details.
13
#include "pageextent.h"
14
#include "layoutrectangle.h"
16
#define DEFAULTGUTTER 15
19
class LayoutRectangle;
21
class Signature : public PageExtent
24
Signature(int rows=1,int columns=1);
25
Signature(PageExtent &extent,int rows=1,int columns=1);
29
void SetPageExtent(PageExtent &pe);
30
void SetPaperSize(int width,int height);
31
void SetMargins(int left,int right,int top,int bottom);
32
void SetGutters(int hgutter,int vgutter);
33
void SetColumns(int columns);
34
void SetRows(int rows);
51
LayoutRectangle *GetLayoutRectangle(int row,int column);
52
void EqualiseMargins();
54
int ColumnAt(int xpos);
59
float celwidth,celheight;