summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-06 18:45:32 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-06 18:45:32 +0000
commit6f18ede1058291b8581e3909893658facb5d11bc (patch)
tree186ae7e7552216eaca9dc6516784f6c8c313d29c /sfx2
parenteedb9580133378bcd38de3b1641682b767082b52 (diff)
INTEGRATION: CWS odbmacros2 (1.9.44); FILE MERGED
2008/03/04 21:00:46 fs 1.9.44.4: #i10000# 2008/03/04 12:11:26 fs 1.9.44.3: RESYNC: (1.9-1.10); FILE MERGED 2008/01/02 20:45:34 fs 1.9.44.2: #i49133# StorageIsModified_Impl superseded by IMPL_SfxBaseModel_DataContainer::storageIsModified 2007/12/17 12:39:48 fs 1.9.44.1: #i49133# implement XScriptInvocationContext
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/inc/sfx2/sfxbasemodel.hxx89
1 files changed, 53 insertions, 36 deletions
diff --git a/sfx2/inc/sfx2/sfxbasemodel.hxx b/sfx2/inc/sfx2/sfxbasemodel.hxx
index f9aa1955ade6..42ce40dee392 100644
--- a/sfx2/inc/sfx2/sfxbasemodel.hxx
+++ b/sfx2/inc/sfx2/sfxbasemodel.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: sfxbasemodel.hxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: obo $ $Date: 2008-02-26 14:58:50 $
+ * last change: $Author: kz $ $Date: 2008-03-06 19:45:32 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -112,6 +112,10 @@
#include <com/sun/star/document/XStorageBasedDocument.hpp>
#endif
+#ifndef _COM_SUN_STAR_DOCUMENT_XSCRIPTINVOCATIONCONTEXT_HPP_
+#include <com/sun/star/document/XScriptInvocationContext.hpp>
+#endif
+
#ifndef _COM_SUN_STAR_LANG_XEVENTLISTENER_HPP_
#include <com/sun/star/lang/XEventListener.hpp>
#endif
@@ -230,6 +234,12 @@
#include <com/sun/star/task/XInteractionHandler.hpp>
//________________________________________________________________________________________________________
+#if ! defined(INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_25)
+#define INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_25
+#define COMPHELPER_IMPLBASE_INTERFACE_NUMBER 25
+#include <comphelper/implbase_var.hxx>
+#endif
+
// include of my own project
//________________________________________________________________________________________________________
@@ -276,6 +286,7 @@
#define XEVENTBROADCASTER ::com::sun::star::document::XEventBroadcaster
#define XEVENTSSUPPLIER ::com::sun::star::document::XEventsSupplier
#define XEMBEDDEDSCRIPTS ::com::sun::star::document::XEmbeddedScripts
+#define XSCRIPTINVOCATIONCONTEXT ::com::sun::star::document::XScriptInvocationContext
#define NOSUPPORTEXCEPTION ::com::sun::star::lang::NoSupportException
#define RUNTIMEEXCEPTION ::com::sun::star::uno::RuntimeException
@@ -292,7 +303,6 @@
#define SEQUENCE ::com::sun::star::uno::Sequence
#define MUTEX ::osl::Mutex
#define OUSTRING ::rtl::OUString
-#define OWEAKOBJECT ::cppu::OWeakObject
#define UNOTYPE ::com::sun::star::uno::Type
#define XVIEWDATASUPPLIER ::com::sun::star::document::XViewDataSupplier
#define XINDEXACCESS ::com::sun::star::container::XIndexAccess
@@ -354,9 +364,10 @@ struct IMPL_SfxBaseModel_MutexContainer
XModifiable2
XPrintable
XStorable2
- ::document::XEventBroadcaster
- ::document::XEventsSupplier
- ::document::XEmbeddedScripts
+ document::XEventBroadcaster
+ document::XEventsSupplier
+ document::XEmbeddedScripts
+ document::XScriptInvocationContext
XCloseable
XCloseBroadcaster
@@ -364,34 +375,36 @@ struct IMPL_SfxBaseModel_MutexContainer
SfxListener
*/
-class SFX2_DLLPUBLIC SfxBaseModel : public XTYPEPROVIDER
- , public XCHILD
- , public XDOCUMENTINFOSUPPLIER
- , public ::com::sun::star::document::XDocumentPropertiesSupplier
- , public XEVENTBROADCASTER
- , public XEVENTLISTENER
- , public XEVENTSSUPPLIER
- , public XEMBEDDEDSCRIPTS
- , public XMODEL2
- , public XMODIFIABLE2
- , public XPRINTABLE
- , public XPRINTJOBBROADCASTER
- , public XSTORABLE2
- , public XLOADABLE
- , public XSTARBASICACCESS
- , public XVIEWDATASUPPLIER
- , public XCLOSEABLE // => XCLOSEBROADCASTER
- , public XTRANSFERABLE
- , public XDOCUMENTSUBSTORAGESUPPLIER
- , public XSTORAGEBASEDDOCUMENT
- , public XSCRIPTPROVIDERSUPPLIER
- , public XUICONFIGURATIONMANAGERSUPPLIER
- , public XVISUALOBJECT
- , public XUNOTUNNEL
- , public XMODULE
- , public IMPL_SfxBaseModel_MutexContainer
- , public SfxListener
- , public OWEAKOBJECT
+typedef ::comphelper::WeakImplHelper25 < XCHILD
+ , XDOCUMENTINFOSUPPLIER
+ , ::com::sun::star::document::XDocumentPropertiesSupplier
+ , XEVENTBROADCASTER
+ , XEVENTLISTENER
+ , XEVENTSSUPPLIER
+ , XEMBEDDEDSCRIPTS
+ , XSCRIPTINVOCATIONCONTEXT
+ , XMODEL2
+ , XMODIFIABLE2
+ , XPRINTABLE
+ , XPRINTJOBBROADCASTER
+ , XSTORABLE2
+ , XLOADABLE
+ , XSTARBASICACCESS
+ , XVIEWDATASUPPLIER
+ , XCLOSEABLE // => XCLOSEBROADCASTER
+ , XTRANSFERABLE
+ , XDOCUMENTSUBSTORAGESUPPLIER
+ , XSTORAGEBASEDDOCUMENT
+ , XSCRIPTPROVIDERSUPPLIER
+ , XUICONFIGURATIONMANAGERSUPPLIER
+ , XVISUALOBJECT
+ , XUNOTUNNEL
+ , XMODULE
+ > SfxBaseModel_Base;
+
+class SFX2_DLLPUBLIC SfxBaseModel : public SfxBaseModel_Base
+ , public IMPL_SfxBaseModel_MutexContainer
+ , public SfxListener
{
//________________________________________________________________________________________________________
@@ -434,8 +447,6 @@ public:
virtual ~SfxBaseModel() ;
- void StorageIsModified_Impl(); // can only be called by own listener
-
//____________________________________________________________________________________________________
// XInterface
//____________________________________________________________________________________________________
@@ -1334,6 +1345,12 @@ public:
virtual ::sal_Bool SAL_CALL getAllowMacroExecution() throw (::com::sun::star::uno::RuntimeException);
//____________________________________________________________________________________________________
+ // XScriptInvocationContext
+ //____________________________________________________________________________________________________
+
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::document::XEmbeddedScripts > SAL_CALL getScriptContainer() throw (::com::sun::star::uno::RuntimeException);
+
+ //____________________________________________________________________________________________________
// XEventBroadcaster
//____________________________________________________________________________________________________