User: rt      
Date: 2008-01-30 08:47:39+0000
Modified:
   dba/dbaccess/source/ui/inc/TableCopyHelper.hxx

Log:
 INTEGRATION: CWS dba24d (1.6.28); FILE MERGED
 2007/11/08 14:21:04 fs 1.6.28.1: #i81658# re-factoring of the Copy Table wizard

File Changes:

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

File [changed]: TableCopyHelper.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/inc/TableCopyHelper.hxx?r1=1.6&r2=1.7
Delta lines:  +47 -49
---------------------
--- TableCopyHelper.hxx 2007-09-26 14:50:04+0000        1.6
+++ TableCopyHelper.hxx 2008-01-30 08:47:36+0000        1.7
@@ -94,10 +94,10 @@
 
     class OTableCopyHelper
     {
-        OGenericUnoController* m_pController;
        private:
-               ::rtl::OUString         m_sDefaultTableName;
-               sal_Bool                        m_bSelectCopyTable;
+        OGenericUnoController*  m_pController;
+               ::rtl::OUString             m_sTableNameForAppend;
+
     public:
         // is needed to describe the drop target
                struct DropDescriptor
@@ -143,44 +143,6 @@
                         ,const ::rtl::OUString& _sDestDataSourceName
                         ,const SharedConnection& _xConnection);
 
-               /** pastes a table into the data source
-                       @param  _rPasteData
-                               The data descriptor.
-            @param     _sDestDataSourceName
-                               The name of the dest data source.
-               */
-               void pasteTable( ::svx::ODataAccessDescriptor& _rPasteData 
-                        ,const ::rtl::OUString& _sDestDataSourceName
-                        ,const SharedConnection& _xDestConnection);
-
-               /** insert a table into the data source. The source can eihter 
be a table or a query
-                       @param  _nCommandType
-                               The command type.
-                       @param  _xSrcConnection
-                               The connection of the source.
-                       @param  _xSrcRs
-                               The ResultSet of the source.
-                       @param  _aSelection
-                               The selection of the rows to copy.
-                       @param  _bBookmarkSelection
-                               If <TRUE/> the selection is bookmark selection.
-                       @param  _sCommand
-                               The name of the query or table.
-                       @param  _sSrcDataSourceName
-                               The name of the source data source.
-            @param     _sDestDataSourceName
-                               The name of the dest data source.
-               */
-               void insertTable( sal_Int32 _nCommandType
-                                               ,const 
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& 
_xSrcConnection
-                                               ,const 
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet>&   
_xSrcRs                 // the source resultset may be empty
-                                               ,const 
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& _aSelection
-                                               ,sal_Bool _bBookmarkSelection
-                                               ,const ::rtl::OUString& 
_sCommand
-                                               ,const ::rtl::OUString& 
_sSrcDataSourceName
-                        ,const ::rtl::OUString& _sDestDataSourceName
-                        ,const ::com::sun::star::uno::Reference< 
::com::sun::star::sdbc::XConnection>& _xDestConnection);
-
                /** copies a table which was constructed by tags like HTML or 
RTF
                        @param  _rDesc
                                The Drop descriptor
@@ -220,13 +182,49 @@
         /// returns <TRUE/> if the clipboard supports a table format, 
otherwise <FALSE/>.
                sal_Bool isTableFormat(const TransferableDataHelper& 
_rClipboard) const;
 
-               //dyf add 20070601
-               inline void           SetDefaultTableName(const ::rtl::OUString 
&_sDefaultTableName){ m_sDefaultTableName = _sDefaultTableName ; }
-               inline ::rtl::OUString  GetDefaultTableName() const { return 
m_sDefaultTableName ;}
+        inline void                     SetTableNameForAppend( const 
::rtl::OUString& _rDefaultTableName ) { m_sTableNameForAppend = 
_rDefaultTableName; }
+        inline void                     ResetTableNameForAppend() { 
SetTableNameForAppend( ::rtl::OUString() ); }
+               inline const ::rtl::OUString&   GetTableNameForAppend() const { 
return m_sTableNameForAppend ;}
 
-               inline void                     SetIsSelectCopytable(sal_Bool 
isSelect){ m_bSelectCopyTable = isSelect;}
-               sal_Bool                        GetIsSelectCopytable(){ return 
m_bSelectCopyTable; }
-               //dyf add end 
+    private:
+               /** pastes a table into the data source
+                       @param  _rPasteData
+                               The data descriptor.
+            @param     _sDestDataSourceName
+                               The name of the dest data source.
+               */
+               void pasteTable(
+            const ::svx::ODataAccessDescriptor& _rPasteData,
+            const ::rtl::OUString& _sDestDataSourceName,
+            const SharedConnection& _xDestConnection
+        );
+
+               /** insert a table into the data source. The source can eihter 
be a table or a query
+                       @param  _nCommandType
+                               The command type.
+                       @param  _xSrcConnection
+                               The connection of the source.
+                       @param  _aSelection
+                               The selection of the rows to copy.
+                       @param  _bBookmarkSelection
+                               If <TRUE/> the selection is bookmark selection.
+                       @param  _sCommand
+                               The name of the query or table.
+                       @param  _sSrcDataSourceName
+                               The name of the source data source.
+            @param     _sDestDataSourceName
+                               The name of the dest data source.
+               */
+               void insertTable(
+            sal_Int32 _nCommandType,
+                       const ::com::sun::star::uno::Reference< 
::com::sun::star::sdbc::XConnection>& _xSrcConnection,
+                       const ::com::sun::star::uno::Sequence< 
::com::sun::star::uno::Any >& _aSelection,
+                       sal_Bool _bBookmarkSelection,
+                       const ::rtl::OUString& _sCommand,
+                       const ::rtl::OUString& _sSrcDataSourceName,
+            const ::rtl::OUString& _sDestDataSourceName,
+            const ::com::sun::star::uno::Reference< 
::com::sun::star::sdbc::XConnection>& _xDestConnection
+        );
         
     };
 //........................................................................




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

Reply via email to