Better document which members can be set when writing
[survex.git] / src / avenprcore.h
blob8c510532648c45cdc042687d1d605a957a77962b
1 /* avenprcore.h
2 * Header file for printer independent parts of Survex printer drivers
3 * Copyright (C) 1994-2002,2004,2005,2012,2013,2014,2015 Olly Betts
4 * Copyright (C) 2004 Philip Underwood
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef survex_included_avenprcore_h
22 #define survex_included_avenprcore_h
24 #include <wx.h>
26 /* 1:<DEFAULT_SCALE> is the default scale */
27 #define DEFAULT_SCALE 500
29 /* Height of our footer in mm. */
30 #define FOOTER_HEIGHT_MM 10
32 class wxPageSetupDialogData;
34 /* Store everything describing the page layout */
35 class layout {
36 public:
37 /* caller modifiable bits */
38 int show_mask;
39 bool SkipBlank;
40 bool Border;
41 bool Cutlines;
42 bool Legend;
43 wxString title;
44 wxString cs_proj;
45 wxString datestamp;
46 time_t datestamp_numeric;
47 double Scale;
48 double rot, tilt;
49 enum {PLAN, ELEV, TILT, EXTELEV} view;
51 /* internal data, but may be accessed */
52 double scX, scY;
53 double xMin, xMax, yMin, yMax;
54 double PaperWidth, PaperDepth;
55 int pagesX, pagesY, pages;
56 double xOrg, yOrg;
58 explicit layout(wxPageSetupDialogData* data);
59 #if 0
60 void make_calibration();
61 #endif
62 void pick_scale(int x, int y);
63 void pages_required();
66 #endif