31#include <wx/tokenzr.h>
33#define ARG_EXCLUDE_DRAWING_SHEET "--exclude-drawing-sheet"
34#define ARG_PAGE_SIZE "--page-size-mode"
35#define ARG_MIRROR "--mirror"
43 .help(
UTF8STDSTR(
_(
"Mirror the board (useful for trying to show bottom layers)" ) ) )
44 .implicit_value(
true )
45 .default_value(
false );
48 .default_value( std::string() )
49 .help(
UTF8STDSTR(
_(
"Color theme to use (will default to pcbnew settings)" ) ) );
53 .implicit_value(
true )
54 .default_value(
false );
57 .help(
UTF8STDSTR(
_(
"Set page sizing mode (0 = page with frame and title block, 1 = "
58 "current page size, 2 = board area only)" ) ) )
64 .implicit_value(
true )
65 .default_value(
false );
77 svgJob->m_mirror = m_argParser.get<
bool>(
ARG_MIRROR );
79 svgJob->m_pageSizeMode = m_argParser.get<
int>(
ARG_PAGE_SIZE );
86 if( !wxFile::Exists( svgJob->m_filename ) )
88 wxFprintf( stderr,
_(
"Board file does not exist or is not accessible\n" ) );
92 svgJob->m_printMaskLayer = m_selectedLayers;
argparse::ArgumentParser m_argParser
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
int ProcessJob(KIWAY::FACE_T aFace, JOB *job)
#define ARG_BLACKANDWHITE_DESC
#define ARG_BLACKANDWHITE
#define ARG_EXCLUDE_DRAWING_SHEET
This file contains miscellaneous commonly used macros and functions.
static wxString FROM_UTF8(const char *cstring)
Convert a UTF8 encoded C string to a wxString for all wxWidgets build modes.
static const int ERR_INVALID_INPUT_FILE
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.
void addLayerArg(bool aRequire)
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.