aboutsummaryrefslogtreecommitdiff
path: root/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/wxInit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/wxInit.cpp')
-rw-r--r--Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/wxInit.cpp52
1 files changed, 52 insertions, 0 deletions
diff --git a/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/wxInit.cpp b/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/wxInit.cpp
new file mode 100644
index 0000000..b7ae374
--- /dev/null
+++ b/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/wxInit.cpp
@@ -0,0 +1,52 @@
+/*********************************************************************
+
+ ADOBE SYSTEMS INCORPORATED
+ Copyright (C) 2008 Adobe Systems Incorporated
+ All rights reserved.
+
+ NOTICE: Adobe permits you to use, modify, and distribute this file
+ in accordance with the terms of the Adobe license agreement
+ accompanying it. If you have received this file from a source other
+ than Adobe, then your use, modification, or distribution of it
+ requires the prior written permission of Adobe.
+
+ ---------------------------------------------------------------------
+
+ wxInit.cpp
+
+ - Initialization code for wxWidgets.
+
+*********************************************************************/
+#include "wx/app.h"
+#include "wxInit.h"
+#include "PIMain.h"
+
+IMPLEMENT_APP_NO_MAIN(PluginApp)
+
+wxPoint offscreenPoint(-5000,-5000);
+
+bool PluginApp::OnInit()
+{
+ return true;
+}
+
+
+BEGIN_EVENT_TABLE(PluginApp, wxApp)
+ END_EVENT_TABLE()
+
+AcrobatFrame::AcrobatFrame() : wxFrame(NULL, -1, "", offscreenPoint)
+{
+#ifdef WIN_PLATFORM
+ HWND oldHWnd = (HWND)GetHandle();
+ SetHWND((WXHWND)gHWND);
+ if(oldHWnd)
+ ::DestroyWindow(oldHWnd);
+#endif
+}
+
+
+BEGIN_EVENT_TABLE(AcrobatFrame, wxFrame)
+ END_EVENT_TABLE()
+
+
+