diff options
author | Vincent LE GARREC <libreoffice@le-garrec.fr> | 2021-03-06 08:21:49 +0100 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2021-03-23 13:07:09 +0100 |
commit | 90c978f839e5029c69b4acb70f37909ee3016614 (patch) | |
tree | ac5c8cd53cf72ddc2336d53ab3f4b40661e30091 /filter | |
parent | 88eb9f73ff32ed5a2cf696de9e076e7dfee36d8d (diff) |
tdf#124176 Use pragma once in f*
filter, forms, fpicker, framework
Change-Id: I55a25ad2dc3749e63465e638e8eeea3c322eabbf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112047
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'filter')
48 files changed, 48 insertions, 188 deletions
diff --git a/filter/inc/strings.hrc b/filter/inc/strings.hrc index 3f1eaeac78ac..b1bea27dec47 100644 --- a/filter/inc/strings.hrc +++ b/filter/inc/strings.hrc @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_INC_STRINGS_HRC -#define INCLUDED_FILTER_INC_STRINGS_HRC +#pragma once #define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String) @@ -74,6 +73,4 @@ #define STR_ERR_SIGNATURE_FAILED NC_("STR_ERR_SIGNATURE_FAILED", "Signature generation failed") #define STR_ERR_PDF_EXPORT_ABORTED NC_("STR_ERR_PDF_EXPORT_ABORTED", "PDF export aborted") -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/inc/strings.hxx b/filter/inc/strings.hxx index c405e61121ab..df622a59cb11 100644 --- a/filter/inc/strings.hxx +++ b/filter/inc/strings.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_FILTER_INC_STRINGS_HXX -#define INCLUDED_FILTER_INC_STRINGS_HXX +#pragma once #define STR_APPL_NAME_WRITER "%PRODUCTNAME Writer (.sxw)" #define STR_APPL_NAME_CALC "%PRODUCTNAME Calc (.sxc)" @@ -20,6 +19,4 @@ #define STR_APPL_NAME_OASIS_DRAW "%PRODUCTNAME Draw (.odg)" #define STR_DEFAULT_EXTENSION "xml" -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/filter/source/config/cache/basecontainer.hxx b/filter/source/config/cache/basecontainer.hxx index 7ba811ccc060..001c304ffaed 100644 --- a/filter/source/config/cache/basecontainer.hxx +++ b/filter/source/config/cache/basecontainer.hxx @@ -16,8 +16,7 @@ * 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_FILTER_SOURCE_CONFIG_CACHE_BASECONTAINER_HXX -#define INCLUDED_FILTER_SOURCE_CONFIG_CACHE_BASECONTAINER_HXX +#pragma once #include <memory> @@ -258,6 +257,4 @@ class BaseContainer : public BaseLock } // namespace filter::config -#endif // INCLUDED_FILTER_SOURCE_CONFIG_CACHE_BASECONTAINER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/config/cache/cacheitem.hxx b/filter/source/config/cache/cacheitem.hxx index aeaaf3a83afb..f0c3558da856 100644 --- a/filter/source/config/cache/cacheitem.hxx +++ b/filter/source/config/cache/cacheitem.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_CONFIG_CACHE_CACHEITEM_HXX -#define INCLUDED_FILTER_SOURCE_CONFIG_CACHE_CACHEITEM_HXX +#pragma once #include <unordered_map> #include <com/sun/star/uno/Sequence.h> @@ -189,6 +188,4 @@ typedef ::std::vector< FlatDetectionInfo > FlatDetection; } // namespace filter::config -#endif // INCLUDED_FILTER_SOURCE_CONFIG_CACHE_CACHEITEM_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/config/cache/cacheupdatelistener.hxx b/filter/source/config/cache/cacheupdatelistener.hxx index 714e4016ba51..9567b3bd3042 100644 --- a/filter/source/config/cache/cacheupdatelistener.hxx +++ b/filter/source/config/cache/cacheupdatelistener.hxx @@ -16,8 +16,7 @@ * 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_FILTER_SOURCE_CONFIG_CACHE_CACHEUPDATELISTENER_HXX -#define INCLUDED_FILTER_SOURCE_CONFIG_CACHE_CACHEUPDATELISTENER_HXX +#pragma once #include "filtercache.hxx" #include <com/sun/star/util/XChangesListener.hpp> @@ -109,6 +108,4 @@ class CacheUpdateListener : public BaseLock // must be the first one to guarante } // namespace filter::config -#endif // INCLUDED_FILTER_SOURCE_CONFIG_CACHE_CACHEUPDATELISTENER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/config/cache/configflush.hxx b/filter/source/config/cache/configflush.hxx index f3e284556681..05edb639c886 100644 --- a/filter/source/config/cache/configflush.hxx +++ b/filter/source/config/cache/configflush.hxx @@ -16,8 +16,7 @@ * 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_FILTER_SOURCE_CONFIG_CACHE_CONFIGFLUSH_HXX -#define INCLUDED_FILTER_SOURCE_CONFIG_CACHE_CONFIGFLUSH_HXX +#pragma once #include "cacheitem.hxx" #include <com/sun/star/util/XRefreshable.hpp> @@ -87,6 +86,4 @@ class ConfigFlush final : public BaseLock } // namespace filter::config -#endif // INCLUDED_FILTER_SOURCE_CONFIG_CACHE_CONFIGFLUSH_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/config/cache/constant.hxx b/filter/source/config/cache/constant.hxx index 820c16953831..737e9ccd1b1c 100644 --- a/filter/source/config/cache/constant.hxx +++ b/filter/source/config/cache/constant.hxx @@ -16,8 +16,7 @@ * 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_FILTER_SOURCE_CONFIG_CACHE_CONSTANT_HXX -#define INCLUDED_FILTER_SOURCE_CONFIG_CACHE_CONSTANT_HXX +#pragma once /* disable impl_loadOnDemand function of BaseContainer for certain functions, where it the feature "impl_loadItemOnDemand() of class FilterCache @@ -150,6 +149,4 @@ #define QUERY_PARAM_DEFAULTFIRST "default_first" #define QUERY_CONSTVALUE_ALL "all" -#endif // INCLUDED_FILTER_SOURCE_CONFIG_CACHE_CONSTANT_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/config/cache/contenthandlerfactory.hxx b/filter/source/config/cache/contenthandlerfactory.hxx index bc6f17ba4b45..5c3ecd76019c 100644 --- a/filter/source/config/cache/contenthandlerfactory.hxx +++ b/filter/source/config/cache/contenthandlerfactory.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_CONFIG_CACHE_CONTENTHANDLERFACTORY_HXX -#define INCLUDED_FILTER_SOURCE_CONFIG_CACHE_CONTENTHANDLERFACTORY_HXX +#pragma once #include "basecontainer.hxx" #include <com/sun/star/frame/XLoaderFactory.hpp> @@ -97,6 +96,4 @@ class ContentHandlerFactory : public ::cppu::ImplInheritanceHelper< BaseContaine } // namespace filter::config -#endif // INCLUDED_FILTER_SOURCE_CONFIG_CACHE_CONTENTHANDLERFACTORY_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/config/cache/filtercache.hxx b/filter/source/config/cache/filtercache.hxx index 243c192a8072..66d07467f6f3 100644 --- a/filter/source/config/cache/filtercache.hxx +++ b/filter/source/config/cache/filtercache.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_CONFIG_CACHE_FILTERCACHE_HXX -#define INCLUDED_FILTER_SOURCE_CONFIG_CACHE_FILTERCACHE_HXX +#pragma once #include <memory> @@ -938,6 +937,4 @@ struct TheFilterCache: public rtl::Static<FilterCache, TheFilterCache> {}; } // namespace filter::config -#endif // INCLUDED_FILTER_SOURCE_CONFIG_CACHE_FILTERCACHE_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/config/cache/filterfactory.hxx b/filter/source/config/cache/filterfactory.hxx index 77d1b426d08e..19abea5d6db0 100644 --- a/filter/source/config/cache/filterfactory.hxx +++ b/filter/source/config/cache/filterfactory.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_CONFIG_CACHE_FILTERFACTORY_HXX -#define INCLUDED_FILTER_SOURCE_CONFIG_CACHE_FILTERFACTORY_HXX +#pragma once #include "basecontainer.hxx" #include "querytokenizer.hxx" @@ -133,6 +132,4 @@ class FilterFactory : public ::cppu::ImplInheritanceHelper< BaseContainer } // namespace filter::config -#endif // INCLUDED_FILTER_SOURCE_CONFIG_CACHE_FILTERFACTORY_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/config/cache/frameloaderfactory.hxx b/filter/source/config/cache/frameloaderfactory.hxx index a1aa859e1555..2b9098b1a8e2 100644 --- a/filter/source/config/cache/frameloaderfactory.hxx +++ b/filter/source/config/cache/frameloaderfactory.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_CONFIG_CACHE_FRAMELOADERFACTORY_HXX -#define INCLUDED_FILTER_SOURCE_CONFIG_CACHE_FRAMELOADERFACTORY_HXX +#pragma once #include "basecontainer.hxx" #include <com/sun/star/frame/XLoaderFactory.hpp> @@ -96,6 +95,4 @@ class FrameLoaderFactory : public ::cppu::ImplInheritanceHelper< BaseContainer } // namespace filter::config -#endif // INCLUDED_FILTER_SOURCE_CONFIG_CACHE_FRAMELOADERFACTORY_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/config/cache/querytokenizer.hxx b/filter/source/config/cache/querytokenizer.hxx index f5dbf7623650..e0b8d5218130 100644 --- a/filter/source/config/cache/querytokenizer.hxx +++ b/filter/source/config/cache/querytokenizer.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_CONFIG_CACHE_QUERYTOKENIZER_HXX -#define INCLUDED_FILTER_SOURCE_CONFIG_CACHE_QUERYTOKENIZER_HXX +#pragma once #include <rtl/ustring.hxx> #include <unordered_map> @@ -90,6 +89,4 @@ class QueryTokenizer : public std::unordered_map< OUString, OUString > } // namespace filter::config -#endif // INCLUDED_FILTER_SOURCE_CONFIG_CACHE_QUERYTOKENIZER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/config/cache/typedetection.hxx b/filter/source/config/cache/typedetection.hxx index b0281d5f983d..21f598055fda 100644 --- a/filter/source/config/cache/typedetection.hxx +++ b/filter/source/config/cache/typedetection.hxx @@ -16,8 +16,7 @@ * 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_FILTER_SOURCE_CONFIG_CACHE_TYPEDETECTION_HXX -#define INCLUDED_FILTER_SOURCE_CONFIG_CACHE_TYPEDETECTION_HXX +#pragma once #include "basecontainer.hxx" #include <com/sun/star/document/XTypeDetection.hpp> @@ -360,6 +359,4 @@ public: } -#endif // INCLUDED_FILTER_SOURCE_CONFIG_CACHE_TYPEDETECTION_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/graphic/GraphicExportFilter.hxx b/filter/source/graphic/GraphicExportFilter.hxx index d9d4c5a898ac..6e2a30448817 100644 --- a/filter/source/graphic/GraphicExportFilter.hxx +++ b/filter/source/graphic/GraphicExportFilter.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_GRAPHIC_GRAPHICEXPORTFILTER_HXX -#define INCLUDED_FILTER_SOURCE_GRAPHIC_GRAPHICEXPORTFILTER_HXX +#pragma once #include <com/sun/star/document/XFilter.hpp> #include <com/sun/star/document/XExporter.hpp> @@ -77,6 +76,4 @@ public: virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any > & rArguments ) override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/graphicfilter/icgm/bitmap.hxx b/filter/source/graphicfilter/icgm/bitmap.hxx index 2fb7de98b32f..3e7b80f5177f 100644 --- a/filter/source/graphicfilter/icgm/bitmap.hxx +++ b/filter/source/graphicfilter/icgm/bitmap.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_GRAPHICFILTER_ICGM_BITMAP_HXX -#define INCLUDED_FILTER_SOURCE_GRAPHICFILTER_ICGM_BITMAP_HXX +#pragma once #include "cgm.hxx" #include <vcl/bitmapex.hxx> @@ -78,6 +77,5 @@ public: CGMBitmapDescriptor* GetBitmap() { return pCGMBitmapDescriptor.get();} std::unique_ptr<CGMBitmap> GetNext(); }; -#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/graphicfilter/icgm/bundles.hxx b/filter/source/graphicfilter/icgm/bundles.hxx index a884937f8dae..209eae6dd396 100644 --- a/filter/source/graphicfilter/icgm/bundles.hxx +++ b/filter/source/graphicfilter/icgm/bundles.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_GRAPHICFILTER_ICGM_BUNDLES_HXX -#define INCLUDED_FILTER_SOURCE_GRAPHICFILTER_ICGM_BUNDLES_HXX +#pragma once #include <sal/types.h> #include "cgmtypes.hxx" @@ -164,6 +163,4 @@ public: void InsertCharSet( sal_uInt8 const * pSource, sal_uInt32 nSize ); }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/graphicfilter/icgm/cgm.hxx b/filter/source/graphicfilter/icgm/cgm.hxx index 3f9c88dde649..7709b743d4f0 100644 --- a/filter/source/graphicfilter/icgm/cgm.hxx +++ b/filter/source/graphicfilter/icgm/cgm.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_GRAPHICFILTER_ICGM_CGM_HXX -#define INCLUDED_FILTER_SOURCE_GRAPHICFILTER_ICGM_CGM_HXX +#pragma once #include <com/sun/star/frame/XModel.hpp> @@ -137,6 +136,5 @@ class CGM bool Write( SvStream& rIStm ); }; -#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/graphicfilter/icgm/cgmtypes.hxx b/filter/source/graphicfilter/icgm/cgmtypes.hxx index e78d2757a8d3..5b7def212842 100644 --- a/filter/source/graphicfilter/icgm/cgmtypes.hxx +++ b/filter/source/graphicfilter/icgm/cgmtypes.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_GRAPHICFILTER_ICGM_CGMTYPES_HXX -#define INCLUDED_FILTER_SOURCE_GRAPHICFILTER_ICGM_CGMTYPES_HXX +#pragma once #include <tools/long.hxx> @@ -125,6 +124,4 @@ enum FillInteriorStyle { FIS_HOLLOW = 0, FIS_SOLID = 1, FIS_PATTERN = 2, FIS_HA FIS_INTERPOLATED = 6, FIS_GRADIENT = 7 }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/graphicfilter/icgm/chart.hxx b/filter/source/graphicfilter/icgm/chart.hxx index 96b715b9a879..ef77ace0e22f 100644 --- a/filter/source/graphicfilter/icgm/chart.hxx +++ b/filter/source/graphicfilter/icgm/chart.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_GRAPHICFILTER_ICGM_CHART_HXX -#define INCLUDED_FILTER_SOURCE_GRAPHICFILTER_ICGM_CHART_HXX +#pragma once #include <sal/types.h> @@ -82,6 +81,4 @@ class CGMChart final bool IsAnnotation() const; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/graphicfilter/icgm/elements.hxx b/filter/source/graphicfilter/icgm/elements.hxx index 8a7812cb699c..3f4bd710a4f2 100644 --- a/filter/source/graphicfilter/icgm/elements.hxx +++ b/filter/source/graphicfilter/icgm/elements.hxx @@ -16,8 +16,7 @@ * 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_FILTER_SOURCE_GRAPHICFILTER_ICGM_ELEMENTS_HXX -#define INCLUDED_FILTER_SOURCE_GRAPHICFILTER_ICGM_ELEMENTS_HXX +#pragma once #include "bundles.hxx" #include "cgmtypes.hxx" @@ -134,6 +133,4 @@ class CGMElements static void CopyAllBundles( const BundleList& Source, BundleList& Dest ); }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/graphicfilter/icgm/outact.hxx b/filter/source/graphicfilter/icgm/outact.hxx index 2364c787fea1..b06fffda8cc0 100644 --- a/filter/source/graphicfilter/icgm/outact.hxx +++ b/filter/source/graphicfilter/icgm/outact.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_GRAPHICFILTER_ICGM_OUTACT_HXX -#define INCLUDED_FILTER_SOURCE_GRAPHICFILTER_ICGM_OUTACT_HXX +#pragma once #include <com/sun/star/awt/Gradient.hpp> #include <com/sun/star/document/XActionLockable.hpp> @@ -106,6 +105,4 @@ public: }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/msfilter/eschesdo.hxx b/filter/source/msfilter/eschesdo.hxx index fc1522c79dca..2ca7ab467b6f 100644 --- a/filter/source/msfilter/eschesdo.hxx +++ b/filter/source/msfilter/eschesdo.hxx @@ -16,8 +16,7 @@ * 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_FILTER_SOURCE_MSFILTER_ESCHESDO_HXX -#define INCLUDED_FILTER_SOURCE_MSFILTER_ESCHESDO_HXX +#pragma once #include <filter/msfilter/escherex.hxx> #include <o3tl/any.hxx> #include <vcl/mapmod.hxx> @@ -139,6 +138,4 @@ public: }; -#endif // INCLUDED_FILTER_SOURCE_MSFILTER_ESCHESDO_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/msfilter/viscache.hxx b/filter/source/msfilter/viscache.hxx index e669423ebfc9..5111969b3f9e 100644 --- a/filter/source/msfilter/viscache.hxx +++ b/filter/source/msfilter/viscache.hxx @@ -16,8 +16,7 @@ * 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_FILTER_SOURCE_MSFILTER_VISCACHE_HXX -#define INCLUDED_FILTER_SOURCE_MSFILTER_VISCACHE_HXX +#pragma once #include <memory> #include <sfx2/objsh.hxx> @@ -50,6 +49,4 @@ public: void Write( SvStream & rStm ); }; -#endif // INCLUDED_FILTER_SOURCE_MSFILTER_VISCACHE_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/pdf/impdialog.hxx b/filter/source/pdf/impdialog.hxx index 17fb57890655..b11ee000a970 100644 --- a/filter/source/pdf/impdialog.hxx +++ b/filter/source/pdf/impdialog.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_PDF_IMPDIALOG_HXX -#define INCLUDED_FILTER_SOURCE_PDF_IMPDIALOG_HXX +#pragma once #include <sfx2/tabdlg.hxx> @@ -414,6 +413,4 @@ public: void SetFilterConfigItem( const ImpPDFTabDialog* paParent ); }; -#endif // INCLUDED_FILTER_SOURCE_PDF_IMPDIALOG_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/pdf/pdfdialog.hxx b/filter/source/pdf/pdfdialog.hxx index 463307a857f2..40f0d361215b 100644 --- a/filter/source/pdf/pdfdialog.hxx +++ b/filter/source/pdf/pdfdialog.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_PDF_PDFDIALOG_HXX -#define INCLUDED_FILTER_SOURCE_PDF_PDFDIALOG_HXX +#pragma once #include <svtools/genericunodialog.hxx> @@ -72,6 +71,4 @@ public: virtual ~PDFDialog() override; }; -#endif // INCLUDED_FILTER_SOURCE_PDF_PDFDIALOG_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/pdf/pdfexport.hxx b/filter/source/pdf/pdfexport.hxx index 54784cce1abb..967668e7421b 100644 --- a/filter/source/pdf/pdfexport.hxx +++ b/filter/source/pdf/pdfexport.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_PDF_PDFEXPORT_HXX -#define INCLUDED_FILTER_SOURCE_PDF_PDFEXPORT_HXX +#pragma once #include <tools/multisel.hxx> #include <vcl/pdfwriter.hxx> @@ -143,6 +142,4 @@ public: void showErrors( const std::set<vcl::PDFWriter::ErrorCode>& ); }; -#endif // INCLUDED_FILTER_SOURCE_PDF_PDFEXPORT_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/pdf/pdffilter.hxx b/filter/source/pdf/pdffilter.hxx index afd2b6d571be..28869272c1e8 100644 --- a/filter/source/pdf/pdffilter.hxx +++ b/filter/source/pdf/pdffilter.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_PDF_PDFFILTER_HXX -#define INCLUDED_FILTER_SOURCE_PDF_PDFFILTER_HXX +#pragma once #include <com/sun/star/document/XFilter.hpp> #include <com/sun/star/document/XExporter.hpp> @@ -67,7 +66,5 @@ public: virtual ~PDFFilter() override; }; -#endif // INCLUDED_FILTER_SOURCE_PDF_PDFFILTER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/pdf/pdfinteract.hxx b/filter/source/pdf/pdfinteract.hxx index 9ad7405a3f56..0af5c260b9ea 100644 --- a/filter/source/pdf/pdfinteract.hxx +++ b/filter/source/pdf/pdfinteract.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_PDF_PDFINTERACT_HXX -#define INCLUDED_FILTER_SOURCE_PDF_PDFINTERACT_HXX +#pragma once #include <cppuhelper/implbase.hxx> @@ -59,6 +58,4 @@ public: virtual ~PDFInteractionHandler() override; }; -#endif // INCLUDED_FILTER_SOURCE_PDF_PDFINTERACT_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/storagefilterdetect/filterdetect.hxx b/filter/source/storagefilterdetect/filterdetect.hxx index 27556f376297..0b7849f2d979 100644 --- a/filter/source/storagefilterdetect/filterdetect.hxx +++ b/filter/source/storagefilterdetect/filterdetect.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_STORAGEFILTERDETECT_FILTERDETECT_HXX -#define INCLUDED_FILTER_SOURCE_STORAGEFILTERDETECT_FILTERDETECT_HXX +#pragma once #include <com/sun/star/document/XExtendedFilterDetection.hpp> #include <com/sun/star/lang/XInitialization.hpp> @@ -54,6 +53,4 @@ public: }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/svg/svgfilter.hxx b/filter/source/svg/svgfilter.hxx index 69a90d6e070d..4c2f8229922b 100644 --- a/filter/source/svg/svgfilter.hxx +++ b/filter/source/svg/svgfilter.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_SVG_SVGFILTER_HXX -#define INCLUDED_FILTER_SOURCE_SVG_SVGFILTER_HXX +#pragma once #include <memory> @@ -314,6 +313,4 @@ public: virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; }; -#endif // INCLUDED_FILTER_SOURCE_SVG_SVGFILTER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/svg/svgfontexport.hxx b/filter/source/svg/svgfontexport.hxx index 8b9f5440fa40..c5f6bd2411db 100644 --- a/filter/source/svg/svgfontexport.hxx +++ b/filter/source/svg/svgfontexport.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_SVG_SVGFONTEXPORT_HXX -#define INCLUDED_FILTER_SOURCE_SVG_SVGFONTEXPORT_HXX +#pragma once #include <sal/config.h> @@ -70,6 +69,4 @@ public: OUString GetMappedFontName( const OUString& rFontName ) const; }; -#endif // INCLUDED_FILTER_SOURCE_SVG_SVGFONTEXPORT_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/svg/svgwriter.hxx b/filter/source/svg/svgwriter.hxx index 993d1162fcf3..30799453c616 100644 --- a/filter/source/svg/svgwriter.hxx +++ b/filter/source/svg/svgwriter.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_SVG_SVGWRITER_HXX -#define INCLUDED_FILTER_SOURCE_SVG_SVGWRITER_HXX +#pragma once #include <cppuhelper/implbase.hxx> #include <rtl/ustring.hxx> @@ -402,6 +401,4 @@ public: virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; }; -#endif // INCLUDED_FILTER_SOURCE_SVG_SVGWRITER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/svg/test/odfserializer.hxx b/filter/source/svg/test/odfserializer.hxx index 8bce673b40a2..2724c9f0a57d 100644 --- a/filter/source/svg/test/odfserializer.hxx +++ b/filter/source/svg/test/odfserializer.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_SVG_TEST_ODFSERIALIZER_HXX -#define INCLUDED_FILTER_SOURCE_SVG_TEST_ODFSERIALIZER_HXX +#pragma once #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/xml/sax/XDocumentHandler.hpp> @@ -31,6 +30,4 @@ css::uno::Reference<css::xml::sax::XDocumentHandler> createSerializer(const css::uno::Reference<css::io::XOutputStream>&); } -#endif // INCLUDED_FILTER_SOURCE_SVG_TEST_ODFSERIALIZER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/t602/t602filter.hxx b/filter/source/t602/t602filter.hxx index 7ac81429a2c2..e9ec3a58e4e3 100644 --- a/filter/source/t602/t602filter.hxx +++ b/filter/source/t602/t602filter.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_T602_T602FILTER_HXX -#define INCLUDED_FILTER_SOURCE_T602_T602FILTER_HXX +#pragma once #include <com/sun/star/document/XFilter.hpp> #include <com/sun/star/document/XImporter.hpp> @@ -252,6 +251,4 @@ private: } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/textfilterdetect/filterdetect.hxx b/filter/source/textfilterdetect/filterdetect.hxx index 64a65aa440f1..a981d869faec 100644 --- a/filter/source/textfilterdetect/filterdetect.hxx +++ b/filter/source/textfilterdetect/filterdetect.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_TEXTFILTERDETECT_FILTERDETECT_HXX -#define INCLUDED_FILTER_SOURCE_TEXTFILTERDETECT_FILTERDETECT_HXX +#pragma once #include <com/sun/star/document/XExtendedFilterDetection.hpp> #include <com/sun/star/lang/XInitialization.hpp> @@ -57,6 +56,4 @@ OUString PlainTextFilterDetect_getImplementationName(); css::uno::Sequence<OUString> PlainTextFilterDetect_getSupportedServiceNames(); -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/xmlfilteradaptor/XmlFilterAdaptor.hxx b/filter/source/xmlfilteradaptor/XmlFilterAdaptor.hxx index e6b97f041db3..43db4e939ba7 100644 --- a/filter/source/xmlfilteradaptor/XmlFilterAdaptor.hxx +++ b/filter/source/xmlfilteradaptor/XmlFilterAdaptor.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_XMLFILTERADAPTOR_XMLFILTERADAPTOR_HXX -#define INCLUDED_FILTER_SOURCE_XMLFILTERADAPTOR_XMLFILTERADAPTOR_HXX +#pragma once #include <com/sun/star/document/XFilter.hpp> @@ -103,6 +102,4 @@ public: }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/xmlfilterdetect/filterdetect.hxx b/filter/source/xmlfilterdetect/filterdetect.hxx index 9ba2121810ed..61b6dfaf53ee 100644 --- a/filter/source/xmlfilterdetect/filterdetect.hxx +++ b/filter/source/xmlfilterdetect/filterdetect.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_XMLFILTERDETECT_FILTERDETECT_HXX -#define INCLUDED_FILTER_SOURCE_XMLFILTERDETECT_FILTERDETECT_HXX +#pragma once #include <com/sun/star/document/XExtendedFilterDetection.hpp> #include <com/sun/star/lang/XInitialization.hpp> @@ -56,6 +55,4 @@ public: virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/xsltdialog/typedetectionexport.hxx b/filter/source/xsltdialog/typedetectionexport.hxx index b38b3306dca6..a253540bb673 100644 --- a/filter/source/xsltdialog/typedetectionexport.hxx +++ b/filter/source/xsltdialog/typedetectionexport.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_XSLTDIALOG_TYPEDETECTIONEXPORT_HXX -#define INCLUDED_FILTER_SOURCE_XSLTDIALOG_TYPEDETECTIONEXPORT_HXX +#pragma once #include <com/sun/star/xml/sax/XWriter.hpp> #include <com/sun/star/io/XOutputStream.hpp> @@ -39,6 +38,4 @@ private: css::uno::Reference< css::uno::XComponentContext > mxContext; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/xsltdialog/typedetectionimport.hxx b/filter/source/xsltdialog/typedetectionimport.hxx index 1771eef77e5e..3b69ef9afb22 100644 --- a/filter/source/xsltdialog/typedetectionimport.hxx +++ b/filter/source/xsltdialog/typedetectionimport.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FILTER_SOURCE_XSLTDIALOG_TYPEDETECTIONIMPORT_HXX -#define INCLUDED_FILTER_SOURCE_XSLTDIALOG_TYPEDETECTIONIMPORT_HXX +#pragma once #include <com/sun/star/io/XInputStream.hpp> #include <cppuhelper/implbase.hxx> @@ -89,6 +88,5 @@ private: OUString maNodeName; OUString maPropertyName; }; -#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/xsltdialog/xmlfiltercommon.hxx b/filter/source/xsltdialog/xmlfiltercommon.hxx index 53f9592b76b0..9a65974f2606 100644 --- a/filter/source/xsltdialog/xmlfiltercommon.hxx +++ b/filter/source/xsltdialog/xmlfiltercommon.hxx @@ -16,8 +16,7 @@ * 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_FILTER_SOURCE_XSLTDIALOG_XMLFILTERCOMMON_HXX -#define INCLUDED_FILTER_SOURCE_XSLTDIALOG_XMLFILTERCOMMON_HXX +#pragma once #include <com/sun/star/io/XInputStream.hpp> #include <com/sun/star/io/XOutputStream.hpp> @@ -80,6 +79,4 @@ extern OUString getApplicationUIName( std::u16string_view rServiceName ); extern const application_info_impl* getApplicationInfo( std::u16string_view rServiceName ); OUString XsltResId(const char* pId); -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/xsltdialog/xmlfilterjar.hxx b/filter/source/xsltdialog/xmlfilterjar.hxx index 7e469fb202fb..6f02e5f99de0 100644 --- a/filter/source/xsltdialog/xmlfilterjar.hxx +++ b/filter/source/xsltdialog/xmlfilterjar.hxx @@ -16,8 +16,7 @@ * 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_FILTER_SOURCE_XSLTDIALOG_XMLFILTERJAR_HXX -#define INCLUDED_FILTER_SOURCE_XSLTDIALOG_XMLFILTERJAR_HXX +#pragma once #include <com/sun/star/container/XHierarchicalNameAccess.hpp> #include <com/sun/star/lang/XSingleServiceFactory.hpp> @@ -49,6 +48,4 @@ private: OUString sProgPath; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/xsltdialog/xmlfiltersettingsdialog.hxx b/filter/source/xsltdialog/xmlfiltersettingsdialog.hxx index bfef03b29e28..114d32d12e21 100644 --- a/filter/source/xsltdialog/xmlfiltersettingsdialog.hxx +++ b/filter/source/xsltdialog/xmlfiltersettingsdialog.hxx @@ -16,8 +16,7 @@ * 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_FILTER_SOURCE_XSLTDIALOG_XMLFILTERSETTINGSDIALOG_HXX -#define INCLUDED_FILTER_SOURCE_XSLTDIALOG_XMLFILTERSETTINGSDIALOG_HXX +#pragma once #include <com/sun/star/container/XNameContainer.hpp> #include <com/sun/star/uno/XComponentContext.hpp> @@ -95,6 +94,4 @@ private: std::unique_ptr<weld::TreeView> m_xFilterListBox; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/xsltdialog/xmlfiltertabdialog.hxx b/filter/source/xsltdialog/xmlfiltertabdialog.hxx index 05d576103924..e764102b01f7 100644 --- a/filter/source/xsltdialog/xmlfiltertabdialog.hxx +++ b/filter/source/xsltdialog/xmlfiltertabdialog.hxx @@ -16,8 +16,7 @@ * 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_FILTER_SOURCE_XSLTDIALOG_XMLFILTERTABDIALOG_HXX -#define INCLUDED_FILTER_SOURCE_XSLTDIALOG_XMLFILTERTABDIALOG_HXX +#pragma once #include <com/sun/star/uno/XComponentContext.hpp> #include <vcl/weld.hxx> @@ -52,6 +51,4 @@ private: }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/xsltdialog/xmlfiltertabpagebasic.hxx b/filter/source/xsltdialog/xmlfiltertabpagebasic.hxx index e3b96e51550c..c11a4c69ef04 100644 --- a/filter/source/xsltdialog/xmlfiltertabpagebasic.hxx +++ b/filter/source/xsltdialog/xmlfiltertabpagebasic.hxx @@ -16,8 +16,7 @@ * 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_FILTER_SOURCE_XSLTDIALOG_XMLFILTERTABPAGEBASIC_HXX -#define INCLUDED_FILTER_SOURCE_XSLTDIALOG_XMLFILTERTABPAGEBASIC_HXX +#pragma once #include <vcl/weld.hxx> @@ -41,6 +40,4 @@ public: std::unique_ptr<weld::TextView> m_xEDDescription; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/xsltdialog/xmlfiltertabpagexslt.hxx b/filter/source/xsltdialog/xmlfiltertabpagexslt.hxx index 142c27a119f2..8eed194b849f 100644 --- a/filter/source/xsltdialog/xmlfiltertabpagexslt.hxx +++ b/filter/source/xsltdialog/xmlfiltertabpagexslt.hxx @@ -16,8 +16,7 @@ * 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_FILTER_SOURCE_XSLTDIALOG_XMLFILTERTABPAGEXSLT_HXX -#define INCLUDED_FILTER_SOURCE_XSLTDIALOG_XMLFILTERTABPAGEXSLT_HXX +#pragma once #include <vcl/weld.hxx> #include <svtools/inettbc.hxx> @@ -55,6 +54,4 @@ public: std::unique_ptr<weld::CheckButton> m_xCBNeedsXSLT2; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/xsltdialog/xmlfiltertestdialog.hxx b/filter/source/xsltdialog/xmlfiltertestdialog.hxx index 4bf66989346b..bce1e19e1d3e 100644 --- a/filter/source/xsltdialog/xmlfiltertestdialog.hxx +++ b/filter/source/xsltdialog/xmlfiltertestdialog.hxx @@ -16,8 +16,7 @@ * 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_FILTER_SOURCE_XSLTDIALOG_XMLFILTERTESTDIALOG_HXX -#define INCLUDED_FILTER_SOURCE_XSLTDIALOG_XMLFILTERTESTDIALOG_HXX +#pragma once #include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/document/XDocumentEventBroadcaster.hpp> @@ -79,6 +78,4 @@ private: std::unique_ptr<weld::Button> m_xPBClose; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/xsltfilter/LibXSLTTransformer.hxx b/filter/source/xsltfilter/LibXSLTTransformer.hxx index ac922a4598f5..6da4a11e1adb 100644 --- a/filter/source/xsltfilter/LibXSLTTransformer.hxx +++ b/filter/source/xsltfilter/LibXSLTTransformer.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_FILTER_SOURCE_XSLTFILTER_LIBXSLTTRANSFORMER_HXX -#define INCLUDED_FILTER_SOURCE_XSLTFILTER_LIBXSLTTRANSFORMER_HXX +#pragma once #include <deque> #include <map> @@ -180,5 +179,4 @@ namespace XSLT }; } -#endif // INCLUDED_FILTER_SOURCE_XSLTFILTER_LIBXSLTTRANSFORMER_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/xsltfilter/OleHandler.hxx b/filter/source/xsltfilter/OleHandler.hxx index 1fd00aa39ab7..485541ee1f3b 100644 --- a/filter/source/xsltfilter/OleHandler.hxx +++ b/filter/source/xsltfilter/OleHandler.hxx @@ -8,8 +8,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_FILTER_SOURCE_XSLTFILTER_OLEHANDLER_HXX -#define INCLUDED_FILTER_SOURCE_XSLTFILTER_OLEHANDLER_HXX +#pragma once #include <cstdio> #include <cstring> #include <map> @@ -90,6 +89,4 @@ namespace XSLT }; } -#endif // INCLUDED_FILTER_SOURCE_XSLTFILTER_OLEHANDLER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |