summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2009-12-05 19:29:07 +0100
committerMathias Bauer <mba@openoffice.org>2009-12-05 19:29:07 +0100
commit82f5d55a7fe4f1f384fdadc9f042d22e4ae831d5 (patch)
treecd5877d0f8d6de7331751be15e19fefdfa56b803 /unoxml
parent671da1be6241df933be87a263e36ca10b9137021 (diff)
parent7ab6cb224dcfb37aaad31731c3d73ee063af3b8f (diff)
merge to m67
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/dom/node.cxx6
-rw-r--r--unoxml/source/dom/node.hxx10
2 files changed, 14 insertions, 2 deletions
diff --git a/unoxml/source/dom/node.cxx b/unoxml/source/dom/node.cxx
index b9e3a6346310..b4841508f9d9 100644
--- a/unoxml/source/dom/node.cxx
+++ b/unoxml/source/dom/node.cxx
@@ -1001,5 +1001,11 @@ namespace DOM
events::CEventDispatcher::dispatchEvent(m_aNodePtr, evt);
return sal_True;
}
+
+ ::sal_Int64 SAL_CALL CNode::getSomething(const Sequence< ::sal_Int8 >& /*aIdentifier*/)
+ throw (RuntimeException)
+ {
+ return sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(m_aNodePtr));
+ }
}
diff --git a/unoxml/source/dom/node.hxx b/unoxml/source/dom/node.hxx
index 51adbd3100be..f70f2c064104 100644
--- a/unoxml/source/dom/node.hxx
+++ b/unoxml/source/dom/node.hxx
@@ -37,9 +37,10 @@
#include <sal/types.h>
#include <sax/fastattribs.hxx>
#include <cppuhelper/implbase1.hxx>
-#include <cppuhelper/implbase2.hxx>
+#include <cppuhelper/implbase3.hxx>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/uno/Exception.hpp>
+#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/xml/dom/XNode.hpp>
#include <com/sun/star/xml/dom/XNodeList.hpp>
#include <com/sun/star/xml/dom/XNamedNodeMap.hpp>
@@ -67,6 +68,8 @@ using namespace com::sun::star::xml::sax;
using namespace com::sun::star::xml::dom;
using namespace com::sun::star::xml::dom::events;
+using com::sun::star::lang::XUnoTunnel;
+
namespace DOM
{
struct Context
@@ -117,7 +120,7 @@ namespace DOM
typedef std::map< const xmlNodePtr, CNode* > nodemap_t;
- class CNode : public cppu::WeakImplHelper2< XNode, XEventTarget >
+ class CNode : public cppu::WeakImplHelper3< XNode, XUnoTunnel, XEventTarget >
{
friend class CDocument;
friend class CElement;
@@ -342,6 +345,9 @@ namespace DOM
virtual sal_Bool SAL_CALL dispatchEvent(const Reference< XEvent >& evt)
throw(RuntimeException, EventException);
+ // --- XUnoTunnel
+ virtual ::sal_Int64 SAL_CALL getSomething(const Sequence< ::sal_Int8 >& aIdentifier)
+ throw (RuntimeException);
};
/// eliminate redundant namespace declarations