summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-16 16:06:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-16 18:40:05 +0100
commit62951cdd17530f6218232f3d482bfd4ddd8a95ec (patch)
tree98376b3704c388143eefcb6abce624a48236eb74 /bin
parent997d21183322a0a94b96868073808841d2773902 (diff)
Introduce com.sun.star.frame.theGlobalEventBroadcaster singleton
...to supersede com.sun.star.frame.GlobalEventBroadcaster single-instance service. Change-Id: I74ecaadadb4c600d39979aa7c13b6389bed38fd7
Diffstat (limited to 'bin')
-rw-r--r--bin/benchmark-document-loading3
-rw-r--r--bin/convwatch.py4
2 files changed, 4 insertions, 3 deletions
diff --git a/bin/benchmark-document-loading b/bin/benchmark-document-loading
index 98d2855a83fa..07dc45978ac9 100644
--- a/bin/benchmark-document-loading
+++ b/bin/benchmark-document-loading
@@ -275,7 +275,8 @@ def loadFromURL(xContext, url, t, component):
xListener = None
if component == "writer":
xListener = EventListener()
- xGEB = xContext.ServiceManager.createInstanceWithContext("com.sun.star.frame.GlobalEventBroadcaster", xContext)
+ xGEB = xContext.getValueByName(
+ "/singletons/com.sun.star.frame.theGlobalEventBroadcaster")
xGEB.addDocumentEventListener(xListener)
try:
xDoc = None
diff --git a/bin/convwatch.py b/bin/convwatch.py
index bdb09beb4b8e..bef3f9e16c77 100644
--- a/bin/convwatch.py
+++ b/bin/convwatch.py
@@ -237,8 +237,8 @@ def loadFromURL(xContext, url):
props = [("Hidden", True), ("ReadOnly", True)] # FilterName?
loadProps = tuple([mkPropertyValue(name, value) for (name, value) in props])
xListener = EventListener()
- xGEB = xContext.ServiceManager.createInstanceWithContext(
- "com.sun.star.frame.GlobalEventBroadcaster", xContext)
+ xGEB = xContext.getValueByName(
+ "/singletons/com.sun.star.frame.theGlobalEventBroadcaster")
xGEB.addDocumentEventListener(xListener)
try:
xDoc = xDesktop.loadComponentFromURL(url, "_blank", 0, loadProps)