summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2014-05-30 05:49:03 +0000
committerNoel Grandin <noelgrandin@gmail.com>2014-05-30 01:45:21 -0500
commit9e3cc6b47444f988a68ca3ddcad779ed0480b00c (patch)
tree51ba26379eda8f674b5db369f99fa4d3fe15052c /include
parentfdo#68849: Add header guards to all include files (diff)
downloadcore-9e3cc6b47444f988a68ca3ddcad779ed0480b00c.tar.gz
core-9e3cc6b47444f988a68ca3ddcad779ed0480b00c.zip
fdo#68849: Add header guards to all include files
Added header guard to files in directories i18npool/, include/, and io/ Change-Id: I7ba5b5f0ffdf5dedb8fd40e8efa06936e7c23591 Reviewed-on: https://gerrit.libreoffice.org/9558 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/avmedia/modeltools.hxx5
-rw-r--r--include/editeng/numdef.hxx5
-rw-r--r--include/editeng/unonames.hxx5
-rw-r--r--include/sfx2/brokenpackageint.hxx5
-rw-r--r--include/sfx2/imagemgr.hxx5
-rw-r--r--include/svtools/sores.hxx5
-rw-r--r--include/toolkit/controls/eventcontainer.hxx4
-rw-r--r--include/vcl/impdel.hxx94
-rw-r--r--include/vcl/threadex.hxx5
-rw-r--r--include/xmloff/languagetagodf.hxx5
10 files changed, 91 insertions, 47 deletions
diff --git a/include/avmedia/modeltools.hxx b/include/avmedia/modeltools.hxx
index 3de866dd7f52..d1a84afbe2f2 100644
--- a/include/avmedia/modeltools.hxx
+++ b/include/avmedia/modeltools.hxx
@@ -7,6 +7,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#ifndef INCLUDED_INCLUDE_AVMEDIA_MODELTOOLS_HXX
+#define INCLUDED_INCLUDE_AVMEDIA_MODELTOOLS_HXX
+
#include <rtl/ustring.hxx>
#include <com/sun/star/frame/XModel.hpp>
#include <avmedia/avmediadllapi.h>
@@ -21,4 +24,6 @@ bool AVMEDIA_DLLPUBLIC IsModel(const OUString& rMimeType);
} // namespace avemdia
+#endif // INCLUDED_INCLUDE_AVMEDIA_MODELTOOLS_HXX
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/editeng/numdef.hxx b/include/editeng/numdef.hxx
index 28f94d2d3ae5..8ab423a0c3b6 100644
--- a/include/editeng/numdef.hxx
+++ b/include/editeng/numdef.hxx
@@ -17,7 +17,12 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#ifndef INCLUDED_INCLUDE_EDITENG_NUMDEF_HXX
+#define INCLUDED_INCLUDE_EDITENG_NUMDEF_HXX
+
#define SVX_MAX_NUM 10 // max. possible numbering level
#define SVX_DEF_BULLET (0xF000 + 149)// Character for lists
+#endif // INCLUDED_INCLUDE_EDITENG_NUMDEF_HXX
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/editeng/unonames.hxx b/include/editeng/unonames.hxx
index 3a5984452773..19ed112cc5d2 100644
--- a/include/editeng/unonames.hxx
+++ b/include/editeng/unonames.hxx
@@ -7,6 +7,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#ifndef INCLUDED_INCLUDE_EDITENG_UNONAMES_HXX
+#define INCLUDED_INCLUDE_EDITENG_UNONAMES_HXX
+
// Common across fields
#define UNO_TC_PROP_ANCHOR "Anchor"
#define UNO_TC_PROP_TEXTFIELD_TYPE "TextFieldType"
@@ -40,4 +43,6 @@
#define UNO_TR_PROP_SELECTION "Selection"
+#endif // INCLUDED_INCLUDE_EDITENG_UNONAMES_HXX
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/sfx2/brokenpackageint.hxx b/include/sfx2/brokenpackageint.hxx
index ff78cd74a10f..607c640f780a 100644
--- a/include/sfx2/brokenpackageint.hxx
+++ b/include/sfx2/brokenpackageint.hxx
@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#ifndef INCLUDED_INCLUDE_SFX2_BROKENPACKAGEINT_HXX
+#define INCLUDED_INCLUDE_SFX2_BROKENPACKAGEINT_HXX
+
#include <sal/config.h>
#include <sfx2/dllapi.h>
#include <com/sun/star/document/BrokenPackageRequest.hpp>
@@ -45,4 +48,6 @@ public:
com::sun::star::uno::Reference < ::com::sun::star::task::XInteractionRequest > GetRequest();
};
+#endif // INCLUDED_INCLUDE_SFX2_BROKENPACKAGEINT_HXX
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/sfx2/imagemgr.hxx b/include/sfx2/imagemgr.hxx
index eca3deb4f2c6..c4a4eb193546 100644
--- a/include/sfx2/imagemgr.hxx
+++ b/include/sfx2/imagemgr.hxx
@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#ifndef INCLUDED_INCLUDE_SFX2_IMAGEMGR_HXX
+#define INCLUDED_INCLUDE_SFX2_IMAGEMGR_HXX
+
#include <sal/config.h>
#include <sfx2/dllapi.h>
#include <com/sun/star/uno/Reference.hxx>
@@ -31,4 +34,6 @@ SFX2_DLLPUBLIC Image SAL_CALL GetImage(
bool bBig
);
+#endif // INCLUDED_INCLUDE_SFX2_IMAGEMGR_HXX
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svtools/sores.hxx b/include/svtools/sores.hxx
index 8e9093adb0b4..91d4f5de76ce 100644
--- a/include/svtools/sores.hxx
+++ b/include/svtools/sores.hxx
@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#ifndef INCLUDED_INCLUDE_SVTOOLS_SORES_HXX
+#define INCLUDED_INCLUDE_SVTOOLS_SORES_HXX
+
// Strings
#define STR_ERROR_OBJNOCREATE 32014
#define STR_ERROR_OBJNOCREATE_FROM_FILE 32015
@@ -96,4 +99,6 @@
#define STR_FORMAT_ID_HTML_NO_COMMENT (STR_FORMAT_START + 119)
#define STR_FORMAT_END (STR_FORMAT_ID_HTML_NO_COMMENT)
+#endif // INCLUDED_INCLUDE_SVTOOLS_SORES_HXX
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/toolkit/controls/eventcontainer.hxx b/include/toolkit/controls/eventcontainer.hxx
index ee1e671ffec6..610a43dbd302 100644
--- a/include/toolkit/controls/eventcontainer.hxx
+++ b/include/toolkit/controls/eventcontainer.hxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#ifndef INCLUDED_INCLUDE_TOOLKIT_CONTROLS_EVENTCONTAINER_HXX
+#define INCLUDED_INCLUDE_TOOLKIT_CONTROLS_EVENTCONTAINER_HXX
#include <osl/diagnose.h>
#include <com/sun/star/container/XNameContainer.hpp>
@@ -128,4 +130,6 @@ public:
} // namespace toolkit_namecontainer
+#endif // INCLUDED_INCLUDE_TOOLKIT_CONTROLS_EVENTCONTAINER_HXX
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/vcl/impdel.hxx b/include/vcl/impdel.hxx
index 988d85d624db..54159fcaec09 100644
--- a/include/vcl/impdel.hxx
+++ b/include/vcl/impdel.hxx
@@ -17,65 +17,65 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
- #ifndef INCLUDED_VCL_IMPDEL_HXX
- #define INCLUDED_VCL_IMPDEL_HXX
+#ifndef INCLUDED_VCL_IMPDEL_HXX
+#define INCLUDED_VCL_IMPDEL_HXX
- #include <list>
+#include <list>
- namespace vcl
- {
+namespace vcl
+{
- class DeletionListener;
+class DeletionListener;
- class DeletionNotifier
- {
- std::list< DeletionListener* > m_aListeners;
- protected:
- DeletionNotifier() {}
+class DeletionNotifier
+{
+ std::list< DeletionListener* > m_aListeners;
+ protected:
+ DeletionNotifier() {}
- ~DeletionNotifier()
- { notifyDelete(); }
+ ~DeletionNotifier()
+ { notifyDelete(); }
- inline void notifyDelete();
+ inline void notifyDelete();
- public:
- void addDel( DeletionListener* pListener )
- { m_aListeners.push_back( pListener ); }
+ public:
+ void addDel( DeletionListener* pListener )
+ { m_aListeners.push_back( pListener ); }
- void removeDel( DeletionListener* pListener )
- { m_aListeners.remove( pListener ); }
- };
+ void removeDel( DeletionListener* pListener )
+ { m_aListeners.remove( pListener ); }
+};
- class DeletionListener
- {
- DeletionNotifier* m_pNotifier;
- public:
- DeletionListener( DeletionNotifier* pNotifier )
- : m_pNotifier( pNotifier )
- {
- if( m_pNotifier )
- m_pNotifier->addDel( this );
- }
- ~DeletionListener()
- {
- if( m_pNotifier )
- m_pNotifier->removeDel( this );
- }
- void deleted() { m_pNotifier = NULL; }
- bool isDeleted() const { return (m_pNotifier == NULL); }
- };
+class DeletionListener
+{
+ DeletionNotifier* m_pNotifier;
+ public:
+ DeletionListener( DeletionNotifier* pNotifier )
+ : m_pNotifier( pNotifier )
+ {
+ if( m_pNotifier )
+ m_pNotifier->addDel( this );
+ }
+ ~DeletionListener()
+ {
+ if( m_pNotifier )
+ m_pNotifier->removeDel( this );
+ }
+ void deleted() { m_pNotifier = NULL; }
+ bool isDeleted() const { return (m_pNotifier == NULL); }
+};
- inline void DeletionNotifier::notifyDelete()
- {
- for( std::list< DeletionListener* >::const_iterator it =
- m_aListeners.begin(); it != m_aListeners.end(); ++it )
- (*it)->deleted();
+inline void DeletionNotifier::notifyDelete()
+{
+ for( std::list< DeletionListener* >::const_iterator it =
+ m_aListeners.begin(); it != m_aListeners.end(); ++it )
+ (*it)->deleted();
- m_aListeners.clear();
- }
+ m_aListeners.clear();
+}
- } // namespace vcl
+} // namespace vcl
- #endif // INCLUDED_VCL_IMPDEL_HXX
+#endif // INCLUDED_VCL_IMPDEL_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/vcl/threadex.hxx b/include/vcl/threadex.hxx
index 2b375bc444ac..40bddf6ca3f2 100644
--- a/include/vcl/threadex.hxx
+++ b/include/vcl/threadex.hxx
@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#ifndef INCLUDED_INCLUDE_VCL_THREADEX_HXX
+#define INCLUDED_INCLUDE_VCL_THREADEX_HXX
+
#include <osl/conditn.h>
#include <osl/thread.h>
#include <tools/link.hxx>
@@ -246,4 +249,6 @@ inline typename FuncT::result_type syncExecute( FuncT const& func )
} // namespace solarthread
} // namespace vcl
+#endif // INCLUDED_INCLUDE_VCL_THREADEX_HXX
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/xmloff/languagetagodf.hxx b/include/xmloff/languagetagodf.hxx
index 9eef8e84af8b..559819f4bbe4 100644
--- a/include/xmloff/languagetagodf.hxx
+++ b/include/xmloff/languagetagodf.hxx
@@ -7,6 +7,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#ifndef INCLUDED_INCLUDE_XMLOFF_LANGUAGETAGODF_HXX
+#define INCLUDED_INCLUDE_XMLOFF_LANGUAGETAGODF_HXX
+
#include <sal/config.h>
#include <rtl/ustring.hxx>
#include <i18nlangtag/languagetag.hxx>
@@ -32,4 +35,6 @@ struct LanguageTagODF
LanguageTag getLanguageTag() const { return LanguageTag( maRfcLanguageTag, maLanguage, maScript, maCountry); }
};
+#endif // INCLUDED_INCLUDE_XMLOFF_LANGUAGETAGODF_HXX
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */