Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_XML_DOM_XNODE_HDL
2 : : #define INCLUDED_COM_SUN_STAR_XML_DOM_XNODE_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 XDocument; } } } } }
8 : : #include "com/sun/star/xml/dom/NodeType.hdl"
9 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom { class XNamedNodeMap; } } } } }
10 : : #include "com/sun/star/xml/dom/DOMException.hdl"
11 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom { class XNodeList; } } } } }
12 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom { class XNode; } } } } }
13 : : #include "com/sun/star/uno/XInterface.hdl"
14 : : #include "com/sun/star/uno/Reference.h"
15 : : #include "cppu/macros.hxx"
16 : : #include "rtl/ustring.hxx"
17 : : #include "sal/types.h"
18 : :
19 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
20 : :
21 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom {
22 : :
23 : 360793 : class SAL_NO_VTABLE XNode : public ::com::sun::star::uno::XInterface
24 : : {
25 : : public:
26 : :
27 : : // Methods
28 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > SAL_CALL appendChild( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode >& newChild ) throw (::com::sun::star::xml::dom::DOMException, ::com::sun::star::uno::RuntimeException) = 0;
29 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > SAL_CALL cloneNode( ::sal_Bool deep ) throw (::com::sun::star::uno::RuntimeException) = 0;
30 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNamedNodeMap > SAL_CALL getAttributes( ) throw (::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNodeList > SAL_CALL getChildNodes( ) throw (::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > SAL_CALL getFirstChild( ) throw (::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > SAL_CALL getLastChild( ) throw (::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual ::rtl::OUString SAL_CALL getLocalName( ) throw (::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual ::rtl::OUString SAL_CALL getNamespaceURI( ) throw (::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > SAL_CALL getNextSibling( ) throw (::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual ::rtl::OUString SAL_CALL getNodeName( ) throw (::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual ::com::sun::star::xml::dom::NodeType SAL_CALL getNodeType( ) throw (::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual ::rtl::OUString SAL_CALL getNodeValue( ) 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::XDocument > SAL_CALL getOwnerDocument( ) throw (::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > SAL_CALL getParentNode( ) throw (::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual ::rtl::OUString SAL_CALL getPrefix( ) throw (::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > SAL_CALL getPreviousSibling( ) throw (::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual ::sal_Bool SAL_CALL hasAttributes( ) throw (::com::sun::star::uno::RuntimeException) = 0;
45 : : virtual ::sal_Bool SAL_CALL hasChildNodes( ) throw (::com::sun::star::uno::RuntimeException) = 0;
46 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > SAL_CALL insertBefore( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode >& newChild, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode >& refChild ) throw (::com::sun::star::xml::dom::DOMException, ::com::sun::star::uno::RuntimeException) = 0;
47 : : virtual ::sal_Bool SAL_CALL isSupported( const ::rtl::OUString& feature, const ::rtl::OUString& ver ) throw (::com::sun::star::uno::RuntimeException) = 0;
48 : : virtual void SAL_CALL normalize( ) throw (::com::sun::star::uno::RuntimeException) = 0;
49 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > SAL_CALL removeChild( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode >& oldChild ) throw (::com::sun::star::xml::dom::DOMException, ::com::sun::star::uno::RuntimeException) = 0;
50 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > SAL_CALL replaceChild( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode >& newChild, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode >& oldChild ) throw (::com::sun::star::xml::dom::DOMException, ::com::sun::star::uno::RuntimeException) = 0;
51 : : virtual void SAL_CALL setNodeValue( const ::rtl::OUString& nodeValue ) throw (::com::sun::star::xml::dom::DOMException, ::com::sun::star::uno::RuntimeException) = 0;
52 : : virtual void SAL_CALL setPrefix( const ::rtl::OUString& prefix ) throw (::com::sun::star::xml::dom::DOMException, ::com::sun::star::uno::RuntimeException) = 0;
53 : :
54 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
55 : :
56 : : protected:
57 : 359545 : ~XNode() throw () {} // avoid warnings about virtual members and non-virtual dtor
58 : : };
59 : :
60 : :
61 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::xml::dom::XNode const *);
62 : : } } } } }
63 : :
64 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > *) SAL_THROW(());
65 : :
66 : : #endif
|