Tag: cws_src680_odbmacros2
User: fs      
Date: 2007-12-13 11:18:34+0000
Modified:
   dba/dbaccess/inc/IController.hxx

Log:
 #i49133# getAssociatedModel

File Changes:

Directory: /dba/dbaccess/inc/
=============================

File [changed]: IController.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/inc/IController.hxx?r1=1.2&r2=1.2.98.1
Delta lines:  +20 -8
--------------------
--- IController.hxx     2007-07-06 07:48:07+0000        1.2
+++ IController.hxx     2007-12-13 11:18:31+0000        1.2.98.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: IController.hxx,v $
  *
- *  $Revision: 1.2 $
+ *  $Revision: 1.2.98.1 $
  *
- *  last change: $Author: rt $ $Date: 2007/07/06 07:48:07 $
+ *  last change: $Author: fs $ $Date: 2007/12/13 11:18:31 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -47,18 +47,20 @@
 #endif
 #include "dbaccessdllapi.h"
 
-namespace com { namespace sun { namespace star { namespace util {
+namespace com { namespace sun { namespace star {
+    namespace util {
        struct URL;
-}
-}}}
+    }
+    namespace frame {
+           class XModel;
+    }
+} } }
 
-class ImageList;                                                               
                   
 namespace dbaui
 {
        // interface for controller depended calls like commands
        class DBACCESS_DLLPUBLIC IController : public IReference
        {
-       protected:
        public:
                /** executes the given command without checking if it is allowed
                        @param  _rCommand       the URL of the command
@@ -113,6 +115,16 @@
                                <TRUE/> if read only, otherwise <FALSE/>
                */
                virtual sal_Bool isDataSourceReadOnly() const = 0;
+
+        /** provides access to the model to which the controller is currently 
associated with
+
+            Note that this is not necessarily the same as the model returned 
by XController::getModel.
+            In case of controllers which do not have a dedicated own model, 
but instead implement a
+            visual sub component of another controller, the associated model 
is usually the model of that
+            other controller.
+        */
+               virtual ::com::sun::star::uno::Reference< 
::com::sun::star::frame::XModel >
+                getAssociatedModel() const = 0;
        };
 }
 #endif // DBAUI_ICONTROLLER_HXX




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to