#include <xap_UnixFrameImpl.h>
Classes | |
class | _fe |
Public Member Functions | |
XAP_UnixFrameImpl (XAP_Frame *pFrame) | |
virtual | ~XAP_UnixFrameImpl () |
GtkWidget * | getTopLevelWindow () const |
void | setTopLevelWindow (GtkWidget *window) |
GtkWidget * | getVBoxWidget () const |
gint | getNewX (void) |
gint | getNewY (void) |
void | focusIMIn () |
void | focusIMOut () |
void | queueIMReset () |
void | resetIMContext () |
virtual GtkWidget * | getViewWidget (void) const =0 |
Protected Member Functions | |
GtkIMContext * | getIMContext () |
virtual bool | _close () |
virtual bool | _raise () |
virtual bool | _show () |
virtual GtkWidget * | _createInternalWindow (void) |
virtual void | _nullUpdate () const |
virtual void | _initialize () |
virtual void | _setWindowIcon ()=0 |
virtual GtkWidget * | _createDocumentWindow ()=0 |
virtual GtkWidget * | _createStatusBarWindow ()=0 |
void | _createTopLevelWindow (void) |
bool | _updateTitle () |
void | _createIMContext (GdkWindow *w) |
UT_sint32 | _setInputMode (const char *szName) |
virtual void | _setCursor (GR_Graphics::Cursor cursor) |
virtual XAP_DialogFactory * | _getDialogFactory () |
virtual EV_Menu * | _getMainMenu () |
virtual EV_Toolbar * | _newToolbar (XAP_Frame *pFrame, const char *szLayout, const char *szLanguage) |
virtual bool | _runModalContextMenu (AV_View *pView, const char *szMenuName, UT_sint32 x, UT_sint32 y) |
void | setTimeOfLastEvent (guint32 eventTime) |
virtual void | _queue_resize () |
virtual void | _rebuildMenus (void) |
virtual void | _rebuildToolbar (UT_uint32 ibar) |
GtkWidget * | _getSunkenBox (void) |
virtual void | _setFullScreen (bool changeToFullScreen) |
void | _imCommit (GtkIMContext *imc, const gchar *text) |
virtual void | dragText () |
Static Protected Member Functions | |
static void | _imCommit_cb (GtkIMContext *imc, const gchar *text, gpointer data) |
static void | _imPreeditStart_cb (GtkIMContext *context, gpointer data) |
static void | _imPreeditChanged_cb (GtkIMContext *context, gpointer data) |
static void | _imPreeditEnd_cb (GtkIMContext *context, gpointer data) |
static gint | _imRetrieveSurrounding_cb (GtkIMContext *context, gpointer data) |
static gint | _imDeleteSurrounding_cb (GtkIMContext *slave, gint offset, gint n_chars, gpointer data) |
Protected Attributes | |
GtkIMContext * | m_imContext |
GtkWidget * | m_wVBox |
GtkWidget * | m_wSunkenBox |
GtkWidget * | m_wStatusBar |
GtkWidget * | m_wTopLevelWindow |
EV_UnixMenuBar * | m_pUnixMenu |
bool | need_im_reset |
Private Member Functions | |
void | _setGeometry () |
Private Attributes | |
bool | m_bDoZoomUpdate |
UT_sint32 | m_iNewX |
UT_sint32 | m_iNewY |
UT_sint32 | m_iNewWidth |
UT_sint32 | m_iNewHeight |
guint | m_iZoomUpdateID |
guint | m_iAbiRepaintID |
EV_UnixMenuPopup * | m_pUnixPopup |
AP_UnixDialogFactory | m_dialogFactory |
UT_uint32 | m_iPreeditLen |
UT_uint32 | m_iPreeditStart |
Friends | |
class | XAP_Frame |
class | _fe |
XAP_UnixFrameImpl::XAP_UnixFrameImpl | ( | XAP_Frame * | pFrame | ) |
XAP_UnixFrameImpl::~XAP_UnixFrameImpl | ( | ) | [virtual] |
References DELETEP, m_bDoZoomUpdate, m_iAbiRepaintID, m_imContext, m_iZoomUpdateID, m_pUnixMenu, and m_pUnixPopup.
bool XAP_UnixFrameImpl::_close | ( | void | ) | [protected, virtual] |
Implements XAP_FrameImpl.
References m_wTopLevelWindow.
virtual GtkWidget* XAP_UnixFrameImpl::_createDocumentWindow | ( | ) | [protected, pure virtual] |
Implemented in AP_UnixFrameImpl.
Referenced by _createTopLevelWindow().
void XAP_UnixFrameImpl::_createIMContext | ( | GdkWindow * | w | ) | [protected] |
References _imCommit_cb(), _imDeleteSurrounding_cb(), _imPreeditChanged_cb(), _imPreeditEnd_cb(), _imPreeditStart_cb(), _imRetrieveSurrounding_cb(), and m_imContext.
Referenced by _createTopLevelWindow().
GtkWidget * XAP_UnixFrameImpl::_createInternalWindow | ( | void | ) | [protected, virtual] |
Referenced by _createTopLevelWindow().
virtual GtkWidget* XAP_UnixFrameImpl::_createStatusBarWindow | ( | ) | [protected, pure virtual] |
Implemented in AP_UnixFrameImpl.
Referenced by _createTopLevelWindow().
void XAP_UnixFrameImpl::_createTopLevelWindow | ( | void | ) | [protected, virtual] |
Implements XAP_FrameImpl.
References _createDocumentWindow(), _createIMContext(), _createInternalWindow(), _createStatusBarWindow(), XAP_FrameImpl::_createToolbars(), _setGeometry(), _setWindowIcon(), DragInfo::count, XAP_UnixFrameImpl::_fe::delete_event(), XAP_UnixFrameImpl::_fe::destroy(), DragInfo::entries, XAP_UnixFrameImpl::_fe::focus_in_event(), XAP_UnixFrameImpl::_fe::focus_out_event(), XAP_UnixFrameImpl::_fe::focusIn(), XAP_UnixFrameImpl::_fe::focusOut(), XAP_App::getApp(), XAP_FrameImpl::getFrame(), XAP_FrameImpl::m_iFrameMode, m_pUnixMenu, XAP_FrameImpl::m_szMenuLabelSetName, XAP_FrameImpl::m_szMenuLayoutName, m_wStatusBar, m_wSunkenBox, m_wTopLevelWindow, m_wVBox, XAP_UnixFrameImpl::_fe::realize(), s_dndDragBegin(), s_dndDragEnd(), s_dndDropEvent(), s_dndRealDropEvent(), s_drag_data_get_cb(), s_getDragInfo(), XAP_UnixFrameImpl::_fe::sizeAllocate(), EV_UnixMenuBar::synthesizeMenuBar(), XAP_UnixFrameImpl::_fe::unrealize(), UT_ASSERT, UT_return_if_fail, XAP_NoMenusWindowLess, and XAP_NormalFrame.
Referenced by AP_UnixFrameImpl::_createWindow().
XAP_DialogFactory * XAP_UnixFrameImpl::_getDialogFactory | ( | void | ) | [protected, virtual] |
Implements XAP_FrameImpl.
References m_dialogFactory.
EV_Menu * XAP_UnixFrameImpl::_getMainMenu | ( | void | ) | [protected, virtual] |
Implements XAP_FrameImpl.
References m_pUnixMenu.
GtkWidget* XAP_UnixFrameImpl::_getSunkenBox | ( | void | ) | [inline, protected] |
References m_wSunkenBox.
void XAP_UnixFrameImpl::_imCommit | ( | GtkIMContext * | imc, | |
const gchar * | text | |||
) | [protected] |
void XAP_UnixFrameImpl::_imCommit_cb | ( | GtkIMContext * | imc, | |
const gchar * | text, | |||
gpointer | data | |||
) | [static, protected] |
References _imCommit().
Referenced by _createIMContext().
gint XAP_UnixFrameImpl::_imDeleteSurrounding_cb | ( | GtkIMContext * | slave, | |
gint | offset, | |||
gint | n_chars, | |||
gpointer | data | |||
) | [static, protected] |
References FV_View::cmdCharDelete(), XAP_Frame::getCurrentView(), XAP_FrameImpl::getFrame(), FV_View::getInsPoint(), FV_View::moveInsPtTo(), and xxx_UT_DEBUGMSG.
Referenced by _createIMContext().
void XAP_UnixFrameImpl::_imPreeditChanged_cb | ( | GtkIMContext * | context, | |
gpointer | data | |||
) | [static, protected] |
void XAP_UnixFrameImpl::_imPreeditEnd_cb | ( | GtkIMContext * | context, | |
gpointer | data | |||
) | [static, protected] |
References FV_View::cmdCharDelete(), XAP_Frame::getCurrentView(), XAP_FrameImpl::getFrame(), m_iPreeditLen, m_iPreeditStart, FV_View::moveInsPtTo(), and UT_DEBUGMSG.
Referenced by _createIMContext().
void XAP_UnixFrameImpl::_imPreeditStart_cb | ( | GtkIMContext * | context, | |
gpointer | data | |||
) | [static, protected] |
References XAP_Frame::getCurrentView(), XAP_FrameImpl::getFrame(), FV_View::getInsPoint(), m_iPreeditLen, m_iPreeditStart, and UT_DEBUGMSG.
Referenced by _createIMContext().
gint XAP_UnixFrameImpl::_imRetrieveSurrounding_cb | ( | GtkIMContext * | context, | |
gpointer | data | |||
) | [static, protected] |
void XAP_UnixFrameImpl::_initialize | ( | void | ) | [protected, virtual] |
Implements XAP_FrameImpl.
References XAP_App::getApp(), XAP_App::getEditEventMapper(), XAP_FrameImpl::m_pKeyboard, XAP_FrameImpl::m_pMouse, UT_ASSERT, and UT_DEBUGMSG.
EV_Toolbar * XAP_UnixFrameImpl::_newToolbar | ( | XAP_Frame * | pFrame, | |
const char * | szLayout, | |||
const char * | szLanguage | |||
) | [protected, virtual] |
void XAP_UnixFrameImpl::_nullUpdate | ( | void | ) | const [protected, virtual] |
Implements XAP_FrameImpl.
void XAP_UnixFrameImpl::_queue_resize | ( | void | ) | [protected, virtual] |
Implements XAP_FrameImpl.
References m_wTopLevelWindow.
bool XAP_UnixFrameImpl::_raise | ( | void | ) | [protected, virtual] |
Implements XAP_FrameImpl.
References m_wTopLevelWindow, and UT_ASSERT.
void XAP_UnixFrameImpl::_rebuildMenus | ( | void | ) | [protected, virtual] |
This code is used by the dynamic menu API to rebuild the menus after a a change in the menu structure.
Implements XAP_FrameImpl.
References DELETEP, EV_UnixMenuBar::destroy(), XAP_App::getApp(), XAP_FrameImpl::getFrame(), m_pUnixMenu, XAP_FrameImpl::m_szMenuLabelSetName, XAP_FrameImpl::m_szMenuLayoutName, EV_UnixMenuBar::rebuildMenuBar(), UT_ASSERT_HARMLESS, and UT_return_if_fail.
void XAP_UnixFrameImpl::_rebuildToolbar | ( | UT_uint32 | ibar | ) | [protected, virtual] |
This code is used by the dynamic toolbar API to rebuild a toolbar after a a change in the toolbar structure.
Implements XAP_FrameImpl.
References _newToolbar(), EV_UnixToolbar::destroy(), XAP_FrameImpl::getFrame(), UT_GenericVector< T >::getNthItem(), XAP_FrameImpl::m_szToolbarLabelSetName, XAP_FrameImpl::m_vecToolbarLayoutNames, XAP_FrameImpl::m_vecToolbars, XAP_Frame::refillToolbarsInFrameData(), XAP_Frame::repopulateCombos(), and UT_GenericVector< T >::setNthItem().
bool XAP_UnixFrameImpl::_runModalContextMenu | ( | AV_View * | pView, | |
const char * | szMenuName, | |||
UT_sint32 | x, | |||
UT_sint32 | y | |||
) | [protected, virtual] |
Implements XAP_FrameImpl.
References AV_FOCUS_HERE, DELETEP, AV_View::focusChange(), XAP_App::getApp(), XAP_Frame::getCurrentView(), XAP_FrameImpl::getFrame(), EV_UnixMenuPopup::getMenuHandle(), m_pUnixPopup, XAP_FrameImpl::m_szMenuLabelSetName, EV_UnixMenuPopup::synthesizeMenuPopup(), and UT_ASSERT_HARMLESS.
void XAP_UnixFrameImpl::_setCursor | ( | GR_Graphics::Cursor | cursor | ) | [protected, virtual] |
Implements XAP_FrameImpl.
References GR_Graphics::DGP_PAPER, XAP_Frame::getCurrentView(), XAP_FrameImpl::getFrame(), FV_View::getGraphics(), getTopLevelWindow(), getVBoxWidget(), GR_Graphics::GR_CURSOR_COPYTEXT, GR_Graphics::GR_CURSOR_CROSSHAIR, GR_Graphics::GR_CURSOR_DEFAULT, GR_Graphics::GR_CURSOR_DOWNARROW, GR_Graphics::GR_CURSOR_DRAGTEXT, GR_Graphics::GR_CURSOR_EXCHANGE, GR_Graphics::GR_CURSOR_GRAB, GR_Graphics::GR_CURSOR_HLINE_DRAG, GR_Graphics::GR_CURSOR_IBEAM, GR_Graphics::GR_CURSOR_IMAGE, GR_Graphics::GR_CURSOR_IMAGESIZE_E, GR_Graphics::GR_CURSOR_IMAGESIZE_N, GR_Graphics::GR_CURSOR_IMAGESIZE_NE, GR_Graphics::GR_CURSOR_IMAGESIZE_NW, GR_Graphics::GR_CURSOR_IMAGESIZE_S, GR_Graphics::GR_CURSOR_IMAGESIZE_SE, GR_Graphics::GR_CURSOR_IMAGESIZE_SW, GR_Graphics::GR_CURSOR_IMAGESIZE_W, GR_Graphics::GR_CURSOR_LEFTARROW, GR_Graphics::GR_CURSOR_LEFTRIGHT, GR_Graphics::GR_CURSOR_LINK, GR_Graphics::GR_CURSOR_RIGHTARROW, GR_Graphics::GR_CURSOR_UPDOWN, GR_Graphics::GR_CURSOR_VLINE_DRAG, GR_Graphics::GR_CURSOR_WAIT, XAP_FrameImpl::m_iFrameMode, m_wStatusBar, m_wSunkenBox, GR_Graphics::queryProperties(), UT_ASSERT_HARMLESS, UT_NOT_IMPLEMENTED, and xxx_UT_DEBUGMSG.
void XAP_UnixFrameImpl::_setFullScreen | ( | bool | changeToFullScreen | ) | [protected, virtual] |
Implements XAP_FrameImpl.
References m_wTopLevelWindow.
void XAP_UnixFrameImpl::_setGeometry | ( | ) | [private] |
References XAP_UnixApp::GEOMETRY_FLAG_POS, XAP_UnixApp::GEOMETRY_FLAG_SIZE, XAP_App::getApp(), XAP_FrameImpl::getFrame(), XAP_App::getFrameCount(), XAP_Frame::getFrameMode(), XAP_Prefs::getGeometry(), XAP_App::getGeometry(), XAP_App::getPrefs(), XAP_UnixApp::getWinGeometry(), m_wTopLevelWindow, PREF_FLAG_GEOMETRY_POS, PREF_FLAG_GEOMETRY_SIZE, XAP_Prefs::setGeometry(), and UT_DEBUGMSG.
Referenced by _createTopLevelWindow().
UT_sint32 XAP_UnixFrameImpl::_setInputMode | ( | const char * | szName | ) | [protected] |
virtual void XAP_UnixFrameImpl::_setWindowIcon | ( | ) | [protected, pure virtual] |
Implemented in AP_UnixFrameImpl.
Referenced by _createTopLevelWindow().
bool XAP_UnixFrameImpl::_show | ( | void | ) | [protected, virtual] |
Implements XAP_FrameImpl.
References m_wTopLevelWindow.
bool XAP_UnixFrameImpl::_updateTitle | ( | void | ) | [protected, virtual] |
Reimplemented from XAP_FrameImpl.
References XAP_FrameImpl::_updateTitle(), XAP_FrameImpl::getFrame(), XAP_FrameImpl::m_iFrameMode, m_wTopLevelWindow, and XAP_NormalFrame.
void XAP_UnixFrameImpl::dragText | ( | ) | [protected, virtual] |
Reimplemented from XAP_FrameImpl.
References XAP_App::getApp(), XAP_UnixClipboard::getNumTargets(), XAP_UnixClipboard::getTargets(), m_wTopLevelWindow, and UT_DEBUGMSG.
void XAP_UnixFrameImpl::focusIMIn | ( | ) |
References getIMContext(), and need_im_reset.
Referenced by XAP_UnixFrameImpl::_fe::focus_in_event().
void XAP_UnixFrameImpl::focusIMOut | ( | ) |
References getIMContext(), and need_im_reset.
Referenced by XAP_UnixFrameImpl::_fe::focus_out_event().
GtkIMContext * XAP_UnixFrameImpl::getIMContext | ( | ) | [protected] |
References m_imContext.
Referenced by focusIMIn(), focusIMOut(), XAP_UnixFrameImpl::_fe::key_press_event(), XAP_UnixFrameImpl::_fe::key_release_event(), and resetIMContext().
gint XAP_UnixFrameImpl::getNewX | ( | void | ) | [inline] |
References m_iNewX.
gint XAP_UnixFrameImpl::getNewY | ( | void | ) | [inline] |
References m_iNewY.
GtkWidget * XAP_UnixFrameImpl::getTopLevelWindow | ( | void | ) | const |
References m_wTopLevelWindow.
Referenced by AP_UnixFrameImpl::_createWindow(), _setCursor(), PD_RDFDialogsGTK::_setIcon(), AP_UnixFrame::_setViewFocus(), AP_UnixFrameImpl::_setWindowIcon(), AbiGOComponent_Create(), abiSetupModalDialog(), abiSetupModelessDialog(), GOChartView::modify(), FV_UnixVisualDrag::mouseDrag(), FV_UnixVisualInlineImage::mouseDrag(), FV_UnixFrameEdit::mouseDrag(), XAP_UnixDialog_Print::runModal(), XAP_UnixDialog_MessageBox::runModal(), XAP_UnixDialog_FileOpenSaveAs::runModal(), and AP_UnixDialog_Columns::runModal().
GtkWidget * XAP_UnixFrameImpl::getVBoxWidget | ( | void | ) | const |
References m_wVBox.
Referenced by _setCursor().
virtual GtkWidget* XAP_UnixFrameImpl::getViewWidget | ( | void | ) | const [pure virtual] |
Implemented in AP_UnixFrameImpl.
Referenced by FV_UnixSelectionHandles::FV_UnixSelectionHandles().
void XAP_UnixFrameImpl::queueIMReset | ( | ) | [inline] |
References need_im_reset.
Referenced by XAP_UnixFrameImpl::_fe::key_press_event(), and XAP_UnixFrameImpl::_fe::key_release_event().
void XAP_UnixFrameImpl::resetIMContext | ( | ) |
References getIMContext(), and need_im_reset.
Referenced by XAP_UnixFrameImpl::_fe::button_press_event().
void XAP_UnixFrameImpl::setTimeOfLastEvent | ( | guint32 | eventTime | ) | [protected] |
void XAP_UnixFrameImpl::setTopLevelWindow | ( | GtkWidget * | window | ) | [inline] |
References m_wTopLevelWindow.
friend class _fe [friend] |
friend class XAP_Frame [friend] |
Reimplemented from XAP_FrameImpl.
bool XAP_UnixFrameImpl::m_bDoZoomUpdate [private] |
Referenced by _getDialogFactory().
guint XAP_UnixFrameImpl::m_iAbiRepaintID [private] |
Referenced by ~XAP_UnixFrameImpl().
GtkIMContext* XAP_UnixFrameImpl::m_imContext [protected] |
Referenced by _createIMContext(), getIMContext(), and ~XAP_UnixFrameImpl().
UT_sint32 XAP_UnixFrameImpl::m_iNewHeight [private] |
Referenced by XAP_UnixFrameImpl::_fe::configure_event(), and XAP_UnixFrameImpl::_fe::do_ZoomUpdate().
UT_sint32 XAP_UnixFrameImpl::m_iNewWidth [private] |
Referenced by XAP_UnixFrameImpl::_fe::configure_event(), and XAP_UnixFrameImpl::_fe::do_ZoomUpdate().
UT_sint32 XAP_UnixFrameImpl::m_iNewX [private] |
Referenced by XAP_UnixFrameImpl::_fe::configure_event(), and getNewX().
UT_sint32 XAP_UnixFrameImpl::m_iNewY [private] |
Referenced by XAP_UnixFrameImpl::_fe::configure_event(), and getNewY().
UT_uint32 XAP_UnixFrameImpl::m_iPreeditLen [private] |
Referenced by _imCommit(), _imPreeditChanged_cb(), _imPreeditEnd_cb(), and _imPreeditStart_cb().
UT_uint32 XAP_UnixFrameImpl::m_iPreeditStart [private] |
Referenced by _imCommit(), _imPreeditChanged_cb(), _imPreeditEnd_cb(), and _imPreeditStart_cb().
guint XAP_UnixFrameImpl::m_iZoomUpdateID [private] |
EV_UnixMenuBar* XAP_UnixFrameImpl::m_pUnixMenu [protected] |
Referenced by _createTopLevelWindow(), _getMainMenu(), AP_UnixFrameImpl::_hideMenuScroll(), _rebuildMenus(), and ~XAP_UnixFrameImpl().
EV_UnixMenuPopup* XAP_UnixFrameImpl::m_pUnixPopup [private] |
Referenced by _runModalContextMenu(), and ~XAP_UnixFrameImpl().
GtkWidget* XAP_UnixFrameImpl::m_wStatusBar [protected] |
Referenced by _createTopLevelWindow(), and _setCursor().
GtkWidget* XAP_UnixFrameImpl::m_wSunkenBox [protected] |
Reimplemented in AP_UnixFrameImpl.
Referenced by _createTopLevelWindow(), _getSunkenBox(), and _setCursor().
GtkWidget* XAP_UnixFrameImpl::m_wTopLevelWindow [protected] |
GtkWidget* XAP_UnixFrameImpl::m_wVBox [protected] |
Referenced by _createTopLevelWindow(), and getVBoxWidget().
bool XAP_UnixFrameImpl::need_im_reset [protected] |
Referenced by focusIMIn(), focusIMOut(), queueIMReset(), and resetIMContext().