X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/41d368a4bb7a73fbc5ce054dbc205a57241cf0da..db16e5c3aae30ee4502d3e0d41eed500af365fe9:/include/wx/mac/app.h diff --git a/include/wx/mac/app.h b/include/wx/mac/app.h index 66ecb949cc..bbc96c1099 100644 --- a/include/wx/mac/app.h +++ b/include/wx/mac/app.h @@ -12,7 +12,7 @@ #ifndef _WX_APP_H_ #define _WX_APP_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "app.h" #endif @@ -160,6 +160,13 @@ public: virtual short MacHandleAEOApp(const WXAPPLEEVENTREF event , WXAPPLEEVENTREF reply) ; virtual short MacHandleAEQuit(const WXAPPLEEVENTREF event , WXAPPLEEVENTREF reply) ; + // in response of an open-document apple event + virtual void MacOpenFile(const wxString &fileName) ; + // in response of a print-document apple event + virtual void MacPrintFile(const wxString &fileName) ; + // in response of a open-application apple event + virtual void MacNewFile() ; + DECLARE_EVENT_TABLE() }; @@ -178,7 +185,9 @@ private: } ; // TODO: add platform-specific arguments +#ifndef __DARWIN__ int WXDLLEXPORT wxEntry( int argc, char *argv[] , bool enterLoop = TRUE); +#endif void wxMacConvertFromPCForControls( char * p ) ;