#include <ap_Dialog_InsertBookmark.h>
Public Types | |
enum | tAnswer { a_OK = 0, a_CANCEL = 1, a_DELETE = 2 } |
Public Member Functions | |
AP_Dialog_InsertBookmark (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id) | |
virtual | ~AP_Dialog_InsertBookmark (void) |
virtual void | runModal (XAP_Frame *pFrame)=0 |
tAnswer | getAnswer (void) const |
void | setAnswer (tAnswer a) |
UT_sint32 | getExistingBookmarksCount () const |
const std::string & | getNthExistingBookmark (UT_uint32 n) const |
const gchar * | getBookmark () const |
void | setBookmark (const gchar *mark) |
void | setDoc (FV_View *pView) |
void | setSuggestedBM (const UT_UCS4Char *str) |
UT_UCS4String | getSuggestedBM () const |
Private Attributes | |
PD_Document * | m_pDoc |
UT_UCS4String | m_suggested |
AP_Dialog_InsertBookmark::tAnswer | m_answer |
gchar | m_pBookmark [BOOKMARK_SIZE_LIMIT+1] |
AP_Dialog_InsertBookmark::AP_Dialog_InsertBookmark | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
References m_pBookmark.
AP_Dialog_InsertBookmark::~AP_Dialog_InsertBookmark | ( | void | ) | [virtual] |
AP_Dialog_InsertBookmark::tAnswer AP_Dialog_InsertBookmark::getAnswer | ( | void | ) | const |
References m_answer.
Referenced by s_doBookmarkDlg().
const gchar * AP_Dialog_InsertBookmark::getBookmark | ( | ) | const |
References m_pBookmark.
Referenced by AP_UnixDialog_InsertBookmark::_setList(), and s_doBookmarkDlg().
UT_sint32 AP_Dialog_InsertBookmark::getExistingBookmarksCount | ( | ) | const |
References PD_Document::getBookmarkCount(), m_pDoc, and UT_return_val_if_fail.
Referenced by AP_Win32Dialog_InsertBookmark::_onInitDialog(), and AP_UnixDialog_InsertBookmark::_setList().
const std::string & AP_Dialog_InsertBookmark::getNthExistingBookmark | ( | UT_uint32 | n | ) | const |
References PD_Document::getNthBookmark(), m_pDoc, and UT_ASSERT.
Referenced by AP_Win32Dialog_InsertBookmark::_onInitDialog(), and AP_UnixDialog_InsertBookmark::_setList().
UT_UCS4String AP_Dialog_InsertBookmark::getSuggestedBM | ( | ) | const [inline] |
virtual void AP_Dialog_InsertBookmark::runModal | ( | XAP_Frame * | pFrame | ) | [pure virtual] |
Implements XAP_Dialog_NonPersistent.
Implemented in AP_CocoaDialog_InsertBookmark, AP_UnixDialog_InsertBookmark, and AP_Win32Dialog_InsertBookmark.
Referenced by s_doBookmarkDlg().
void AP_Dialog_InsertBookmark::setAnswer | ( | AP_Dialog_InsertBookmark::tAnswer | a | ) |
References m_answer.
Referenced by AP_Win32Dialog_InsertBookmark::_onCommand(), AP_UnixDialog_InsertBookmark::event_Cancel(), AP_CocoaDialog_InsertBookmark::event_Cancel, AP_UnixDialog_InsertBookmark::event_Delete(), AP_UnixDialog_InsertBookmark::event_OK(), and AP_CocoaDialog_InsertBookmark::event_OK.
void AP_Dialog_InsertBookmark::setBookmark | ( | const gchar * | mark | ) |
void AP_Dialog_InsertBookmark::setDoc | ( | FV_View * | pView | ) |
References FV_View::getDocument(), and m_pDoc.
Referenced by s_doBookmarkDlg().
void AP_Dialog_InsertBookmark::setSuggestedBM | ( | const UT_UCS4Char * | str | ) | [inline] |
Referenced by s_doBookmarkDlg().
Referenced by getAnswer(), and setAnswer().
gchar AP_Dialog_InsertBookmark::m_pBookmark[BOOKMARK_SIZE_LIMIT+1] [private] |
Referenced by AP_Dialog_InsertBookmark(), getBookmark(), and setBookmark().
PD_Document* AP_Dialog_InsertBookmark::m_pDoc [private] |
Referenced by getExistingBookmarksCount(), getNthExistingBookmark(), and setDoc().