summaryrefslogtreecommitdiffstats
path: root/unoxml/source/dom/documentbuilder.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'unoxml/source/dom/documentbuilder.hxx')
-rw-r--r--unoxml/source/dom/documentbuilder.hxx42
1 files changed, 25 insertions, 17 deletions
diff --git a/unoxml/source/dom/documentbuilder.hxx b/unoxml/source/dom/documentbuilder.hxx
index 2b53796b41da..3cb47696da96 100644
--- a/unoxml/source/dom/documentbuilder.hxx
+++ b/unoxml/source/dom/documentbuilder.hxx
@@ -26,16 +26,17 @@
*
************************************************************************/
-#ifndef _DOCUMENTBUILDER_HXX
-#define _DOCUMENTBUILDER_HXX
+#ifndef DOM_DOCUMENTBUILDER_HXX
+#define DOM_DOCUMENTBUILDER_HXX
#include <sal/types.h>
+
#include <cppuhelper/implbase2.hxx>
+
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/uno/Sequence.h>
#include <com/sun/star/uno/XInterface.hpp>
-#include <com/sun/star/uno/Exception.hpp>
#include <com/sun/star/xml/dom/XDocumentBuilder.hpp>
#include <com/sun/star/xml/dom/XDocument.hpp>
#include <com/sun/star/xml/dom/XDOMImplementation.hpp>
@@ -45,10 +46,8 @@
#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/io/IOException.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#include "libxml/tree.h"
using ::rtl::OUString;
using namespace com::sun::star::uno;
@@ -59,28 +58,41 @@ using namespace com::sun::star::io;
namespace DOM
{
- class CDocumentBuilder
- : public ::cppu::WeakImplHelper2< XDocumentBuilder, XServiceInfo >
+ typedef ::cppu::WeakImplHelper2
+ < XDocumentBuilder
+ , ::com::sun::star::lang::XServiceInfo
+ > CDocumentBuilder_Base;
+
+ class CDocumentBuilder
+ : public CDocumentBuilder_Base
{
private:
- Reference< XMultiServiceFactory > m_aFactory;
- Reference< XEntityResolver > m_aEntityResolver;
- Reference< XErrorHandler > m_aErrorHandler;
+ ::osl::Mutex m_Mutex;
+ Reference< ::com::sun::star::lang::XMultiServiceFactory > const
+ m_xFactory;
+ Reference< XEntityResolver > m_xEntityResolver;
+ Reference< XErrorHandler > m_xErrorHandler;
public:
// ctor
- CDocumentBuilder(const Reference< XMultiServiceFactory >& xFactory);
+ CDocumentBuilder(
+ Reference< ::com::sun::star::lang::XMultiServiceFactory > const&
+ xFactory);
// call for factory
- static Reference< XInterface > getInstance(const Reference < XMultiServiceFactory >& xFactory);
+ static Reference< XInterface > getInstance(
+ Reference< ::com::sun::star::lang::XMultiServiceFactory > const&
+ xFactory);
// static helpers for service info and component management
static const char* aImplementationName;
static const char* aSupportedServiceNames[];
static OUString _getImplementationName();
static Sequence< OUString > _getSupportedServiceNames();
- static Reference< XInterface > _getInstance(const Reference< XMultiServiceFactory >& rSMgr);
+ static Reference< XInterface > _getInstance(
+ Reference< ::com::sun::star::lang::XMultiServiceFactory > const&
+ rSMgr);
// XServiceInfo
virtual OUString SAL_CALL getImplementationName()
@@ -131,10 +143,6 @@ namespace DOM
virtual Reference< XDocument > SAL_CALL parseURI(const OUString& uri)
throw (RuntimeException, SAXParseException, IOException);
- virtual Reference< XDocument > SAL_CALL parseSource(const InputSource& is)
- throw (RuntimeException, SAXParseException, IOException);
-
-
/**
Specify the EntityResolver to be used to resolve entities present
in the XML document to be parsed.