KiCad PCB EDA Suite
plot_schematic_HPGL.cpp File Reference
#include <fctsys.h>
#include <plotter.h>
#include <sch_edit_frame.h>
#include <base_units.h>
#include <sch_sheet_path.h>
#include <project.h>
#include <dialog_plot_schematic.h>
#include <wx_html_report_panel.h>

Go to the source code of this file.

Enumerations

enum  HPGL_PAGEZ_T {
  PAGE_DEFAULT = 0, HPGL_PAGE_SIZE_A4, HPGL_PAGE_SIZE_A3, HPGL_PAGE_SIZE_A2,
  HPGL_PAGE_SIZE_A1, HPGL_PAGE_SIZE_A0, HPGL_PAGE_SIZE_A, HPGL_PAGE_SIZE_B,
  HPGL_PAGE_SIZE_C, HPGL_PAGE_SIZE_D, HPGL_PAGE_SIZE_E
}
 

Functions

static const wxChar * plot_sheet_list (int aSize)
 

Enumeration Type Documentation

Enumerator
PAGE_DEFAULT 
HPGL_PAGE_SIZE_A4 
HPGL_PAGE_SIZE_A3 
HPGL_PAGE_SIZE_A2 
HPGL_PAGE_SIZE_A1 
HPGL_PAGE_SIZE_A0 
HPGL_PAGE_SIZE_A 
HPGL_PAGE_SIZE_B 
HPGL_PAGE_SIZE_C 
HPGL_PAGE_SIZE_D 
HPGL_PAGE_SIZE_E 

Definition at line 38 of file plot_schematic_HPGL.cpp.

Function Documentation

static const wxChar* plot_sheet_list ( int  aSize)
static

Definition at line 53 of file plot_schematic_HPGL.cpp.

References HPGL_PAGE_SIZE_A, HPGL_PAGE_SIZE_A0, HPGL_PAGE_SIZE_A1, HPGL_PAGE_SIZE_A2, HPGL_PAGE_SIZE_A3, HPGL_PAGE_SIZE_A4, HPGL_PAGE_SIZE_B, HPGL_PAGE_SIZE_C, HPGL_PAGE_SIZE_D, HPGL_PAGE_SIZE_E, and PAGE_DEFAULT.

Referenced by DIALOG_PLOT_SCHEMATIC::createHPGLFile().

54 {
55  const wxChar* ret;
56 
57  switch( aSize )
58  {
59  default:
60  case PAGE_DEFAULT:
61  ret = NULL; break;
62 
63  case HPGL_PAGE_SIZE_A4:
64  ret = wxT( "A4" ); break;
65 
66  case HPGL_PAGE_SIZE_A3:
67  ret = wxT( "A3" ); break;
68 
69  case HPGL_PAGE_SIZE_A2:
70  ret = wxT( "A2" ); break;
71 
72  case HPGL_PAGE_SIZE_A1:
73  ret = wxT( "A1" ); break;
74 
75  case HPGL_PAGE_SIZE_A0:
76  ret = wxT( "A0" ); break;
77 
78  case HPGL_PAGE_SIZE_A:
79  ret = wxT( "A" ); break;
80 
81  case HPGL_PAGE_SIZE_B:
82  ret = wxT( "B" ); break;
83 
84  case HPGL_PAGE_SIZE_C:
85  ret = wxT( "C" ); break;
86 
87  case HPGL_PAGE_SIZE_D:
88  ret = wxT( "D" ); break;
89 
90  case HPGL_PAGE_SIZE_E:
91  ret = wxT( "E" ); break;
92  }
93 
94  return ret;
95 }