1 /* AbiWord 2 * Copyright (C) 2011 AbiSource, Inc. 3 * Copyright (C) 2011 Ben Martin 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License 7 * as published by the Free Software Foundation; either version 2 8 * of the License, or (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 * 02110-1301 USA. 19 */ 20 21 #ifndef AP_DIALOG_MODAL_H 22 #define AP_DIALOG_MODAL_H 23 24 #include <string> 25 26 #include "xap_Dialog.h" 27 #include "fv_View.h" 28 #include "pd_DocumentRDF.h" 29 #include "xap_Strings.h" 30 class XAP_Frame; 31 32 33 class ABI_EXPORT AP_Dialog_Modal : public XAP_Dialog_NonPersistent 34 { 35 protected: 36 37 public: 38 AP_Dialog_Modal(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id, const char * helpUrl = NULL ); 39 virtual ~AP_Dialog_Modal(); 40 41 virtual void maybeClosePopupPreviewBubbles(); 42 void closePopupPreviewBubbles(); 43 virtual void maybeReallowPopupPreviewBubbles(); 44 45 FV_View* getView() const; 46 47 protected: 48 49 FV_View_BubbleBlocker m_bubbleBlocker; 50 }; 51 52 #endif 53