diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-01-22 18:24:55 +1100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-23 10:37:30 +0100 |
commit | 99dafea3e56e5d2b559352896a509bf7fa0fdab5 (patch) | |
tree | 863ba18db5f18ad5063e81149e59d93013cff673 /desktop | |
parent | a9f0b3bd33f93c4066ae9b38241c5cf67f6f4a46 (diff) |
Move defines into settings.hxx
For some unknown reason, there are a bunch of defines in the middle of
Desktop::SystemSettingsChanging() that should really be in
include/vcl/settings.hxx. I have now moved DRAG_OPTIONS_ALL into
settings.hxx but entirely removed DRAG_OPTIONS_NONE because it is
confusing. I also removed it in the one place this combination of options
is used in the Desktop class.
I have also removed the options DRAG_OPTIONS_OBJECT_* from settings.hxx
because they are used nowhere in the code. I have carefully looked
through the code and nothing flips bits 0x00000004 or 0x00000008 on
the private member of ImplStyleData's mnDragFullOptions in any way.
Basically, it is safe to remove.
Change-Id: Icf6268f940cfaed271bd43c977473fecfc726949
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/app.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 8c0fe6aa0654..9b32f6cf1b68 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -1938,13 +1938,6 @@ void Desktop::SystemSettingsChanging( AllSettings& rSettings ) if ( !SvtTabAppearanceCfg::IsInitialized () ) return; -# define DRAGFULL_OPTION_ALL \ - ( DRAGFULL_OPTION_WINDOWMOVE | DRAGFULL_OPTION_WINDOWSIZE \ - | DRAGFULL_OPTION_OBJECTMOVE | DRAGFULL_OPTION_OBJECTSIZE \ - | DRAGFULL_OPTION_DOCKING | DRAGFULL_OPTION_SPLIT \ - | DRAGFULL_OPTION_SCROLL ) -# define DRAGFULL_OPTION_NONE ((sal_uInt32)~DRAGFULL_OPTION_ALL) - StyleSettings hStyleSettings = rSettings.GetStyleSettings(); MouseSettings hMouseSettings = rSettings.GetMouseSettings(); @@ -1958,7 +1951,7 @@ void Desktop::SystemSettingsChanging( AllSettings& rSettings ) nDragFullOptions |= DRAGFULL_OPTION_ALL; break; case DragFrame: - nDragFullOptions &= DRAGFULL_OPTION_NONE; + nDragFullOptions &= ((sal_uInt32)~DRAGFULL_OPTION_ALL); break; case DragSystemDep: default: |