- public:
- char *printerCommand;
- char *previewCommand;
- char *printerFlags;
- char *printerFile;
- int printerOrient;
- double printerScaleX;
- double printerScaleY;
- long printerTranslateX;
- long printerTranslateY;
- // 1 = Preview, 2 = print to file, 3 = send to printer
- int printerMode;
- char *afmPath;
- // A name in the paper database (see wx_print.h: the printing framework)
- char *paperName;
- bool printColour;
- public:
- wxPrintSetupData(void);
- ~wxPrintSetupData(void);
-
- void SetPrinterCommand(char *cmd);
- void SetPaperName(char *paper);
- void SetPrintPreviewCommand(char *cmd);
- void SetPrinterOptions(char *flags);
- void SetPrinterFile(char *f);
- void SetPrinterOrientation(int orient);
- void SetPrinterScaling(double x, double y);
- void SetPrinterTranslation(long x, long y);
- // 1 = Preview, 2 = print to file, 3 = send to printer
- void SetPrinterMode(int mode);
- void SetAFMPath(char *f);
- void SetColour(bool col);
-
- // Get current values
- char *GetPrinterCommand(void);
- char *GetPrintPreviewCommand(void);
- char *GetPrinterOptions(void);
- char *GetPrinterFile(void);
- char *GetPaperName(void);
- int GetPrinterOrientation(void);
- void GetPrinterScaling(double* x, double* y);
- void GetPrinterTranslation(long *x, long *y);
- int GetPrinterMode(void);
- char *GetAFMPath(void);
- bool GetColour(void);
-
- void operator=(wxPrintSetupData& data);
+public:
+ wxPrintSetupData();
+ ~wxPrintSetupData();
+
+ void SetPrinterCommand(const char *cmd);
+ void SetPaperName(const char *paper);
+ void SetPrintPreviewCommand(const char *cmd);
+ void SetPrinterOptions(const char *flags);
+ void SetPrinterFile(const char *f);
+ void SetPrinterOrientation(int orient);
+ void SetPrinterScaling(double x, double y);
+ void SetPrinterTranslation(long x, long y);
+ // 1 = Preview, 2 = print to file, 3 = send to printer
+ void SetPrinterMode(int mode);
+ void SetAFMPath(const char *f);
+ void SetColour(bool col);
+
+ // Get current values
+ char *GetPrinterCommand();
+ char *GetPrintPreviewCommand();
+ char *GetPrinterOptions();
+ char *GetPrinterFile();
+ char *GetPaperName();
+ int GetPrinterOrientation();
+ void GetPrinterScaling(double* x, double* y);
+ void GetPrinterTranslation(long *x, long *y);
+ int GetPrinterMode();
+ char *GetAFMPath();
+ bool GetColour();
+
+ void operator=(wxPrintSetupData& data);
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxPrintSetupData)