X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..b039c367cd7c1085d4175d3f87710a6f00e28fb4:/include/wx/postscrp.h diff --git a/include/wx/postscrp.h b/include/wx/postscrp.h index 0ec1ecc570..fb6cc90850 100644 --- a/include/wx/postscrp.h +++ b/include/wx/postscrp.h @@ -62,17 +62,17 @@ class WXDLLEXPORT wxPostScriptDC: public wxDC void DrawRoundedRectangle(long x, long y, long width, long height, double radius = 20); void DrawEllipse(long x, long y, long width, long height); -/* + // RR: I define these in wxDC, after all they all do the same everywhere + +#ifdef __WXMSW__ // Splines // 3-point spline void DrawSpline(long x1, long y1, long x2, long y2, long x3, long y3); // Any number of control points - a list of pointers to wxPoints void DrawSpline(wxList *points); void DrawSpline(int n, wxPoint points[]); - - I define these in wxDC, after all they all do the same everywhere - -*/ +#endif + void DrawOpenSpline(wxList *points); void DrawIcon(const wxIcon& icon, long x, long y); @@ -151,7 +151,7 @@ DECLARE_CLASS(wxPostScriptPrintDialog) public: wxPostScriptPrintDialog (wxWindow *parent, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, - const long style = wxDEFAULT_DIALOG_STYLE); + long style = wxDEFAULT_DIALOG_STYLE); virtual int ShowModal(void) ; }; @@ -171,15 +171,15 @@ enum { };// ps_action = PS_PREVIEW; // PostScript printer settings -void WXDLLEXPORT wxSetPrinterCommand(char *cmd); -void WXDLLEXPORT wxSetPrintPreviewCommand(char *cmd); -void WXDLLEXPORT wxSetPrinterOptions(char *flags); +void WXDLLEXPORT wxSetPrinterCommand(const char *cmd); +void WXDLLEXPORT wxSetPrintPreviewCommand(const char *cmd); +void WXDLLEXPORT wxSetPrinterOptions(const char *flags); void WXDLLEXPORT wxSetPrinterOrientation(int orientation); void WXDLLEXPORT wxSetPrinterScaling(double x, double y); void WXDLLEXPORT wxSetPrinterTranslation(long x, long y); void WXDLLEXPORT wxSetPrinterMode(int mode); -void WXDLLEXPORT wxSetPrinterFile(char *f); -void WXDLLEXPORT wxSetAFMPath(char *f); +void WXDLLEXPORT wxSetPrinterFile(const char *f); +void WXDLLEXPORT wxSetAFMPath(const char *f); // Get current values char* WXDLLEXPORT wxGetPrinterCommand(void); @@ -220,17 +220,17 @@ class WXDLLEXPORT wxPrintSetupData: public wxObject 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 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(char *f); + void SetAFMPath(const char *f); void SetColour(bool col); // Get current values @@ -268,7 +268,7 @@ class WXDLLEXPORT wxPrintPaperType: public wxObject int heightPixels; char *pageName; - wxPrintPaperType(char *name = NULL, int wmm = 0, int hmm = 0, int wp = 0, int hp = 0); + wxPrintPaperType(const char *name = NULL, int wmm = 0, int hmm = 0, int wp = 0, int hp = 0); ~wxPrintPaperType(void); }; @@ -283,8 +283,8 @@ class WXDLLEXPORT wxPrintPaperDatabase: public wxList void CreateDatabase(void); void ClearDatabase(void); - void AddPaperType(char *name, int wmm, int hmm, int wp, int hp); - wxPrintPaperType *FindPaperType(char *name); + void AddPaperType(const char *name, int wmm, int hmm, int wp, int hp); + wxPrintPaperType *FindPaperType(const char *name); }; WXDLLEXPORT_DATA(extern wxPrintPaperDatabase*) wxThePrintPaperDatabase;