00001 /* AbiSource 00002 * 00003 * Copyright (C) 2011 Urmas Dren <davian818@gmail.com> 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00018 * 02110-1301 USA. 00019 */ 00020 #ifndef AP_WIN32DIALOG_EPUBEXPORTOPTIONS_H 00021 #define AP_WIN32DIALOG_EPUBEXPORTOPTIONS_H 00022 00023 #include "ap_Dialog_EpubExportOptions.h" 00024 #include "xap_Frame.h" 00025 #include "xap_Win32App.h" 00026 #include "xap_Win32DialogHelper.h" 00027 00028 class AP_Win32Dialog_EpubExportOptions: public AP_Dialog_EpubExportOptions 00029 { 00030 public: 00031 00032 AP_Win32Dialog_EpubExportOptions(XAP_DialogFactory *pDlgFactory, 00033 XAP_Dialog_Id id); 00034 virtual ~AP_Win32Dialog_EpubExportOptions(void); 00035 virtual void runModal(XAP_Frame *pFrame); 00036 static XAP_Dialog *static_constructor(XAP_DialogFactory *pDF, 00037 XAP_Dialog_Id id); 00038 00039 static INT_PTR CALLBACK s_dlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); 00040 INT_PTR _onInitDialog(HWND hWnd, WPARAM wParam, LPARAM lParam); 00041 INT_PTR _onCommand(HWND hWnd, WPARAM wParam, LPARAM lParam); 00042 00043 static void setInstance(HINSTANCE hModule) 00044 { 00045 m_hModule = hModule; 00046 } 00047 static HINSTANCE getInstance() 00048 { 00049 return m_hModule; 00050 } 00051 private: 00052 static HINSTANCE m_hModule; 00053 00054 HWND m_hDlg; 00055 void setvalues(); 00056 void gathervalues(); 00057 }; 00058 00059 #endif /* AP_WIN32DIALOG_EPUBEXPORTOPTIONS_H */ 00060