KiCad PCB EDA Suite
|
Custom print out for printing schematics. More...
#include <sch_printout.h>
Public Member Functions | |
SCH_PRINTOUT (SCH_EDIT_FRAME *aParent, const wxString &aTitle, bool aUseCairo) | |
bool | OnPrintPage (int page) override |
bool | HasPage (int page) override |
bool | OnBeginDocument (int startPage, int endPage) override |
void | GetPageInfo (int *minPage, int *maxPage, int *selPageFrom, int *selPageTo) override |
void | PrintPage (SCH_SCREEN *aScreen) |
Private Member Functions | |
int | milsToIU (int aMils) |
Private Attributes | |
SCH_EDIT_FRAME * | m_parent |
Source VIEW object (note that actual printing only refers to this object) | |
const KIGFX::SCH_VIEW * | m_view |
bool | m_useCairo |
Custom print out for printing schematics.
Definition at line 38 of file sch_printout.h.
SCH_PRINTOUT::SCH_PRINTOUT | ( | SCH_EDIT_FRAME * | aParent, |
const wxString & | aTitle, | ||
bool | aUseCairo | ||
) |
Definition at line 40 of file sch_printout.cpp.
References m_parent, m_useCairo, and m_view.
|
override |
Definition at line 50 of file sch_printout.cpp.
References SCH_SHEET::CountSheets(), m_parent, SCHEMATIC::Root(), and SCH_EDIT_FRAME::Schematic().
|
override |
Definition at line 57 of file sch_printout.cpp.
References SCH_SHEET::CountSheets(), m_parent, SCHEMATIC::Root(), and SCH_EDIT_FRAME::Schematic().
|
private |
Definition at line 112 of file sch_printout.cpp.
References EDA_IU_SCALE::IU_PER_MILS, KiROUND(), and schIUScale.
Referenced by PrintPage().
|
override |
Definition at line 63 of file sch_printout.cpp.
|
override |
Definition at line 72 of file sch_printout.cpp.
References _, SCH_BASE_FRAME::GetCanvas(), SCH_EDIT_FRAME::GetCurrentSheet(), KIGFX::SCH_VIEW::GetDrawingSheet(), BASE_SCREEN::GetPageNumber(), SCH_DRAW_PANEL::GetView(), SCHEMATIC::Hierarchy(), SCH_SHEET_PATH::LastScreen(), m_parent, PrintPage(), SCH_EDIT_FRAME::RecomputeIntersheetRefs(), SCH_EDIT_FRAME::Schematic(), SCH_EDIT_FRAME::SetCurrentSheet(), EDA_DRAW_FRAME::SetMsgPanel(), DS_PROXY_VIEW_ITEM::SetPageNumber(), SCH_EDIT_FRAME::SetSheetNumberAndCount(), SCH_SHEET_LIST::SortByPageNumbers(), TO_UTF8, and SCH_SHEET_PATH::UpdateAllScreenReferences().
void SCH_PRINTOUT::PrintPage | ( | SCH_SCREEN * | aScreen | ) |
Definition at line 121 of file sch_printout.cpp.
References APP_SETTINGS_BASE::PRINTING::background, KIGFX::GAL_DISPLAY_OPTIONS::cairo_antialiasing_mode, BOX2< Vec >::Centre(), SCH_SCREEN::CheckIfOnDrawList(), KIGFX::GAL::ClearScreen(), APP_SETTINGS_BASE::PRINTING::color_theme, KIGFX::GAL_PRINT::Create(), KIGFX::VIEW::DataReference(), EESCHEMA_SETTINGS::APPEARANCE::default_font, dummy, SCH_BASE_FRAME::eeconfig(), SCH_RENDER_SETTINGS::GetBackgroundColor(), SCH_BASE_FRAME::GetCanvas(), COLOR_SETTINGS::GetColor(), SCH_BASE_FRAME::GetColorSettings(), SETTINGS_MANAGER::GetColorSettings(), SCH_BASE_FRAME::GetDrawBgColor(), SCH_SCREEN::GetFileName(), BOX2< Vec >::GetHeight(), KIGFX::RENDER_SETTINGS::GetLayerColor(), SCH_SCREEN::GetPageSettings(), SCHEMATIC::GetProperties(), SCH_BASE_FRAME::GetRenderSettings(), SCH_EDIT_FRAME::GetScreen(), EE_SELECTION_TOOL::GetSelection(), PGM_BASE::GetSettingsManager(), PAGE_INFO::GetSizeIU(), TOOL_MANAGER::GetTool(), TOOLS_HOLDER::GetToolManager(), SCH_DRAW_PANEL::GetView(), BOX2< Vec >::GetWidth(), KIGFX::GOOD, GRForceBlackPen(), GRResetPenAndBrush(), GRSFilledRect(), KIGFX::PRINT_CONTEXT::HasNativeLandscapeRotation(), EDA_IU_SCALE::IU_PER_MILS, LAYER_DRAWINGSHEET, LAYER_ID_COUNT, LAYER_SCHEMATIC_BACKGROUND, LAYER_SCHEMATIC_DRAWINGSHEET, LAYER_SELECT_OVERLAY, SCH_RENDER_SETTINGS::LoadColors(), EESCHEMA_SETTINGS::m_Appearance, BASE_SCREEN::m_DrawOrg, SCH_RENDER_SETTINGS::m_OverrideItemColors, m_parent, M_PI_2, APP_SETTINGS_BASE::m_Printing, SCH_RENDER_SETTINGS::m_ShowPinsElectricalType, BASE_SCREEN::m_StartVisu, m_useCairo, m_view, milsToIU(), APP_SETTINGS_BASE::PRINTING::monochrome, Pgm(), SCH_SCREEN::Print(), EDA_DRAW_FRAME::PrintDrawingSheet(), SCH_WORLD_UNIT(), SCH_EDIT_FRAME::Schematic(), SCH_SCREEN::Schematic(), schIUScale, SCH_RENDER_SETTINGS::SetBackgroundColor(), KIGFX::GAL::SetClearColor(), KIGFX::RENDER_SETTINGS::SetDefaultFont(), EDA_DRAW_FRAME::SetDrawBgColor(), KIGFX::RENDER_SETTINGS::SetIsPrinting(), KIGFX::RENDER_SETTINGS::SetLayerColor(), KIGFX::GAL::SetLookAtPoint(), KIGFX::RENDER_SETTINGS::SetPrintBlackAndWhite(), KIGFX::RENDER_SETTINGS::SetPrintDC(), KIGFX::GAL::SetWorldUnitLength(), KIGFX::GAL::SetZoomFactor(), KIGFX::TARGET_NONCACHED, APP_SETTINGS_BASE::PRINTING::title_block, ToWxSize(), APP_SETTINGS_BASE::PRINTING::use_theme, KIGFX::VIEW::VIEW_MAX_LAYERS, KIGFX::COLOR4D::WithAlpha(), VECTOR2< T >::x, VECTOR2< T >::y, ZOOM_MAX_LIMIT_EESCHEMA, and ZOOM_MIN_LIMIT_EESCHEMA.
Referenced by OnPrintPage().
|
private |
Source VIEW object (note that actual printing only refers to this object)
Definition at line 50 of file sch_printout.h.
Referenced by GetPageInfo(), HasPage(), OnPrintPage(), PrintPage(), and SCH_PRINTOUT().
|
private |
Definition at line 53 of file sch_printout.h.
Referenced by PrintPage(), and SCH_PRINTOUT().
|
private |
Definition at line 52 of file sch_printout.h.
Referenced by PrintPage(), and SCH_PRINTOUT().