summaryrefslogtreecommitdiff
path: root/dbaccess/inc
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-10-16 06:57:26 +0000
committerOliver Bolte <obo@openoffice.org>2008-10-16 06:57:26 +0000
commit323b26c51adac28e86436bf3f5721cd3d68d56ae (patch)
treebf4b1a72e0a0fb54bab266ee91bba44c0152e2ee /dbaccess/inc
parent98993835c63f781674aa7a6946c73ddcf84c0ed9 (diff)
CWS-TOOLING: integrate CWS odbmacros3
Diffstat (limited to 'dbaccess/inc')
-rw-r--r--dbaccess/inc/documentcontroller.hxx21
1 files changed, 14 insertions, 7 deletions
diff --git a/dbaccess/inc/documentcontroller.hxx b/dbaccess/inc/documentcontroller.hxx
index 067dac6cbe1d..a16e4c645b06 100644
--- a/dbaccess/inc/documentcontroller.hxx
+++ b/dbaccess/inc/documentcontroller.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: documentcontroller.hxx,v $
- * $Revision: 1.3 $
+ * $Revision: 1.3.2.2 $
*
* This file is part of OpenOffice.org.
*
@@ -84,6 +84,18 @@ namespace dbaui
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController >& _rxController
);
+ /** connects the controller to the model
+
+ @param _rxModel
+ the model to which the controller should be connected
+ @param _rxController
+ the controller which should be connected to the model
+ */
+ void connect(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& _rxModel,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController >& _rxController
+ );
+
/** destroys the object, and disconnects the controller from the model
*/
~ModelControllerConnector();
@@ -92,10 +104,6 @@ namespace dbaui
*/
inline bool empty() const { return !m_xController.is(); }
- /** exchanges the content of <code>this</code> and the given ->ModelControllerConnector instance
- */
- void swap( ModelControllerConnector& _rSwapWith );
-
/** clears the object
The controller is disconnected from the model, and references to the model and the controller
@@ -103,8 +111,7 @@ namespace dbaui
*/
inline void clear()
{
- ModelControllerConnector aEmpty;
- swap( aEmpty );
+ connect( NULL, NULL );
}
public: