summaryrefslogtreecommitdiff
path: root/configmgr/source/update.cxx
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2009-12-02 14:57:12 +0100
committersb <sb@openoffice.org>2009-12-02 14:57:12 +0100
commitf81c3dd85ef2ebc0a9c129a17156fbeb38fb0b02 (patch)
tree6de66f7d6a46610ee48b28f9d052c5b1aaec6351 /configmgr/source/update.cxx
parenta472204849c6aed1e745381fdf99f222a08cb78d (diff)
sb111: #i101955# configmgr::update::insertExtensionXcuFile should notify configuration listeners
Diffstat (limited to 'configmgr/source/update.cxx')
-rw-r--r--configmgr/source/update.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/configmgr/source/update.cxx b/configmgr/source/update.cxx
index 52df4f25eca7..dafd8148b504 100644
--- a/configmgr/source/update.cxx
+++ b/configmgr/source/update.cxx
@@ -32,10 +32,14 @@
#include "configmgr/update.hxx"
#include "osl/mutex.hxx"
+#include "rtl/ref.hxx"
#include "rtl/ustring.hxx"
+#include "broadcaster.hxx"
#include "components.hxx"
#include "lock.hxx"
+#include "modifications.hxx"
+#include "rootaccess.hxx"
namespace configmgr {
@@ -47,8 +51,16 @@ void insertExtensionXcsFile(bool shared, rtl::OUString const & fileUri) {
}
void insertExtensionXcuFile(bool shared, rtl::OUString const & fileUri) {
- osl::MutexGuard g(lock);
- Components::getSingleton().insertExtensionXcuFile(shared, fileUri);
+ Broadcaster bc;
+ {
+ osl::MutexGuard g(lock);
+ Modifications mods;
+ Components::getSingleton().insertExtensionXcuFile(
+ shared, fileUri, &mods);
+ Components::getSingleton().initGlobalBroadcaster(
+ mods, rtl::Reference< RootAccess >(), &bc);
+ }
+ bc.send();
}
}