#include <ap_Dialog_Goto.h>
Public Types | |
| enum | tAnswer { a_CLOSE } |
Public Member Functions | |
| AP_Dialog_Goto (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id) | |
| virtual | ~AP_Dialog_Goto () |
| AP_Dialog_Goto::tAnswer | getAnswer () const |
| void | ConstructWindowName () |
| bool | setView (FV_View *view) |
| FV_View * | getView () const |
| void | setActiveFrame (XAP_Frame *pFrame) |
| PD_DocumentRDFHandle | getRDF () |
| UT_sint32 | getExistingBookmarksCount () const |
| const std::string & | getNthExistingBookmark (UT_sint32 n) const |
| void | performGoto (AP_JumpTarget target, const char *value) const |
| Perform the Goto with a page #, line # or bookmark name. | |
| std::string | performGotoNext (AP_JumpTarget target, UT_sint32 idx) const |
| std::string | performGotoPrev (AP_JumpTarget target, UT_sint32 idx) const |
Static Public Member Functions | |
| static const char ** | getJumpTargets () |
Protected Member Functions | |
| void | _setupJumpTargets () |
Protected Attributes | |
| FV_View * | m_pView |
| tAnswer | m_answer |
| char | m_WindowName [100] |
Static Protected Attributes | |
| static const char * | s_pJumpTargets [] |
| AP_Dialog_Goto::AP_Dialog_Goto | ( | XAP_DialogFactory * | pDlgFactory, | |
| XAP_Dialog_Id | id | |||
| ) |
References _setupJumpTargets(), m_answer, m_pView, and s_pJumpTargets.
| AP_Dialog_Goto::~AP_Dialog_Goto | ( | void | ) | [virtual] |
| void AP_Dialog_Goto::_setupJumpTargets | ( | void | ) | [protected] |
References XAP_App::getStringSet(), XAP_StringSet::getValue(), XAP_Dialog::m_pApp, and s_pJumpTargets.
Referenced by AP_Dialog_Goto().
| void AP_Dialog_Goto::ConstructWindowName | ( | void | ) |
References XAP_Dialog_Modeless::BuildWindowName(), FREEP, gchar, XAP_Dialog::getApp(), XAP_App::getStringSet(), XAP_StringSet::getValueUTF8(), m_WindowName, s, and UT_XML_cloneNoAmpersands().
Referenced by AP_Win32Dialog_Goto::_onInitDialog(), AP_UnixDialog_Goto::_updateWindow(), AP_Win32Dialog_Goto::activate(), AP_CocoaDialog_Goto::activate, AP_Win32Dialog_Goto::notifyActiveFrame(), AP_CocoaDialog_Goto::notifyActiveFrame, and AP_CocoaDialog_Goto::runModeless.
| AP_Dialog_Goto::tAnswer AP_Dialog_Goto::getAnswer | ( | void | ) | const |
References m_answer.
| UT_sint32 AP_Dialog_Goto::getExistingBookmarksCount | ( | ) | const |
References PD_Document::getBookmarkCount(), FV_View::getDocument(), m_pView, and UT_return_val_if_fail.
Referenced by AP_Win32Dialog_Goto::_onInitDialog(), AP_UnixDialog_Goto::_updateWindow(), performGotoNext(), and performGotoPrev().
| const char ** AP_Dialog_Goto::getJumpTargets | ( | void | ) | [static] |
References s_pJumpTargets.
Referenced by AP_UnixDialog_Goto::_constructWindow(), and AP_Win32Dialog_Goto::_onInitDialog().
| const std::string & AP_Dialog_Goto::getNthExistingBookmark | ( | UT_sint32 | n | ) | const |
References FV_View::getDocument(), PD_Document::getNthBookmark(), m_pView, and UT_ASSERT.
Referenced by AP_Win32Dialog_Goto::_onInitDialog(), AP_UnixDialog_Goto::_updateWindow(), performGotoNext(), and performGotoPrev().
| PD_DocumentRDFHandle AP_Dialog_Goto::getRDF | ( | ) |
References FV_View::getDocument(), PD_Document::getDocumentRDF(), and getView().
Referenced by AP_UnixDialog_Goto::updateXMLIDList().
| FV_View * AP_Dialog_Goto::getView | ( | void | ) | const |
| void AP_Dialog_Goto::performGoto | ( | AP_JumpTarget | target, | |
| const char * | value | |||
| ) | const |
Perform the Goto with a page #, line # or bookmark name.
| target | the target | |
| value | the target value |
References FV_View::gotoTarget(), m_pView, and UT_DEBUGMSG.
Referenced by AP_UnixDialog_Goto::onJumpClicked().
| std::string AP_Dialog_Goto::performGotoNext | ( | AP_JumpTarget | target, | |
| UT_sint32 | idx | |||
| ) | const |
| std::string AP_Dialog_Goto::performGotoPrev | ( | AP_JumpTarget | target, | |
| UT_sint32 | idx | |||
| ) | const |
| void AP_Dialog_Goto::setActiveFrame | ( | XAP_Frame * | pFrame | ) | [virtual] |
Reimplemented from XAP_Dialog_Modeless.
References XAP_Dialog_Modeless::getActiveFrame(), getView(), XAP_Dialog_Modeless::notifyActiveFrame(), and setView().
| bool AP_Dialog_Goto::setView | ( | FV_View * | view | ) |
References XAP_Dialog_Modeless::getActiveFrame(), XAP_Frame::getCurrentView(), and m_pView.
Referenced by s_doGotoDlg(), and setActiveFrame().
tAnswer AP_Dialog_Goto::m_answer [protected] |
Referenced by AP_Dialog_Goto(), and getAnswer().
FV_View* AP_Dialog_Goto::m_pView [protected] |
char AP_Dialog_Goto::m_WindowName[100] [protected] |
const char * AP_Dialog_Goto::s_pJumpTargets [static, protected] |
{
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
}
Referenced by _setupJumpTargets(), AP_Dialog_Goto(), and getJumpTargets().
1.7.1