diff options
author | Vincent LE GARREC <libreoffice@le-garrec.fr> | 2021-03-06 10:14:31 +0100 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2021-03-23 11:06:48 +0100 |
commit | e29f53b71058b9468cb6c29f82dbf6de53d4cdd0 (patch) | |
tree | 9bd73b6f9130cc87cf22f64a8ccd25c19a13f5ab /winaccessibility/inc | |
parent | cd09fc9451897e6efedbf9f5e1d5b9bd96e65cb5 (diff) |
tdf#124176 Use pragma once in w*
Change-Id: I693f6dafb743d39afd8e41e66a8066f04043f8a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112052
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'winaccessibility/inc')
22 files changed, 22 insertions, 87 deletions
diff --git a/winaccessibility/inc/AccComponentEventListener.hxx b/winaccessibility/inc/AccComponentEventListener.hxx index 926c5cb74b65..6c2683f8b6e3 100644 --- a/winaccessibility/inc/AccComponentEventListener.hxx +++ b/winaccessibility/inc/AccComponentEventListener.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCCOMPONENTEVENTLISTENER_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCCOMPONENTEVENTLISTENER_HXX +#pragma once #include <stdio.h> #include "AccEventListener.hxx" @@ -66,6 +65,4 @@ public: void HandleTextSelectionChangedEvent(); }; -#endif // INCLUDED_WINACCESSIBILITY_INC_ACCCOMPONENTEVENTLISTENER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/AccContainerEventListener.hxx b/winaccessibility/inc/AccContainerEventListener.hxx index 2bd797a60e37..f0b87c3d4042 100644 --- a/winaccessibility/inc/AccContainerEventListener.hxx +++ b/winaccessibility/inc/AccContainerEventListener.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCCONTAINEREVENTLISTENER_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCCONTAINEREVENTLISTENER_HXX +#pragma once #include <stdio.h> #include "AccEventListener.hxx" @@ -95,6 +94,4 @@ public: virtual void HandleNameChangedEvent(css::uno::Any name) override; }; -#endif // INCLUDED_WINACCESSIBILITY_INC_ACCCONTAINEREVENTLISTENER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/AccDescendantManagerEventListener.hxx b/winaccessibility/inc/AccDescendantManagerEventListener.hxx index ad4ee3542776..57ae373ce5f7 100644 --- a/winaccessibility/inc/AccDescendantManagerEventListener.hxx +++ b/winaccessibility/inc/AccDescendantManagerEventListener.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCDESCENDANTMANAGEREVENTLISTENER_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCDESCENDANTMANAGEREVENTLISTENER_HXX +#pragma once #include <stdio.h> #include "AccComponentEventListener.hxx" @@ -62,6 +61,4 @@ public: const css::uno::Any &oldValue, const css::uno::Any &newValue); }; -#endif // INCLUDED_WINACCESSIBILITY_INC_ACCDESCENDANTMANAGEREVENTLISTENER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/AccDialogEventListener.hxx b/winaccessibility/inc/AccDialogEventListener.hxx index 18ae07d05d8f..b8394f712318 100644 --- a/winaccessibility/inc/AccDialogEventListener.hxx +++ b/winaccessibility/inc/AccDialogEventListener.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCDIALOGEVENTLISTENER_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCDIALOGEVENTLISTENER_HXX +#pragma once #include <stdio.h> #include "AccEventListener.hxx" @@ -48,6 +47,4 @@ public: virtual void SetComponentState(short state, bool enable) override; }; -#endif // INCLUDED_WINACCESSIBILITY_INC_ACCDIALOGEVENTLISTENER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/AccEventListener.hxx b/winaccessibility/inc/AccEventListener.hxx index 5ca714b39750..7f5c61e8159e 100644 --- a/winaccessibility/inc/AccEventListener.hxx +++ b/winaccessibility/inc/AccEventListener.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCEVENTLISTENER_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCEVENTLISTENER_HXX +#pragma once #include <com/sun/star/accessibility/XAccessibleEventListener.hpp> #include <com/sun/star/accessibility/XAccessible.hpp> @@ -77,6 +76,4 @@ public: void RemoveMeFromBroadcaster(); }; -#endif // INCLUDED_WINACCESSIBILITY_INC_ACCEVENTLISTENER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/AccFrameEventListener.hxx b/winaccessibility/inc/AccFrameEventListener.hxx index ce05881e0996..43f4fe393f4c 100644 --- a/winaccessibility/inc/AccFrameEventListener.hxx +++ b/winaccessibility/inc/AccFrameEventListener.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCFRAMEEVENTLISTENER_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCFRAMEEVENTLISTENER_HXX +#pragma once #include <stdio.h> #include "AccEventListener.hxx" @@ -48,6 +47,4 @@ public: virtual void SetComponentState(short state, bool enable) override; }; -#endif // INCLUDED_WINACCESSIBILITY_INC_ACCFRAMEEVENTLISTENER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/AccListEventListener.hxx b/winaccessibility/inc/AccListEventListener.hxx index a84b9e9d5c72..bd75a977c531 100644 --- a/winaccessibility/inc/AccListEventListener.hxx +++ b/winaccessibility/inc/AccListEventListener.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCLISTEVENTLISTENER_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCLISTEVENTLISTENER_HXX +#pragma once #include <stdio.h> #include "AccDescendantManagerEventListener.hxx" @@ -47,6 +46,4 @@ public: virtual void HandleValueChangedEvent(css::uno::Any oldValue, css::uno::Any newValue) override; }; -#endif // INCLUDED_WINACCESSIBILITY_INC_ACCLISTEVENTLISTENER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/AccMenuEventListener.hxx b/winaccessibility/inc/AccMenuEventListener.hxx index 290568bea2e6..c0efc33fced8 100644 --- a/winaccessibility/inc/AccMenuEventListener.hxx +++ b/winaccessibility/inc/AccMenuEventListener.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCMENUEVENTLISTENER_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCMENUEVENTLISTENER_HXX +#pragma once #include <stdio.h> #include "AccComponentEventListener.hxx" @@ -51,6 +50,4 @@ public: virtual void FireStatePropertyChange(short state, bool set) override; }; -#endif // INCLUDED_WINACCESSIBILITY_INC_ACCMENUEVENTLISTENER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/AccObject.hxx b/winaccessibility/inc/AccObject.hxx index 2a024642d8ac..2b2232323a02 100644 --- a/winaccessibility/inc/AccObject.hxx +++ b/winaccessibility/inc/AccObject.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCOBJECT_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCOBJECT_HXX +#pragma once #include <vector> #include <map> @@ -138,6 +137,4 @@ public: void setLocalizedResourceString(); }; -#endif // INCLUDED_WINACCESSIBILITY_INC_ACCOBJECT_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/AccObjectContainerEventListener.hxx b/winaccessibility/inc/AccObjectContainerEventListener.hxx index ec606f56c768..41baf99b40e4 100644 --- a/winaccessibility/inc/AccObjectContainerEventListener.hxx +++ b/winaccessibility/inc/AccObjectContainerEventListener.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCOBJECTCONTAINEREVENTLISTENER_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCOBJECTCONTAINEREVENTLISTENER_HXX +#pragma once #include <stdio.h> #include "AccContainerEventListener.hxx" @@ -45,6 +44,4 @@ public: virtual void HandleVisibleDataChangedEvent() override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/AccObjectManagerAgent.hxx b/winaccessibility/inc/AccObjectManagerAgent.hxx index 9864b31f5c0c..ea4b5837b74f 100644 --- a/winaccessibility/inc/AccObjectManagerAgent.hxx +++ b/winaccessibility/inc/AccObjectManagerAgent.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCOBJECTMANAGERAGENT_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCOBJECTMANAGERAGENT_HXX +#pragma once #include <memory> @@ -100,6 +99,4 @@ public: }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/AccObjectWinManager.hxx b/winaccessibility/inc/AccObjectWinManager.hxx index 1529bc40ec7f..bf812c10f47f 100644 --- a/winaccessibility/inc/AccObjectWinManager.hxx +++ b/winaccessibility/inc/AccObjectWinManager.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCOBJECTWINMANAGER_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCOBJECTWINMANAGER_HXX +#pragma once #include <com/sun/star/accessibility/XAccessible.hpp> #include <map> @@ -152,6 +151,5 @@ public: static bool IsStateManageDescendant(css::accessibility::XAccessible* pAccessible); }; -#endif // INCLUDED_WINACCESSIBILITY_INC_ACCOBJECTWINMANAGER_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/AccParagraphEventListener.hxx b/winaccessibility/inc/AccParagraphEventListener.hxx index 60fdd4decd7d..7204839e34a5 100644 --- a/winaccessibility/inc/AccParagraphEventListener.hxx +++ b/winaccessibility/inc/AccParagraphEventListener.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCPARAGRAPHEVENTLISTENER_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCPARAGRAPHEVENTLISTENER_HXX +#pragma once #include <stdio.h> #include "AccContainerEventListener.hxx" @@ -50,6 +49,4 @@ public: void HandleTextSelectionChangedEvent(); }; -#endif // INCLUDED_WINACCESSIBILITY_INC_ACCPARAGRAPHEVENTLISTENER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/AccTableEventListener.hxx b/winaccessibility/inc/AccTableEventListener.hxx index b22ce3b2dc25..01871e35e9d4 100644 --- a/winaccessibility/inc/AccTableEventListener.hxx +++ b/winaccessibility/inc/AccTableEventListener.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCTABLEEVENTLISTENER_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCTABLEEVENTLISTENER_HXX +#pragma once #include <stdio.h> #include "AccDescendantManagerEventListener.hxx" @@ -47,6 +46,4 @@ public: void HandleTableModelChangeEvent(css::uno::Any newValue); }; -#endif // INCLUDED_WINACCESSIBILITY_INC_ACCTABLEEVENTLISTENER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/AccTextComponentEventListener.hxx b/winaccessibility/inc/AccTextComponentEventListener.hxx index 0a127c916b52..f1e49097ed03 100644 --- a/winaccessibility/inc/AccTextComponentEventListener.hxx +++ b/winaccessibility/inc/AccTextComponentEventListener.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCTEXTCOMPONENTEVENTLISTENER_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCTEXTCOMPONENTEVENTLISTENER_HXX +#pragma once #include <stdio.h> #include "AccComponentEventListener.hxx" @@ -41,6 +40,4 @@ public: virtual void SetComponentState(short state, bool enable) override; }; -#endif // INCLUDED_WINACCESSIBILITY_INC_ACCTEXTCOMPONENTEVENTLISTENER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/AccTopWindowListener.hxx b/winaccessibility/inc/AccTopWindowListener.hxx index 82a060a815f9..c88ce5085dc2 100644 --- a/winaccessibility/inc/AccTopWindowListener.hxx +++ b/winaccessibility/inc/AccTopWindowListener.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCTOPWINDOWLISTENER_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCTOPWINDOWLISTENER_HXX +#pragma once #include <com/sun/star/awt/XTopWindowListener.hpp> #include <com/sun/star/awt/XExtendedToolkit.hpp> @@ -64,6 +63,4 @@ public: sal_Int64 GetMSComPtr(sal_Int64 hWnd, sal_Int64 lParam, sal_Int64 wParam); }; -#endif // INCLUDED_WINACCESSIBILITY_INC_ACCTOPWINDOWLISTENER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/AccTreeEventListener.hxx b/winaccessibility/inc/AccTreeEventListener.hxx index ead0f8605860..bb3574bf0df7 100644 --- a/winaccessibility/inc/AccTreeEventListener.hxx +++ b/winaccessibility/inc/AccTreeEventListener.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCTREEEVENTLISTENER_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCTREEEVENTLISTENER_HXX +#pragma once #include <stdio.h> #include "AccDescendantManagerEventListener.hxx" @@ -45,6 +44,4 @@ public: virtual void HandleActiveDescendantChangedEvent(css::uno::Any oldValue, css::uno::Any newValue); }; -#endif // INCLUDED_WINACCESSIBILITY_INC_ACCTREEEVENTLISTENER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/AccWindowEventListener.hxx b/winaccessibility/inc/AccWindowEventListener.hxx index a29e865cb482..a4995e343d4c 100644 --- a/winaccessibility/inc/AccWindowEventListener.hxx +++ b/winaccessibility/inc/AccWindowEventListener.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCWINDOWEVENTLISTENER_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCWINDOWEVENTLISTENER_HXX +#pragma once #include <stdio.h> #include "AccEventListener.hxx" @@ -48,6 +47,4 @@ public: virtual void SetComponentState(short state, bool enable) override; }; -#endif // INCLUDED_WINACCESSIBILITY_INC_ACCWINDOWEVENTLISTENER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/ResIDGenerator.hxx b/winaccessibility/inc/ResIDGenerator.hxx index abd9ec488c83..19e06c9b88ad 100644 --- a/winaccessibility/inc/ResIDGenerator.hxx +++ b/winaccessibility/inc/ResIDGenerator.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_RESIDGENERATOR_HXX -#define INCLUDED_WINACCESSIBILITY_INC_RESIDGENERATOR_HXX +#pragma once #define PRIMARY_RESID 0x00000001 #include <deque> @@ -41,6 +40,4 @@ public: void SetSub(long number) { subList.push_back(number); }; }; -#endif // INCLUDED_WINACCESSIBILITY_INC_RESIDGENERATOR_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/UAccCOMdllapi.h b/winaccessibility/inc/UAccCOMdllapi.h index 41ed958ec67f..50f705c6dae9 100644 --- a/winaccessibility/inc/UAccCOMdllapi.h +++ b/winaccessibility/inc/UAccCOMdllapi.h @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_UACCCOMDLLAPI_H -#define INCLUDED_WINACCESSIBILITY_INC_UACCCOMDLLAPI_H +#pragma once #include <sal/types.h> @@ -18,6 +17,4 @@ #define UACCCOM_DLLPUBLIC SAL_DLLPUBLIC_IMPORT #endif -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/accHelper.hxx b/winaccessibility/inc/accHelper.hxx index 67323eca1970..4e2d941c418a 100644 --- a/winaccessibility/inc/accHelper.hxx +++ b/winaccessibility/inc/accHelper.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_ACCHELPER_HXX -#define INCLUDED_WINACCESSIBILITY_INC_ACCHELPER_HXX +#pragma once #include "UAccCOMdllapi.h" @@ -35,6 +34,4 @@ enum DIRECTION struct IMAccessible; UACCCOM_DLLPUBLIC IMAccessible* UAccCOMCreateInstance(); -#endif // INCLUDED_WINACCESSIBILITY_INC_ACCHELPER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/inc/unomsaaevent.hxx b/winaccessibility/inc/unomsaaevent.hxx index 8f3cb114a933..7b45c86867ed 100644 --- a/winaccessibility/inc/unomsaaevent.hxx +++ b/winaccessibility/inc/unomsaaevent.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_WINACCESSIBILITY_INC_UNOMSAAEVENT_HXX -#define INCLUDED_WINACCESSIBILITY_INC_UNOMSAAEVENT_HXX +#pragma once //STATE_CHANGED with get FOCUSED -> EVENT_OBJECT_FOCUS const short UM_EVENT_STATE_FOCUSED = 0; @@ -105,6 +104,4 @@ const short UM_EVENT_TEXT_SELECTION_CHANGED = 39; const short UM_EVENT_SECTION_CHANGED = 40; const short UM_EVENT_COLUMN_CHANGED = 41; -#endif // INCLUDED_WINACCESSIBILITY_INC_UNOMSAAEVENT_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |