summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/qt5/QtInstanceBox.hxx25
-rw-r--r--vcl/inc/qt5/QtInstanceBuilder.hxx2
-rw-r--r--vcl/inc/qt6/QtInstanceBox.hxx12
3 files changed, 38 insertions, 1 deletions
diff --git a/vcl/inc/qt5/QtInstanceBox.hxx b/vcl/inc/qt5/QtInstanceBox.hxx
new file mode 100644
index 000000000000..68ac5f22807b
--- /dev/null
+++ b/vcl/inc/qt5/QtInstanceBox.hxx
@@ -0,0 +1,25 @@
+/* -*- 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 "QtInstanceContainer.hxx"
+
+class QtInstanceBox : public QtInstanceContainer, public virtual weld::Box
+{
+ Q_OBJECT
+
+public:
+ QtInstanceBox(QWidget* pWidget);
+
+ virtual void reorder_child(weld::Widget* pWidget, int nPosition) override;
+ virtual void sort_native_button_order() override;
+};
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/vcl/inc/qt5/QtInstanceBuilder.hxx b/vcl/inc/qt5/QtInstanceBuilder.hxx
index 340d332a86e0..8b1051a4a3f0 100644
--- a/vcl/inc/qt5/QtInstanceBuilder.hxx
+++ b/vcl/inc/qt5/QtInstanceBuilder.hxx
@@ -35,7 +35,7 @@ public:
virtual std::unique_ptr<weld::Window> create_screenshot_window() override;
virtual std::unique_ptr<weld::Widget> weld_widget(const OUString& rId) override;
virtual std::unique_ptr<weld::Container> weld_container(const OUString& rId) override;
- virtual std::unique_ptr<weld::Box> weld_box(const OUString&) override;
+ virtual std::unique_ptr<weld::Box> weld_box(const OUString& rId) override;
virtual std::unique_ptr<weld::Grid> weld_grid(const OUString& rId) override;
virtual std::unique_ptr<weld::Paned> weld_paned(const OUString&) override;
virtual std::unique_ptr<weld::Frame> weld_frame(const OUString& rId) override;
diff --git a/vcl/inc/qt6/QtInstanceBox.hxx b/vcl/inc/qt6/QtInstanceBox.hxx
new file mode 100644
index 000000000000..3917bce997e8
--- /dev/null
+++ b/vcl/inc/qt6/QtInstanceBox.hxx
@@ -0,0 +1,12 @@
+/* -*- 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/.
+ */
+
+#include "../qt5/QtInstanceBox.hxx"
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */