framework/source/uielement/comboboxtoolbarcontroller.cxx    |    2 +-
 framework/source/uielement/dropdownboxtoolbarcontroller.cxx |    2 +-
 include/rsc/rsc-vcl-shared-types.hxx                        |   12 ++++++------
 include/vcl/keycod.hxx                                      |    4 ++--
 vcl/osx/salframe.cxx                                        |    2 +-
 vcl/source/window/debugevent.cxx                            |    6 +++---
 6 files changed, 14 insertions(+), 14 deletions(-)

New commits:
commit d519c312fabef58e4655837ea9069f2ebd92d762
Author: Noel Grandin <n...@peralex.com>
Date:   Thu Nov 6 10:19:44 2014 +0200

    rename KEY_MODTYPE to KEY_MODIFIERS_MASK
    
    Change-Id: I7948988e4fd89bf94a98afee15298cd33e2a4d06

diff --git a/framework/source/uielement/comboboxtoolbarcontroller.cxx 
b/framework/source/uielement/comboboxtoolbarcontroller.cxx
index d80fa5e..6a685cf 100644
--- a/framework/source/uielement/comboboxtoolbarcontroller.cxx
+++ b/framework/source/uielement/comboboxtoolbarcontroller.cxx
@@ -190,7 +190,7 @@ void ComboboxToolbarController::Select()
     {
         vcl::Window::PointerState aState = m_pComboBox->GetPointerState();
 
-        sal_uInt16 nKeyModifier = sal_uInt16( aState.mnState & KEY_MODTYPE );
+        sal_uInt16 nKeyModifier = sal_uInt16( aState.mnState & 
KEY_MODIFIERS_MASK );
         execute( nKeyModifier );
     }
 }
diff --git a/framework/source/uielement/dropdownboxtoolbarcontroller.cxx 
b/framework/source/uielement/dropdownboxtoolbarcontroller.cxx
index 87bc1d5..5eb3392 100644
--- a/framework/source/uielement/dropdownboxtoolbarcontroller.cxx
+++ b/framework/source/uielement/dropdownboxtoolbarcontroller.cxx
@@ -174,7 +174,7 @@ void DropdownToolbarController::Select()
     {
         vcl::Window::PointerState aState = 
m_pListBoxControl->GetPointerState();
 
-        sal_uInt16 nKeyModifier = sal_uInt16( aState.mnState & KEY_MODTYPE );
+        sal_uInt16 nKeyModifier = sal_uInt16( aState.mnState & 
KEY_MODIFIERS_MASK );
         execute( nKeyModifier );
     }
 }
diff --git a/include/rsc/rsc-vcl-shared-types.hxx 
b/include/rsc/rsc-vcl-shared-types.hxx
index eab2e04..016ff2f 100644
--- a/include/rsc/rsc-vcl-shared-types.hxx
+++ b/include/rsc/rsc-vcl-shared-types.hxx
@@ -134,14 +134,14 @@ namespace o3tl
     template<> struct typed_flags<WindowBorderStyle> : 
is_typed_flags<WindowBorderStyle, 0x3033> {};
 }
 
-#define KEY_CODE        ((sal_uInt16)0x0FFF)
+#define KEY_CODE_MASK       ((sal_uInt16)0x0FFF)
 
 // Modifier-Tasten
-#define KEY_SHIFT       ((sal_uInt16)0x1000)
-#define KEY_MOD1        ((sal_uInt16)0x2000)
-#define KEY_MOD2        ((sal_uInt16)0x4000)
-#define KEY_MOD3        ((sal_uInt16)0x8000)
-#define KEY_MODTYPE     ((sal_uInt16)0xF000)
+#define KEY_SHIFT           ((sal_uInt16)0x1000)
+#define KEY_MOD1            ((sal_uInt16)0x2000)
+#define KEY_MOD2            ((sal_uInt16)0x4000)
+#define KEY_MOD3            ((sal_uInt16)0x8000)
+#define KEY_MODIFIERS_MASK  ((sal_uInt16)0xF000)
 
 #endif
 
diff --git a/include/vcl/keycod.hxx b/include/vcl/keycod.hxx
index a1da5d9..f33daf7 100644
--- a/include/vcl/keycod.hxx
+++ b/include/vcl/keycod.hxx
@@ -48,10 +48,10 @@ public:
     KeyFuncType     GetFullFunction() const { return eFunc; }
 
     sal_uInt16      GetCode() const
-                    { return (nKeyCodeAndModifiers & KEY_CODE); }
+                    { return (nKeyCodeAndModifiers & KEY_CODE_MASK); }
 
     sal_uInt16      GetModifier() const
-                    { return (nKeyCodeAndModifiers & KEY_MODTYPE); }
+                    { return (nKeyCodeAndModifiers & KEY_MODIFIERS_MASK); }
     bool            IsShift() const
                     { return ((nKeyCodeAndModifiers & KEY_SHIFT) != 0); }
     bool            IsMod1() const
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx
index f205caf..0f266db 100644
--- a/vcl/osx/salframe.cxx
+++ b/vcl/osx/salframe.cxx
@@ -1007,7 +1007,7 @@ OUString AquaSalFrame::GetKeyName( sal_uInt16 nKeyCode )
 
     OUStringBuffer aResult( 16 );
 
-    sal_uInt16 nUnmodifiedCode = (nKeyCode & KEY_CODE);
+    sal_uInt16 nUnmodifiedCode = (nKeyCode & KEY_CODE_MASK);
     std::map< sal_uInt16, OUString >::const_iterator it = aKeyMap.find( 
nUnmodifiedCode );
     if( it != aKeyMap.end() )
     {
diff --git a/vcl/source/window/debugevent.cxx b/vcl/source/window/debugevent.cxx
index 65a1172..4581015 100644
--- a/vcl/source/window/debugevent.cxx
+++ b/vcl/source/window/debugevent.cxx
@@ -140,7 +140,7 @@ void DebugEventInjector::InjectTextEvent()
 
     if (getRandom() < 0.10) // Occasionally a truly random event
     {
-        aKeyEvent.mnCode = getRandom() * KEY_CODE;
+        aKeyEvent.mnCode = getRandom() * KEY_CODE_MASK;
         aKeyEvent.mnCharCode = getRandom() * 0xffff;
     }
     else
@@ -162,7 +162,7 @@ void DebugEventInjector::InjectTextEvent()
     }
 
     if( getRandom() < 0.05 ) // modifier
-        aKeyEvent.mnCode |= (sal_uInt16)( getRandom() * KEY_MODTYPE ) & 
KEY_MODTYPE;
+        aKeyEvent.mnCode |= (sal_uInt16)( getRandom() * KEY_MODIFIERS_MASK ) & 
KEY_MODIFIERS_MASK;
 
     bool bHandled = ImplWindowFrameProc( pWindow, NULL, SALEVENT_KEYINPUT, 
&aKeyEvent);
 
@@ -244,7 +244,7 @@ void DebugEventInjector::InjectKeyNavEdit()
     aKeyEvent.mnCode = nKey;
 
     if (getRandom() < 0.15) // modifier
-        aKeyEvent.mnCode |= (sal_uInt16)(getRandom() * KEY_MODTYPE) & 
KEY_MODTYPE;
+        aKeyEvent.mnCode |= (sal_uInt16)(getRandom() * KEY_MODIFIERS_MASK) & 
KEY_MODIFIERS_MASK;
 
     aKeyEvent.mnCharCode = 0x0; // hopefully unused.
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to