/* avenprcore.h * Header file for printer independent parts of Survex printer drivers * Copyright (C) 1994-2002,2004,2005,2012,2013,2014,2015 Olly Betts * Copyright (C) 2004 Philip Underwood * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef survex_included_avenprcore_h #define survex_included_avenprcore_h #include #include "export.h" /* 1: is the default scale */ #define DEFAULT_SCALE 500 /* Height of our footer in mm. */ #define FOOTER_HEIGHT_MM 10 class wxPageSetupDialogData; /* Store everything describing the page layout */ class layout { public: /* caller modifiable bits */ int show_mask; bool SkipBlank; bool Border; bool Cutlines; bool Legend; wxString title; wxString datestamp; double Scale; double rot, tilt; enum {PLAN, ELEV, TILT, EXTELEV} view; /* internal data, but may be accessed */ double scX, scY; double xMin, xMax, yMin, yMax; double PaperWidth, PaperDepth; int pagesX, pagesY, pages; double xOrg, yOrg; explicit layout(wxPageSetupDialogData* data); #if 0 void make_calibration(); #endif void pick_scale(int x, int y); void pages_required(); int get_effective_show_mask() const { int result = show_mask; if (view == tilt) { result &= ~(XSECT|WALLS|PASG); } return result; } }; #endif