Tag: cws_src680_dba30
User: fs      
Date: 05/09/29 23:17:12

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

Log:
 RESYNC: (1.26-1.28); 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.25.2.2&r2=1.25.2.3
Delta lines:  +31 -59
---------------------
--- documentdefinition.cxx      25 May 2005 15:02:24 -0000      1.25.2.2
+++ documentdefinition.cxx      30 Sep 2005 06:17:08 -0000      1.25.2.3
@@ -1,22 +1,20 @@
 /*************************************************************************
  *
+ *  OpenOffice.org - a multi-platform office productivity suite
+ *
  *  $RCSfile$
  *
  *  $Revision$
  *
  *  last change: $Author$ $Date$
  *
- *  The Contents of this file are made available subject to the terms of
- *  either of the following licenses
- *
- *         - GNU Lesser General Public License Version 2.1
- *         - Sun Industry Standards Source License Version 1.1
+ *  The Contents of this file are made available subject to
+ *  the terms of GNU Lesser General Public License Version 2.1.
  *
- *  Sun Microsystems Inc., October, 2000
  *
  *  GNU Lesser General Public License Version 2.1
  *  =============================================
- *  Copyright 2000 by Sun Microsystems, Inc.
+ *    Copyright 2005 by Sun Microsystems, Inc.
  *  901 San Antonio Road, Palo Alto, CA 94303, USA
  *
  *  This library is free software; you can redistribute it and/or
@@ -33,30 +31,6 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  *  MA  02111-1307  USA
  *
- *
- *  Sun Industry Standards Source License Version 1.1
- *  =================================================
- *  The contents of this file are subject to the Sun Industry Standards
- *  Source License Version 1.1 (the "License"); You may not use this file
- *  except in compliance with the License. You may obtain a copy of the
- *  License at http://www.openoffice.org/license.html.
- *
- *  Software provided under this License is provided on an "AS IS" basis,
- *  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
- *  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
- *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
- *  See the License for the specific provisions governing your rights and
- *  obligations concerning the Software.
- *
- *  The Initial Developer of the Original Code is: Sun Microsystems, Inc.
- *
- *  Copyright: 2000 by Sun Microsystems, Inc.
- *
- *  All Rights Reserved.
- *
- *  Contributor(s): _______________________________________
- *
- *
  ************************************************************************/
 
 #ifndef _DBA_COREDATAACCESS_DOCUMENTDEFINITION_HXX_
@@ -813,7 +787,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 +1138,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 +1163,7 @@
 // 
-----------------------------------------------------------------------------
 void ODocumentDefinition::generateNewImage(Any& _rImage)
 {
-       loadEmbeddedObject();
+    loadEmbeddedObject( Sequence< sal_Int8 >(), Reference< XConnection >(), 
sal_True );
        if ( m_xEmbeddedObject.is() )
        {
                try
@@ -1221,7 +1192,7 @@
 // 
-----------------------------------------------------------------------------
 void ODocumentDefinition::fillDocumentInfo(Any& _rInfo)
 {
-       loadEmbeddedObject();
+       loadEmbeddedObject( Sequence< sal_Int8 >(), Reference< XConnection >(), 
sal_True );
        if ( m_xEmbeddedObject.is() )
        {
                try
@@ -1314,8 +1285,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