Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_XML_DOM_XDOCUMENT_HDL
2 : : #define INCLUDED_COM_SUN_STAR_XML_DOM_XDOCUMENT_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/RuntimeException.hdl"
7 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom { class XDOMImplementation; } } } } }
8 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom { class XNodeList; } } } } }
9 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom { class XDocumentType; } } } } }
10 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom { class XProcessingInstruction; } } } } }
11 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom { class XEntityReference; } } } } }
12 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom { class XElement; } } } } }
13 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom { class XDocumentFragment; } } } } }
14 : : #include "com/sun/star/xml/dom/DOMException.hdl"
15 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom { class XComment; } } } } }
16 : : #include "com/sun/star/xml/dom/XNode.hdl"
17 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom { class XCDATASection; } } } } }
18 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom { class XAttr; } } } } }
19 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom { class XText; } } } } }
20 : : #include "com/sun/star/uno/Reference.h"
21 : : #include "cppu/macros.hxx"
22 : : #include "rtl/ustring.hxx"
23 : : #include "sal/types.h"
24 : :
25 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
26 : :
27 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom {
28 : :
29 : 12369 : class SAL_NO_VTABLE XDocument : public ::com::sun::star::xml::dom::XNode
30 : : {
31 : : public:
32 : :
33 : : // Methods
34 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XAttr > SAL_CALL createAttribute( const ::rtl::OUString& name ) throw (::com::sun::star::xml::dom::DOMException, ::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XAttr > SAL_CALL createAttributeNS( const ::rtl::OUString& namespaceURI, const ::rtl::OUString& qualifiedName ) throw (::com::sun::star::xml::dom::DOMException, ::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XCDATASection > SAL_CALL createCDATASection( const ::rtl::OUString& data ) throw (::com::sun::star::xml::dom::DOMException, ::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XComment > SAL_CALL createComment( const ::rtl::OUString& data ) throw (::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XDocumentFragment > SAL_CALL createDocumentFragment( ) throw (::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XElement > SAL_CALL createElement( const ::rtl::OUString& tagName ) throw (::com::sun::star::xml::dom::DOMException, ::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XElement > SAL_CALL createElementNS( const ::rtl::OUString& namespaceURI, const ::rtl::OUString& qualifiedName ) throw (::com::sun::star::xml::dom::DOMException, ::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XEntityReference > SAL_CALL createEntityReference( const ::rtl::OUString& name ) throw (::com::sun::star::xml::dom::DOMException, ::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XProcessingInstruction > SAL_CALL createProcessingInstruction( const ::rtl::OUString& target, const ::rtl::OUString& data ) throw (::com::sun::star::xml::dom::DOMException, ::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XText > SAL_CALL createTextNode( const ::rtl::OUString& data ) throw (::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XDocumentType > SAL_CALL getDoctype( ) throw (::com::sun::star::uno::RuntimeException) = 0;
45 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XElement > SAL_CALL getDocumentElement( ) throw (::com::sun::star::uno::RuntimeException) = 0;
46 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XElement > SAL_CALL getElementById( const ::rtl::OUString& elementId ) throw (::com::sun::star::uno::RuntimeException) = 0;
47 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNodeList > SAL_CALL getElementsByTagName( const ::rtl::OUString& tagname ) throw (::com::sun::star::uno::RuntimeException) = 0;
48 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNodeList > SAL_CALL getElementsByTagNameNS( const ::rtl::OUString& namespaceURI, const ::rtl::OUString& localName ) throw (::com::sun::star::uno::RuntimeException) = 0;
49 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XDOMImplementation > SAL_CALL getImplementation( ) throw (::com::sun::star::uno::RuntimeException) = 0;
50 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > SAL_CALL importNode( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode >& importedNode, ::sal_Bool deep ) throw (::com::sun::star::xml::dom::DOMException, ::com::sun::star::uno::RuntimeException) = 0;
51 : :
52 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
53 : :
54 : : protected:
55 : 12201 : ~XDocument() throw () {} // avoid warnings about virtual members and non-virtual dtor
56 : : };
57 : :
58 : :
59 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::xml::dom::XDocument const *);
60 : : } } } } }
61 : :
62 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XDocument > *) SAL_THROW(());
63 : :
64 : : #endif
|