weld: Move weld::ComboBox to own header/source

Move the class out of weld.hxx into its own header and source
file, in order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Change-Id: Ib2fe4a6b5e34ad8ae2194ba85249ca25ed16e9d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196435
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
This commit is contained in:
Michael Weghorn
2026-01-03 08:12:10 +01:00
parent 6742a74e1f
commit b44a20cdb7
213 changed files with 479 additions and 229 deletions
+1
View File
@@ -24,6 +24,7 @@
#include <vcl/InterimItemWindow.hxx>
#include <vcl/timer.hxx>
#include <vcl/idle.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/weld.hxx>
#include <avmedia/MediaControlBase.hxx>
+1
View File
@@ -25,6 +25,7 @@
#include <bastype2.hxx>
#include <vcl/weld/Builder.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/TreeView.hxx>
#include <vcl/weld/weld.hxx>
+1
View File
@@ -20,6 +20,7 @@
#include <sfx2/objsh.hxx>
#include <sfx2/sfxsids.hrc>
#include <sfx2/viewfrm.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/TreeView.hxx>
#include <vcl/weld/weld.hxx>
@@ -21,6 +21,7 @@
#include <svl/itemset.hxx>
#include <svx/dialcontrol.hxx>
#include <vcl/weld/Builder.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/MetricSpinButton.hxx>
#include <TextDirectionListBox.hxx>
@@ -23,6 +23,7 @@
#include <helpids.h>
#include <chartview/ChartSfxItemIds.hxx>
#include <vcl/weld/Builder.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/MetricSpinButton.hxx>
#include <vcl/weld/weld.hxx>
#include <ChartModel.hxx>
@@ -28,6 +28,7 @@
#include <svl/stritem.hxx>
#include <vcl/formatter.hxx>
#include <vcl/weld/Builder.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/weld.hxx>
using namespace css::chart2;
@@ -19,6 +19,7 @@
#pragma once
#include <vcl/weld/Builder.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/weld.hxx>
namespace chart { class ControllerLockHelper; }
@@ -19,6 +19,7 @@
#pragma once
#include <sfx2/tabdlg.hxx>
#include <vcl/weld/ComboBox.hxx>
class SvNumberFormatter;
@@ -20,6 +20,7 @@
#include <sfx2/tabdlg.hxx>
#include <unotools/resmgr.hxx>
#include <vcl/weld/ComboBox.hxx>
class SvNumberFormatter;
@@ -24,6 +24,7 @@
#include <svtools/toolboxcontroller.hxx>
#include <vcl/InterimItemWindow.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <unotools/weakref.hxx>
namespace chart
@@ -14,6 +14,7 @@
#include <sfx2/sidebar/IContextChangeReceiver.hxx>
#include <sfx2/sidebar/SidebarModelUpdate.hxx>
#include <sfx2/sidebar/PanelLayout.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/MetricSpinButton.hxx>
#include "ChartSidebarModifyListener.hxx"
#include "ChartSidebarSelectionListener.hxx"
@@ -22,6 +22,7 @@
#include <sfx2/sidebar/SidebarModelUpdate.hxx>
#include <sfx2/sidebar/PanelLayout.hxx>
#include <vcl/EnumContext.hxx>
#include <vcl/weld/ComboBox.hxx>
#include "ChartSidebarModifyListener.hxx"
#include <TitleHelper.hxx>
@@ -14,6 +14,7 @@
#include <sfx2/sidebar/IContextChangeReceiver.hxx>
#include <sfx2/sidebar/SidebarModelUpdate.hxx>
#include <sfx2/sidebar/PanelLayout.hxx>
#include <vcl/weld/ComboBox.hxx>
#include "ChartSidebarModifyListener.hxx"
namespace com::sun::star::util { class XModifyListener; }
@@ -22,6 +22,7 @@
#include <sfx2/sidebar/IContextChangeReceiver.hxx>
#include <sfx2/sidebar/SidebarModelUpdate.hxx>
#include <sfx2/sidebar/PanelLayout.hxx>
#include <vcl/weld/ComboBox.hxx>
#include "ChartSidebarModifyListener.hxx"
#include "ChartSidebarSelectionListener.hxx"
@@ -19,6 +19,7 @@
#pragma once
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/weld.hxx>
+1
View File
@@ -18,6 +18,7 @@
*/
#pragma once
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/weld.hxx>
#include <macropg.hxx>
@@ -20,6 +20,8 @@
#pragma once
#include <i18nutil/searchopt.hxx>
#include <vcl/weld/ComboBox.hxx>
#include "cfgutil.hxx"
class SaveInData;
+1
View File
@@ -12,6 +12,7 @@
#include <vcl/svapp.hxx>
#include <vcl/weld/Builder.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/ScrolledWindow.hxx>
#include <vcl/weld/weld.hxx>
+1
View File
@@ -10,6 +10,7 @@
#include <config_zxing.h>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/weld.hxx>
+1
View File
@@ -28,6 +28,7 @@
#include <svl/undo.hxx>
#include <svx/weldeditview.hxx>
#include <editeng/SpellPortions.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/ScrolledWindow.hxx>
#include <vcl/weld/TreeView.hxx>
#include <vcl/weld/customweld.hxx>
+1
View File
@@ -19,6 +19,7 @@
#pragma once
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/TreeView.hxx>
#include <vcl/weld/weld.hxx>
+1
View File
@@ -19,6 +19,7 @@
#pragma once
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/TreeView.hxx>
#include <vcl/weld/weld.hxx>
+1
View File
@@ -42,6 +42,7 @@ enum VerticalAlign {
#include <svtools/valueset.hxx>
#include <svx/dialcontrol.hxx>
#include <svx/frmdirlbox.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/MetricSpinButton.hxx>
#include <vcl/weld/weld.hxx>
+1
View File
@@ -20,6 +20,7 @@
#include <editeng/shaditem.hxx>
#include <svtools/ctrlbox.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/IconView.hxx>
#include <vcl/weld/MetricSpinButton.hxx>
#include <vcl/weld/weld.hxx>
+1
View File
@@ -20,6 +20,7 @@
#pragma once
#include <vcl/timer.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/TreeView.hxx>
#include <vcl/weld/weld.hxx>
+1
View File
@@ -23,6 +23,7 @@
#include <svx/fntctrl.hxx>
#include <svx/colorbox.hxx>
#include <svx/langbox.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/MetricSpinButton.hxx>
#include <vcl/weld/TreeView.hxx>
+1
View File
@@ -20,6 +20,7 @@
#include <svx/connctrl.hxx>
#include <sfx2/tabdlg.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/MetricSpinButton.hxx>
#include <vcl/weld/customweld.hxx>
#include <vcl/weld/weld.hxx>
+1
View File
@@ -22,6 +22,7 @@
#include <com/sun/star/sdbc/XResultSet.hpp>
#include <svx/fmsearch.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/weld.hxx>
#include <tools/link.hxx>
+1
View File
@@ -30,6 +30,7 @@
#include <com/sun/star/media/XPlayer.hpp>
#include <com/sun/star/ui/dialogs/XFolderPicker2.hpp>
#include <svtools/dialogclosedlistener.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/TreeView.hxx>
+1
View File
@@ -18,6 +18,7 @@
*/
#pragma once
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/weld.hxx>
#include <sfx2/frame.hxx>
+1
View File
@@ -27,6 +27,7 @@
#include <svx/PaletteManager.hxx>
#include <svx/svdview.hxx>
#include <vcl/hexcolorcontrol.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/MetricSpinButton.hxx>
class ColorListBox;
+1
View File
@@ -20,6 +20,7 @@
#include <vcl/event.hxx>
#include <vcl/weld/Builder.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/TreeView.hxx>
#include <vcl/weld/customweld.hxx>
+1
View File
@@ -20,6 +20,7 @@
#include <sfx2/tabdlg.hxx>
#include <svx/swframeexample.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/MetricSpinButton.hxx>
#include <vcl/weld/weld.hxx>
#include <svx/dlgutil.hxx>
+1
View File
@@ -21,6 +21,7 @@
#include <com/sun/star/linguistic2/XThesaurus.hpp>
#include <vcl/idle.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/TreeView.hxx>
#include <sfx2/basedlgs.hxx>
+1
View File
@@ -9,6 +9,7 @@
#pragma once
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/weld.hxx>
#include <sfx2/tabdlg.hxx>
#include <svx/colorbox.hxx>
+1
View File
@@ -19,6 +19,7 @@
#pragma once
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/weld.hxx>
#include <svtools/inettbc.hxx>
+1
View File
@@ -20,6 +20,7 @@
#pragma once
#include <sfx2/tabdlg.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/TreeView.hxx>
// class SvxFontSubstTabPage ----------------------------------------------------
+1
View File
@@ -20,6 +20,7 @@
#include <sfx2/tabdlg.hxx>
#include <sfx2/AccessibilityIssue.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/TreeView.hxx>
#include <map>
+1
View File
@@ -23,6 +23,7 @@
#include <svtools/valueset.hxx>
#include <svx/xtable.hxx>
#include <svx/PaletteManager.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/TreeView.hxx>
#include <vcl/weld/customweld.hxx>
+1
View File
@@ -19,6 +19,7 @@
#pragma once
#include <sfx2/tabdlg.hxx>
#include <vcl/weld/ComboBox.hxx>
// class SvxCTLOptionsPage -----------------------------------------------------
+1
View File
@@ -20,6 +20,7 @@
#include <memory>
#include <sfx2/tabdlg.hxx>
#include <vcl/weld/ComboBox.hxx>
namespace svx {
class SecurityOptionsDialog;
+1
View File
@@ -20,6 +20,7 @@
#include <memory>
#include <sfx2/tabdlg.hxx>
#include <vcl/weld/ComboBox.hxx>
enum AppType
{
@@ -21,6 +21,9 @@
#include "adminpages.hxx"
#include <dsmeta.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vector>
namespace dbaui
+1
View File
@@ -20,6 +20,7 @@
#pragma once
#include <utility>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/TreeView.hxx>
#include <vcl/weld/weld.hxx>
@@ -19,6 +19,7 @@
#pragma once
#include <vcl/weld/Builder.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/weld.hxx>
#include "IClipBoardTest.hxx"
#include "QEnumTypes.hxx"
@@ -9,6 +9,7 @@
#pragma once
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/weld.hxx>
@@ -20,6 +20,7 @@
#pragma once
#include <svl/typedwhich.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/weld.hxx>
#include "charsets.hxx"
+1
View File
@@ -21,6 +21,7 @@
#include <sal/config.h>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/weld.hxx>
#include <deque>
+1
View File
@@ -23,6 +23,7 @@
#include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <o3tl/typed_flags_set.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/weld.hxx>
#include <memory>
@@ -19,6 +19,7 @@
#pragma once
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/weld.hxx>
#include <rtl/ustring.hxx>
+1
View File
@@ -19,6 +19,7 @@
#pragma once
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/weld.hxx>
#include <connectivity/sqliterator.hxx>
+1
View File
@@ -18,6 +18,7 @@
*/
#pragma once
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/weld.hxx>
@@ -18,6 +18,7 @@
#include <vcl/InterimItemWindow.hxx>
#include <vcl/event.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/window.hxx>
#include <toolkit/helper/vclunohelper.hxx>
@@ -18,6 +18,7 @@
*/
#pragma once
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/weld.hxx>
@@ -34,6 +34,7 @@
#include <utility>
#include <vcl/event.hxx>
#include <vcl/mnemonic.hxx>
#include <vcl/weld/ComboBox.hxx>
#include "general.hxx"
#include "bibresid.hxx"
#include "datman.hxx"
@@ -25,6 +25,7 @@
#include <vcl/InterimItemWindow.hxx>
#include <vcl/toolbox.hxx>
#include <vcl/timer.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <cppuhelper/implbase.hxx>
#include <vector>
@@ -20,6 +20,7 @@
#pragma once
#include "controlwizard.hxx"
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/TreeView.hxx>
#include <vcl/weld/weld.hxx>
#include <com/sun/star/sdb/XDatabaseContext.hpp>
@@ -24,6 +24,7 @@
#include <com/sun/star/sdbc/XConnection.hpp>
#include <com/sun/star/task/XInteractionHandler.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/TreeView.hxx>
#include <vcl/weld/weld.hxx>
#include <vcl/wizardmachine.hxx>
@@ -27,6 +27,7 @@
#include <comphelper/diagnose_ex.hxx>
#include <utility>
#include <vcl/svapp.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <connectivity/dbtools.hxx>
#include <connectivity/dbexception.hxx>
#include <comphelper/sequence.hxx>
+1
View File
@@ -18,6 +18,7 @@
*/
#pragma once
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/weld.hxx>
#include <vcl/weld/customweld.hxx>
+1
View File
@@ -18,6 +18,7 @@
*/
#pragma once
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/MetricSpinButton.hxx>
#include <vcl/weld/TreeView.hxx>
+1
View File
@@ -24,6 +24,7 @@
#include <vcl/pdfwriter.hxx>
#include <vcl/FilterConfigItem.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/MetricSpinButton.hxx>
#include <vcl/weld/TreeView.hxx>
@@ -19,6 +19,7 @@
#pragma once
#include <vcl/weld/Builder.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/weld.hxx>
class filter_info_impl;
+1
View File
@@ -20,6 +20,7 @@
#pragma once
#include <vcl/weld/Builder.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/TreeView.hxx>
#include <vcl/weld/weld.hxx>
#include <vector>
@@ -27,6 +27,7 @@
#include "fpdialogbase.hxx"
#include "pickercallbacks.hxx"
#include <o3tl/typed_flags_set.hxx>
#include <vcl/weld/ComboBox.hxx>
enum class PropFlags {
Unknown = -1, // used as an error sentinel
+1
View File
@@ -21,6 +21,7 @@
#include "PlacesListBox.hxx"
#include <vcl/idle.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <deque>
#include <memory>
@@ -26,6 +26,7 @@
#include <svtools/toolboxcontroller.hxx>
#include <vcl/svapp.hxx>
#include <vcl/toolbox.hxx>
#include <vcl/weld/ComboBox.hxx>
using namespace ::com::sun::star;
using namespace css::uno;
@@ -26,6 +26,7 @@
#include <svtools/toolboxcontroller.hxx>
#include <vcl/svapp.hxx>
#include <vcl/toolbox.hxx>
#include <vcl/weld/ComboBox.hxx>
using namespace ::com::sun::star;
using namespace css::uno;
+1
View File
@@ -19,6 +19,7 @@
#pragma once
#include <config_options.h>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/weld.hxx>
#include <avmedia/avmediadllapi.h>
+1
View File
@@ -23,6 +23,7 @@
#include <sal/config.h>
#include <sfx2/dllapi.h>
#include <svl/style.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/EntryTreeView.hxx>
#include <vcl/weld/TreeView.hxx>
+1
View File
@@ -24,6 +24,7 @@
#include <sfx2/tabdlg.hxx>
#include <sal/types.h>
#include <vcl/printer/Options.hxx>
#include <vcl/weld/ComboBox.hxx>
class SFX2_DLLPUBLIC SfxCommonPrintOptionsTabPage final : public SfxTabPage
{
+1
View File
@@ -18,6 +18,7 @@
#include <vcl/idle.hxx>
#include <vcl/timer.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/TreeView.hxx>
#include <vcl/weld/weld.hxx>
+1
View File
@@ -11,6 +11,7 @@
#include <config_options.h>
#include <svtools/svtdllapi.h>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/weld.hxx>
+1
View File
@@ -22,6 +22,7 @@
#include <config_options.h>
#include <memory>
#include <svtools/svtdllapi.h>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/ScrolledWindow.hxx>
#include <vcl/weld/weld.hxx>
+1
View File
@@ -25,6 +25,7 @@
#include <vcl/idle.hxx>
#include <vcl/metric.hxx>
#include <vcl/weld/Builder.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/weld.hxx>
#include <memory>
+1
View File
@@ -27,6 +27,7 @@
#include <svtools/brwhead.hxx>
#include <tools/lineend.hxx>
#include <vcl/InterimItemWindow.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/weldutils.hxx>
#include <o3tl/typed_flags_set.hxx>
+1
View File
@@ -25,6 +25,7 @@
#include <tools/urlobj.hxx>
#include <vcl/idle.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/weld.hxx>
class SvtMatchContext_Impl;
+1
View File
@@ -21,6 +21,7 @@
#include <svtools/svtdllapi.h>
#include <vcl/print.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/weld.hxx>
#include <vcl/timer.hxx>
+1
View File
@@ -12,6 +12,7 @@
#define INCLUDED_SVX_CLASSIFICATIONDIALOG_HXX
#include <sal/config.h>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/TreeView.hxx>
#include <vcl/weld/weld.hxx>
@@ -10,6 +10,7 @@
#pragma once
#include <svx/svxdllapi.h>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/weld.hxx>
@@ -20,6 +20,7 @@
#pragma once
#include <com/sun/star/text/XDefaultNumberingProvider.hpp>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/weld.hxx>
#include <svx/svxdllapi.h>
+1
View File
@@ -23,6 +23,7 @@
#include <svx/svxdllapi.h>
#include <tools/gen.hxx>
#include <tools/link.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/weld.hxx>
#include <vcl/graph.hxx>
+1
View File
@@ -28,6 +28,7 @@
#include <tools/link.hxx>
#include <tools/time.hxx>
#include <vcl/weld/Builder.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/TreeView.hxx>
#include <vcl/weld/weld.hxx>
#include <memory>
+1
View File
@@ -18,6 +18,7 @@
*/
#pragma once
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/customweld.hxx>
#include <vcl/weld/weld.hxx>
#include <vcl/virdev.hxx>
+1
View File
@@ -22,6 +22,7 @@
#include <sfx2/tabdlg.hxx>
#include <svx/svxdllapi.h>
#include <svx/rectenum.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/customweld.hxx>
#include <vcl/weld/weld.hxx>
+1
View File
@@ -25,6 +25,7 @@
#include <sfx2/tbxctrl.hxx>
#include <sfx2/weldutils.hxx>
#include <svx/svxdllapi.h>
#include <vcl/weld/ComboBox.hxx>
class XFillStyleItem;
class XFillColorItem;
+1
View File
@@ -24,6 +24,7 @@
#include <editeng/colritem.hxx>
#include <sfx2/ctrlitem.hxx>
#include <sfx2/dockwin.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/MetricSpinButton.hxx>
#include <vcl/weld/weld.hxx>
#include <svl/eitem.hxx>
+1
View File
@@ -20,6 +20,7 @@
#ifndef INCLUDED_SVX_FRMDIRLBOX_HXX
#define INCLUDED_SVX_FRMDIRLBOX_HXX
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/weld.hxx>
#include <editeng/frmdir.hxx>
#include <svx/svxdllapi.h>
+1
View File
@@ -22,6 +22,7 @@
#include <svtools/toolbarmenu.hxx>
#include <svx/svxdllapi.h>
#include <svx/xtable.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/customweld.hxx>
class ValueSet;
+1
View File
@@ -23,6 +23,7 @@
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <svx/svxdllapi.h>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/weld.hxx>
#include <o3tl/typed_flags_set.hxx>
+1
View File
@@ -22,6 +22,7 @@
#include <editeng/svxenum.hxx>
#include <svx/svxdllapi.h>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/weld.hxx>
class SVXCORE_DLLPUBLIC SvxPageNumberListBox
+1
View File
@@ -22,6 +22,7 @@
#include <i18nutil/paper.hxx>
#include <svx/svxdllapi.h>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/weld.hxx>
enum class PaperSizeApp
+1
View File
@@ -25,6 +25,7 @@
#include <sfx2/basedlgs.hxx>
#include <svx/svxdllapi.h>
#include <rtl/ref.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/ScrolledWindow.hxx>
#include <vcl/weld/customweld.hxx>
+1 -1
View File
@@ -21,7 +21,7 @@
#define INCLUDED_SVX_SAMECONTENTLISTBOXHELPER_HXX
#include <svx/svxdllapi.h>
#include <vcl/weld/weld.hxx>
#include <vcl/weld/ComboBox.hxx>
namespace SameContentListBox
{
@@ -34,6 +34,7 @@
#include <svl/intitem.hxx>
#include <svx/svxdllapi.h>
#include <vcl/EnumContext.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/MetricSpinButton.hxx>
class ToolbarUnoDispatcher;
+1 -1
View File
@@ -21,7 +21,7 @@
#define INCLUDED_SVX_SPACINGLISTBOXHELPER_HXX
#include <svx/svxdllapi.h>
#include <vcl/weld/weld.hxx>
#include <vcl/weld/ComboBox.hxx>
enum class SpacingType
{
+1
View File
@@ -27,6 +27,7 @@
#include <svl/itemset.hxx>
#include <svx/svxdllapi.h>
#include <vcl/timer.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <memory>
#include <vector>
+1
View File
@@ -19,6 +19,7 @@
#ifndef INCLUDED_SVX_TXENCBOX_HXX
#define INCLUDED_SVX_TXENCBOX_HXX
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/TreeView.hxx>
#include <vcl/weld/weld.hxx>
#include <rtl/textenc.h>
+1
View File
@@ -11,6 +11,7 @@
#include <vcl/dllapi.h>
#include <vcl/uitest/uiobject.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/IconView.hxx>
#include <vcl/weld/ScrolledWindow.hxx>
#include <vcl/weld/TreeView.hxx>
+228
View File
@@ -0,0 +1,228 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* 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/.
*/
#pragma once
#include <vcl/dllapi.h>
#include <vcl/weld/weld.hxx>
namespace weld
{
struct VCL_DLLPUBLIC ComboBoxEntry
{
OUString sString;
OUString sId;
OUString sImage;
ComboBoxEntry(OUString _aString)
: sString(std::move(_aString))
{
}
ComboBoxEntry(OUString _aString, OUString _aId)
: sString(std::move(_aString))
, sId(std::move(_aId))
{
}
ComboBoxEntry(OUString _aString, OUString _aId, OUString _aImage)
: sString(std::move(_aString))
, sId(std::move(_aId))
, sImage(std::move(_aImage))
{
}
};
/// A widget used to choose from a list of items.
class VCL_DLLPUBLIC ComboBox : virtual public Widget
{
private:
OUString m_sSavedValue;
std::vector<OUString> m_aSavedValues;
public:
// OUString is the id of the row, it may be null to measure the height of a generic line
typedef std::tuple<vcl::RenderContext&, const tools::Rectangle&, bool, const OUString&>
render_args;
protected:
Link<ComboBox&, void> m_aChangeHdl;
Link<ComboBox&, void> m_aPopupToggledHdl;
Link<ComboBox&, bool> m_aEntryActivateHdl;
Link<OUString&, bool> m_aEntryInsertTextHdl;
friend class ::LOKTrigger;
void signal_changed()
{
if (notify_events_disabled())
return;
m_aChangeHdl.Call(*this);
}
virtual void signal_popup_toggled() { m_aPopupToggledHdl.Call(*this); }
Link<render_args, void> m_aRenderHdl;
void signal_custom_render(vcl::RenderContext& rDevice, const tools::Rectangle& rRect,
bool bSelected, const OUString& rId)
{
m_aRenderHdl.Call(render_args(rDevice, rRect, bSelected, rId));
}
Link<vcl::RenderContext&, Size> m_aGetSizeHdl;
Size signal_custom_get_size(vcl::RenderContext& rDevice) { return m_aGetSizeHdl.Call(rDevice); }
virtual void do_set_active(int pos) = 0;
virtual void do_set_active_id(const OUString& rStr) = 0;
public:
virtual void insert(int pos, const OUString& rStr, const OUString* pId,
const OUString* pIconName, VirtualDevice* pImageSurface)
= 0;
virtual void insert_vector(const std::vector<weld::ComboBoxEntry>& rItems, bool bKeepExisting)
= 0;
void insert(int pos, const weld::ComboBoxEntry& rItem)
{
insert(pos, rItem.sString, rItem.sId.isEmpty() ? nullptr : &rItem.sId,
rItem.sImage.isEmpty() ? nullptr : &rItem.sImage, nullptr);
}
void insert_text(int pos, const OUString& rStr)
{
insert(pos, rStr, nullptr, nullptr, nullptr);
}
void append(const weld::ComboBoxEntry& rItem) { insert(-1, rItem); }
void append_text(const OUString& rStr) { insert(-1, rStr, nullptr, nullptr, nullptr); }
void append(const OUString& rId, const OUString& rStr)
{
insert(-1, rStr, &rId, nullptr, nullptr);
}
void append(const OUString& rId, const OUString& rStr, const OUString& rImage)
{
insert(-1, rStr, &rId, &rImage, nullptr);
}
void append(const OUString& rId, const OUString& rStr, VirtualDevice& rImage)
{
insert(-1, rStr, &rId, nullptr, &rImage);
}
void append(int pos, const OUString& rId, const OUString& rStr)
{
insert(pos, rStr, &rId, nullptr, nullptr);
}
virtual void insert_separator(int pos, const OUString& rId) = 0;
void append_separator(const OUString& rId) { insert_separator(-1, rId); }
virtual int get_count() const = 0;
virtual void make_sorted() = 0;
virtual void clear() = 0;
//by index, returns -1 if nothing is selected
virtual int get_active() const = 0;
void set_active(int pos);
virtual void remove(int pos) = 0;
//by text
virtual OUString get_active_text() const = 0;
void set_active_text(const OUString& rStr) { set_active(find_text(rStr)); }
virtual OUString get_text(int pos) const = 0;
virtual int find_text(const OUString& rStr) const = 0;
void remove_text(const OUString& rText) { remove(find_text(rText)); }
//by id
virtual OUString get_active_id() const = 0;
void set_active_id(const OUString& rStr);
virtual OUString get_id(int pos) const = 0;
virtual void set_id(int row, const OUString& rId) = 0;
virtual int find_id(const OUString& rId) const = 0;
void remove_id(const OUString& rId) { remove(find_id(rId)); }
/* m_aChangeHdl is called when the active item is changed. The can be due
to the user selecting a different item from the list or while typing
into the entry of a combo box with an entry.
Use changed_by_direct_pick() to discover whether an item was actually explicitly
selected, e.g. from the menu.
*/
void connect_changed(const Link<ComboBox&, void>& rLink) { m_aChangeHdl = rLink; }
virtual bool changed_by_direct_pick() const = 0;
virtual void connect_popup_toggled(const Link<ComboBox&, void>& rLink)
{
m_aPopupToggledHdl = rLink;
}
//entry related
virtual bool has_entry() const = 0;
virtual void set_entry_message_type(EntryMessageType eType) = 0;
virtual void set_entry_text(const OUString& rStr) = 0;
virtual void set_entry_width_chars(int nChars) = 0;
virtual void set_entry_max_length(int nChars) = 0;
virtual void select_entry_region(int nStartPos, int nEndPos) = 0;
virtual bool get_entry_selection_bounds(int& rStartPos, int& rEndPos) = 0;
virtual void set_entry_completion(bool bEnable, bool bCaseSensitive = false) = 0;
virtual void set_entry_placeholder_text(const OUString& rText) = 0;
virtual void set_entry_editable(bool bEditable) = 0;
virtual void cut_entry_clipboard() = 0;
virtual void copy_entry_clipboard() = 0;
virtual void paste_entry_clipboard() = 0;
// font size is in points, not pixels, e.g. see Window::[G]etPointFont
virtual void set_font(const vcl::Font& rFont) = 0;
// font size is in points, not pixels, e.g. see Window::[G]etPointFont
virtual void set_entry_font(const vcl::Font& rFont) = 0;
virtual vcl::Font get_entry_font() = 0;
virtual bool get_popup_shown() const = 0;
void connect_entry_insert_text(const Link<OUString&, bool>& rLink)
{
m_aEntryInsertTextHdl = rLink;
}
// callback returns true to indicated no further processing of activate wanted
void connect_entry_activate(const Link<ComboBox&, bool>& rLink) { m_aEntryActivateHdl = rLink; }
void save_value() { m_sSavedValue = get_active_text(); }
void save_values_by_id(const OUString& rId)
{
m_aSavedValues.push_back(get_text(find_id(rId)));
}
OUString const& get_saved_value() const { return m_sSavedValue; }
OUString const& get_saved_values(int pos) const { return m_aSavedValues[pos]; }
bool get_value_changed_from_saved() const { return m_sSavedValue != get_active_text(); }
bool get_values_changed_from_saved() const;
void removeSavedValues() { m_aSavedValues.clear(); }
// for custom rendering a row
void connect_custom_get_size(const Link<vcl::RenderContext&, Size>& rLink)
{
m_aGetSizeHdl = rLink;
}
void connect_custom_render(const Link<render_args, void>& rLink) { m_aRenderHdl = rLink; }
// call set_custom_renderer after setting custom callbacks
virtual void set_custom_renderer(bool bOn) = 0;
// set a sub menu for a entry, only works with custom rendering
virtual void set_item_menu(const OUString& rIdent, weld::Menu* pMenu) = 0;
// get the width needed to show the menu launcher in a custom row
virtual int get_menu_button_width() const = 0;
// for mru support
virtual int get_max_mru_count() const = 0;
virtual void set_max_mru_count(int nCount) = 0;
virtual OUString get_mru_entries() const = 0;
virtual void set_mru_entries(const OUString& rEntries) = 0;
// Backwards compatibility, should be avoided to allow
// UI consistency.
virtual void set_max_drop_down_rows(int nRows) = 0;
};
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */

Some files were not shown because too many files have changed in this diff Show More