#include <fv_SelectionHandles.h>
Public Member Functions | |
FV_SelectionHandles (FV_View *pView, FV_Selection selection) | |
virtual | ~FV_SelectionHandles () |
virtual void | hide (void) |
virtual void | setCursorCoords (UT_sint32, UT_sint32, UT_uint32, bool) |
virtual void | setSelectionCoords (UT_sint32, UT_sint32, UT_uint32, bool, UT_sint32, UT_sint32, UT_uint32, bool) |
void | setCursor (PT_DocPosition cursor) |
void | setSelection (PT_DocPosition start, PT_DocPosition end) |
void | updateSelectionStart (UT_sint32 x, UT_sint32 y) |
void | updateSelectionEnd (UT_sint32 x, UT_sint32 y) |
void | updateCursor (UT_sint32 x, UT_sint32 y) |
Protected Attributes | |
FV_View * | m_pView |
FV_Selection | m_pSelection |
Private Member Functions | |
bool | _getPositionCoords (PT_DocPosition pos, UT_sint32 &x, UT_sint32 &y, UT_uint32 &height) |
FV_SelectionHandles::FV_SelectionHandles | ( | FV_View * | pView, | |
FV_Selection | selection | |||
) |
FV_SelectionHandles::~FV_SelectionHandles | ( | ) | [virtual] |
bool FV_SelectionHandles::_getPositionCoords | ( | PT_DocPosition | pos, | |
UT_sint32 & | x, | |||
UT_sint32 & | y, | |||
UT_uint32 & | height | |||
) | [private] |
References FV_View::_findPositionCoords(), FV_View::getGraphics(), AV_View::getWindowHeight(), AV_View::getWindowWidth(), m_pView, and GR_Graphics::tdu().
Referenced by setCursor(), and setSelection().
virtual void FV_SelectionHandles::hide | ( | void | ) | [inline, virtual] |
Reimplemented in FV_UnixSelectionHandles.
Referenced by FV_View::_updateSelectionHandles(), FV_View::cmdCut(), FV_View::focusChange(), and FV_View::setVisualSelectionEnabled().
void FV_SelectionHandles::setCursor | ( | PT_DocPosition | cursor | ) |
References _getPositionCoords(), and setCursorCoords().
Referenced by FV_View::_updateSelectionHandles().
virtual void FV_SelectionHandles::setCursorCoords | ( | UT_sint32 | , | |
UT_sint32 | , | |||
UT_uint32 | , | |||
bool | ||||
) | [inline, virtual] |
Reimplemented in FV_UnixSelectionHandles.
Referenced by setCursor().
void FV_SelectionHandles::setSelection | ( | PT_DocPosition | start, | |
PT_DocPosition | end | |||
) |
References _getPositionCoords(), and setSelectionCoords().
Referenced by FV_View::_updateSelectionHandles().
virtual void FV_SelectionHandles::setSelectionCoords | ( | UT_sint32 | , | |
UT_sint32 | , | |||
UT_uint32 | , | |||
bool | , | |||
UT_sint32 | , | |||
UT_sint32 | , | |||
UT_uint32 | , | |||
bool | ||||
) | [inline, virtual] |
Reimplemented in FV_UnixSelectionHandles.
Referenced by setSelection().
References FV_View::getGraphics(), m_pView, GR_Graphics::tlu(), and FV_View::warpInsPtToXY().
Referenced by handle_dragged_cb().
References FV_View::_fixInsertionPointCoords(), FV_View::_getPageForXY(), FV_View::ensureInsertionPointOnScreen(), FV_View::getGraphics(), FV_View::getSelectionLeftAnchor(), m_pView, fp_Page::mapXYToPosition(), FV_View::selectRange(), GR_Graphics::tlu(), and UT_MAX.
Referenced by handle_dragged_cb().
References FV_View::_getPageForXY(), FV_View::getGraphics(), FV_View::getSelectionRightAnchor(), m_pView, fp_Page::mapXYToPosition(), FV_View::selectRange(), GR_Graphics::tlu(), and UT_MIN.
Referenced by handle_dragged_cb().
FV_Selection FV_SelectionHandles::m_pSelection [protected] |
FV_View* FV_SelectionHandles::m_pView [protected] |