KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialogs_for_printing.cpp File Reference
#include <base_units.h>
#include <gr_basic.h>
#include <drawing_sheet/ds_data_item.h>
#include <drawing_sheet/ds_data_model.h>
#include <drawing_sheet/ds_painter.h>
#include <dialogs/dialog_page_settings.h>
#include <math/vector2wx.h>
#include "invoke_pl_editor_dialog.h"
#include "pl_editor_frame.h"
#include "pl_editor_id.h"
#include <wx/msgdlg.h>
#include <wx/print.h>

Go to the source code of this file.

Classes

class  PLEDITOR_PRINTOUT
 Custom print out for printing schematics. More...
 
class  PLEDITOR_PREVIEW_FRAME
 Custom print preview frame. More...
 

Functions

int InvokeDialogPrint (PL_EDITOR_FRAME *aCaller, wxPrintData *aPrintData, wxPageSetupDialogData *aPageSetupData)
 Create and show a print dialog returns 1 if OK, 0 , there is a problem.
 
int InvokeDialogPrintPreview (PL_EDITOR_FRAME *aCaller, wxPrintData *aPrintData)
 Create and show a print preview dialog returns 1 if OK, 0 , there is a problem.
 

Function Documentation

◆ InvokeDialogPrint()

int InvokeDialogPrint ( PL_EDITOR_FRAME aCaller,
wxPrintData *  aPrintData,
wxPageSetupDialogData *  aPageSetupData 
)

Create and show a print dialog returns 1 if OK, 0 , there is a problem.

Definition at line 222 of file dialogs_for_printing.cpp.

References _.

Referenced by PL_EDITOR_FRAME::ToPrinter().

◆ InvokeDialogPrintPreview()

int InvokeDialogPrintPreview ( PL_EDITOR_FRAME aCaller,
wxPrintData *  aPrintData 
)

Create and show a print preview dialog returns 1 if OK, 0 , there is a problem.

Definition at line 250 of file dialogs_for_printing.cpp.

References _, and PLEDITOR_PREVIEW_FRAME::Show().

Referenced by PL_EDITOR_FRAME::ToPrinter().