From c103bdedfe5c6042414209c536d731bbe6138ff5 Mon Sep 17 00:00:00 2001 From: Jan-Marek Glogowski Date: Fri, 8 Jan 2016 09:41:55 +0100 Subject: MM: refactor DBManager related duplicated code Moves the duplicated code for saving documents, configuring the printer and DB cursor forwarding (next record) into static local functions. Change-Id: I75f183a2a515ecbae276461613a05ab50c56e600 --- sw/inc/dbmgr.hxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sw/inc') diff --git a/sw/inc/dbmgr.hxx b/sw/inc/dbmgr.hxx index 7802771bc9c5..ac3deb1d9a9b 100644 --- a/sw/inc/dbmgr.hxx +++ b/sw/inc/dbmgr.hxx @@ -223,7 +223,6 @@ friend class SwConnectionDisposedListener_Impl; /// merge to file _and_ merge to e-Mail SAL_DLLPRIVATE bool MergeMailFiles(SwWrtShell* pSh, const SwMergeDescriptor& rMergeDescriptor, vcl::Window* pParent ); - SAL_DLLPRIVATE bool ToNextRecord(SwDSParam* pParam); SwDBManager(SwDBManager const&) = delete; SwDBManager& operator=(SwDBManager const&) = delete; @@ -251,7 +250,6 @@ public: /// Merging of data records into fields. bool MergeNew( const SwMergeDescriptor& rMergeDesc, vcl::Window* pParent = nullptr ); - static bool Merge(SwWrtShell* pSh); void MergeCancel(); /// Initialize data fields that lack name of database. @@ -270,7 +268,7 @@ public: const OUString& rDBName, const OUString& rTableName); static void GetColumnNames(ListBox* pListBox, css::uno::Reference< css::sdbc::XConnection> xConnection, - const OUString& rTableName, bool bAppend = false); + const OUString& rTableName); static sal_uLong GetColumnFormat( css::uno::Reference< css::sdbc::XDataSource> xSource, css::uno::Reference< css::sdbc::XConnection> xConnection, -- cgit