summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-06 15:23:40 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-06 15:23:40 +0000
commitd5cde0e07248fcde1200aca1d34d8ff1a7fa8af5 (patch)
tree9c0566ae28a377ac8267266813e7c9d80418b796 /scripting
parent83b9cd4fd3ab75379fd317d43560737a5139b203 (diff)
INTEGRATION: CWS odbmacros2 (1.8.66); FILE MERGED
2007/12/17 12:43:37 fs 1.8.66.1: #i49133# allow to create script providers for documents which do not support embedded scripts themselves (i.e. don't have the XEmbeddedScripts interface), but are able to point to such a do cument (via XScriptInvocationContext) whose scripts they can execute
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/protocolhandler/scripthandler.hxx79
1 files changed, 37 insertions, 42 deletions
diff --git a/scripting/source/protocolhandler/scripthandler.hxx b/scripting/source/protocolhandler/scripthandler.hxx
index 2e59ebb074f1..8a93d8bc3e67 100644
--- a/scripting/source/protocolhandler/scripthandler.hxx
+++ b/scripting/source/protocolhandler/scripthandler.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: scripthandler.hxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: hr $ $Date: 2006-06-19 10:20:01 $
+ * last change: $Author: kz $ $Date: 2008-03-06 16:23:40 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -49,41 +49,33 @@ namespace rtl
class OUString;
}
-namespace com
-{
-namespace sun
-{
-namespace star
-{
-namespace uno
-{
-class Any;
-}
-namespace lang
-{
-class XMultiServiceFactory;
-class XSingleServiceFactory;
-}
-namespace frame
-{
-class XFrame;
-class XModel;
-class XDispatch;
-class XNotifyingDispatch;
-class XDispatchResultListener;
-struct DispatchDescriptor;
-}
-namespace beans
-{
-struct PropertyValue;
-}
-namespace util
-{
-struct URL;
-}
-}
-}
-}
+namespace com { namespace sun { namespace star {
+
+ namespace document {
+ class XScriptInvocationContext;
+ }
+ namespace uno {
+ class Any;
+ }
+ namespace lang {
+ class XMultiServiceFactory;
+ class XSingleServiceFactory;
+ }
+ namespace frame {
+ class XFrame;
+ class XModel;
+ class XDispatch;
+ class XNotifyingDispatch;
+ class XDispatchResultListener;
+ struct DispatchDescriptor;
+ }
+ namespace beans {
+ struct PropertyValue;
+ }
+ namespace util {
+ struct URL;
+ }
+} } }
namespace scripting_protocolhandler
{
@@ -97,11 +89,14 @@ public ::cppu::WeakImplHelper4< css::frame::XDispatchProvider,
{
private:
bool m_bInitialised;
- css::uno::Reference < css::lang::XMultiServiceFactory > m_xFactory;
- css::uno::Reference < css::frame::XFrame > m_xFrame;
- css::uno::Reference < css::script::provider::XScriptProvider >
- m_xScriptProvider;
- void createScriptProvider( const ::rtl::OUString& url ) throw( css::uno::RuntimeException );
+ css::uno::Reference < css::lang::XMultiServiceFactory > m_xFactory;
+ css::uno::Reference < css::frame::XFrame > m_xFrame;
+ css::uno::Reference < css::script::provider::XScriptProvider > m_xScriptProvider;
+ css::uno::Reference< css::document::XScriptInvocationContext > m_xScriptInvocation;
+
+ void createScriptProvider();
+ bool getScriptInvocation();
+
public:
ScriptProtocolHandler( const css::uno::Reference <
css::lang::XMultiServiceFactory >& xFactory );