Tag: cws_src680_dba24c
User: fs      
Date: 2007-10-09 21:12:26+0000
Modified:
   dba/dbaccess/source/core/dataaccess/documentdefinition.hxx

Log:
 #i82110#: when loading an embedded object, respect the load arguments given to 
our execute call. In particular, do *not* overwrite an MacroExecutionMode if it 
is present

File Changes:

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

File [changed]: documentdefinition.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/documentdefinition.hxx?r1=1.23&r2=1.23.4.1
Delta lines:  +41 -20
---------------------
--- documentdefinition.hxx      2007-09-26 14:40:32+0000        1.23
+++ documentdefinition.hxx      2007-10-09 21:12:23+0000        1.23.4.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: documentdefinition.hxx,v $
  *
- *  $Revision: 1.23 $
+ *  $Revision: 1.23.4.1 $
  *
- *  last change: $Author: hr $ $Date: 2007/09/26 14:40:32 $
+ *  last change: $Author: fs $ $Date: 2007/10/09 21:12:23 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -110,28 +110,49 @@
        void insert( const ::rtl::OUString& _sURL, const 
::com::sun::star::uno::Reference< ::com::sun::star::ucb::XCommandEnvironment >& 
Environment ) throw( ::com::sun::star::uno::Exception );
 
        /** fills the load arguments
-       *
-       * \param _rArgs
-       * \param _rEmbeddedObjectDescriptor
-    * \param _xConnection
-    * \param _bReadOnly
-    * \param _nMarcoExcecMode
-       */
-       void fillLoadArgs(::com::sun::star::uno::Sequence< 
::com::sun::star::beans::PropertyValue>& _rArgs
-                                       , ::com::sun::star::uno::Sequence< 
::com::sun::star::beans::PropertyValue>& _rEmbeddedObjectDescriptor
-                                       ,const 
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& 
_xConnection
-                                       ,sal_Bool _bReadOnly
-                    ,sal_Int16 _nMarcoExcecMode);
+       */
+    ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >
+        fillLoadArgs(
+            const ::com::sun::star::uno::Reference< 
::com::sun::star::sdbc::XConnection>& _xConnection,
+            const bool _bSuppressMacros,
+                       const bool _bReadOnly,
+            const ::com::sun::star::uno::Sequence< 
::com::sun::star::beans::PropertyValue >& _rAdditionalArgs,
+                       ::com::sun::star::uno::Sequence< 
::com::sun::star::beans::PropertyValue >& _out_rEmbeddedObjectDescriptor
+        );
+
        /** loads the EmbeddedObject if not already loaded
                @param  _aClassID
                        If set, it will be used to create the embedded object.
        */
-       void loadEmbeddedObject(sal_Int16 _nMarcoExcecMode
-                            ,const ::com::sun::star::uno::Sequence< sal_Int8 
>& _aClassID = ::com::sun::star::uno::Sequence< sal_Int8 >()
-                                                       ,const 
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& 
_xConnection = ::com::sun::star::uno::Reference< 
::com::sun::star::sdbc::XConnection>()
-                                                       ,sal_Bool _bReadOnly = 
sal_False
+       void loadEmbeddedObject(
+                const ::com::sun::star::uno::Reference< 
::com::sun::star::sdbc::XConnection>& _xConnection,
+                const ::com::sun::star::uno::Sequence< sal_Int8 >& _aClassID,
+                const ::com::sun::star::uno::Sequence< 
::com::sun::star::beans::PropertyValue >& _rAdditionalArgs,
+                const bool _bSuppressMacros,
+                               const bool _bReadOnly
+            );
+
+    void    loadEmbeddedObject()
+    {
+        loadEmbeddedObject(
+            NULL,
+            ::com::sun::star::uno::Sequence< sal_Int8 >(),
+            ::com::sun::star::uno::Sequence< 
::com::sun::star::beans::PropertyValue >(),
+            false,
+            false
                             );
+    }
 
+    void    loadEmbeddedObjectForPreview()
+    {
+        loadEmbeddedObject(
+            NULL,
+            ::com::sun::star::uno::Sequence< sal_Int8 >(),
+            ::com::sun::star::uno::Sequence< 
::com::sun::star::beans::PropertyValue >(),
+            true,
+            true
+        );
+    }
 
        void generateNewImage(::com::sun::star::uno::Any& _rImage);
        void fillDocumentInfo(::com::sun::star::uno::Any& _rInfo);




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

Reply via email to