summaryrefslogtreecommitdiff
path: root/unoxml/source/events
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2011-01-19 20:27:25 +0100
committerMichael Stahl <mst@openoffice.org>2011-01-19 20:27:25 +0100
commitdde336f8f0357f39a8547fc8b05c09672df816bf (patch)
treeabac41912042e94e83838654b71249aa4463dfdd /unoxml/source/events
parent3ba96ffc4bef4a6fa710c178b0bbda217293b9dc (diff)
xmlfix3: unoxml: refactor XPath results a little:
replace Reference<XNode> with Reference<CDocument>. also remove all using namespace css::lang, due to conflicts.
Diffstat (limited to 'unoxml/source/events')
-rw-r--r--unoxml/source/events/testlistener.cxx4
-rw-r--r--unoxml/source/events/testlistener.hxx19
2 files changed, 18 insertions, 5 deletions
diff --git a/unoxml/source/events/testlistener.cxx b/unoxml/source/events/testlistener.cxx
index 64806c84017d..a493aefb55f8 100644
--- a/unoxml/source/events/testlistener.cxx
+++ b/unoxml/source/events/testlistener.cxx
@@ -33,6 +33,10 @@
#define U2S(s) OUStringToOString(s, RTL_TEXTENCODING_UTF8).getStr()
+using ::com::sun::star::lang::XMultiServiceFactory;
+using ::com::sun::star::lang::IllegalArgumentException;
+
+
namespace DOM { namespace events
{
diff --git a/unoxml/source/events/testlistener.hxx b/unoxml/source/events/testlistener.hxx
index f404f2dc48bb..1d96edefca34 100644
--- a/unoxml/source/events/testlistener.hxx
+++ b/unoxml/source/events/testlistener.hxx
@@ -47,19 +47,24 @@
using ::rtl::OUString;
using namespace com::sun::star::uno;
-using namespace com::sun::star::lang;
using namespace com::sun::star::xml::dom;
using namespace com::sun::star::xml::dom::events;
namespace DOM { namespace events
{
+ typedef ::cppu::WeakImplHelper3
+ < ::com::sun::star::xml::dom::events::XEventListener
+ , ::com::sun::star::lang::XInitialization
+ , ::com::sun::star::lang::XServiceInfo
+ > CTestListener_Base;
+
class CTestListener
- : public ::cppu::WeakImplHelper3< com::sun::star::xml::dom::events::XEventListener, XInitialization, XServiceInfo >
+ : public CTestListener_Base
{
private:
- Reference< XMultiServiceFactory > m_factory;
+ Reference< ::com::sun::star::lang::XMultiServiceFactory > m_factory;
Reference <XEventTarget> m_target;
OUString m_type;
sal_Bool m_capture;
@@ -72,9 +77,13 @@ namespace DOM { namespace events
static const char* aSupportedServiceNames[];
static OUString _getImplementationName();
static Sequence< OUString > _getSupportedServiceNames();
- static Reference< XInterface > _getInstance(const Reference< XMultiServiceFactory >& rSMgr);
+ static Reference< XInterface > _getInstance(
+ const Reference< ::com::sun::star::lang::XMultiServiceFactory >&
+ rSMgr);
- CTestListener(const Reference< XMultiServiceFactory >& rSMgr)
+ CTestListener(
+ const Reference< ::com::sun::star::lang::XMultiServiceFactory >&
+ rSMgr)
: m_factory(rSMgr){};
virtual ~CTestListener();