#include <ap_Dialog_InsertHyperlink.h>
Public Types | |
enum | tAnswer { a_OK = 0, a_CANCEL = 1 } |
Public Member Functions | |
AP_Dialog_InsertHyperlink (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id) | |
virtual | ~AP_Dialog_InsertHyperlink (void) |
virtual void | runModal (XAP_Frame *pFrame)=0 |
tAnswer | getAnswer (void) const |
void | setAnswer (tAnswer a) |
UT_uint32 | getExistingBookmarksCount () const |
const std::string & | getNthExistingBookmark (UT_uint32 n) const |
const gchar * | getHyperlink () const |
const gchar * | getHyperlinkTitle () const |
void | setHyperlink (const gchar *link) |
void | setHyperlinkTitle (const gchar *title) |
void | setDoc (FV_View *pView) |
Private Attributes | |
PD_Document * | m_pDoc |
FV_View * | m_pView |
AP_Dialog_InsertHyperlink::tAnswer | m_answer |
gchar * | m_pHyperlink |
gchar * | m_pHyperlinkTitle |
AP_Dialog_InsertHyperlink::AP_Dialog_InsertHyperlink | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
AP_Dialog_InsertHyperlink::~AP_Dialog_InsertHyperlink | ( | void | ) | [virtual] |
References DELETEPV, m_pHyperlink, and m_pHyperlinkTitle.
AP_Dialog_InsertHyperlink::tAnswer AP_Dialog_InsertHyperlink::getAnswer | ( | void | ) | const |
References m_answer.
Referenced by s_doHyperlinkDlg().
UT_uint32 AP_Dialog_InsertHyperlink::getExistingBookmarksCount | ( | ) | const |
References PD_Document::getBookmarkCount(), m_pDoc, and UT_return_val_if_fail.
Referenced by AP_UnixDialog_InsertHyperlink::_constructWindowContents(), and AP_Win32Dialog_InsertHyperlink::_onInitDialog().
const gchar * AP_Dialog_InsertHyperlink::getHyperlink | ( | ) | const |
References m_pHyperlink.
Referenced by AP_UnixDialog_InsertHyperlink::_constructWindowContents(), AP_Win32Dialog_InsertHyperlink::_onInitDialog(), and s_doHyperlinkDlg().
const gchar * AP_Dialog_InsertHyperlink::getHyperlinkTitle | ( | ) | const |
References m_pHyperlinkTitle.
Referenced by AP_UnixDialog_InsertHyperlink::_constructWindowContents(), and s_doHyperlinkDlg().
const std::string & AP_Dialog_InsertHyperlink::getNthExistingBookmark | ( | UT_uint32 | n | ) | const |
References PD_Document::getNthBookmark(), m_pDoc, and UT_ASSERT.
Referenced by AP_UnixDialog_InsertHyperlink::_constructWindowContents(), and AP_Win32Dialog_InsertHyperlink::_onInitDialog().
virtual void AP_Dialog_InsertHyperlink::runModal | ( | XAP_Frame * | pFrame | ) | [pure virtual] |
Implements XAP_Dialog_NonPersistent.
Implemented in AP_UnixDialog_InsertHyperlink, and AP_Win32Dialog_InsertHyperlink.
Referenced by s_doHyperlinkDlg().
void AP_Dialog_InsertHyperlink::setAnswer | ( | AP_Dialog_InsertHyperlink::tAnswer | a | ) |
References m_answer.
Referenced by AP_Win32Dialog_InsertHyperlink::_onCommand(), AP_UnixDialog_InsertHyperlink::event_Cancel(), and AP_UnixDialog_InsertHyperlink::event_OK().
void AP_Dialog_InsertHyperlink::setDoc | ( | FV_View * | pView | ) |
References FREEP, gchar, FV_View::getDocument(), FV_View::getSelectionText(), FV_View::isSelectionEmpty(), m_pDoc, m_pHyperlink, m_pView, UT_go_path_is_uri(), UT_return_if_fail, UT_UCS4_strcpy_to_char(), and UT_UCS4_strlen_as_char().
Referenced by s_doHyperlinkDlg().
void AP_Dialog_InsertHyperlink::setHyperlink | ( | const gchar * | link | ) |
References DELETEPV, gchar, and m_pHyperlink.
Referenced by AP_Win32Dialog_InsertHyperlink::_onCommand(), AP_UnixDialog_InsertHyperlink::event_OK(), and s_doHyperlinkDlg().
void AP_Dialog_InsertHyperlink::setHyperlinkTitle | ( | const gchar * | title | ) |
References DELETEPV, gchar, and m_pHyperlinkTitle.
Referenced by AP_UnixDialog_InsertHyperlink::event_OK(), and s_doHyperlinkDlg().
Referenced by getAnswer(), and setAnswer().
PD_Document* AP_Dialog_InsertHyperlink::m_pDoc [private] |
Referenced by getExistingBookmarksCount(), getNthExistingBookmark(), and setDoc().
gchar* AP_Dialog_InsertHyperlink::m_pHyperlink [private] |
Referenced by getHyperlink(), setDoc(), setHyperlink(), and ~AP_Dialog_InsertHyperlink().
gchar* AP_Dialog_InsertHyperlink::m_pHyperlinkTitle [private] |
Referenced by getHyperlinkTitle(), setHyperlinkTitle(), and ~AP_Dialog_InsertHyperlink().
FV_View* AP_Dialog_InsertHyperlink::m_pView [private] |
Referenced by setDoc().