Tag: cws_src680_dba24
User: oj      
Date: 05/02/21 05:09:15

Modified:
 /dba/dbaccess/source/core/dataaccess/
  documentdefinition.cxx

Log:
 RESYNC: (1.19-1.20); FILE MERGED

File Changes:

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

File [changed]: documentdefinition.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/documentdefinition.cxx?r1=1.19.2.3&r2=1.19.2.4
Delta lines:  +21 -2
--------------------
--- documentdefinition.cxx      18 Feb 2005 12:25:27 -0000      1.19.2.3
+++ documentdefinition.cxx      21 Feb 2005 13:09:11 -0000      1.19.2.4
@@ -1076,7 +1076,26 @@
                        xCommon->reload(aArgs,aEmbeddedObjectDescriptor);
                m_xEmbeddedObject->changeState(EmbedStates::RUNNING);
        }
+
        Reference<XModel> xModel(getComponent(),UNO_QUERY);
+       // set the OfficeDatabaseDocument instance as parent of the embedded 
document
+    // #i40358# / 2005-01-19 / [EMAIL PROTECTED]
+    Reference< XChild > xDepdendDocAsChild( xModel, UNO_QUERY );
+    if ( xDepdendDocAsChild.is() )
+    {
+        try
+        {
+            if ( !xDepdendDocAsChild->getParent().is() )
+            {   // first encounter
+                xDepdendDocAsChild->setParent( getDataSource( 
m_xParentContainer ) );
+            }
+        }
+        catch( const Exception& )
+        {
+            OSL_ENSURE( sal_False, "ODocumentDefinition::loadEmbeddedObject: 
caught an exception while setting the parent of the embedded object!" );
+        }
+    }
+
        if ( xModel.is() )
        {
                Sequence<PropertyValue> aArgs = xModel->getArgs();




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

Reply via email to