00001 /* AbiWord 00002 * Copyright (C) 2001 Tomas Frydrych 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00017 * 02110-1301 USA. 00018 */ 00019 00020 #ifndef AP_DIALOG_INSERTHYPERLINK_H 00021 #define AP_DIALOG_INSERTHYPERLINK_H 00022 00023 #include "xap_Dialog.h" 00024 #include "ut_xml.h" 00025 #include "fv_View.h" 00026 #include "pd_Document.h" 00027 #include "ut_string.h" 00028 00029 class XAP_Frame; 00030 00031 class ABI_EXPORT AP_Dialog_InsertHyperlink : public XAP_Dialog_NonPersistent 00032 { 00033 public: 00034 AP_Dialog_InsertHyperlink(XAP_DialogFactory * pDlgFactory, 00035 XAP_Dialog_Id id); 00036 virtual ~AP_Dialog_InsertHyperlink(void); 00037 00038 virtual void runModal(XAP_Frame * pFrame) = 0; 00039 00040 typedef enum { a_OK=0, a_CANCEL=1 } tAnswer; 00041 00042 tAnswer getAnswer(void) const; 00043 void setAnswer(tAnswer a); 00044 UT_uint32 getExistingBookmarksCount() const; 00045 const std::string & getNthExistingBookmark(UT_uint32 n) const; 00046 const gchar * getHyperlink() const; 00047 const gchar * getHyperlinkTitle() const; 00048 void setHyperlink(const gchar * link); 00049 void setHyperlinkTitle(const gchar * title); 00050 void setDoc(FV_View * pView); 00051 00052 private: 00053 PD_Document * m_pDoc; 00054 FV_View * m_pView; 00055 00056 AP_Dialog_InsertHyperlink::tAnswer m_answer; 00057 gchar * m_pHyperlink; 00058 gchar * m_pHyperlinkTitle; 00059 }; 00060 00061 #endif /* AP_DIALOG_TOGGLECASE_H */