User: obo     
Date: 05/07/08 03:37:20

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

Log:
 INTEGRATION: CWS dba20blocker (1.26.40); FILE MERGED
 2005/06/23 13:56:43 fs 1.26.40.2: copying fix for #i50905# into this CWS
 2005/06/23 11:01:16 fs 1.26.40.1: copying fix for #i50475# into this CWS

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.26&r2=1.27
Delta lines:  +12 -14
---------------------
--- documentdefinition.cxx      18 Apr 2005 08:46:22 -0000      1.26
+++ documentdefinition.cxx      8 Jul 2005 10:37:18 -0000       1.27
@@ -813,7 +813,7 @@
                Reference< XStorage> xStorage(aIni[0],UNO_QUERY);
                ::rtl::OUString sPersistentName;
                aIni[1] >>= sPersistentName;
-               loadEmbeddedObject();
+        loadEmbeddedObject( Sequence< sal_Int8 >(), Reference< XConnection 
>(), sal_False );
                Reference<XEmbedPersist> xPersist(m_xEmbeddedObject,UNO_QUERY);
                if ( xPersist.is() )
                {
@@ -1164,20 +1164,17 @@
        {
                Sequence<PropertyValue> aArgs = xModel->getArgs();
                ::comphelper::MediaDescriptor aHelper(aArgs);
-               static const ::rtl::OUString 
s_sReadOnly(RTL_CONSTASCII_USTRINGPARAM("ReadOnly"));
-               if ( ! aHelper.createItemIfMissing(s_sReadOnly,_bReadOnly) )
-                       aHelper[s_sReadOnly] <<= _bReadOnly;
+        aHelper.createItemIfMissing(
+            ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ReadOnly" ) ), 
_bReadOnly );
 
                if ( m_pImpl->m_aProps.aTitle.getLength() )
                {
-                       static const ::rtl::OUString 
s_sDocumentTitle(RTL_CONSTASCII_USTRINGPARAM("DocumentTitle"));
-                       if ( ! 
aHelper.createItemIfMissing(s_sDocumentTitle,m_pImpl->m_aProps.aTitle) )
-                               aHelper[s_sDocumentTitle] <<= 
m_pImpl->m_aProps.aTitle;
+                       aHelper.createItemIfMissing(
+                ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DocumentTitle" 
) ), m_pImpl->m_aProps.aTitle );
                }
 
-               static const ::rtl::OUString 
s_sMacroExecutionMode(RTL_CONSTASCII_USTRINGPARAM("MacroExecutionMode"));
-               if ( ! 
aHelper.createItemIfMissing(s_sMacroExecutionMode,MacroExecMode::USE_CONFIG) )
-                       aHelper[s_sMacroExecutionMode] <<= 
MacroExecMode::USE_CONFIG;
+               aHelper.createItemIfMissing(
+            ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "MacroExecutionMode" 
) ), MacroExecMode::USE_CONFIG );
 
                aHelper >> aArgs;
 
@@ -1192,7 +1189,7 @@
 // 
-----------------------------------------------------------------------------
 void ODocumentDefinition::generateNewImage(Any& _rImage)
 {
-       loadEmbeddedObject();
+    loadEmbeddedObject( Sequence< sal_Int8 >(), Reference< XConnection >(), 
sal_True );
        if ( m_xEmbeddedObject.is() )
        {
                try
@@ -1221,7 +1218,7 @@
 // 
-----------------------------------------------------------------------------
 void ODocumentDefinition::fillDocumentInfo(Any& _rInfo)
 {
-       loadEmbeddedObject();
+       loadEmbeddedObject( Sequence< sal_Int8 >(), Reference< XConnection >(), 
sal_True );
        if ( m_xEmbeddedObject.is() )
        {
                try
@@ -1314,8 +1311,9 @@
 {
        static const ::rtl::OUString s_sForms = 
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("forms"));
        static const ::rtl::OUString s_sReports = 
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("reports"));
-       Reference<css::embed::XTransactionListener> 
xEvt(m_pImpl->m_pDataSource->m_xModel,UNO_QUERY);
-       return m_pImpl->m_pDataSource ? 
m_pImpl->m_pDataSource->getStorage(m_bForm ? s_sForms : s_sReports,xEvt) : 
Reference< XStorage>();
+       return  m_pImpl->m_pDataSource
+        ?   m_pImpl->m_pDataSource->getStorage( m_bForm ? s_sForms : 
s_sReports )
+        :   Reference< XStorage>();
 }
 // 
-----------------------------------------------------------------------------
 sal_Bool ODocumentDefinition::isModified()




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

Reply via email to