20#ifndef INCLUDED_VCL_COMMANDEVENT_HXX
21#define INCLUDED_VCL_COMMANDEVENT_HXX
29#include <rtl/ustring.hxx>
66#define EXTTEXTINPUT_CURSOR_INVISIBLE (sal_uInt16(0x0001))
67#define EXTTEXTINPUT_CURSOR_OVERWRITE (sal_uInt16(0x0002))
81 bool bMEvt =
false,
const void* pCmdData =
nullptr );
114 sal_Int32 nCursorPos,
115 sal_uInt16 nCursorFlags,
142#define COMMAND_WHEEL_PAGESCROLL (sal_uLong(0xFFFFFFFF))
160 bool bHorz,
bool bDeltaIsPixel =
false );
175 {
return ((mnCode &
KEY_MOD1) != 0); }
177 {
return ((mnCode &
KEY_MOD2) != 0); }
220 : m_nDialogId( nDialogId )
257 : m_nMediaId(nMediaId)
258 , m_bPassThroughToOS(true)
288 : mnVelocityX(nVelocityX)
310 double getX()
const {
return mnX; }
311 double getY()
const {
return mnY; }
328 , meEventType(eEventType)
329 , meOrientation(eOrientation)
339 const double mfScaleDelta = 0;
344 , meEventType(eEventType)
345 , mfScaleDelta(fScale)
355 const double mfAngleDelta = 0;
361 , meEventType(eEventType)
362 , mfAngleDelta(fAngleDelta)
CommandDialogData(ShowDialogId nDialogId)
ShowDialogId GetDialogId() const
CommandEventId GetCommand() const
const Point & GetMousePosPixel() const
void * GetEventData() const
bool IsMouseEvent() const
sal_Int32 GetCursorPos() const
std::unique_ptr< ExtTextInputAttr[]> mpTextAttr
bool IsOnlyCursorChanged() const
const OUString & GetText() const
bool IsCursorOverwrite() const
const ExtTextInputAttr * GetTextAttr() const
bool IsCursorVisible() const
CommandGestureLongPressData()
CommandGestureLongPressData(double nX, double nY)
PanningOrientation const meOrientation
CommandGesturePanData(double fX, double fY, GestureEventPanType eEventType, double fOffset, PanningOrientation eOrientation)
GestureEventPanType const meEventType
CommandGestureRotateData(double fX, double fY, GestureEventRotateType eEventType, double fAngleDelta)
CommandGestureSwipeData()
double getVelocityX() const
CommandGestureSwipeData(double nVelocityX)
CommandGestureZoomData(double fX, double fY, GestureEventZoomType eEventType, double fScale)
bool IsRightShift() const
CommandModKeyData(ModKeyFlags nCode, bool bDown)
sal_uLong GetStart() const
CommandSelectionChangeData(sal_uLong nStart, sal_uLong nEnd)
sal_uInt16 GetModifier() const
tools::Long GetNotchDelta() const
tools::Long GetDelta() const
double GetScrollLines() const
CommandWheelMode mnWheelMode
bool IsDeltaPixel() const
CommandWheelMode GetMode() const
#define EXTTEXTINPUT_CURSOR_OVERWRITE
#define EXTTEXTINPUT_CURSOR_INVISIBLE
constexpr sal_uInt16 KEY_MOD2
constexpr sal_uInt16 KEY_MOD1
constexpr sal_uInt16 KEY_SHIFT