KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_printout.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2023 Jean-Pierre Charras, jp.charras at wanadoo.fr
5 * Copyright (C) 2023 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#pragma once
22
23#include <wx/print.h>
24
25class SCH_EDIT_FRAME;
26class SCH_SCREEN;
27
28namespace KIGFX
29{
30class GAL;
31class SCH_VIEW;
32class PAINTER;
33};
34
38class SCH_PRINTOUT : public wxPrintout
39{
40public:
41 SCH_PRINTOUT( SCH_EDIT_FRAME* aParent, const wxString& aTitle, bool aUseCairo );
42
43 bool OnPrintPage( int page ) override;
44 bool HasPage( int page ) override;
45 bool OnBeginDocument( int startPage, int endPage ) override;
46 void GetPageInfo( int* minPage, int* maxPage, int* selPageFrom, int* selPageTo ) override;
47 void PrintPage( SCH_SCREEN* aScreen );
48
49private:
54
55 int milsToIU( int aMils );
56};
Schematic editor (Eeschema) main window.
Custom print out for printing schematics.
Definition: sch_printout.h:39
bool HasPage(int page) override
bool OnPrintPage(int page) override
void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo) override
const KIGFX::SCH_VIEW * m_view
Definition: sch_printout.h:52
SCH_EDIT_FRAME * m_parent
Source VIEW object (note that actual printing only refers to this object)
Definition: sch_printout.h:50
int milsToIU(int aMils)
void PrintPage(SCH_SCREEN *aScreen)
bool OnBeginDocument(int startPage, int endPage) override
The Cairo implementation of the graphics abstraction layer.
Definition: color4d.cpp:247