KiCad PCB EDA Suite
plot_schematic_HPGL.cpp File Reference
#include <fctsys.h>
#include <plot_common.h>
#include <class_sch_screen.h>
#include <schframe.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 39 of file plot_schematic_HPGL.cpp.

Function Documentation

static const wxChar* plot_sheet_list ( int  aSize)
static

Definition at line 54 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().

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