Tag: cws_src680_imprec01
User: as      
Date: 05/01/19 04:09:32

Modified:
 /dba/dbaccess/source/filter/xml/
  dbloader2.cxx

Log:
 RESYNC: (1.4-1.5); FILE MERGED

File Changes:

Directory: /dba/dbaccess/source/filter/xml/
===========================================

File [changed]: dbloader2.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/filter/xml/dbloader2.cxx?r1=1.4.6.2&r2=1.4.6.3
Delta lines:  +23 -3
--------------------
--- dbloader2.cxx       11 Jan 2005 13:59:35 -0000      1.4.6.2
+++ dbloader2.cxx       19 Jan 2005 12:09:30 -0000      1.4.6.3
@@ -355,6 +355,26 @@
                const Sequence< PropertyValue >& rArgs,
                const Reference< XLoadEventListener > & rListener) 
throw(::com::sun::star::uno::RuntimeException)
 {
+
+       // first check if preview is true, if so return with out creating a 
controller. Preview is not supported
+       const PropertyValue* pIter      = rArgs.getConstArray();
+       const PropertyValue* pEnd       = pIter + rArgs.getLength();
+
+       for ( ; pIter != pEnd; ++pIter )
+       {
+               if ( ( 0 == pIter->Name.compareToAscii( "Preview" ) ) )
+               {
+                       sal_Bool bPreview = sal_False;
+                       pIter->Value >>= bPreview;
+                       if ( bPreview )
+                       {
+                               if (rListener.is())
+                                       rListener->loadCancelled(this);
+                               return;
+                       }
+               }
+       }
+
        m_xFrame        = rFrame;
        m_xListener = rListener;
        m_aURL          = rURL;




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

Reply via email to