ContextChangeEventMultiplexer.hxx (b9e67834) ContextChangeEventMultiplexer.hxx (95a18594)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 17 unchanged lines hidden (view full) ---

26
27#include <com/sun/star/ui/XContextChangeEventMultiplexer.hpp>
28
29#include <cppuhelper/compbase3.hxx>
30#include <cppuhelper/basemutex.hxx>
31
32#include "macros/xserviceinfo.hxx"
33
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 17 unchanged lines hidden (view full) ---

26
27#include <com/sun/star/ui/XContextChangeEventMultiplexer.hpp>
28
29#include <cppuhelper/compbase3.hxx>
30#include <cppuhelper/basemutex.hxx>
31
32#include "macros/xserviceinfo.hxx"
33
34#include <map>
35#include <boost/noncopyable.hpp>
36
37
34namespace
35{
36 typedef ::cppu::WeakComponentImplHelper3 <
37 css::ui::XContextChangeEventMultiplexer,
38 css::lang::XSingleComponentFactory,
39 css::lang::XServiceInfo
40 > ContextChangeEventMultiplexerInterfaceBase;
41}

--- 52 unchanged lines hidden (view full) ---

94 throw (cssu::RuntimeException);
95
96 static ::rtl::OUString SAL_CALL impl_getStaticImplementationName (void);
97 static cssu::Reference<cssu::XInterface> SAL_CALL impl_createFactory (
98 const cssu::Reference<cssl::XMultiServiceFactory>& xServiceManager);
99
100private:
101 typedef ::std::vector<cssu::Reference<css::ui::XContextChangeEventListener> > ListenerContainer;
38namespace
39{
40 typedef ::cppu::WeakComponentImplHelper3 <
41 css::ui::XContextChangeEventMultiplexer,
42 css::lang::XSingleComponentFactory,
43 css::lang::XServiceInfo
44 > ContextChangeEventMultiplexerInterfaceBase;
45}

--- 52 unchanged lines hidden (view full) ---

98 throw (cssu::RuntimeException);
99
100 static ::rtl::OUString SAL_CALL impl_getStaticImplementationName (void);
101 static cssu::Reference<cssu::XInterface> SAL_CALL impl_createFactory (
102 const cssu::Reference<cssl::XMultiServiceFactory>& xServiceManager);
103
104private:
105 typedef ::std::vector<cssu::Reference<css::ui::XContextChangeEventListener> > ListenerContainer;
102 typedef ::std::map<cssu::Reference<cssu::XInterface>, ListenerContainer> ListenerMap;
106 class FocusDescriptor
107 {
108 public:
109 ListenerContainer maListeners;
110 ::rtl::OUString msCurrentApplicationName;
111 ::rtl::OUString msCurrentContextName;
112 };
113 typedef ::std::map<cssu::Reference<cssu::XInterface>, FocusDescriptor> ListenerMap;
103 ListenerMap maListeners;
104
105 /** Notify all listeners in the container that is associated with
106 the given event focus.
107
108 Typically called twice from broadcastEvent(), once for the
109 given event focus and onece for NULL.
110 */

--- 14 unchanged lines hidden ---
114 ListenerMap maListeners;
115
116 /** Notify all listeners in the container that is associated with
117 the given event focus.
118
119 Typically called twice from broadcastEvent(), once for the
120 given event focus and onece for NULL.
121 */

--- 14 unchanged lines hidden ---