tdf#143148 Use #pragma once instead of include guards
Replace include guards to pragma once in some header files in sw/inc/ Change-Id: I8e790a89ab2326748590d7a1ff2d1daee0ae0f4b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175191 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
committed by
Ilmari Lauhakangas
parent
250e00a51d
commit
80e8375828
@@ -17,8 +17,7 @@
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#ifndef INCLUDED_SW_INC_ISHELLCURSORSUPPLIER_HXX
|
||||
#define INCLUDED_SW_INC_ISHELLCURSORSUPPLIER_HXX
|
||||
#pragma once
|
||||
|
||||
class SwCursor;
|
||||
|
||||
@@ -38,6 +37,4 @@ public:
|
||||
|
||||
} // namespace sw
|
||||
|
||||
#endif // INCLUDED_SW_INC_ISHELLCURSORSUPPLIER_HXX
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -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_SW_INC_PAGECOLUMNPOPUP_HXX
|
||||
#define INCLUDED_SW_INC_PAGECOLUMNPOPUP_HXX
|
||||
#pragma once
|
||||
|
||||
#include <svtools/popupwindowcontroller.hxx>
|
||||
|
||||
@@ -38,6 +37,4 @@ public:
|
||||
virtual void SAL_CALL initialize(const css::uno::Sequence<css::uno::Any>& rArguments) override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -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_SW_INC_PAGEMARGINPOPUP_HXX
|
||||
#define INCLUDED_SW_INC_PAGEMARGINPOPUP_HXX
|
||||
#pragma once
|
||||
|
||||
#include <svtools/popupwindowcontroller.hxx>
|
||||
|
||||
@@ -38,6 +37,4 @@ public:
|
||||
virtual void SAL_CALL initialize(const css::uno::Sequence<css::uno::Any>& rArguments) override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -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_SW_INC_PAGEORIENTATIONPOPUP_HXX
|
||||
#define INCLUDED_SW_INC_PAGEORIENTATIONPOPUP_HXX
|
||||
#pragma once
|
||||
|
||||
#include <svtools/popupwindowcontroller.hxx>
|
||||
|
||||
@@ -38,6 +37,4 @@ public:
|
||||
virtual void SAL_CALL initialize(const css::uno::Sequence<css::uno::Any>& rArguments) override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -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_SW_INC_PAGESIZEPOPUP_HXX
|
||||
#define INCLUDED_SW_INC_PAGESIZEPOPUP_HXX
|
||||
#pragma once
|
||||
|
||||
#include <svtools/popupwindowcontroller.hxx>
|
||||
|
||||
@@ -38,6 +37,4 @@ public:
|
||||
virtual void SAL_CALL initialize(const css::uno::Sequence<css::uno::Any>& rArguments) override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -16,9 +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_SW_INC_POSTITMGR_HXX
|
||||
#define INCLUDED_SW_INC_POSTITMGR_HXX
|
||||
#pragma once
|
||||
|
||||
#include <sal/config.h>
|
||||
#include "swdllapi.h"
|
||||
@@ -256,6 +254,4 @@ class SAL_DLLPUBLIC_RTTI SwPostItMgr final : public SfxListener,
|
||||
sw::sidebarwindows::SidebarPosition GetSidebarPos(const Point& rPointLogic);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -16,9 +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_SW_INC_SWAPPLETIMPL_HXX
|
||||
#define INCLUDED_SW_INC_SWAPPLETIMPL_HXX
|
||||
#pragma once
|
||||
|
||||
#include <config_java.h>
|
||||
|
||||
@@ -62,6 +60,5 @@ public:
|
||||
const OUString& GetAltText() const { return m_sAlt; }
|
||||
void SetAltText( const OUString& rAlt ) {m_sAlt = rAlt;}
|
||||
};
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -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_SW_INC_SWCAPCONFIGPROP_HXX
|
||||
#define INCLUDED_SW_INC_SWCAPCONFIGPROP_HXX
|
||||
#pragma once
|
||||
|
||||
enum CapConfigProp
|
||||
{
|
||||
@@ -33,6 +32,4 @@ enum CapConfigProp
|
||||
PROP_CAP_OBJECT_APPLYATTRIBUTES, //9
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -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_SW_INC_SWCAPOBJTYPE_HXX
|
||||
#define INCLUDED_SW_INC_SWCAPOBJTYPE_HXX
|
||||
#pragma once
|
||||
|
||||
enum SwCapObjType
|
||||
{
|
||||
@@ -27,6 +26,4 @@ enum SwCapObjType
|
||||
OLE_CAP
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -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_SW_INC_SWDOCIDLE_HXX
|
||||
#define INCLUDED_SW_INC_SWDOCIDLE_HXX
|
||||
#pragma once
|
||||
|
||||
#include <vcl/idle.hxx>
|
||||
|
||||
@@ -46,6 +45,4 @@ public:
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -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_SW_INC_SWGETPOOLIDFROMNAME_HXX
|
||||
#define INCLUDED_SW_INC_SWGETPOOLIDFROMNAME_HXX
|
||||
#pragma once
|
||||
|
||||
#include <sal/types.h>
|
||||
|
||||
@@ -35,6 +34,4 @@ enum class SwGetPoolIdFromName : sal_uInt16
|
||||
CellStyle = 0x40
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -16,9 +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_SW_INC_SWNODENUM_HXX
|
||||
#define INCLUDED_SW_INC_SWNODENUM_HXX
|
||||
#pragma once
|
||||
|
||||
#include "SwNumberTree.hxx"
|
||||
|
||||
@@ -96,6 +94,4 @@ private:
|
||||
virtual void NotifyNode() override;
|
||||
};
|
||||
|
||||
#endif // INCLUDED_SW_INC_SWNODENUM_HXX
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -16,9 +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_SW_INC_SWNUMBERTREETYPES_HXX
|
||||
#define INCLUDED_SW_INC_SWNUMBERTREETYPES_HXX
|
||||
#pragma once
|
||||
|
||||
#include <tools/long.hxx>
|
||||
#include <vector>
|
||||
@@ -29,6 +27,4 @@ typedef tools::Long tSwNumTreeNumber;
|
||||
typedef std::vector<tSwNumTreeNumber> tNumberVector;
|
||||
}
|
||||
|
||||
#endif // INCLUDED_SW_INC_SWNUMBERTREETYPES_HXX
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -16,9 +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_SW_INC_SWREWRITER_HXX
|
||||
#define INCLUDED_SW_INC_SWREWRITER_HXX
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <rtl/ustring.hxx>
|
||||
@@ -47,6 +45,4 @@ public:
|
||||
static OUString GetPlaceHolder(SwUndoArg eId);
|
||||
};
|
||||
|
||||
#endif // INCLUDED_SW_INC_SWREWRITER_HXX
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -16,9 +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_SW_INC_SWSMARTTAGMGR_HXX
|
||||
#define INCLUDED_SW_INC_SWSMARTTAGMGR_HXX
|
||||
#pragma once
|
||||
|
||||
#include <svx/SmartTagMgr.hxx>
|
||||
#include <rtl/ref.hxx>
|
||||
@@ -42,6 +40,4 @@ public:
|
||||
virtual void SAL_CALL changesOccurred(const css::util::ChangesEvent& Event) override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -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_SW_INC_SWSTYLENAMEMAPPER_HXX
|
||||
#define INCLUDED_SW_INC_SWSTYLENAMEMAPPER_HXX
|
||||
#pragma once
|
||||
|
||||
#include <sal/types.h>
|
||||
#include <rtl/ustring.hxx>
|
||||
@@ -153,6 +152,5 @@ public:
|
||||
static const std::vector<OUString>& GetTableStyleProgNameArray();
|
||||
static const std::vector<OUString>& GetCellStyleProgNameArray();
|
||||
};
|
||||
#endif // _NAME_MAPPER_HXX
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -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_SW_INC_SWUNDOFIELD_HXX
|
||||
#define INCLUDED_SW_INC_SWUNDOFIELD_HXX
|
||||
#pragma once
|
||||
|
||||
#include "undobj.hxx"
|
||||
|
||||
@@ -80,6 +79,4 @@ public:
|
||||
virtual void RepeatImpl( ::sw::RepeatContext & ) override;
|
||||
};
|
||||
|
||||
#endif // INCLUDED_SW_INC_SWUNDOFIELD_HXX
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -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_SW_INC_SWXMLSECTIONLIST_HXX
|
||||
#define INCLUDED_SW_INC_SWXMLSECTIONLIST_HXX
|
||||
#pragma once
|
||||
|
||||
#include <xmloff/xmlimp.hxx>
|
||||
|
||||
@@ -37,6 +36,4 @@ private:
|
||||
const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList ) override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -6,9 +6,7 @@
|
||||
* 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/.
|
||||
*/
|
||||
|
||||
#ifndef SW_TOXLINKPROCESSOR_HXX_
|
||||
#define SW_TOXLINKPROCESSOR_HXX_
|
||||
#pragma once
|
||||
|
||||
#include "fmtinfmt.hxx"
|
||||
#include <rtl/ustring.hxx>
|
||||
@@ -91,6 +89,4 @@ private:
|
||||
|
||||
}
|
||||
|
||||
#endif /* SW_TOXLINKPROCESSOR_HXX_ */
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -7,9 +7,7 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef TOXTABSTOPTOKENHANDLER_HXX_
|
||||
#define TOXTABSTOPTOKENHANDLER_HXX_
|
||||
#pragma once
|
||||
|
||||
#include <rtl/ustring.hxx>
|
||||
|
||||
@@ -115,6 +113,4 @@ private:
|
||||
|
||||
}
|
||||
|
||||
#endif /* TOXTABSTOPTOKENHANDLER_HXX_ */
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -17,8 +17,7 @@
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#ifndef SW_TOXTEXTGENERATOR_HXX_
|
||||
#define SW_TOXTEXTGENERATOR_HXX_
|
||||
#pragma once
|
||||
|
||||
#include <rtl/ustring.hxx>
|
||||
#include <sal/types.h>
|
||||
@@ -171,6 +170,4 @@ private:
|
||||
|
||||
}
|
||||
|
||||
#endif /* SW_TOXTEXTGENERATOR_HXX_ */
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#ifndef TOXWHITESPACESTRIPPER_HXX_
|
||||
#define TOXWHITESPACESTRIPPER_HXX_
|
||||
#pragma once
|
||||
|
||||
#include <rtl/ustring.hxx>
|
||||
#include <vector>
|
||||
@@ -44,4 +43,4 @@ private:
|
||||
|
||||
} // end namespace sw
|
||||
|
||||
#endif /* TOXWHITESPACESTRIPPER_HXX_ */
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -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_SW_INC_UNDOPARAGRAPHSIGNATURE_HXX
|
||||
#define INCLUDED_SW_INC_UNDOPARAGRAPHSIGNATURE_HXX
|
||||
#pragma once
|
||||
|
||||
#include "undobj.hxx"
|
||||
#include <rtl/ustring.hxx>
|
||||
@@ -61,6 +60,4 @@ private:
|
||||
void Remove();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
Reference in New Issue
Block a user