diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-03 20:52:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-04 22:22:16 +0200 |
commit | 0593f35f770e2df5241b2cec10ea1bc74cf3d4e6 (patch) | |
tree | 80cb62c7a3d6c68dfa0bbfc608f73427bc33e2d0 | |
parent | f54edfb023d9007faa23b6b6ffa1f4d47ccd1fac (diff) |
TabPage no longer needs to inherit from VclBuilderContainer
Change-Id: Iaab26ade1109daf732e58a2f3741cc43243e374c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102023
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | basctl/inc/pch/precompiled_basctl.hxx | 3 | ||||
-rw-r--r-- | chart2/inc/pch/precompiled_chartcore.hxx | 4 | ||||
-rw-r--r-- | connectivity/inc/pch/precompiled_ado.hxx | 2 | ||||
-rw-r--r-- | cppuhelper/inc/pch/precompiled_cppuhelper.hxx | 3 | ||||
-rw-r--r-- | cui/inc/pch/precompiled_cui.hxx | 4 | ||||
-rw-r--r-- | dbaccess/inc/pch/precompiled_dba.hxx | 3 | ||||
-rw-r--r-- | drawinglayer/inc/pch/precompiled_drawinglayer.hxx | 3 | ||||
-rw-r--r-- | extensions/source/bibliography/general.cxx | 8 | ||||
-rw-r--r-- | extensions/source/bibliography/general.hxx | 4 | ||||
-rw-r--r-- | forms/inc/pch/precompiled_frm.hxx | 3 | ||||
-rw-r--r-- | include/vcl/tabpage.hxx | 4 | ||||
-rw-r--r-- | sd/inc/pch/precompiled_sd.hxx | 3 | ||||
-rw-r--r-- | sfx2/inc/pch/precompiled_sfx.hxx | 5 | ||||
-rw-r--r-- | sot/inc/pch/precompiled_sot.hxx | 3 | ||||
-rw-r--r-- | svl/inc/pch/precompiled_svl.hxx | 5 | ||||
-rw-r--r-- | svx/inc/pch/precompiled_svxcore.hxx | 3 | ||||
-rw-r--r-- | sw/inc/pch/precompiled_sw.hxx | 3 | ||||
-rw-r--r-- | uui/inc/pch/precompiled_uui.hxx | 3 | ||||
-rw-r--r-- | vcl/source/window/tabpage.cxx | 17 | ||||
-rw-r--r-- | xmlsecurity/inc/pch/precompiled_xsec_xmlsec.hxx | 3 |
20 files changed, 42 insertions, 44 deletions
diff --git a/basctl/inc/pch/precompiled_basctl.hxx b/basctl/inc/pch/precompiled_basctl.hxx index adc3d6f54104..1a497a945566 100644 --- a/basctl/inc/pch/precompiled_basctl.hxx +++ b/basctl/inc/pch/precompiled_basctl.hxx @@ -13,7 +13,7 @@ manual changes will be rewritten by the next run of update_pch.sh (which presumably also fixes all possible problems, so it's usually better to use it). - Generated on 2020-08-18 21:25:38 using: + Generated on 2020-09-03 20:50:35 using: ./bin/update_pch basctl basctl --cutoff=3 --exclude:system --include:module --exclude:local If after updating build fails, use the following command to locate conflicting headers: @@ -97,6 +97,7 @@ #include <vcl/GraphicExternalLink.hxx> #include <vcl/GraphicObject.hxx> #include <vcl/IDialogRenderable.hxx> +#include <vcl/InterimItemWindow.hxx> #include <vcl/NotebookBarAddonsMerger.hxx> #include <vcl/PrinterSupport.hxx> #include <vcl/Scanline.hxx> diff --git a/chart2/inc/pch/precompiled_chartcore.hxx b/chart2/inc/pch/precompiled_chartcore.hxx index b66d37067306..017fb9f71fc0 100644 --- a/chart2/inc/pch/precompiled_chartcore.hxx +++ b/chart2/inc/pch/precompiled_chartcore.hxx @@ -13,7 +13,7 @@ manual changes will be rewritten by the next run of update_pch.sh (which presumably also fixes all possible problems, so it's usually better to use it). - Generated on 2020-08-27 16:25:53 using: + Generated on 2020-09-03 20:50:38 using: ./bin/update_pch chart2 chartcore --cutoff=3 --exclude:system --exclude:module --include:local If after updating build fails, use the following command to locate conflicting headers: @@ -177,6 +177,7 @@ #include <comphelper/uno3.hxx> #include <cppu/cppudllapi.h> #include <cppuhelper/compbase.hxx> +#include <cppuhelper/compbase_ex.hxx> #include <cppuhelper/implbase.hxx> #include <cppuhelper/implbase_ex.hxx> #include <cppuhelper/supportsservice.hxx> @@ -206,6 +207,7 @@ #include <tools/diagnose_ex.h> #include <tools/gen.hxx> #include <tools/helpers.hxx> +#include <tools/link.hxx> #include <tools/ref.hxx> #include <tools/toolsdllapi.h> #include <tools/weakbase.h> diff --git a/connectivity/inc/pch/precompiled_ado.hxx b/connectivity/inc/pch/precompiled_ado.hxx index fc58921859a0..9aa55133d8e3 100644 --- a/connectivity/inc/pch/precompiled_ado.hxx +++ b/connectivity/inc/pch/precompiled_ado.hxx @@ -13,7 +13,7 @@ manual changes will be rewritten by the next run of update_pch.sh (which presumably also fixes all possible problems, so it's usually better to use it). - Generated on 2020-09-01 15:29:31 using: + Generated on 2020-09-03 20:50:38 using: ./bin/update_pch connectivity ado --cutoff=2 --exclude:system --exclude:module --exclude:local If after updating build fails, use the following command to locate conflicting headers: diff --git a/cppuhelper/inc/pch/precompiled_cppuhelper.hxx b/cppuhelper/inc/pch/precompiled_cppuhelper.hxx index 7823aaaa80c1..85436eb18031 100644 --- a/cppuhelper/inc/pch/precompiled_cppuhelper.hxx +++ b/cppuhelper/inc/pch/precompiled_cppuhelper.hxx @@ -13,7 +13,7 @@ manual changes will be rewritten by the next run of update_pch.sh (which presumably also fixes all possible problems, so it's usually better to use it). - Generated on 2020-09-01 15:29:33 using: + Generated on 2020-09-03 20:50:41 using: ./bin/update_pch cppuhelper cppuhelper --cutoff=3 --exclude:system --exclude:module --exclude:local If after updating build fails, use the following command to locate conflicting headers: @@ -48,7 +48,6 @@ #include <rtl/malformeduriexception.hxx> #include <rtl/random.h> #include <rtl/ref.hxx> -#include <rtl/textcvt.h> #include <rtl/unload.h> #include <rtl/uri.h> #include <rtl/uri.hxx> diff --git a/cui/inc/pch/precompiled_cui.hxx b/cui/inc/pch/precompiled_cui.hxx index d7772d02eb51..20cab499b0dd 100644 --- a/cui/inc/pch/precompiled_cui.hxx +++ b/cui/inc/pch/precompiled_cui.hxx @@ -13,7 +13,7 @@ manual changes will be rewritten by the next run of update_pch.sh (which presumably also fixes all possible problems, so it's usually better to use it). - Generated on 2020-08-12 11:04:33 using: + Generated on 2020-09-03 20:50:42 using: ./bin/update_pch cui cui --cutoff=8 --exclude:system --include:module --exclude:local If after updating build fails, use the following command to locate conflicting headers: @@ -122,6 +122,7 @@ #include <vcl/graph.hxx> #include <vcl/idle.hxx> #include <vcl/image.hxx> +#include <vcl/imap.hxx> #include <vcl/imapobj.hxx> #include <vcl/keycod.hxx> #include <vcl/keycodes.hxx> @@ -319,6 +320,7 @@ #include <svx/DiagramDataInterface.hxx> #include <svx/dialmgr.hxx> #include <svx/dlgutil.hxx> +#include <svx/galleryobjectstorage.hxx> #include <svx/ipolypolygoneditorcontroller.hxx> #include <svx/itextprovider.hxx> #include <svx/langbox.hxx> diff --git a/dbaccess/inc/pch/precompiled_dba.hxx b/dbaccess/inc/pch/precompiled_dba.hxx index 70cdf5357945..11ce8ca25452 100644 --- a/dbaccess/inc/pch/precompiled_dba.hxx +++ b/dbaccess/inc/pch/precompiled_dba.hxx @@ -13,7 +13,7 @@ manual changes will be rewritten by the next run of update_pch.sh (which presumably also fixes all possible problems, so it's usually better to use it). - Generated on 2020-09-01 15:29:35 using: + Generated on 2020-09-03 20:50:43 using: ./bin/update_pch dbaccess dba --cutoff=6 --exclude:system --include:module --include:local If after updating build fails, use the following command to locate conflicting headers: @@ -68,6 +68,7 @@ #include <rtl/math.h> #include <rtl/math.hxx> #include <rtl/ref.hxx> +#include <rtl/strbuf.h> #include <rtl/string.h> #include <rtl/string.hxx> #include <rtl/stringconcat.hxx> diff --git a/drawinglayer/inc/pch/precompiled_drawinglayer.hxx b/drawinglayer/inc/pch/precompiled_drawinglayer.hxx index fa353e5b6d79..c464c7e1dfad 100644 --- a/drawinglayer/inc/pch/precompiled_drawinglayer.hxx +++ b/drawinglayer/inc/pch/precompiled_drawinglayer.hxx @@ -13,7 +13,7 @@ manual changes will be rewritten by the next run of update_pch.sh (which presumably also fixes all possible problems, so it's usually better to use it). - Generated on 2020-09-01 15:29:38 using: + Generated on 2020-09-03 20:50:45 using: ./bin/update_pch drawinglayer drawinglayer --cutoff=4 --exclude:system --exclude:module --exclude:local If after updating build fails, use the following command to locate conflicting headers: @@ -48,7 +48,6 @@ #include <rtl/stringconcat.hxx> #include <rtl/stringutils.hxx> #include <rtl/textenc.h> -#include <rtl/ustrbuf.h> #include <rtl/ustring.h> #include <rtl/ustring.hxx> #include <sal/config.h> diff --git a/extensions/source/bibliography/general.cxx b/extensions/source/bibliography/general.cxx index ec09f8c2bac4..ea4f8d059e39 100644 --- a/extensions/source/bibliography/general.cxx +++ b/extensions/source/bibliography/general.cxx @@ -166,11 +166,16 @@ void BibPosListener::disposing(const lang::EventObject& /*Source*/) } BibGeneralPage::BibGeneralPage(vcl::Window* pParent, BibDataManager* pMan): - TabPage(pParent, "GeneralPage", "modules/sbibliography/ui/generalpage.ui"), + TabPage(pParent), BibShortCutHandler( this ), mxBibGeneralPageFocusListener(new BibGeneralPageFocusListener(this)), pDatMan(pMan) { + m_pUIBuilder.reset(new VclBuilder(this, AllSettings::GetUIRootDir(), "modules/sbibliography/ui/generalpage.ui", "GeneralPage")); + set_hexpand(true); + set_vexpand(true); + set_expand(true); + get(pIdentifierFT, "shortname"); get(pAuthTypeFT, "authtype"); get(pGrid, "grid"); @@ -388,6 +393,7 @@ void BibGeneralPage::dispose() pCustom5FT.clear(); for (auto & a: aFixedTexts) a.clear(); mxBibGeneralPageFocusListener.clear(); + disposeBuilder(); TabPage::dispose(); } diff --git a/extensions/source/bibliography/general.hxx b/extensions/source/bibliography/general.hxx index 8c95e6dad42f..8a5ac2127c16 100644 --- a/extensions/source/bibliography/general.hxx +++ b/extensions/source/bibliography/general.hxx @@ -51,7 +51,9 @@ public: }; -class BibGeneralPage : public TabPage, public BibShortCutHandler +class BibGeneralPage : public TabPage + , public VclBuilderContainer + , public BibShortCutHandler { VclPtr<VclGrid> pGrid; VclPtr<VclScrolledWindow> pScrolledWindow; diff --git a/forms/inc/pch/precompiled_frm.hxx b/forms/inc/pch/precompiled_frm.hxx index b3e4992c8a94..fcfbc94dbe3d 100644 --- a/forms/inc/pch/precompiled_frm.hxx +++ b/forms/inc/pch/precompiled_frm.hxx @@ -13,7 +13,7 @@ manual changes will be rewritten by the next run of update_pch.sh (which presumably also fixes all possible problems, so it's usually better to use it). - Generated on 2020-07-09 17:06:26 using: + Generated on 2020-09-03 20:50:48 using: ./bin/update_pch forms frm --cutoff=2 --exclude:system --exclude:module --exclude:local If after updating build fails, use the following command to locate conflicting headers: @@ -28,6 +28,7 @@ #include <functional> #include <iterator> #include <limits.h> +#include <limits> #include <map> #include <memory> #include <new> diff --git a/include/vcl/tabpage.hxx b/include/vcl/tabpage.hxx index 0dc11e4a561b..bd308a96a355 100644 --- a/include/vcl/tabpage.hxx +++ b/include/vcl/tabpage.hxx @@ -21,13 +21,11 @@ #define INCLUDED_VCL_TABPAGE_HXX #include <vcl/dllapi.h> -#include <vcl/builder.hxx> #include <vcl/window.hxx> #include <vcl/IContext.hxx> class VCL_DLLPUBLIC TabPage : public vcl::Window - , public VclBuilderContainer , public vcl::IContext { private: @@ -37,9 +35,7 @@ private: public: explicit TabPage( vcl::Window* pParent, WinBits nStyle = 0 ); - explicit TabPage( vcl::Window *pParent, const OString& rID, const OUString& rUIXMLDescription ); virtual ~TabPage() override; - virtual void dispose() override; virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect ) override; virtual void Draw( OutputDevice* pDev, const Point& rPos, DrawFlags nFlags ) override; diff --git a/sd/inc/pch/precompiled_sd.hxx b/sd/inc/pch/precompiled_sd.hxx index 1d44a0b048c7..5233e0e65f74 100644 --- a/sd/inc/pch/precompiled_sd.hxx +++ b/sd/inc/pch/precompiled_sd.hxx @@ -13,7 +13,7 @@ manual changes will be rewritten by the next run of update_pch.sh (which presumably also fixes all possible problems, so it's usually better to use it). - Generated on 2020-09-01 15:30:21 using: + Generated on 2020-09-03 20:51:10 using: ./bin/update_pch sd sd --cutoff=4 --exclude:system --exclude:module --include:local If after updating build fails, use the following command to locate conflicting headers: @@ -76,6 +76,7 @@ #include <sal/types.h> #include <sal/typesizes.h> #include <vcl/EnumContext.hxx> +#include <vcl/InterimItemWindow.hxx> #include <vcl/bitmapex.hxx> #include <vcl/commandevent.hxx> #include <vcl/commandinfoprovider.hxx> diff --git a/sfx2/inc/pch/precompiled_sfx.hxx b/sfx2/inc/pch/precompiled_sfx.hxx index d701c25c0cfe..8b5d21edc38f 100644 --- a/sfx2/inc/pch/precompiled_sfx.hxx +++ b/sfx2/inc/pch/precompiled_sfx.hxx @@ -13,7 +13,7 @@ manual changes will be rewritten by the next run of update_pch.sh (which presumably also fixes all possible problems, so it's usually better to use it). - Generated on 2020-08-27 16:26:27 using: + Generated on 2020-09-03 20:51:12 using: ./bin/update_pch sfx2 sfx --cutoff=3 --exclude:system --exclude:module --exclude:local If after updating build fails, use the following command to locate conflicting headers: @@ -27,6 +27,7 @@ #include <cstddef> #include <functional> #include <initializer_list> +#include <limits> #include <map> #include <memory> #include <new> @@ -90,7 +91,6 @@ #include <vcl/Scanline.hxx> #include <vcl/alpha.hxx> #include <vcl/bitmapex.hxx> -#include <vcl/builder.hxx> #include <vcl/builderfactory.hxx> #include <vcl/button.hxx> #include <vcl/commandevent.hxx> @@ -100,7 +100,6 @@ #include <vcl/dllapi.h> #include <vcl/errcode.hxx> #include <vcl/event.hxx> -#include <vcl/fixed.hxx> #include <vcl/gdimtf.hxx> #include <vcl/graph.hxx> #include <vcl/graphicfilter.hxx> diff --git a/sot/inc/pch/precompiled_sot.hxx b/sot/inc/pch/precompiled_sot.hxx index e9869d7091a8..cb241c4f046b 100644 --- a/sot/inc/pch/precompiled_sot.hxx +++ b/sot/inc/pch/precompiled_sot.hxx @@ -13,7 +13,7 @@ manual changes will be rewritten by the next run of update_pch.sh (which presumably also fixes all possible problems, so it's usually better to use it). - Generated on 2020-08-27 16:57:34 using: + Generated on 2020-09-03 20:51:13 using: ./bin/update_pch sot sot --cutoff=5 --exclude:system --exclude:module --include:local If after updating build fails, use the following command to locate conflicting headers: @@ -44,7 +44,6 @@ #include <rtl/ustring.h> #include <rtl/ustring.hxx> #include <sal/config.h> -#include <sal/detail/log.h> #include <sal/log.hxx> #include <sal/types.h> #include <vcl/dllapi.h> diff --git a/svl/inc/pch/precompiled_svl.hxx b/svl/inc/pch/precompiled_svl.hxx index eab70096cb54..fe187818ae94 100644 --- a/svl/inc/pch/precompiled_svl.hxx +++ b/svl/inc/pch/precompiled_svl.hxx @@ -13,7 +13,7 @@ manual changes will be rewritten by the next run of update_pch.sh (which presumably also fixes all possible problems, so it's usually better to use it). - Generated on 2020-08-27 16:57:34 using: + Generated on 2020-09-03 20:51:13 using: ./bin/update_pch svl svl --cutoff=6 --exclude:system --exclude:module --exclude:local If after updating build fails, use the following command to locate conflicting headers: @@ -24,6 +24,7 @@ #include <algorithm> #include <cassert> #include <cstddef> +#include <limits> #include <map> #include <memory> #include <new> @@ -40,6 +41,7 @@ #include <osl/diagnose.h> #include <osl/doublecheckedlocking.h> #include <osl/endian.h> +#include <osl/file.h> #include <osl/getglobalmutex.hxx> #include <osl/interlck.h> #include <osl/mutex.hxx> @@ -55,6 +57,7 @@ #include <rtl/locale.h> #include <rtl/math.hxx> #include <rtl/ref.hxx> +#include <rtl/strbuf.h> #include <rtl/string.h> #include <rtl/string.hxx> #include <rtl/stringconcat.hxx> diff --git a/svx/inc/pch/precompiled_svxcore.hxx b/svx/inc/pch/precompiled_svxcore.hxx index 38c5cb463eed..23d8846b0aaa 100644 --- a/svx/inc/pch/precompiled_svxcore.hxx +++ b/svx/inc/pch/precompiled_svxcore.hxx @@ -13,7 +13,7 @@ manual changes will be rewritten by the next run of update_pch.sh (which presumably also fixes all possible problems, so it's usually better to use it). - Generated on 2020-08-27 17:04:30 using: + Generated on 2020-09-03 20:51:16 using: ./bin/update_pch svx svxcore --cutoff=7 --exclude:system --include:module --exclude:local If after updating build fails, use the following command to locate conflicting headers: @@ -65,6 +65,7 @@ #include <osl/getglobalmutex.hxx> #include <osl/interlck.h> #include <osl/mutex.hxx> +#include <osl/thread.h> #include <osl/time.h> #include <rtl/alloc.h> #include <rtl/character.hxx> diff --git a/sw/inc/pch/precompiled_sw.hxx b/sw/inc/pch/precompiled_sw.hxx index f59f4d714e5b..d97b4db878c7 100644 --- a/sw/inc/pch/precompiled_sw.hxx +++ b/sw/inc/pch/precompiled_sw.hxx @@ -13,7 +13,7 @@ manual changes will be rewritten by the next run of update_pch.sh (which presumably also fixes all possible problems, so it's usually better to use it). - Generated on 2020-09-01 15:31:17 using: + Generated on 2020-09-03 20:51:31 using: ./bin/update_pch sw sw --cutoff=7 --exclude:system --exclude:module --include:local If after updating build fails, use the following command to locate conflicting headers: @@ -89,6 +89,7 @@ #include <vcl/EnumContext.hxx> #include <vcl/GraphicAttributes.hxx> #include <vcl/GraphicObject.hxx> +#include <vcl/InterimItemWindow.hxx> #include <vcl/Scanline.hxx> #include <vcl/alpha.hxx> #include <vcl/bitmapex.hxx> diff --git a/uui/inc/pch/precompiled_uui.hxx b/uui/inc/pch/precompiled_uui.hxx index c61d5a390513..d37375759f4a 100644 --- a/uui/inc/pch/precompiled_uui.hxx +++ b/uui/inc/pch/precompiled_uui.hxx @@ -13,7 +13,7 @@ manual changes will be rewritten by the next run of update_pch.sh (which presumably also fixes all possible problems, so it's usually better to use it). - Generated on 2020-08-27 16:38:21 using: + Generated on 2020-09-03 20:51:42 using: ./bin/update_pch uui uui --cutoff=4 --exclude:system --exclude:module --exclude:local If after updating build fails, use the following command to locate conflicting headers: @@ -39,6 +39,7 @@ #include <rtl/textenc.h> #include <rtl/unload.h> #include <rtl/ustrbuf.hxx> +#include <rtl/ustring.h> #include <rtl/ustring.hxx> #include <sal/config.h> #include <sal/detail/log.h> diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx index 5b2408b1b1c1..827fbc35cd24 100644 --- a/vcl/source/window/tabpage.cxx +++ b/vcl/source/window/tabpage.cxx @@ -69,28 +69,11 @@ TabPage::TabPage( vcl::Window* pParent, WinBits nStyle ) : ImplInit( pParent, nStyle ); } -TabPage::TabPage(vcl::Window *pParent, const OString& rID, const OUString& rUIXMLDescription) - : Window(WindowType::TABPAGE) - , IContext() -{ - ImplInit(pParent, 0); - m_pUIBuilder.reset( new VclBuilder(this, AllSettings::GetUIRootDir(), rUIXMLDescription, rID) ); - set_hexpand(true); - set_vexpand(true); - set_expand(true); -} - TabPage::~TabPage() { disposeOnce(); } -void TabPage::dispose() -{ - disposeBuilder(); - vcl::Window::dispose(); -} - void TabPage::StateChanged( StateChangedType nType ) { Window::StateChanged( nType ); diff --git a/xmlsecurity/inc/pch/precompiled_xsec_xmlsec.hxx b/xmlsecurity/inc/pch/precompiled_xsec_xmlsec.hxx index 96293690755f..948a5208ac94 100644 --- a/xmlsecurity/inc/pch/precompiled_xsec_xmlsec.hxx +++ b/xmlsecurity/inc/pch/precompiled_xsec_xmlsec.hxx @@ -13,7 +13,7 @@ manual changes will be rewritten by the next run of update_pch.sh (which presumably also fixes all possible problems, so it's usually better to use it). - Generated on 2020-09-01 15:31:54 using: + Generated on 2020-09-03 20:51:46 using: ./bin/update_pch xmlsecurity xsec_xmlsec --cutoff=2 --exclude:system --include:module --include:local If after updating build fails, use the following command to locate conflicting headers: @@ -27,6 +27,7 @@ #include <functional> #include <initializer_list> #include <iomanip> +#include <limits> #include <memory> #include <new> #include <ostream> |