User: vg      
Date: 05/02/17 03:04:51

Modified:
 /dba/dbaccess/source/core/misc/
  sdbcoretools.cxx

Log:
 INTEGRATION: CWS dba23 (1.5.22); FILE MERGED
 2005/01/19 08:45:52 fs 1.5.22.1: #i40358# +getDataSource

File Changes:

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

File [changed]: sdbcoretools.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/misc/sdbcoretools.cxx?r1=1.5&r2=1.6
Delta lines:  +23 -14
---------------------
--- sdbcoretools.cxx    16 Nov 2004 09:28:25 -0000      1.5
+++ sdbcoretools.cxx    17 Feb 2005 11:04:48 -0000      1.6
@@ -90,20 +90,29 @@
        using namespace ::com::sun::star::beans;
        using namespace ::com::sun::star::container;
 
-//=====================================================================
-void notifyDataSourceModified(const ::com::sun::star::uno::Reference< 
::com::sun::star::uno::XInterface >& _xParent,sal_Bool _bModified)
-{
-       Reference< XInterface > xParent = _xParent;
-       Reference< XModifiable > xModi;
+    // 
=========================================================================
+    // 
-------------------------------------------------------------------------
+    void notifyDataSourceModified(const ::com::sun::star::uno::Reference< 
::com::sun::star::uno::XInterface >& _rxObject,sal_Bool _bModified)
+    {
+        Reference< XModifiable > xModi( getDataSource( _rxObject ), UNO_QUERY 
);
+           if ( xModi.is() )
+                   xModi->setModified(_bModified);
+    }
+
+    // 
-------------------------------------------------------------------------
+    Reference< XInterface > getDataSource( const Reference< XInterface >& 
_rxDependentObject )
+    {
+           Reference< XInterface > xParent = _rxDependentObject;
+           Reference< XInterface > xReturn;
        while( xParent.is() )
        {
-               xModi.set(xParent,UNO_QUERY);
+                   xReturn = xParent;
                Reference<XChild> xChild(xParent,UNO_QUERY);
                xParent.set(xChild.is() ? xChild->getParent() : Reference< 
XInterface >(),UNO_QUERY);
        }
-       if ( xModi.is() )
-               xModi->setModified(_bModified);
-}
+        return xReturn;
+    }
+
 // 
-----------------------------------------------------------------------------
 //.........................................................................
 }      // namespace dbaccess




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

Reply via email to