summaryrefslogtreecommitdiff
path: root/unoxml/source/dom/domimplementation.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'unoxml/source/dom/domimplementation.hxx')
-rw-r--r--unoxml/source/dom/domimplementation.hxx20
1 files changed, 12 insertions, 8 deletions
diff --git a/unoxml/source/dom/domimplementation.hxx b/unoxml/source/dom/domimplementation.hxx
index e0282fa8e3f4..53895287e59c 100644
--- a/unoxml/source/dom/domimplementation.hxx
+++ b/unoxml/source/dom/domimplementation.hxx
@@ -25,18 +25,18 @@
*
************************************************************************/
-#ifndef _DOMIMPLEMENTATION_HXX
-#define _DOMIMPLEMENTATION_HXX
+#ifndef DOM_DOMIMPLEMENTATION_HXX
+#define DOM_DOMIMPLEMENTATION_HXX
-#include <map>
#include <sal/types.h>
-#include <cppuhelper/implbase1.hxx>
+
#include <com/sun/star/uno/Reference.h>
-#include <com/sun/star/uno/Exception.hpp>
#include <com/sun/star/xml/dom/XDocument.hpp>
#include <com/sun/star/xml/dom/XDocumentType.hpp>
#include <com/sun/star/xml/dom/XDOMImplementation.hpp>
-#include <com/sun/star/xml/dom/XDOMImplementation.hpp>
+
+#include <cppuhelper/implbase1.hxx>
+
using ::rtl::OUString;
using namespace com::sun::star::uno;
@@ -44,13 +44,17 @@ using namespace com::sun::star::xml::dom;
namespace DOM
{
- class CDOMImplementation : public cppu::WeakImplHelper1< XDOMImplementation >
+ class CDOMImplementation
+ : public cppu::WeakImplHelper1< XDOMImplementation >
{
public:
- static CDOMImplementation* aDOMImplementation;
static CDOMImplementation* get();
+ // there is just 1 static instance, so these must not delete it!
+ virtual void SAL_CALL acquire() throw ();
+ virtual void SAL_CALL release() throw ();
+
/**
Creates a DOM Document object of the specified type with its document element.
*/