summaryrefslogtreecommitdiff
path: root/dbaccess/inc
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-02-10 14:05:19 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-02-10 14:05:19 +0100
commitf4ba6a75910f44a8b98de1243fbd5a9dfef5aa49 (patch)
tree155e748da1cafb7cbe077b6479bf5d3bf394367f /dbaccess/inc
parent4f8f578855d93e0821ade20218ec8269e4cb8b8c (diff)
autorecovery: let the SingleDocController, and derived classes, support XModifiable
Diffstat (limited to 'dbaccess/inc')
-rw-r--r--dbaccess/inc/singledoccontroller.hxx21
1 files changed, 15 insertions, 6 deletions
diff --git a/dbaccess/inc/singledoccontroller.hxx b/dbaccess/inc/singledoccontroller.hxx
index 6f98979a1a65..eb21ad5b0ddc 100644
--- a/dbaccess/inc/singledoccontroller.hxx
+++ b/dbaccess/inc/singledoccontroller.hxx
@@ -40,13 +40,14 @@
#include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
#include <com/sun/star/sdbc/XDataSource.hpp>
#include <com/sun/star/util/XNumberFormatter.hpp>
+#include <com/sun/star/util/XModifiable.hpp>
/** === end UNO includes === **/
#include <comphelper/broadcasthelper.hxx>
#include <comphelper/proparrhlp.hxx>
#include <comphelper/propertycontainer.hxx>
#include <connectivity/dbmetadata.hxx>
-#include <cppuhelper/implbase1.hxx>
+#include <cppuhelper/implbase2.hxx>
#include <svl/undo.hxx>
#include <memory>
@@ -61,8 +62,9 @@ namespace dbaui
//====================================================================
class OSingleDocumentController;
- typedef ::cppu::ImplInheritanceHelper1 < OGenericUnoController
+ typedef ::cppu::ImplInheritanceHelper2 < OGenericUnoController
, ::com::sun::star::document::XScriptInvocationContext
+ , ::com::sun::star::util::XModifiable
> OSingleDocumentController_Base;
struct OSingleDocumentControllerImpl;
@@ -93,15 +95,14 @@ namespace dbaui
virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > getPrivateModel() const;
+ sal_Bool impl_isModified() const;
+ virtual void impl_onModifyChanged();
+
public:
sal_Bool isReadOnly() const;
sal_Bool isEditable() const;
void setEditable(sal_Bool _bEditable);
- sal_Bool isModified() const;
-
- virtual void setModified(sal_Bool _bModified=sal_True);
-
// need for undo's and redo's
SfxUndoManager* getUndoMgr();
@@ -181,6 +182,14 @@ namespace dbaui
// XScriptInvocationContext
virtual ::com::sun::star::uno::Reference< ::com::sun::star::document::XEmbeddedScripts > SAL_CALL getScriptContainer() throw (::com::sun::star::uno::RuntimeException);
+ // XModifiable
+ virtual ::sal_Bool SAL_CALL isModified( ) throw (::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL setModified( ::sal_Bool bModified ) throw (::com::sun::star::beans::PropertyVetoException, ::com::sun::star::uno::RuntimeException);
+
+ // XModifyBroadcaster
+ virtual void SAL_CALL addModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL removeModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
+
// XTitle
virtual ::rtl::OUString SAL_CALL getTitle( ) throw (::com::sun::star::uno::RuntimeException);