remove unused StartTrackingFlags enum values
Change-Id: Ib72e4d5e3e1c65bc4d44756f98392393c79dab0e Reviewed-on: https://gerrit.libreoffice.org/63971 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -1098,14 +1098,6 @@ include/vcl/window.hxx:121
|
|||||||
enum TrackingEventFlags DontCallHdl
|
enum TrackingEventFlags DontCallHdl
|
||||||
include/vcl/window.hxx:172
|
include/vcl/window.hxx:172
|
||||||
enum ShowFlags NoParentUpdate
|
enum ShowFlags NoParentUpdate
|
||||||
include/vcl/window.hxx:298
|
|
||||||
enum StartTrackingFlags KeyInput
|
|
||||||
include/vcl/window.hxx:300
|
|
||||||
enum StartTrackingFlags NoKeyCancel
|
|
||||||
include/vcl/window.hxx:303
|
|
||||||
enum StartTrackingFlags MouseButtonDown
|
|
||||||
include/vcl/window.hxx:304
|
|
||||||
enum StartTrackingFlags FocusCancel
|
|
||||||
include/xmloff/shapeexport.hxx:53
|
include/xmloff/shapeexport.hxx:53
|
||||||
enum XMLShapeExportFlags WIDTH
|
enum XMLShapeExportFlags WIDTH
|
||||||
include/xmloff/shapeexport.hxx:54
|
include/xmloff/shapeexport.hxx:54
|
||||||
|
@@ -294,19 +294,15 @@ namespace o3tl
|
|||||||
// Flags for StartTracking()
|
// Flags for StartTracking()
|
||||||
enum class StartTrackingFlags
|
enum class StartTrackingFlags
|
||||||
{
|
{
|
||||||
NONE = 0x0000,
|
NONE = 0x0001,
|
||||||
KeyInput = 0x0001,
|
|
||||||
KeyMod = 0x0002,
|
KeyMod = 0x0002,
|
||||||
NoKeyCancel = 0x0004,
|
ScrollRepeat = 0x0004,
|
||||||
ScrollRepeat = 0x0008,
|
ButtonRepeat = 0x0008,
|
||||||
ButtonRepeat = 0x0010,
|
|
||||||
MouseButtonDown = 0x0020,
|
|
||||||
FocusCancel = 0x0040,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace o3tl
|
namespace o3tl
|
||||||
{
|
{
|
||||||
template<> struct typed_flags<StartTrackingFlags> : is_typed_flags<StartTrackingFlags, 0x007f> {};
|
template<> struct typed_flags<StartTrackingFlags> : is_typed_flags<StartTrackingFlags, 0x000f> {};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Flags for StartAutoScroll()
|
// Flags for StartAutoScroll()
|
||||||
|
@@ -346,9 +346,6 @@ void Window::ImplGrabFocus( GetFocusFlags nFlags )
|
|||||||
// call Get- and LoseFocus
|
// call Get- and LoseFocus
|
||||||
if ( pOldFocusWindow && ! pOldFocusWindow->IsDisposed() )
|
if ( pOldFocusWindow && ! pOldFocusWindow->IsDisposed() )
|
||||||
{
|
{
|
||||||
if ( pOldFocusWindow->IsTracking() &&
|
|
||||||
(pSVData->maWinData.mnTrackFlags & StartTrackingFlags::FocusCancel) )
|
|
||||||
pOldFocusWindow->EndTracking( TrackingEventFlags::Cancel | TrackingEventFlags::Focus );
|
|
||||||
NotifyEvent aNEvt( MouseNotifyEvent::LOSEFOCUS, pOldFocusWindow );
|
NotifyEvent aNEvt( MouseNotifyEvent::LOSEFOCUS, pOldFocusWindow );
|
||||||
if ( !ImplCallPreNotify( aNEvt ) )
|
if ( !ImplCallPreNotify( aNEvt ) )
|
||||||
pOldFocusWindow->CompatLoseFocus();
|
pOldFocusWindow->CompatLoseFocus();
|
||||||
|
@@ -687,8 +687,7 @@ bool ImplHandleMouseEvent( const VclPtr<vcl::Window>& xWindow, MouseNotifyEvent
|
|||||||
}
|
}
|
||||||
else if ( nSVEvent == MouseNotifyEvent::MOUSEBUTTONDOWN )
|
else if ( nSVEvent == MouseNotifyEvent::MOUSEBUTTONDOWN )
|
||||||
{
|
{
|
||||||
if ( pSVData->maWinData.mpTrackWin &&
|
if ( pSVData->maWinData.mpTrackWin )
|
||||||
!(pSVData->maWinData.mnTrackFlags & StartTrackingFlags::MouseButtonDown) )
|
|
||||||
bRet = true;
|
bRet = true;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -919,7 +918,7 @@ static bool ImplHandleKey( vcl::Window* pWindow, MouseNotifyEvent nSVEvent,
|
|||||||
{
|
{
|
||||||
sal_uInt16 nOrigCode = aKeyCode.GetCode();
|
sal_uInt16 nOrigCode = aKeyCode.GetCode();
|
||||||
|
|
||||||
if ( (nOrigCode == KEY_ESCAPE) && !(pSVData->maWinData.mnTrackFlags & StartTrackingFlags::NoKeyCancel) )
|
if ( nOrigCode == KEY_ESCAPE )
|
||||||
{
|
{
|
||||||
pSVData->maWinData.mpTrackWin->EndTracking( TrackingEventFlags::Cancel | TrackingEventFlags::Key );
|
pSVData->maWinData.mpTrackWin->EndTracking( TrackingEventFlags::Cancel | TrackingEventFlags::Key );
|
||||||
if ( pSVData->maWinData.mpFirstFloat )
|
if ( pSVData->maWinData.mpFirstFloat )
|
||||||
@@ -940,7 +939,7 @@ static bool ImplHandleKey( vcl::Window* pWindow, MouseNotifyEvent nSVEvent,
|
|||||||
pSVData->maWinData.mpTrackWin->EndTracking( TrackingEventFlags::Key );
|
pSVData->maWinData.mpTrackWin->EndTracking( TrackingEventFlags::Key );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if ( !(pSVData->maWinData.mnTrackFlags & StartTrackingFlags::KeyInput) )
|
else
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user