From 29dbcf4f28190c2b1174ce3131b7717656c61640 Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Thu, 6 Mar 2008 16:53:44 +0000 Subject: INTEGRATION: CWS odbmacros2 (1.2.98); FILE MERGED 2007/12/18 21:20:03 fs 1.2.98.2: #i49133# +getXController 2007/12/13 11:18:31 fs 1.2.98.1: #i49133# getAssociatedModel --- dbaccess/inc/IController.hxx | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'dbaccess/inc') diff --git a/dbaccess/inc/IController.hxx b/dbaccess/inc/IController.hxx index 9c0079a04860..f80399ea91bf 100644 --- a/dbaccess/inc/IController.hxx +++ b/dbaccess/inc/IController.hxx @@ -4,9 +4,9 @@ * * $RCSfile: IController.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: rt $ $Date: 2008-01-30 08:25:47 $ + * last change: $Author: kz $ $Date: 2008-03-06 17:53:44 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -47,12 +47,15 @@ #endif #include "dbaccessdllapi.h" -namespace com { namespace sun { namespace star { namespace util { - struct URL; -} -}}} +namespace com { namespace sun { namespace star { + namespace util { + struct URL; + } + namespace frame { + class XController; + } +} } } -class ImageList; namespace dbaui { // interface for controller depended calls like commands @@ -112,6 +115,14 @@ namespace dbaui if read only, otherwise */ virtual sal_Bool isDataSourceReadOnly() const = 0; + + /** provides access to the model of the controller + + This must be the same model as returned by XController::getModel, and might be when + the controller does not have an own model. + */ + virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController > SAL_CALL + getXController(void) throw( ::com::sun::star::uno::RuntimeException ) = 0; }; } #endif // DBAUI_ICONTROLLER_HXX -- cgit