#ifndef _COM_SUN_STAR_XML_DOM_XDOCUMENT_HPP_
#define _COM_SUN_STAR_XML_DOM_XDOCUMENT_HPP_

#ifndef _SAL_CONFIG_H_
#include "sal/config.h"
#endif

#ifndef _COM_SUN_STAR_XML_DOM_XDOCUMENT_HDL_
#include "com/sun/star/xml/dom/XDocument.hdl"
#endif

#ifndef _COM_SUN_STAR_XML_DOM_DOMEXCEPTION_HPP_
#include "com/sun/star/xml/dom/DOMException.hpp"
#endif
#ifndef _COM_SUN_STAR_XML_DOM_XCDATASECTION_HPP_
#include "com/sun/star/xml/dom/XCDATASection.hpp"
#endif
#ifndef _COM_SUN_STAR_XML_DOM_XDOMIMPLEMENTATION_HPP_
#include "com/sun/star/xml/dom/XDOMImplementation.hpp"
#endif
#ifndef _COM_SUN_STAR_XML_DOM_XATTR_HPP_
#include "com/sun/star/xml/dom/XAttr.hpp"
#endif
#ifndef _COM_SUN_STAR_XML_DOM_XDOCUMENTFRAGMENT_HPP_
#include "com/sun/star/xml/dom/XDocumentFragment.hpp"
#endif
#ifndef _COM_SUN_STAR_XML_DOM_XDOCUMENTTYPE_HPP_
#include "com/sun/star/xml/dom/XDocumentType.hpp"
#endif
#ifndef _COM_SUN_STAR_XML_DOM_XTEXT_HPP_
#include "com/sun/star/xml/dom/XText.hpp"
#endif
#ifndef _COM_SUN_STAR_UNO_RUNTIMEEXCEPTION_HPP_
#include "com/sun/star/uno/RuntimeException.hpp"
#endif
#ifndef _COM_SUN_STAR_XML_DOM_XPROCESSINGINSTRUCTION_HPP_
#include "com/sun/star/xml/dom/XProcessingInstruction.hpp"
#endif
#ifndef _COM_SUN_STAR_XML_DOM_XCOMMENT_HPP_
#include "com/sun/star/xml/dom/XComment.hpp"
#endif
#ifndef _COM_SUN_STAR_XML_DOM_XNODELIST_HPP_
#include "com/sun/star/xml/dom/XNodeList.hpp"
#endif
#ifndef _COM_SUN_STAR_XML_DOM_XENTITYREFERENCE_HPP_
#include "com/sun/star/xml/dom/XEntityReference.hpp"
#endif
#ifndef _COM_SUN_STAR_XML_DOM_XELEMENT_HPP_
#include "com/sun/star/xml/dom/XElement.hpp"
#endif
#ifndef _COM_SUN_STAR_XML_DOM_XNODE_HPP_
#include "com/sun/star/xml/dom/XNode.hpp"
#endif
#ifndef _COM_SUN_STAR_UNO_REFERENCE_HXX_
#include "com/sun/star/uno/Reference.hxx"
#endif
#ifndef _COM_SUN_STAR_UNO_TYPE_HXX_
#include "com/sun/star/uno/Type.hxx"
#endif
#ifndef INCLUDED_CPPU_UNOTYPE_HXX
#include "cppu/unotype.hxx"
#endif
#ifndef _OSL_MUTEX_HXX_
#include "osl/mutex.hxx"
#endif
#ifndef _RTL_USTRING_HXX_
#include "rtl/ustring.hxx"
#endif
#ifndef _SAL_TYPES_H_
#include "sal/types.h"
#endif

namespace com { namespace sun { namespace star { namespace xml { namespace dom {

inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(::com::sun::star::xml::dom::XDocument const *) {
    static typelib_TypeDescriptionReference * the_type = 0;
    if ( !the_type )
    {
        typelib_static_type_init( &the_type, typelib_TypeClass_INTERFACE, "com.sun.star.xml.dom.XDocument" );
    }
    return * reinterpret_cast< ::com::sun::star::uno::Type * >( &the_type );
};

} } } } }

inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XDocument > const *) SAL_THROW(()) {
    return ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XDocument > >::get();
}

::com::sun::star::uno::Type const & ::com::sun::star::xml::dom::XDocument::static_type(void *) {
    return ::getCppuType(static_cast< ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XDocument > * >(0));
}

#endif // _COM_SUN_STAR_XML_DOM_XDOCUMENT_HPP_
