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 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SW_INC_IDOCUMENTCHARTDATAPROVIDERACCESS_HXX
#define INCLUDED_SW_INC_IDOCUMENTCHARTDATAPROVIDERACCESS_HXX
#ifndef INCLUDED_SW_INC_IDOCUMENTCHARTDATAPROVIDERACCESS_HXX
#define INCLUDED_SW_INC_IDOCUMENTCHARTDATAPROVIDERACCESS_HXX
#include <com/sun/star/uno/Reference.hxx>
......@@ -30,11 +30,11 @@ class SwTable;
class SwChartDataProvider;
class SwChartLockController_Helper;
/** Give access to the data-provider for chart
/** Give access to the data-provider for chart
*/
class IDocumentChartDataProviderAccess
{
public:
class IDocumentChartDataProviderAccess
{
public:
/**
returns or creates the data-provider for chart
......@@ -52,10 +52,10 @@ class SwChartLockController_Helper;
*/
virtual SwChartLockController_Helper & GetChartControllerHelper() = 0;
protected:
protected:
virtual ~IDocumentChartDataProviderAccess() {};
};
};
#endif // INCLUDED_SW_INC_IDOCUMENTCHARTDATAPROVIDERACCESS_HXX
#endif // INCLUDED_SW_INC_IDOCUMENTCHARTDATAPROVIDERACCESS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -17,20 +17,20 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SW_INC_IDOCUMENTDEVICEACCESS_HXX
#define INCLUDED_SW_INC_IDOCUMENTDEVICEACCESS_HXX
#ifndef INCLUDED_SW_INC_IDOCUMENTDEVICEACCESS_HXX
#define INCLUDED_SW_INC_IDOCUMENTDEVICEACCESS_HXX
class SfxPrinter;
class JobSetup;
class SwPrintData;
class VirtualDevice;
class OutputDevice;
class SfxPrinter;
class JobSetup;
class SwPrintData;
class VirtualDevice;
class OutputDevice;
/** Provides access to the formatting devices of a document
/** Provides access to the formatting devices of a document
*/
class IDocumentDeviceAccess
{
public:
class IDocumentDeviceAccess
{
public:
/** Return the printer set at the document.
......@@ -130,10 +130,10 @@
*/
virtual void setPrintData(/*[in]*/ const SwPrintData& rPrtData) = 0;
protected:
protected:
virtual ~IDocumentDeviceAccess() {};
};
};
#endif // INCLUDED_SW_INC_IDOCUMENTDEVICEACCESS_HXX
#endif // INCLUDED_SW_INC_IDOCUMENTDEVICEACCESS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -17,23 +17,23 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SW_INC_IDOCUMENTLINENUMBERACCESS_HXX
#define INCLUDED_SW_INC_IDOCUMENTLINENUMBERACCESS_HXX
#ifndef INCLUDED_SW_INC_IDOCUMENTLINENUMBERACCESS_HXX
#define INCLUDED_SW_INC_IDOCUMENTLINENUMBERACCESS_HXX
#include <sal/types.h>
#include <sal/types.h>
class SwLineNumberInfo;
/** Access to the line number information
/** Access to the line number information
*/
class IDocumentLineNumberAccess
{
public:
class IDocumentLineNumberAccess
{
public:
virtual const SwLineNumberInfo& GetLineNumberInfo() const = 0;
virtual void SetLineNumberInfo(const SwLineNumberInfo& rInfo) = 0;
protected:
protected:
virtual ~IDocumentLineNumberAccess() {};
};
......
......@@ -17,25 +17,25 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SW_INC_IDOCUMENTREDLINEACCESS_HXX
#define INCLUDED_SW_INC_IDOCUMENTREDLINEACCESS_HXX
#ifndef INCLUDED_SW_INC_IDOCUMENTREDLINEACCESS_HXX
#define INCLUDED_SW_INC_IDOCUMENTREDLINEACCESS_HXX
#include <sal/types.h>
#include <tools/solar.h>
#include <sal/types.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 SwTableRowRedline;
class SwTableCellRedline;
class SwRedlineTbl;
class SwExtraRedlineTbl;
class SwPaM;
struct SwPosition;
class SwStartNode;
class SwNode;
class SwRangeRedline;
class SwTableRowRedline;
class SwTableCellRedline;
class SwRedlineTbl;
class SwExtraRedlineTbl;
class SwPaM;
struct SwPosition;
class SwStartNode;
class SwNode;
typedef sal_uInt16 RedlineMode_t;
namespace nsRedlineMode_t
......@@ -203,10 +203,10 @@ public:
virtual void SetRedlinePassword(
/*[in]*/const ::com::sun::star::uno::Sequence <sal_Int8>& rNewPassword) = 0;
protected:
protected:
virtual ~IDocumentRedlineAccess() {};
};
};
#endif
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -17,16 +17,16 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SW_INC_IDOCUMENTSTATE_HXX
#define INCLUDED_SW_INC_IDOCUMENTSTATE_HXX
#ifndef 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
{
public:
class IDocumentState
{
public:
/** Must be called manually at changes of format.
*/
virtual void SetModified() = 0;
......@@ -56,10 +56,10 @@
virtual void SetLoaded(bool b = true) = 0;
protected:
protected:
virtual ~IDocumentState() {};
};
};
#endif // INCLUDED_SW_INC_IDOCUMENTSTATE_HXX
#endif // INCLUDED_SW_INC_IDOCUMENTSTATE_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -17,16 +17,16 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SW_INC_IDOCUMENTSTATISTICS_HXX
#define INCLUDED_SW_INC_IDOCUMENTSTATISTICS_HXX
#ifndef INCLUDED_SW_INC_IDOCUMENTSTATISTICS_HXX
#define INCLUDED_SW_INC_IDOCUMENTSTATISTICS_HXX
struct SwDocStat;
struct SwDocStat;
/** Document statistics information
/** Document statistics information
*/
class IDocumentStatistics
{
public:
class IDocumentStatistics
{
public:
/** DocInfo has changed (notify via DocShell):
make required fields update.
......@@ -60,8 +60,8 @@
protected:
virtual ~IDocumentStatistics() {};
};
};
#endif // INCLUDED_SW_INC_IDOCUMENTSTATISTICS_HXX
#endif // INCLUDED_SW_INC_IDOCUMENTSTATISTICS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -17,23 +17,23 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SW_INC_IDOCUMENTSTYLEPOOLACCESS_HXX
#define INCLUDED_SW_INC_IDOCUMENTSTYLEPOOLACCESS_HXX
#ifndef INCLUDED_SW_INC_IDOCUMENTSTYLEPOOLACCESS_HXX
#define INCLUDED_SW_INC_IDOCUMENTSTYLEPOOLACCESS_HXX
#include <sal/types.h>
#include <sal/types.h>
class SwTxtFmtColl;
class SwCharFmt;
class SwFmt;
class SwFrmFmt;
class SwNumRule;
class SwPageDesc;
class SwTxtFmtColl;
class SwCharFmt;
class SwFmt;
class SwFrmFmt;
class SwNumRule;
class SwPageDesc;
/** Access to the style pool
/** Access to the style pool
*/
class IDocumentStylePoolAccess
{
public:
class IDocumentStylePoolAccess
{
public:
/** Return "Auto-Collection with ID.
Create, if it does not yet exist.
......@@ -64,7 +64,7 @@
virtual bool IsPoolFmtUsed( sal_uInt16 nId ) const = 0;
virtual bool IsPoolPageDescUsed( sal_uInt16 nId ) const = 0;
protected:
protected:
virtual ~IDocumentStylePoolAccess() {};
};
......
......@@ -17,15 +17,15 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SW_INC_IDOCUMENTTIMERACCESS_HXX
#define INCLUDED_SW_INC_IDOCUMENTTIMERACCESS_HXX
#ifndef 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.
*/
class IDocumentTimerAccess
{
public:
class IDocumentTimerAccess
{
public:
/**
Set modus to 'start'.
*/
......@@ -55,10 +55,10 @@
*/
virtual void StartBackgroundJobs() = 0;
protected:
protected:
virtual ~IDocumentTimerAccess() {};
};
};
#endif // INCLUDED_SW_INC_IDOCUMENTTIMERACCESS_HXX
#endif // INCLUDED_SW_INC_IDOCUMENTTIMERACCESS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -17,16 +17,16 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SW_INC_IINTERFACE_HXX
#define INCLUDED_SW_INC_IINTERFACE_HXX
#ifndef 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
{
public:
class IInterface
{
public:
/** Acquire a reference to an instance. A caller shall release
the instance by calling 'release' when it is no longer needed.
......@@ -54,8 +54,8 @@
protected:
virtual ~IInterface() {};
};
};
#endif // IDOCUMENT_HXX_INCLUDED
#endif // INCLUDED_SW_INC_IINTERFACE_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -7,6 +7,9 @@
* 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/frame/Desktop.hpp>
#include <com/sun/star/packages/zip/ZipFileAccess.hpp>
......@@ -642,4 +645,6 @@ inline void assertBorderEqual(
#define CPPUNIT_ASSERT_BORDER_EQUAL(aExpected, aActual) \
assertBorderEqual( aExpected, aActual, CPPUNIT_SOURCELINE() ) \
#endif // INCLUDED_SW_QA_EXTRAS_INC_SWMODELTESTBASE_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -16,6 +16,10 @@
* 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_SOURCE_FILTER_WW1_W1CLASS_HXX
#define INCLUDED_SW_SOURCE_FILTER_WW1_W1CLASS_HXX
#include <rtl/ustring.hxx>
// local
......@@ -1482,4 +1486,6 @@ public:
Ww1Fields* = 0);
};
#endif // INCLUDED_SW_SOURCE_FILTER_WW1_W1CLASS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -17,6 +17,9 @@
* 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 <rtl/ustring.hxx>
......@@ -107,4 +110,6 @@ public:
};
}
#endif // INCLUDED_SW_SOURCE_FILTER_WW8_WW8FFDATA_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -17,6 +17,9 @@
* 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 <boost/shared_ptr.hpp>
#include <boost/shared_array.hpp>
......@@ -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: */
......@@ -7,6 +7,9 @@
* 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>
class Edit;
......@@ -27,4 +30,6 @@ public:
const OUString& rUIXMLDescription);
};
#endif // INCLUDED_SW_SOURCE_UIBASE_INC_SWMESSDIALOG_HXX
/* 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