Add PrivData() field to wxPrintData since MSW's printer
sometimes seem to save data in an extra field. The original author of the patch chose to save it in char* so I kept that, although void* would probably be correct. The patch is against 2.4.2 and the code has been reshuffled since then so that the patch had to be redone entirely. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -217,6 +217,11 @@ public:
|
||||
|
||||
void operator=(const wxPrintData& data);
|
||||
|
||||
char* GetPrivData() const { return m_privData; }
|
||||
int GetPrivDataLen() const { return m_privDataLen; }
|
||||
void SetPrivData( char *privData, int len );
|
||||
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_4
|
||||
// PostScript-specific data
|
||||
wxString GetPrinterCommand() const;
|
||||
@@ -268,6 +273,9 @@ private:
|
||||
|
||||
wxString m_filename;
|
||||
|
||||
char* m_privData;
|
||||
int m_privDataLen;
|
||||
|
||||
wxPrintNativeDataBase *m_nativeData;
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user