diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-12-12 00:35:29 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-12-12 09:26:29 +0200 |
commit | d2df0adad4cad2098807803a21ced712ad21e918 (patch) | |
tree | 8488f7eb1130fa6edb55e8db4fdfb5bfdb22a1d9 | |
parent | 0bcef149ce3785306271fa06184eb62950b62087 (diff) |
No need for a separate <vcl/lstbox.h>
Change-Id: Ib8d0e3d240e693c678d575b4791f69ca760919ec
-rw-r--r-- | basctl/inc/pch/precompiled_basctl.hxx | 1 | ||||
-rw-r--r-- | chart2/inc/pch/precompiled_chartcontroller.hxx | 2 | ||||
-rw-r--r-- | cui/inc/pch/precompiled_cui.hxx | 1 | ||||
-rw-r--r-- | editeng/inc/pch/precompiled_editeng.hxx | 2 | ||||
-rw-r--r-- | framework/inc/pch/precompiled_fwk.hxx | 2 | ||||
-rw-r--r-- | include/vcl/combobox.hxx | 2 | ||||
-rw-r--r-- | include/vcl/lstbox.h | 69 | ||||
-rw-r--r-- | include/vcl/lstbox.hxx | 49 | ||||
-rw-r--r-- | reportdesign/inc/pch/precompiled_rpt.hxx | 2 | ||||
-rw-r--r-- | reportdesign/inc/pch/precompiled_rptui.hxx | 2 | ||||
-rw-r--r-- | sc/inc/pch/precompiled_sc.hxx | 1 | ||||
-rw-r--r-- | sd/inc/pch/precompiled_sd.hxx | 1 | ||||
-rw-r--r-- | sd/inc/pch/precompiled_sdui.hxx | 1 | ||||
-rw-r--r-- | svtools/inc/pch/precompiled_svt.hxx | 1 | ||||
-rw-r--r-- | svx/inc/pch/precompiled_svxcore.hxx | 1 | ||||
-rw-r--r-- | sw/inc/pch/precompiled_msword.hxx | 2 | ||||
-rw-r--r-- | sw/inc/pch/precompiled_swui.hxx | 1 | ||||
-rw-r--r-- | sw/inc/pch/precompiled_vbaswobj.hxx | 1 | ||||
-rw-r--r-- | vcl/inc/ilstbox.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/pch/precompiled_vcl.hxx | 2 | ||||
-rw-r--r-- | vcl/source/control/combobox.cxx | 2 | ||||
-rw-r--r-- | vcl/source/control/ilstbox.cxx | 1 |
22 files changed, 51 insertions, 97 deletions
diff --git a/basctl/inc/pch/precompiled_basctl.hxx b/basctl/inc/pch/precompiled_basctl.hxx index 99b755d8bfdc..6443d6792ad9 100644 --- a/basctl/inc/pch/precompiled_basctl.hxx +++ b/basctl/inc/pch/precompiled_basctl.hxx @@ -151,7 +151,6 @@ #include <vcl/keycodes.hxx> #include <vcl/layout.hxx> #include <vcl/lineinfo.hxx> -#include <vcl/lstbox.h> #include <vcl/lstbox.hxx> #include <vcl/mapmod.hxx> #include <vcl/menu.hxx> diff --git a/chart2/inc/pch/precompiled_chartcontroller.hxx b/chart2/inc/pch/precompiled_chartcontroller.hxx index f5ea57652729..ebd385b7bd28 100644 --- a/chart2/inc/pch/precompiled_chartcontroller.hxx +++ b/chart2/inc/pch/precompiled_chartcontroller.hxx @@ -139,7 +139,7 @@ #include <vcl/keycodes.hxx> #include <vcl/layout.hxx> #include <vcl/lineinfo.hxx> -#include <vcl/lstbox.h> +#include <vcl/lstbox.hxx> #include <vcl/mapmod.hxx> #include <vcl/menu.hxx> #include <vcl/metaact.hxx> diff --git a/cui/inc/pch/precompiled_cui.hxx b/cui/inc/pch/precompiled_cui.hxx index 85bb59efc4cb..d305d47242e6 100644 --- a/cui/inc/pch/precompiled_cui.hxx +++ b/cui/inc/pch/precompiled_cui.hxx @@ -149,7 +149,6 @@ #include <vcl/keycodes.hxx> #include <vcl/layout.hxx> #include <vcl/lineinfo.hxx> -#include <vcl/lstbox.h> #include <vcl/lstbox.hxx> #include <vcl/mapmod.hxx> #include <vcl/menu.hxx> diff --git a/editeng/inc/pch/precompiled_editeng.hxx b/editeng/inc/pch/precompiled_editeng.hxx index 3a4ca16039de..ef640fb6a1e0 100644 --- a/editeng/inc/pch/precompiled_editeng.hxx +++ b/editeng/inc/pch/precompiled_editeng.hxx @@ -110,7 +110,7 @@ #include <vcl/impdel.hxx> #include <vcl/keycod.hxx> #include <vcl/keycodes.hxx> -#include <vcl/lstbox.h> +#include <vcl/lstbox.hxx> #include <vcl/mapmod.hxx> #include <vcl/menu.hxx> #include <vcl/metric.hxx> diff --git a/framework/inc/pch/precompiled_fwk.hxx b/framework/inc/pch/precompiled_fwk.hxx index b2de591f9513..530cc3adaeb9 100644 --- a/framework/inc/pch/precompiled_fwk.hxx +++ b/framework/inc/pch/precompiled_fwk.hxx @@ -134,7 +134,7 @@ #include <vcl/keycod.hxx> #include <vcl/keycodes.hxx> #include <vcl/lineinfo.hxx> -#include <vcl/lstbox.h> +#include <vcl/lstbox.hxx> #include <vcl/mapmod.hxx> #include <vcl/menu.hxx> #include <vcl/metaact.hxx> diff --git a/include/vcl/combobox.hxx b/include/vcl/combobox.hxx index 42c012c24e68..7bb281eeda14 100644 --- a/include/vcl/combobox.hxx +++ b/include/vcl/combobox.hxx @@ -22,7 +22,7 @@ #include <vcl/dllapi.h> #include <vcl/edit.hxx> -#include <vcl/lstbox.h> +#include <vcl/lstbox.hxx> #define COMBOBOX_APPEND (SAL_MAX_INT32) #define COMBOBOX_ENTRY_NOTFOUND (SAL_MAX_INT32) diff --git a/include/vcl/lstbox.h b/include/vcl/lstbox.h deleted file mode 100644 index 3551a62b98dd..000000000000 --- a/include/vcl/lstbox.h +++ /dev/null @@ -1,69 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef INCLUDED_VCL_LSTBOX_H -#define INCLUDED_VCL_LSTBOX_H - -#include <sal/types.h> -#include <o3tl/typed_flags_set.hxx> - -#define LISTBOX_APPEND (SAL_MAX_INT32) -#define LISTBOX_ENTRY_NOTFOUND (SAL_MAX_INT32) -#define LISTBOX_ERROR (SAL_MAX_INT32) -#define LISTBOX_MAX_ENTRIES (SAL_MAX_INT32 - 1) - - - -// the following defines can be used for the SetEntryFlags() -// and GetEntryFlags() methods - -// !! Do not use these flags for user data as they are reserved !! -// !! to change the internal behaviour of the ListBox implementation !! -// !! for specific entries. !! - -enum class ListBoxEntryFlags -{ - NONE = 0x0000, -/** this flag disables a selection of an entry completely. It is not - possible to select such entries either from the user interface - nor from the ListBox methods. Cursor traveling is handled correctly. - This flag can be used to add titles to a ListBox. -*/ - DisableSelection = 0x0001, - -/** this flag can be used to make an entry multiline capable - A normal entry is single line and will therefore be clipped - at the right listbox border. Setting this flag enables - word breaks for the entry text. -*/ - MultiLine = 0x0002, - -/** this flags lets the item be drawn disabled (e.g. in grey text) - usage only guaranteed with ListBoxEntryFlags::DisableSelection -*/ - DrawDisabled = 0x0004, -}; -namespace o3tl -{ - template<> struct typed_flags<ListBoxEntryFlags> : is_typed_flags<ListBoxEntryFlags, 0x0007> {}; -} - -#endif // INCLUDED_VCL_LSTBOX_H - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/vcl/lstbox.hxx b/include/vcl/lstbox.hxx index ec52b9d385a0..e2050cf7ef47 100644 --- a/include/vcl/lstbox.hxx +++ b/include/vcl/lstbox.hxx @@ -20,9 +20,49 @@ #ifndef INCLUDED_VCL_LSTBOX_HXX #define INCLUDED_VCL_LSTBOX_HXX +#include <sal/types.h> +#include <o3tl/typed_flags_set.hxx> #include <vcl/dllapi.h> #include <vcl/ctrl.hxx> -#include <vcl/lstbox.h> + +#define LISTBOX_APPEND (SAL_MAX_INT32) +#define LISTBOX_ENTRY_NOTFOUND (SAL_MAX_INT32) +#define LISTBOX_ERROR (SAL_MAX_INT32) +#define LISTBOX_MAX_ENTRIES (SAL_MAX_INT32 - 1) + +// the following defines can be used for the SetEntryFlags() +// and GetEntryFlags() methods + +// !! Do not use these flags for user data as they are reserved !! +// !! to change the internal behaviour of the ListBox implementation !! +// !! for specific entries. !! + +enum class ListBoxEntryFlags +{ + NONE = 0x0000, +/** this flag disables a selection of an entry completely. It is not + possible to select such entries either from the user interface + nor from the ListBox methods. Cursor traveling is handled correctly. + This flag can be used to add titles to a ListBox. +*/ + DisableSelection = 0x0001, + +/** this flag can be used to make an entry multiline capable + A normal entry is single line and will therefore be clipped + at the right listbox border. Setting this flag enables + word breaks for the entry text. +*/ + MultiLine = 0x0002, + +/** this flags lets the item be drawn disabled (e.g. in grey text) + usage only guaranteed with ListBoxEntryFlags::DisableSelection +*/ + DrawDisabled = 0x0004, +}; +namespace o3tl +{ + template<> struct typed_flags<ListBoxEntryFlags> : is_typed_flags<ListBoxEntryFlags, 0x0007> {}; +} class Image; class ImplListBox; @@ -31,9 +71,6 @@ class ImplBtn; class ImplWin; class ImplListBoxWindow; -// - ListBox - - - class VCL_DLLPUBLIC ListBox : public Control { private: @@ -240,10 +277,6 @@ public: static sal_Int32 NaturalSortCompare(const OUString &rA, const OUString &rB); }; - -// - MultiListBox - - - class VCL_DLLPUBLIC MultiListBox : public ListBox { public: diff --git a/reportdesign/inc/pch/precompiled_rpt.hxx b/reportdesign/inc/pch/precompiled_rpt.hxx index a79b979f79bf..4b3fa9c6dbba 100644 --- a/reportdesign/inc/pch/precompiled_rpt.hxx +++ b/reportdesign/inc/pch/precompiled_rpt.hxx @@ -140,7 +140,7 @@ #include <vcl/keycod.hxx> #include <vcl/keycodes.hxx> #include <vcl/lineinfo.hxx> -#include <vcl/lstbox.h> +#include <vcl/lstbox.hxx> #include <vcl/mapmod.hxx> #include <vcl/menu.hxx> #include <vcl/metaact.hxx> diff --git a/reportdesign/inc/pch/precompiled_rptui.hxx b/reportdesign/inc/pch/precompiled_rptui.hxx index 327d821dd227..9e224ca87072 100644 --- a/reportdesign/inc/pch/precompiled_rptui.hxx +++ b/reportdesign/inc/pch/precompiled_rptui.hxx @@ -152,7 +152,7 @@ #include <vcl/keycodes.hxx> #include <vcl/layout.hxx> #include <vcl/lineinfo.hxx> -#include <vcl/lstbox.h> +#include <vcl/lstbox.hxx> #include <vcl/mapmod.hxx> #include <vcl/menu.hxx> #include <vcl/metaact.hxx> diff --git a/sc/inc/pch/precompiled_sc.hxx b/sc/inc/pch/precompiled_sc.hxx index 4da80fda76fd..c89911882ca1 100644 --- a/sc/inc/pch/precompiled_sc.hxx +++ b/sc/inc/pch/precompiled_sc.hxx @@ -152,7 +152,6 @@ #include <vcl/keycod.hxx> #include <vcl/keycodes.hxx> #include <vcl/layout.hxx> -#include <vcl/lstbox.h> #include <vcl/lstbox.hxx> #include <vcl/mapmod.hxx> #include <vcl/menu.hxx> diff --git a/sd/inc/pch/precompiled_sd.hxx b/sd/inc/pch/precompiled_sd.hxx index d06db465cd91..cff3d760dea6 100644 --- a/sd/inc/pch/precompiled_sd.hxx +++ b/sd/inc/pch/precompiled_sd.hxx @@ -104,7 +104,6 @@ #include <vcl/idle.hxx> #include <vcl/image.hxx> #include <vcl/layout.hxx> -#include <vcl/lstbox.h> #include <vcl/lstbox.hxx> #include <vcl/mapmod.hxx> #include <vcl/menu.hxx> diff --git a/sd/inc/pch/precompiled_sdui.hxx b/sd/inc/pch/precompiled_sdui.hxx index 62805f60948c..97ba8e2eba49 100644 --- a/sd/inc/pch/precompiled_sdui.hxx +++ b/sd/inc/pch/precompiled_sdui.hxx @@ -148,7 +148,6 @@ #include <vcl/keycodes.hxx> #include <vcl/layout.hxx> #include <vcl/lineinfo.hxx> -#include <vcl/lstbox.h> #include <vcl/lstbox.hxx> #include <vcl/mapmod.hxx> #include <vcl/menu.hxx> diff --git a/svtools/inc/pch/precompiled_svt.hxx b/svtools/inc/pch/precompiled_svt.hxx index 7c2ee3d435aa..1d59d0efd2c0 100644 --- a/svtools/inc/pch/precompiled_svt.hxx +++ b/svtools/inc/pch/precompiled_svt.hxx @@ -126,7 +126,6 @@ #include <vcl/keycod.hxx> #include <vcl/keycodes.hxx> #include <vcl/layout.hxx> -#include <vcl/lstbox.h> #include <vcl/lstbox.hxx> #include <vcl/mapmod.hxx> #include <vcl/menu.hxx> diff --git a/svx/inc/pch/precompiled_svxcore.hxx b/svx/inc/pch/precompiled_svxcore.hxx index f45a2a45054c..ee1611798517 100644 --- a/svx/inc/pch/precompiled_svxcore.hxx +++ b/svx/inc/pch/precompiled_svxcore.hxx @@ -133,7 +133,6 @@ #include <vcl/impdel.hxx> #include <vcl/keycod.hxx> #include <vcl/keycodes.hxx> -#include <vcl/lstbox.h> #include <vcl/lstbox.hxx> #include <vcl/mapmod.hxx> #include <vcl/menu.hxx> diff --git a/sw/inc/pch/precompiled_msword.hxx b/sw/inc/pch/precompiled_msword.hxx index 3125b96c32a3..46b41de4b077 100644 --- a/sw/inc/pch/precompiled_msword.hxx +++ b/sw/inc/pch/precompiled_msword.hxx @@ -149,7 +149,7 @@ #include <vcl/keycod.hxx> #include <vcl/keycodes.hxx> #include <vcl/lineinfo.hxx> -#include <vcl/lstbox.h> +#include <vcl/lstbox.hxx> #include <vcl/mapmod.hxx> #include <vcl/menu.hxx> #include <vcl/metaact.hxx> diff --git a/sw/inc/pch/precompiled_swui.hxx b/sw/inc/pch/precompiled_swui.hxx index 17a5b995419c..8d8b5279fbb7 100644 --- a/sw/inc/pch/precompiled_swui.hxx +++ b/sw/inc/pch/precompiled_swui.hxx @@ -152,7 +152,6 @@ #include <vcl/keycodes.hxx> #include <vcl/layout.hxx> #include <vcl/lineinfo.hxx> -#include <vcl/lstbox.h> #include <vcl/lstbox.hxx> #include <vcl/mapmod.hxx> #include <vcl/menu.hxx> diff --git a/sw/inc/pch/precompiled_vbaswobj.hxx b/sw/inc/pch/precompiled_vbaswobj.hxx index 01376495a6f6..eb6e2e52b1ba 100644 --- a/sw/inc/pch/precompiled_vbaswobj.hxx +++ b/sw/inc/pch/precompiled_vbaswobj.hxx @@ -143,7 +143,6 @@ #include <vcl/keycod.hxx> #include <vcl/keycodes.hxx> #include <vcl/lineinfo.hxx> -#include <vcl/lstbox.h> #include <vcl/lstbox.hxx> #include <vcl/mapmod.hxx> #include <vcl/menu.hxx> diff --git a/vcl/inc/ilstbox.hxx b/vcl/inc/ilstbox.hxx index 24eced3169e4..3490165ee0ec 100644 --- a/vcl/inc/ilstbox.hxx +++ b/vcl/inc/ilstbox.hxx @@ -27,7 +27,7 @@ #include <vcl/ctrl.hxx> #include <vcl/button.hxx> #include <vcl/floatwin.hxx> -#include <vcl/lstbox.h> +#include <vcl/lstbox.hxx> #include <vcl/timer.hxx> #include "vcl/quickselectionengine.hxx" diff --git a/vcl/inc/pch/precompiled_vcl.hxx b/vcl/inc/pch/precompiled_vcl.hxx index b72489eb5ddc..b2908a11c093 100644 --- a/vcl/inc/pch/precompiled_vcl.hxx +++ b/vcl/inc/pch/precompiled_vcl.hxx @@ -162,7 +162,7 @@ #include <vcl/layout.hxx> #include <vcl/lazydelete.hxx> #include <vcl/lineinfo.hxx> -#include <vcl/lstbox.h> +#include <vcl/lstbox.hxx> #include <vcl/mapmod.hxx> #include <vcl/menu.hxx> #include <vcl/metaact.hxx> diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx index 94dc649487e2..9327e3546e92 100644 --- a/vcl/source/control/combobox.cxx +++ b/vcl/source/control/combobox.cxx @@ -27,7 +27,7 @@ #include <tools/debug.hxx> #include <tools/rc.h> #include <vcl/decoview.hxx> -#include <vcl/lstbox.h> +#include <vcl/lstbox.hxx> #include <vcl/button.hxx> #include <vcl/event.hxx> #include <vcl/settings.hxx> diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx index 1cd6e529ecb7..9079284ade0b 100644 --- a/vcl/source/control/ilstbox.cxx +++ b/vcl/source/control/ilstbox.cxx @@ -24,7 +24,6 @@ #include <vcl/event.hxx> #include <vcl/scrbar.hxx> #include <vcl/help.hxx> -#include <vcl/lstbox.h> #include <vcl/lstbox.hxx> #include <vcl/unohelp.hxx> #include <vcl/i18nhelp.hxx> |