2010-10-27 13:03:58 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2004-11-16 11:22:36 +00:00
|
|
|
|
2013-11-05 01:43:03 +01:00
|
|
|
#ifndef INCLUDED_UNOXML_SOURCE_DOM_DOMIMPLEMENTATION_HXX
|
|
|
|
#define INCLUDED_UNOXML_SOURCE_DOM_DOMIMPLEMENTATION_HXX
|
2004-11-16 11:22:36 +00:00
|
|
|
|
|
|
|
#include <sal/types.h>
|
2011-01-19 20:27:24 +01:00
|
|
|
|
2004-11-16 11:22:36 +00:00
|
|
|
#include <com/sun/star/uno/Reference.h>
|
|
|
|
#include <com/sun/star/xml/dom/XDocument.hpp>
|
|
|
|
#include <com/sun/star/xml/dom/XDocumentType.hpp>
|
|
|
|
#include <com/sun/star/xml/dom/XDOMImplementation.hpp>
|
2011-01-19 20:27:24 +01:00
|
|
|
|
|
|
|
#include <cppuhelper/implbase1.hxx>
|
|
|
|
|
2004-11-16 11:22:36 +00:00
|
|
|
namespace DOM
|
|
|
|
{
|
2011-01-19 20:27:24 +01:00
|
|
|
class CDOMImplementation
|
2014-05-21 12:18:36 +02:00
|
|
|
: public cppu::WeakImplHelper1< css::xml::dom::XDOMImplementation >
|
2004-11-16 11:22:36 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
static CDOMImplementation* get();
|
|
|
|
|
2011-01-19 20:27:24 +01:00
|
|
|
// there is just 1 static instance, so these must not delete it!
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL acquire() throw () SAL_OVERRIDE;
|
|
|
|
virtual void SAL_CALL release() throw () SAL_OVERRIDE;
|
2011-01-19 20:27:24 +01:00
|
|
|
|
2004-11-16 11:22:36 +00:00
|
|
|
/**
|
|
|
|
Creates a DOM Document object of the specified type with its document element.
|
|
|
|
*/
|
2014-05-21 12:18:36 +02:00
|
|
|
virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL createDocument(const OUString& namespaceURI, const OUString& qualifiedName, const css::uno::Reference< css::xml::dom::XDocumentType >& doctype)
|
|
|
|
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2004-11-16 11:22:36 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Creates an empty DocumentType node.
|
|
|
|
*/
|
2014-05-21 12:18:36 +02:00
|
|
|
virtual css::uno::Reference< css::xml::dom::XDocumentType > SAL_CALL createDocumentType(const OUString& qualifiedName, const OUString& publicId, const OUString& systemId)
|
|
|
|
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2004-11-16 11:22:36 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Test if the DOM implementation implements a specific feature.
|
|
|
|
*/
|
|
|
|
virtual sal_Bool SAL_CALL hasFeature(const OUString& feature, const OUString& ver)
|
2014-05-21 12:18:36 +02:00
|
|
|
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2004-11-16 11:22:36 +00:00
|
|
|
};
|
|
|
|
}
|
2006-06-19 23:45:42 +00:00
|
|
|
#endif
|
2010-10-27 13:03:58 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|