Kaydet (Commit) dcb32a33 authored tarafından Jens Carl's avatar Jens Carl Kaydeden (comit) Thomas Arnhold

fdo#68849: Add header guards to all include files

Added header guards to files in directory sw/

Change-Id: I5859f986c6f954d41a7940dc9ae8febaa714d34f
Reviewed-on: https://gerrit.libreoffice.org/9587Reviewed-by: 's avatarThomas Arnhold <thomas@arnhold.org>
Tested-by: 's avatarThomas Arnhold <thomas@arnhold.org>
üst 6c3245fc
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#ifndef INCLUDED_SW_INC_IDOCUMENTCHARTDATAPROVIDERACCESS_HXX #ifndef INCLUDED_SW_INC_IDOCUMENTCHARTDATAPROVIDERACCESS_HXX
#define INCLUDED_SW_INC_IDOCUMENTCHARTDATAPROVIDERACCESS_HXX #define INCLUDED_SW_INC_IDOCUMENTCHARTDATAPROVIDERACCESS_HXX
#include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/Reference.hxx>
...@@ -30,11 +30,11 @@ class SwTable; ...@@ -30,11 +30,11 @@ class SwTable;
class SwChartDataProvider; class SwChartDataProvider;
class SwChartLockController_Helper; class SwChartLockController_Helper;
/** Give access to the data-provider for chart /** Give access to the data-provider for chart
*/ */
class IDocumentChartDataProviderAccess class IDocumentChartDataProviderAccess
{ {
public: public:
/** /**
returns or creates the data-provider for chart returns or creates the data-provider for chart
...@@ -52,10 +52,10 @@ class SwChartLockController_Helper; ...@@ -52,10 +52,10 @@ class SwChartLockController_Helper;
*/ */
virtual SwChartLockController_Helper & GetChartControllerHelper() = 0; virtual SwChartLockController_Helper & GetChartControllerHelper() = 0;
protected: protected:
virtual ~IDocumentChartDataProviderAccess() {}; virtual ~IDocumentChartDataProviderAccess() {};
}; };
#endif // INCLUDED_SW_INC_IDOCUMENTCHARTDATAPROVIDERACCESS_HXX #endif // INCLUDED_SW_INC_IDOCUMENTCHARTDATAPROVIDERACCESS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -17,20 +17,20 @@ ...@@ -17,20 +17,20 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#ifndef INCLUDED_SW_INC_IDOCUMENTDEVICEACCESS_HXX #ifndef INCLUDED_SW_INC_IDOCUMENTDEVICEACCESS_HXX
#define INCLUDED_SW_INC_IDOCUMENTDEVICEACCESS_HXX #define INCLUDED_SW_INC_IDOCUMENTDEVICEACCESS_HXX
class SfxPrinter; class SfxPrinter;
class JobSetup; class JobSetup;
class SwPrintData; class SwPrintData;
class VirtualDevice; class VirtualDevice;
class OutputDevice; class OutputDevice;
/** Provides access to the formatting devices of a document /** Provides access to the formatting devices of a document
*/ */
class IDocumentDeviceAccess class IDocumentDeviceAccess
{ {
public: public:
/** Return the printer set at the document. /** Return the printer set at the document.
...@@ -130,10 +130,10 @@ ...@@ -130,10 +130,10 @@
*/ */
virtual void setPrintData(/*[in]*/ const SwPrintData& rPrtData) = 0; virtual void setPrintData(/*[in]*/ const SwPrintData& rPrtData) = 0;
protected: protected:
virtual ~IDocumentDeviceAccess() {}; virtual ~IDocumentDeviceAccess() {};
}; };
#endif // INCLUDED_SW_INC_IDOCUMENTDEVICEACCESS_HXX #endif // INCLUDED_SW_INC_IDOCUMENTDEVICEACCESS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -17,23 +17,23 @@ ...@@ -17,23 +17,23 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#ifndef INCLUDED_SW_INC_IDOCUMENTLINENUMBERACCESS_HXX #ifndef INCLUDED_SW_INC_IDOCUMENTLINENUMBERACCESS_HXX
#define INCLUDED_SW_INC_IDOCUMENTLINENUMBERACCESS_HXX #define INCLUDED_SW_INC_IDOCUMENTLINENUMBERACCESS_HXX
#include <sal/types.h> #include <sal/types.h>
class SwLineNumberInfo; class SwLineNumberInfo;
/** Access to the line number information /** Access to the line number information
*/ */
class IDocumentLineNumberAccess class IDocumentLineNumberAccess
{ {
public: public:
virtual const SwLineNumberInfo& GetLineNumberInfo() const = 0; virtual const SwLineNumberInfo& GetLineNumberInfo() const = 0;
virtual void SetLineNumberInfo(const SwLineNumberInfo& rInfo) = 0; virtual void SetLineNumberInfo(const SwLineNumberInfo& rInfo) = 0;
protected: protected:
virtual ~IDocumentLineNumberAccess() {}; virtual ~IDocumentLineNumberAccess() {};
}; };
......
...@@ -17,25 +17,25 @@ ...@@ -17,25 +17,25 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#ifndef INCLUDED_SW_INC_IDOCUMENTREDLINEACCESS_HXX #ifndef INCLUDED_SW_INC_IDOCUMENTREDLINEACCESS_HXX
#define INCLUDED_SW_INC_IDOCUMENTREDLINEACCESS_HXX #define INCLUDED_SW_INC_IDOCUMENTREDLINEACCESS_HXX
#include <sal/types.h> #include <sal/types.h>
#include <tools/solar.h> #include <tools/solar.h>
#include <limits.h> #include <limits.h>
#include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/uno/Sequence.hxx>
class SwRangeRedline; class SwRangeRedline;
class SwTableRowRedline; class SwTableRowRedline;
class SwTableCellRedline; class SwTableCellRedline;
class SwRedlineTbl; class SwRedlineTbl;
class SwExtraRedlineTbl; class SwExtraRedlineTbl;
class SwPaM; class SwPaM;
struct SwPosition; struct SwPosition;
class SwStartNode; class SwStartNode;
class SwNode; class SwNode;
typedef sal_uInt16 RedlineMode_t; typedef sal_uInt16 RedlineMode_t;
namespace nsRedlineMode_t namespace nsRedlineMode_t
...@@ -203,10 +203,10 @@ public: ...@@ -203,10 +203,10 @@ public:
virtual void SetRedlinePassword( virtual void SetRedlinePassword(
/*[in]*/const ::com::sun::star::uno::Sequence <sal_Int8>& rNewPassword) = 0; /*[in]*/const ::com::sun::star::uno::Sequence <sal_Int8>& rNewPassword) = 0;
protected: protected:
virtual ~IDocumentRedlineAccess() {}; virtual ~IDocumentRedlineAccess() {};
}; };
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -17,16 +17,16 @@ ...@@ -17,16 +17,16 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#ifndef INCLUDED_SW_INC_IDOCUMENTSTATE_HXX #ifndef INCLUDED_SW_INC_IDOCUMENTSTATE_HXX
#define INCLUDED_SW_INC_IDOCUMENTSTATE_HXX #define INCLUDED_SW_INC_IDOCUMENTSTATE_HXX
#include <tools/solar.h> #include <tools/solar.h>
/** Get information about the current document state /** Get information about the current document state
*/ */
class IDocumentState class IDocumentState
{ {
public: public:
/** Must be called manually at changes of format. /** Must be called manually at changes of format.
*/ */
virtual void SetModified() = 0; virtual void SetModified() = 0;
...@@ -56,10 +56,10 @@ ...@@ -56,10 +56,10 @@
virtual void SetLoaded(bool b = true) = 0; virtual void SetLoaded(bool b = true) = 0;
protected: protected:
virtual ~IDocumentState() {}; virtual ~IDocumentState() {};
}; };
#endif // INCLUDED_SW_INC_IDOCUMENTSTATE_HXX #endif // INCLUDED_SW_INC_IDOCUMENTSTATE_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -17,16 +17,16 @@ ...@@ -17,16 +17,16 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#ifndef INCLUDED_SW_INC_IDOCUMENTSTATISTICS_HXX #ifndef INCLUDED_SW_INC_IDOCUMENTSTATISTICS_HXX
#define INCLUDED_SW_INC_IDOCUMENTSTATISTICS_HXX #define INCLUDED_SW_INC_IDOCUMENTSTATISTICS_HXX
struct SwDocStat; struct SwDocStat;
/** Document statistics information /** Document statistics information
*/ */
class IDocumentStatistics class IDocumentStatistics
{ {
public: public:
/** DocInfo has changed (notify via DocShell): /** DocInfo has changed (notify via DocShell):
make required fields update. make required fields update.
...@@ -60,8 +60,8 @@ ...@@ -60,8 +60,8 @@
protected: protected:
virtual ~IDocumentStatistics() {}; virtual ~IDocumentStatistics() {};
}; };
#endif // INCLUDED_SW_INC_IDOCUMENTSTATISTICS_HXX #endif // INCLUDED_SW_INC_IDOCUMENTSTATISTICS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -17,23 +17,23 @@ ...@@ -17,23 +17,23 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#ifndef INCLUDED_SW_INC_IDOCUMENTSTYLEPOOLACCESS_HXX #ifndef INCLUDED_SW_INC_IDOCUMENTSTYLEPOOLACCESS_HXX
#define INCLUDED_SW_INC_IDOCUMENTSTYLEPOOLACCESS_HXX #define INCLUDED_SW_INC_IDOCUMENTSTYLEPOOLACCESS_HXX
#include <sal/types.h> #include <sal/types.h>
class SwTxtFmtColl; class SwTxtFmtColl;
class SwCharFmt; class SwCharFmt;
class SwFmt; class SwFmt;
class SwFrmFmt; class SwFrmFmt;
class SwNumRule; class SwNumRule;
class SwPageDesc; class SwPageDesc;
/** Access to the style pool /** Access to the style pool
*/ */
class IDocumentStylePoolAccess class IDocumentStylePoolAccess
{ {
public: public:
/** Return "Auto-Collection with ID. /** Return "Auto-Collection with ID.
Create, if it does not yet exist. Create, if it does not yet exist.
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
virtual bool IsPoolFmtUsed( sal_uInt16 nId ) const = 0; virtual bool IsPoolFmtUsed( sal_uInt16 nId ) const = 0;
virtual bool IsPoolPageDescUsed( sal_uInt16 nId ) const = 0; virtual bool IsPoolPageDescUsed( sal_uInt16 nId ) const = 0;
protected: protected:
virtual ~IDocumentStylePoolAccess() {}; virtual ~IDocumentStylePoolAccess() {};
}; };
......
...@@ -17,15 +17,15 @@ ...@@ -17,15 +17,15 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#ifndef INCLUDED_SW_INC_IDOCUMENTTIMERACCESS_HXX #ifndef INCLUDED_SW_INC_IDOCUMENTTIMERACCESS_HXX
#define INCLUDED_SW_INC_IDOCUMENTTIMERACCESS_HXX #define INCLUDED_SW_INC_IDOCUMENTTIMERACCESS_HXX
/** Manipulate background jobs of the document. It starts with a mode of /** Manipulate background jobs of the document. It starts with a mode of
'started' and a block count of 0. 'started' and a block count of 0.
*/ */
class IDocumentTimerAccess class IDocumentTimerAccess
{ {
public: public:
/** /**
Set modus to 'start'. Set modus to 'start'.
*/ */
...@@ -55,10 +55,10 @@ ...@@ -55,10 +55,10 @@
*/ */
virtual void StartBackgroundJobs() = 0; virtual void StartBackgroundJobs() = 0;
protected: protected:
virtual ~IDocumentTimerAccess() {}; virtual ~IDocumentTimerAccess() {};
}; };
#endif // INCLUDED_SW_INC_IDOCUMENTTIMERACCESS_HXX #endif // INCLUDED_SW_INC_IDOCUMENTTIMERACCESS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -17,16 +17,16 @@ ...@@ -17,16 +17,16 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#ifndef INCLUDED_SW_INC_IINTERFACE_HXX #ifndef INCLUDED_SW_INC_IINTERFACE_HXX
#define INCLUDED_SW_INC_IINTERFACE_HXX #define INCLUDED_SW_INC_IINTERFACE_HXX
#include <sal/types.h> #include <sal/types.h>
/** The base interface /** The base interface
*/ */
class IInterface class IInterface
{ {
public: public:
/** Acquire a reference to an instance. A caller shall release /** Acquire a reference to an instance. A caller shall release
the instance by calling 'release' when it is no longer needed. the instance by calling 'release' when it is no longer needed.
...@@ -54,8 +54,8 @@ ...@@ -54,8 +54,8 @@
protected: protected:
virtual ~IInterface() {}; virtual ~IInterface() {};
}; };
#endif // IDOCUMENT_HXX_INCLUDED #endif // INCLUDED_SW_INC_IINTERFACE_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ */
#ifndef INCLUDED_SW_QA_EXTRAS_INC_SWMODELTESTBASE_HXX
#define INCLUDED_SW_QA_EXTRAS_INC_SWMODELTESTBASE_HXX
#include <com/sun/star/container/XContentEnumerationAccess.hpp> #include <com/sun/star/container/XContentEnumerationAccess.hpp>
#include <com/sun/star/frame/Desktop.hpp> #include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/packages/zip/ZipFileAccess.hpp> #include <com/sun/star/packages/zip/ZipFileAccess.hpp>
...@@ -642,4 +645,6 @@ inline void assertBorderEqual( ...@@ -642,4 +645,6 @@ inline void assertBorderEqual(
#define CPPUNIT_ASSERT_BORDER_EQUAL(aExpected, aActual) \ #define CPPUNIT_ASSERT_BORDER_EQUAL(aExpected, aActual) \
assertBorderEqual( aExpected, aActual, CPPUNIT_SOURCELINE() ) \ assertBorderEqual( aExpected, aActual, CPPUNIT_SOURCELINE() ) \
#endif // INCLUDED_SW_QA_EXTRAS_INC_SWMODELTESTBASE_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
* except in compliance with the License. You may obtain a copy of * except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#ifndef INCLUDED_SW_SOURCE_FILTER_WW1_W1CLASS_HXX
#define INCLUDED_SW_SOURCE_FILTER_WW1_W1CLASS_HXX
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
// local // local
...@@ -1482,4 +1486,6 @@ public: ...@@ -1482,4 +1486,6 @@ public:
Ww1Fields* = 0); Ww1Fields* = 0);
}; };
#endif // INCLUDED_SW_SOURCE_FILTER_WW1_W1CLASS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -17,6 +17,9 @@ ...@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#ifndef INCLUDED_SW_SOURCE_FILTER_WW8_WW8FFDATA_HXX
#define INCLUDED_SW_SOURCE_FILTER_WW8_WW8FFDATA_HXX
#include <vector> #include <vector>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
...@@ -107,4 +110,6 @@ public: ...@@ -107,4 +110,6 @@ public:
}; };
} }
#endif // INCLUDED_SW_SOURCE_FILTER_WW8_WW8FFDATA_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -17,6 +17,9 @@ ...@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#ifndef INCLUDED_SW_SOURCE_FILTER_WW8_WW8STTBF_HXX
#define INCLUDED_SW_SOURCE_FILTER_WW8_WW8STTBF_HXX
#include <vector> #include <vector>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include <boost/shared_array.hpp> #include <boost/shared_array.hpp>
...@@ -135,4 +138,6 @@ typedef ::std::vector<OUString> StringVector_t; ...@@ -135,4 +138,6 @@ typedef ::std::vector<OUString> StringVector_t;
} }
} }
#endif // INCLUDED_SW_SOURCE_FILTER_WW8_WW8STTBF_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ */
#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_SWMESSDIALOG_HXX
#define INCLUDED_SW_SOURCE_UIBASE_INC_SWMESSDIALOG_HXX
#include <vcl/dialog.hxx> #include <vcl/dialog.hxx>
class Edit; class Edit;
...@@ -27,4 +30,6 @@ public: ...@@ -27,4 +30,6 @@ public:
const OUString& rUIXMLDescription); const OUString& rUIXMLDescription);
}; };
#endif // INCLUDED_SW_SOURCE_UIBASE_INC_SWMESSDIALOG_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment