Tag: cws_oog680_dba23f
User: oj      
Date: 2007-09-06 07:13:36+0000
Modified:
   dba/dbaccess/source/ui/app/AppController.cxx

Log:
 #i81299# merge from i77507 dba24a

File Changes:

Directory: /dba/dbaccess/source/ui/app/
=======================================

File [changed]: AppController.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppController.cxx?r1=1.44&r2=1.44.22.1
Delta lines:  +11 -12
---------------------
--- AppController.cxx   2007-08-03 12:47:47+0000        1.44
+++ AppController.cxx   2007-09-06 07:13:33+0000        1.44.22.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: AppController.cxx,v $
  *
- *  $Revision: 1.44 $
+ *  $Revision: 1.44.22.1 $
  *
- *  last change: $Author: hr $ $Date: 2007/08/03 12:47:47 $
+ *  last change: $Author: oj $ $Date: 2007/09/06 07:13:33 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -224,9 +224,8 @@
 #ifndef _DBAUI_DSNTYPES_HXX_
 #include "dsntypes.hxx"
 #endif
-#ifndef _PASTEDLG_HXX
-#include <so3/pastedlg.hxx>
-#endif
+#include <svx/svxdlg.hxx>
+#include <svtools/insdlg.hxx>
 #ifndef _UNOTOOLS_TEMPFILE_HXX
 #include <unotools/tempfile.hxx>
 #endif
@@ -1012,17 +1011,17 @@
                                {
                                        if ( !aArgs.getLength() )
                                        {
-                                               SvPasteObjectDialog aDlg;
+                        SvxAbstractDialogFactory* pFact = 
SvxAbstractDialogFactory::Create();
+                        ::std::auto_ptr<SfxAbstractPasteDialog> 
pDlg(pFact->CreatePasteDialog( getView() ));
                                                
::std::vector<SotFormatStringId> aFormatIds;
                                                
getSupportedFormats(getContainer()->getElementType(),aFormatIds);
-                                               
::std::vector<SotFormatStringId>::iterator aEnd = aFormatIds.end();
+                                               const 
::std::vector<SotFormatStringId>::iterator aEnd = aFormatIds.end();
+                        ::rtl::OUString sEmpty;
                                                for 
(::std::vector<SotFormatStringId>::iterator aIter = aFormatIds.begin();aIter != 
aEnd; ++aIter)
-                                               {
-                                                       
aDlg.Insert(*aIter,SvPasteObjectDialog::GetSotFormatUIName(*aIter));
-                                               }
+                                                       
pDlg->Insert(*aIter,sEmpty);
 
                                                const TransferableDataHelper& 
rClipboard = getViewClipboard();
-                                               
pasteFormat(aDlg.Execute(getView(),rClipboard.GetTransferable()));
+                                               
pasteFormat(pDlg->GetFormat(rClipboard.GetTransferable()));
                                        }
                                        else
                                        {




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

Reply via email to