User: kz      
Date: 2008-06-25 12:32:25+0000
Modified:
   dba/dbaccess/source/core/dataaccess/datasource.hxx

Log:
 INTEGRATION: CWS dba30d (1.42.30); FILE MERGED
 2008/05/22 11:29:11 fs 1.42.30.1: #i88576# +setName

File Changes:

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

File [changed]: datasource.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/datasource.hxx?r1=1.42&r2=1.43
Delta lines:  +17 -0
--------------------
--- datasource.hxx      2008-04-10 12:45:18+0000        1.42
+++ datasource.hxx      2008-06-25 12:32:23+0000        1.43
@@ -177,6 +177,23 @@
 public:
        ODatabaseSource( const ::rtl::Reference< ODatabaseModelImpl >& _pImpl );
 
+    struct DBContextAccess { friend class ODatabaseContext; private: 
DBContextAccess() { } };
+
+    /** sets a new name for the data source
+
+        The name of a data source (our m_sName member) is the registration 
name, *if* the
+        data source actually *is* registered at the database context.
+
+        Normally, this name is passed at time of creation of the 
ODatabaseModelImpl instance,
+        but if a newly creaed data source is registered, then it must be 
possible to propagate
+        the new trgistration name.
+    */
+    static void setName(
+            const ::com::sun::star::uno::Reference< 
::com::sun::star::sdb::XDocumentDataSource >& _rxDocument,
+            const ::rtl::OUString& _rNewName,
+            DBContextAccess
+        );
+
     // XContainerListener
        virtual void SAL_CALL elementInserted( const 
::com::sun::star::container::ContainerEvent& Event ) throw 
(::com::sun::star::uno::RuntimeException);
     virtual void SAL_CALL elementRemoved( const 
::com::sun::star::container::ContainerEvent& Event ) throw 
(::com::sun::star::uno::RuntimeException);




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

Reply via email to