KiCad PCB EDA Suite
printout.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 CERN
3  * Author: Maciej Suminski <maciej.suminski@cern.ch>
4  *
5  * This program is free software: you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation, either version 3 of the License, or (at your
8  * option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef PRINTOUT_H
20 #define PRINTOUT_H
21 
22 #include <page_info.h>
23 
24 class wxConfigBase;
25 
31 {
32  PRINTOUT_SETTINGS( const PAGE_INFO& aPageInfo )
33  : m_pageInfo( aPageInfo )
34  {
35  m_scale = 1.0;
36  m_titleBlock = false;
37  m_blackWhite = true;
38  m_pageCount = 0;
39  }
40 
41  virtual void Save( wxConfigBase* aConfig );
42  virtual void Load( wxConfigBase* aConfig );
43 
44  double m_scale;
45  bool m_titleBlock;
46  bool m_blackWhite;
49 
57  {
58  return m_scale <= 1.0 && m_titleBlock;
59  }
60 };
61 
62 #endif /* PRINTOUT_H */
const PAGE_INFO & m_pageInfo
Definition: printout.h:48
Class PRINT_PARAMETERS handles the parameters used to print a board drawing.
Definition: printout.h:30
virtual void Save(wxConfigBase *aConfig)
Definition: printout.cpp:23
double m_scale
Printing scale.
Definition: printout.h:44
bool m_titleBlock
Print frame and title block.
Definition: printout.h:45
bool PrintBorderAndTitleBlock() const
Returns true if the drawing border and title block should be printed.
Definition: printout.h:56
Class PAGE_INFO describes the page size and margins of a paper page on which to eventually print or p...
Definition: page_info.h:54
PRINTOUT_SETTINGS(const PAGE_INFO &aPageInfo)
Definition: printout.h:32
virtual void Load(wxConfigBase *aConfig)
Definition: printout.cpp:31
bool m_blackWhite
Print in B&W or Color.
Definition: printout.h:46
int m_pageCount
Number of pages to print.
Definition: printout.h:47