Tag: cws_src680_oj14
User: oj      
Date: 2007-06-04 17:50:18+0000
Log:
 RESYNC: (1.31-1.32); FILE MERGED

File Changes:

Directory: /dba/dbaccess/source/core/dataaccess/
================================================

File [changed]: databasedocument.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/databasedocument.cxx?r1=1.22.4.7&r2=1.22.4.8
Delta lines:  +35 -0
--------------------
--- databasedocument.cxx        2006-12-18 16:14:47+0000        1.22.4.7
+++ databasedocument.cxx        2007-06-04 17:50:15+0000        1.22.4.8
@@ -45,6 +45,7 @@
 #include "dbastrings.hrc"
 #endif
 #include <comphelper/documentconstants.hxx>
+#include <comphelper/enumhelper.hxx>
 #ifndef _COM_SUN_STAR_EMBED_XTRANSACTEDOBJECT_HPP_
 #include <com/sun/star/embed/XTransactedObject.hpp>
 #endif
@@ -1186,6 +1187,40 @@
 {
     return *this;
 }
+// 
-----------------------------------------------------------------------------
+struct CreateAny : public ::std::unary_function< Reference<XController>, Any>
+        {
+            Any operator() (const Reference<XController>& lhs) const 
+            {
+                return makeAny(lhs);
+            }
+        };
+// XModel2
+Reference< XEnumeration > SAL_CALL ODatabaseDocument::getControllers(  ) throw 
(RuntimeException)
+{
+    ModelMethodGuard aGuard( *this );
+    uno::Sequence< Any> aController(m_pImpl->m_aControllers.size());
+    
::std::transform(m_pImpl->m_aControllers.begin(),m_pImpl->m_aControllers.end(),aController.getArray(),CreateAny());
+    return new ::comphelper::OAnyEnumeration(aController);
+}
+// 
-----------------------------------------------------------------------------
+Sequence< ::rtl::OUString > SAL_CALL 
ODatabaseDocument::getAvailableViewControllerNames(  ) throw (RuntimeException)
+{
+    Sequence< ::rtl::OUString > aNames(1);
+    aNames[0] = SERVICE_SDB_APPLICATIONCONTROLLER;
+    return aNames;
+}
+// 
-----------------------------------------------------------------------------
+Reference< XController > SAL_CALL 
ODatabaseDocument::createDefaultViewController( const Reference< XFrame >& 
/*Frame*/, Reference< ::com::sun::star::awt::XWindow >& /*ComponentWindow*/ ) 
throw (IllegalArgumentException, Exception, RuntimeException)
+{
+    return Reference< XController >();
+}
+// 
-----------------------------------------------------------------------------
+Reference< XController > SAL_CALL ODatabaseDocument::createViewController( 
const ::rtl::OUString& /*ViewName*/, const Sequence< PropertyValue >& 
/*Arguments*/, const Reference< XFrame >& /*Frame*/, Reference< 
::com::sun::star::awt::XWindow >& /*ComponentWindow*/ ) throw 
(IllegalArgumentException, Exception, RuntimeException)
+{
+    return Reference< XController >();
+}
+// 
-----------------------------------------------------------------------------
 
 //------------------------------------------------------------------
 //........................................................................




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

Reply via email to