00001 /* AbiSource 00002 * 00003 * Copyright (C) 2011 Volodymyr Rudyj <vladimir.rudoy@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_UNIXDIALOG_EPUBEXPORTOPTIONS_H 00021 #define AP_UNIXDIALOG_EPUBEXPORTOPTIONS_H 00022 00023 #include "ap_Dialog_EpubExportOptions.h" 00024 #include "xap_Frame.h" 00025 #include "xap_UnixApp.h" 00026 #include "xap_UnixDialogHelper.h" 00027 00028 class ABI_EXPORT AP_UnixDialog_EpubExportOptions: public AP_Dialog_EpubExportOptions { 00029 public: 00030 00031 AP_UnixDialog_EpubExportOptions(XAP_DialogFactory * pDlgFactory, 00032 XAP_Dialog_Id id); 00033 virtual ~AP_UnixDialog_EpubExportOptions(void); 00034 virtual void runModal(XAP_Frame * pFrame); 00035 static XAP_Dialog * static_constructor(XAP_DialogFactory *pDF, 00036 XAP_Dialog_Id id); 00037 00038 void toggle_Epub2(); 00039 void toggle_SplitDocument(); 00040 void toggle_RenderMathMlToPng(); 00041 void refreshStates(); 00042 private: 00043 void event_OK(void); 00044 void event_SaveSettings(void); 00045 void event_RestoreSettings(void); 00046 void event_Cancel(void); 00047 00048 GtkWidget * _constructWindow(void); 00049 00050 GtkWidget * m_windowMain; 00051 00052 GtkWidget * m_wEpub2; 00053 GtkWidget * m_wSplitDocument; 00054 GtkWidget * m_wRenderMathMlToPng; 00055 00056 }; 00057 00058 #endif /* AP_UNIXDIALOG_EPUBEXPORTOPTIONS_H */ 00059