vbahelper/source/msforms/vbacheckbox.hxx | 6 ++---- vbahelper/source/msforms/vbacombobox.hxx | 7 +++---- vbahelper/source/msforms/vbacontrol.hxx | 6 ++---- vbahelper/source/msforms/vbacontrols.hxx | 6 ++---- vbahelper/source/msforms/vbaframe.hxx | 5 +---- vbahelper/source/msforms/vbaimage.hxx | 5 ++--- vbahelper/source/msforms/vbalabel.hxx | 6 +++--- vbahelper/source/msforms/vbalistbox.hxx | 7 +++---- vbahelper/source/msforms/vbalistcontrolhelper.hxx | 5 +---- vbahelper/source/msforms/vbamultipage.hxx | 5 +---- vbahelper/source/msforms/vbanewfont.hxx | 5 +---- vbahelper/source/msforms/vbapages.hxx | 5 ++--- vbahelper/source/msforms/vbaprogressbar.hxx | 5 +---- vbahelper/source/msforms/vbaradiobutton.hxx | 6 +++--- vbahelper/source/msforms/vbascrollbar.hxx | 5 +---- vbahelper/source/msforms/vbaspinbutton.hxx | 6 +++--- vbahelper/source/msforms/vbasystemaxcontrol.hxx | 6 ++---- vbahelper/source/msforms/vbatextbox.hxx | 5 +---- vbahelper/source/msforms/vbatogglebutton.hxx | 6 +++--- vbahelper/source/msforms/vbauserform.hxx | 5 ++--- 20 files changed, 39 insertions(+), 73 deletions(-)
New commits: commit b318822165799635bd37ac7cb92b5f37cf4a3c60 Author: Chiggy Wiggy <[email protected]> AuthorDate: Fri Dec 5 14:30:11 2025 +0100 Commit: Ilmari Lauhakangas <[email protected]> CommitDate: Sat Dec 6 20:16:33 2025 +0100 tdf#143148 Replace include guards with pragma once Change-Id: I7c073b413edf608dca7ec28834114ce5ef0e8fbf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195083 Reviewed-by: Ilmari Lauhakangas <[email protected]> Tested-by: Jenkins diff --git a/vbahelper/source/msforms/vbacheckbox.hxx b/vbahelper/source/msforms/vbacheckbox.hxx index 26e74a753d9d..ef82ce87e579 100644 --- a/vbahelper/source/msforms/vbacheckbox.hxx +++ b/vbahelper/source/msforms/vbacheckbox.hxx @@ -16,8 +16,8 @@ * 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_VBAHELPER_SOURCE_MSFORMS_VBACHECKBOX_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBACHECKBOX_HXX + +#pragma once #include <cppuhelper/implbase.hxx> #include <ooo/vba/msforms/XCheckBox.hpp> #include <com/sun/star/script/XDefaultProperty.hpp> @@ -50,6 +50,4 @@ public: virtual css::uno::Sequence<OUString> getServiceNames() override; }; -#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBACHECKBOX_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbacombobox.hxx b/vbahelper/source/msforms/vbacombobox.hxx index a53d0f9b4e24..10b59dcd74bd 100644 --- a/vbahelper/source/msforms/vbacombobox.hxx +++ b/vbahelper/source/msforms/vbacombobox.hxx @@ -16,8 +16,9 @@ * 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_VBAHELPER_SOURCE_MSFORMS_VBACOMBOBOX_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBACOMBOBOX_HXX + +#pragma once + #include <memory> #include <optional> #include <cppuhelper/implbase.hxx> @@ -86,6 +87,4 @@ public: virtual css::uno::Sequence<OUString> getServiceNames() override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbacontrol.hxx b/vbahelper/source/msforms/vbacontrol.hxx index 7d0066112eb7..6ea3e82ec312 100644 --- a/vbahelper/source/msforms/vbacontrol.hxx +++ b/vbahelper/source/msforms/vbacontrol.hxx @@ -16,8 +16,8 @@ * 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_VBAHELPER_SOURCE_MSFORMS_VBACONTROL_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBACONTROL_HXX + +#pragma once #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/uno/XComponentContext.hpp> @@ -137,6 +137,4 @@ namespace ScVbaControlFactory double fOffsetX, double fOffsetY ); } -#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBACONTROL_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbacontrols.hxx b/vbahelper/source/msforms/vbacontrols.hxx index 42f953e90737..8b8885784cde 100644 --- a/vbahelper/source/msforms/vbacontrols.hxx +++ b/vbahelper/source/msforms/vbacontrols.hxx @@ -16,8 +16,8 @@ * 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_VBAHELPER_SOURCE_MSFORMS_VBACONTROLS_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBACONTROLS_HXX + +#pragma once #include <ooo/vba/msforms/XControls.hpp> #include <com/sun/star/awt/XControl.hpp> @@ -58,6 +58,4 @@ private: double mfOffsetY; }; -#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBACONTROLS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbaframe.hxx b/vbahelper/source/msforms/vbaframe.hxx index bb87dd07e132..c33063613ef8 100644 --- a/vbahelper/source/msforms/vbaframe.hxx +++ b/vbahelper/source/msforms/vbaframe.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAFRAME_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAFRAME_HXX +#pragma once #include <cppuhelper/implbase.hxx> #include <ooo/vba/msforms/XFrame.hpp> @@ -58,6 +57,4 @@ private: css::uno::Reference< css::awt::XControl > mxDialog; }; -#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAFRAME_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbaimage.hxx b/vbahelper/source/msforms/vbaimage.hxx index 2f7081f5241e..4bdfff5bb452 100644 --- a/vbahelper/source/msforms/vbaimage.hxx +++ b/vbahelper/source/msforms/vbaimage.hxx @@ -16,8 +16,8 @@ * 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_VBAHELPER_SOURCE_MSFORMS_VBAIMAGE_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAIMAGE_HXX +#pragma once + #include <cppuhelper/implbase.hxx> #include <ooo/vba/msforms/XImage.hpp> @@ -36,6 +36,5 @@ public: virtual OUString getServiceImplName() override; virtual css::uno::Sequence<OUString> getServiceNames() override; }; -#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAIMAGE_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbalabel.hxx b/vbahelper/source/msforms/vbalabel.hxx index eb81c476440e..31db1323ce12 100644 --- a/vbahelper/source/msforms/vbalabel.hxx +++ b/vbahelper/source/msforms/vbalabel.hxx @@ -16,8 +16,9 @@ * 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_VBAHELPER_SOURCE_MSFORMS_VBALABEL_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBALABEL_HXX + +#pragma once + #include <ooo/vba/msforms/XLabel.hpp> #include <com/sun/star/script/XDefaultProperty.hpp> @@ -49,6 +50,5 @@ public: // XDefaultProperty OUString SAL_CALL getDefaultPropertyName( ) override { return u"Value"_ustr; } }; -#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBALABEL_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbalistbox.hxx b/vbahelper/source/msforms/vbalistbox.hxx index 885d42372a6a..3da372636f83 100644 --- a/vbahelper/source/msforms/vbalistbox.hxx +++ b/vbahelper/source/msforms/vbalistbox.hxx @@ -16,8 +16,9 @@ * 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_VBAHELPER_SOURCE_MSFORMS_VBALISTBOX_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBALISTBOX_HXX + +#pragma once + #include <memory> #include <optional> #include <cppuhelper/implbase.hxx> @@ -77,6 +78,4 @@ public: }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbalistcontrolhelper.hxx b/vbahelper/source/msforms/vbalistcontrolhelper.hxx index 34572bc0776c..c040af2b64d2 100644 --- a/vbahelper/source/msforms/vbalistcontrolhelper.hxx +++ b/vbahelper/source/msforms/vbalistcontrolhelper.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBALISTCONTROLHELPER_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBALISTCONTROLHELPER_HXX +#pragma once #include <utility> #include <vbahelper/vbahelper.hxx> @@ -43,6 +42,4 @@ public: void Clear( ); }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbamultipage.hxx b/vbahelper/source/msforms/vbamultipage.hxx index 45c8611056b0..2026ccd56c0d 100644 --- a/vbahelper/source/msforms/vbamultipage.hxx +++ b/vbahelper/source/msforms/vbamultipage.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAMULTIPAGE_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAMULTIPAGE_HXX +#pragma once #include <cppuhelper/implbase.hxx> #include <ooo/vba/msforms/XMultiPage.hpp> @@ -49,6 +48,4 @@ public: virtual css::uno::Sequence<OUString> getServiceNames() override; }; -#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAMULTIPAGE_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbanewfont.hxx b/vbahelper/source/msforms/vbanewfont.hxx index fb928f9e0c50..b53b37662456 100644 --- a/vbahelper/source/msforms/vbanewfont.hxx +++ b/vbahelper/source/msforms/vbanewfont.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBANEWFONT_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBANEWFONT_HXX +#pragma once #include <ooo/vba/msforms/XNewFont.hpp> #include <vbahelper/vbahelper.hxx> @@ -52,6 +51,4 @@ private: css::uno::Reference<css::beans::XPropertySet> mxProps; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbapages.hxx b/vbahelper/source/msforms/vbapages.hxx index cc42da280358..08a65b89a941 100644 --- a/vbahelper/source/msforms/vbapages.hxx +++ b/vbahelper/source/msforms/vbapages.hxx @@ -16,8 +16,8 @@ * 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_VBAHELPER_SOURCE_MSFORMS_VBAPAGES_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAPAGES_HXX + +#pragma once #include <ooo/vba/msforms/XPages.hpp> @@ -40,6 +40,5 @@ public: virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource ) override; }; -#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAPAGES_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbaprogressbar.hxx b/vbahelper/source/msforms/vbaprogressbar.hxx index c1ee952a4a48..d44a7e9e358d 100644 --- a/vbahelper/source/msforms/vbaprogressbar.hxx +++ b/vbahelper/source/msforms/vbaprogressbar.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAPROGRESSBAR_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAPROGRESSBAR_HXX +#pragma once #include <ooo/vba/msforms/XProgressBar.hpp> #include <com/sun/star/script/XDefaultProperty.hpp> @@ -43,6 +42,4 @@ public: OUString SAL_CALL getDefaultPropertyName( ) override { return u"Value"_ustr; } }; -#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAPROGRESSBAR_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbaradiobutton.hxx b/vbahelper/source/msforms/vbaradiobutton.hxx index 93ac1d817b32..d62123ae6e03 100644 --- a/vbahelper/source/msforms/vbaradiobutton.hxx +++ b/vbahelper/source/msforms/vbaradiobutton.hxx @@ -16,8 +16,9 @@ * 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_VBAHELPER_SOURCE_MSFORMS_VBARADIOBUTTON_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBARADIOBUTTON_HXX + +#pragma once + #include <ooo/vba/msforms/XRadioButton.hpp> #include <com/sun/star/script/XDefaultProperty.hpp> #include "vbacontrol.hxx" @@ -43,6 +44,5 @@ public: OUString SAL_CALL getDefaultPropertyName( ) override { return u"Value"_ustr; } }; -#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBARADIOBUTTON_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbascrollbar.hxx b/vbahelper/source/msforms/vbascrollbar.hxx index e695e36b3476..16f1711a6bb5 100644 --- a/vbahelper/source/msforms/vbascrollbar.hxx +++ b/vbahelper/source/msforms/vbascrollbar.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBASCROLLBAR_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBASCROLLBAR_HXX +#pragma once #include <cppuhelper/implbase.hxx> #include <ooo/vba/msforms/XScrollBar.hpp> @@ -50,6 +49,4 @@ public: virtual css::uno::Sequence<OUString> getServiceNames() override; }; -#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBASCROLLBAR_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbaspinbutton.hxx b/vbahelper/source/msforms/vbaspinbutton.hxx index 38f619679c20..bb453f9d00d4 100644 --- a/vbahelper/source/msforms/vbaspinbutton.hxx +++ b/vbahelper/source/msforms/vbaspinbutton.hxx @@ -16,8 +16,9 @@ * 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_VBAHELPER_SOURCE_MSFORMS_VBASPINBUTTON_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBASPINBUTTON_HXX + +#pragma once + #include <cppuhelper/implbase.hxx> #include <ooo/vba/msforms/XSpinButton.hpp> @@ -42,6 +43,5 @@ public: virtual OUString getServiceImplName() override; virtual css::uno::Sequence<OUString> getServiceNames() override; }; -#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBASPINBUTTON_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbasystemaxcontrol.hxx b/vbahelper/source/msforms/vbasystemaxcontrol.hxx index 40f575c8be92..18d43b86024f 100644 --- a/vbahelper/source/msforms/vbasystemaxcontrol.hxx +++ b/vbahelper/source/msforms/vbasystemaxcontrol.hxx @@ -16,8 +16,8 @@ * 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_VBAHELPER_SOURCE_MSFORMS_VBASYSTEMAXCONTROL_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBASYSTEMAXCONTROL_HXX + +#pragma once #include <cppuhelper/implbase.hxx> #include <com/sun/star/script/XInvocation.hpp> @@ -47,6 +47,4 @@ public: virtual css::uno::Sequence<OUString> getServiceNames() override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbatextbox.hxx b/vbahelper/source/msforms/vbatextbox.hxx index 16cc75f01538..9df807e49f4a 100644 --- a/vbahelper/source/msforms/vbatextbox.hxx +++ b/vbahelper/source/msforms/vbatextbox.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBATEXTBOX_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBATEXTBOX_HXX +#pragma once #include <cppuhelper/implbase.hxx> #include <ooo/vba/msforms/XTextBox.hpp> @@ -62,6 +61,4 @@ public: virtual css::uno::Sequence<OUString> getServiceNames() override; }; -#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBATEXTBOX_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbatogglebutton.hxx b/vbahelper/source/msforms/vbatogglebutton.hxx index 2e7e857d1538..f7ca765411a7 100644 --- a/vbahelper/source/msforms/vbatogglebutton.hxx +++ b/vbahelper/source/msforms/vbatogglebutton.hxx @@ -16,8 +16,9 @@ * 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_VBAHELPER_SOURCE_MSFORMS_VBATOGGLEBUTTON_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBATOGGLEBUTTON_HXX + +#pragma once + #include <cppuhelper/implbase.hxx> #include <ooo/vba/msforms/XToggleButton.hpp> #include <com/sun/star/script/XDefaultProperty.hpp> @@ -56,6 +57,5 @@ public: // XDefaultProperty OUString SAL_CALL getDefaultPropertyName( ) override { return u"Value"_ustr; } }; -#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBATOGGLEBUTTON_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbauserform.hxx b/vbahelper/source/msforms/vbauserform.hxx index ded092bc1770..bb70fe6b2e0d 100644 --- a/vbahelper/source/msforms/vbauserform.hxx +++ b/vbahelper/source/msforms/vbauserform.hxx @@ -16,8 +16,8 @@ * 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_VBAHELPER_SOURCE_MSFORMS_VBAUSERFORM_HXX -#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAUSERFORM_HXX + +#pragma once #include <cppuhelper/implbase.hxx> #include <ooo/vba/msforms/XUserForm.hpp> @@ -67,6 +67,5 @@ public: virtual OUString getServiceImplName() override; virtual css::uno::Sequence<OUString> getServiceNames() override; }; -#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
