mork: Clean up unused includes
Change-Id: Ideff092f49bd84ce829f3ae142de7ff2d32391ab Reviewed-on: https://gerrit.libreoffice.org/22128 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Ostrovsky <david@ostrovsky.org>
This commit is contained in:
@@ -20,19 +20,12 @@
|
||||
#include "MCatalog.hxx"
|
||||
#include "MConnection.hxx"
|
||||
#include "MTables.hxx"
|
||||
#include <com/sun/star/sdbc/XRow.hpp>
|
||||
#include <com/sun/star/sdbc/XResultSet.hpp>
|
||||
#include <cppuhelper/interfacecontainer.h>
|
||||
|
||||
|
||||
using namespace connectivity::mork;
|
||||
using namespace ::com::sun::star::uno;
|
||||
using namespace ::com::sun::star::beans;
|
||||
using namespace ::com::sun::star::sdbcx;
|
||||
using namespace ::com::sun::star::sdbc;
|
||||
using namespace ::com::sun::star::container;
|
||||
using namespace ::com::sun::star::lang;
|
||||
using namespace ::cppu;
|
||||
|
||||
|
||||
OCatalog::OCatalog(OConnection* _pCon) : connectivity::sdbcx::OCatalog(_pCon)
|
||||
|
@@ -17,12 +17,9 @@
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#include <sal/macros.h>
|
||||
#include "MColumnAlias.hxx"
|
||||
#include "MConnection.hxx"
|
||||
|
||||
#include <com/sun/star/beans/XPropertySet.hpp>
|
||||
#include <com/sun/star/container/XNameAccess.hpp>
|
||||
#include <officecfg/Office/DataAccess.hxx>
|
||||
|
||||
#include <tools/diagnose_ex.h>
|
||||
@@ -30,11 +27,8 @@
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
|
||||
using namespace ::connectivity;
|
||||
using namespace ::connectivity::mork;
|
||||
using namespace ::com::sun::star::uno;
|
||||
using namespace ::com::sun::star::lang;
|
||||
using namespace ::com::sun::star::beans;
|
||||
using namespace ::com::sun::star::container;
|
||||
|
||||
|
||||
|
@@ -19,26 +19,14 @@
|
||||
|
||||
#include "MColumns.hxx"
|
||||
#include <connectivity/sdbcx/VColumn.hxx>
|
||||
#include <com/sun/star/sdbc/XRow.hpp>
|
||||
#include <com/sun/star/sdbc/XResultSet.hpp>
|
||||
#include <com/sun/star/sdbc/DataType.hpp>
|
||||
#include <com/sun/star/sdbc/ColumnValue.hpp>
|
||||
#include "MTable.hxx"
|
||||
#include "MTables.hxx"
|
||||
#include "MCatalog.hxx"
|
||||
#include <comphelper/types.hxx>
|
||||
#include <connectivity/dbtools.hxx>
|
||||
|
||||
using namespace ::comphelper;
|
||||
|
||||
using namespace connectivity::mork;
|
||||
using namespace connectivity::sdbcx;
|
||||
using namespace connectivity;
|
||||
using namespace ::com::sun::star::uno;
|
||||
using namespace ::com::sun::star::beans;
|
||||
using namespace ::com::sun::star::sdbc;
|
||||
using namespace ::com::sun::star::container;
|
||||
using namespace ::com::sun::star::lang;
|
||||
|
||||
|
||||
sdbcx::ObjectType OColumns::createObject(const OUString& _rName)
|
||||
{
|
||||
|
@@ -14,18 +14,13 @@
|
||||
#include "MPreparedStatement.hxx"
|
||||
#include "MorkParser.hxx"
|
||||
|
||||
#include <connectivity/dbcharset.hxx>
|
||||
#include <connectivity/dbexception.hxx>
|
||||
#include <connectivity/sqlerror.hxx>
|
||||
|
||||
#include "resource/mork_res.hrc"
|
||||
#include "resource/common_res.hrc"
|
||||
|
||||
#include <com/sun/star/sdbc/ColumnValue.hpp>
|
||||
#include <com/sun/star/sdbc/XRow.hpp>
|
||||
#include <com/sun/star/sdbc/TransactionIsolation.hpp>
|
||||
|
||||
#include <comphelper/officeresourcebundle.hxx>
|
||||
#include <comphelper/processfactory.hxx>
|
||||
|
||||
using namespace dbtools;
|
||||
|
@@ -10,18 +10,12 @@
|
||||
#ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MCONNECTION_HXX
|
||||
#define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MCONNECTION_HXX
|
||||
|
||||
#include <connectivity/CommonTools.hxx>
|
||||
|
||||
#include <connectivity/OSubComponent.hxx>
|
||||
#include "TConnection.hxx"
|
||||
#include "MColumnAlias.hxx"
|
||||
|
||||
#include <com/sun/star/beans/PropertyValue.hpp>
|
||||
#include <com/sun/star/sdbc/SQLWarning.hpp>
|
||||
#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
|
||||
|
||||
#include <cppuhelper/weakref.hxx>
|
||||
|
||||
// do we want here namespace too?
|
||||
class MorkParser;
|
||||
|
||||
|
@@ -7,31 +7,22 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#include "MConnection.hxx"
|
||||
#include "MDatabaseMetaData.hxx"
|
||||
#include "FDatabaseMetaDataResultSet.hxx"
|
||||
#include <com/sun/star/sdbc/DataType.hpp>
|
||||
#include <com/sun/star/sdbc/ResultSetType.hpp>
|
||||
#include <com/sun/star/sdbc/ResultSetConcurrency.hpp>
|
||||
|
||||
#include <com/sun/star/sdbc/TransactionIsolation.hpp>
|
||||
#include <connectivity/FValue.hxx>
|
||||
#include <com/sun/star/sdbc/ColumnValue.hpp>
|
||||
#include <com/sun/star/sdbc/ColumnSearch.hpp>
|
||||
#include "resource/common_res.hrc"
|
||||
#include <vector>
|
||||
|
||||
#include "MDatabaseMetaDataHelper.hxx"
|
||||
#include "MorkParser.hxx"
|
||||
#include <connectivity/dbtools.hxx>
|
||||
|
||||
using namespace dbtools;
|
||||
using namespace connectivity::mork;
|
||||
using namespace connectivity;
|
||||
|
||||
using namespace com::sun::star::uno;
|
||||
using namespace com::sun::star::lang;
|
||||
using namespace com::sun::star::beans;
|
||||
using namespace com::sun::star::sdbc;
|
||||
using namespace com::sun::star::sdbcx;
|
||||
|
||||
|
||||
namespace connectivity
|
||||
|
@@ -10,19 +10,8 @@
|
||||
#ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MDATABASEMETADATA_HXX
|
||||
#define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MDATABASEMETADATA_HXX
|
||||
|
||||
#include <connectivity/CommonTools.hxx>
|
||||
#include <connectivity/OSubComponent.hxx>
|
||||
|
||||
#include "MConnection.hxx"
|
||||
#include "MDatabaseMetaDataHelper.hxx"
|
||||
#include "TDatabaseMetaDataBase.hxx"
|
||||
|
||||
#include <com/sun/star/beans/PropertyValue.hpp>
|
||||
#include <com/sun/star/sdbc/SQLWarning.hpp>
|
||||
#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
|
||||
|
||||
#include <cppuhelper/weakref.hxx>
|
||||
|
||||
namespace connectivity
|
||||
{
|
||||
namespace mork
|
||||
|
@@ -7,18 +7,12 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#include "MConnection.hxx"
|
||||
#include "MDatabaseMetaDataHelper.hxx"
|
||||
#include "FDatabaseMetaDataResultSet.hxx"
|
||||
#include <connectivity/dbexception.hxx>
|
||||
#include <comphelper/uno3.hxx>
|
||||
#include <comphelper/sequence.hxx>
|
||||
#include <osl/mutex.hxx>
|
||||
#include <osl/conditn.hxx>
|
||||
|
||||
// do we need it?
|
||||
static ::osl::Mutex m_aMetaMutex;
|
||||
|
||||
#include <osl/diagnose.h>
|
||||
#include <com/sun/star/uno/Reference.hxx>
|
||||
#include <com/sun/star/uno/Sequence.hxx>
|
||||
#include <com/sun/star/uno/XInterface.hpp>
|
||||
|
@@ -10,14 +10,7 @@
|
||||
#ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MDATABASEMETADATAHELPER_HXX
|
||||
#define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MDATABASEMETADATAHELPER_HXX
|
||||
|
||||
#include <comphelper/proparrhlp.hxx>
|
||||
#include <comphelper/propertycontainer.hxx>
|
||||
#include "FDatabaseMetaDataResultSet.hxx"
|
||||
#include "MErrorResource.hxx"
|
||||
|
||||
#include "MConnection.hxx"
|
||||
#include <com/sun/star/uno/Sequence.hxx>
|
||||
|
||||
|
||||
namespace connectivity
|
||||
{
|
||||
|
@@ -7,15 +7,10 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#include <cppuhelper/supportsservice.hxx>
|
||||
#include "MDriver.hxx"
|
||||
#include "MConnection.hxx"
|
||||
|
||||
#include <com/sun/star/mozilla/XMozillaBootstrap.hpp>
|
||||
#include <com/sun/star/mozilla/MozillaProductType.hpp>
|
||||
|
||||
#include "resource/mork_res.hrc"
|
||||
#include "resource/common_res.hrc"
|
||||
|
||||
using namespace connectivity::mork;
|
||||
|
||||
|
@@ -10,25 +10,12 @@
|
||||
#ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MDRIVER_HXX
|
||||
#define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MDRIVER_HXX
|
||||
|
||||
#include <sal/config.h>
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#include <com/sun/star/beans/PropertyValue.hpp>
|
||||
#include <com/sun/star/lang/XServiceInfo.hpp>
|
||||
#include <com/sun/star/sdbc/DriverPropertyInfo.hpp>
|
||||
#include <com/sun/star/sdbc/SQLException.hpp>
|
||||
#include <com/sun/star/sdbc/XConnection.hpp>
|
||||
|
||||
#include <com/sun/star/sdbc/XDriver.hpp>
|
||||
#include <com/sun/star/uno/Reference.hxx>
|
||||
#include <com/sun/star/uno/RuntimeException.hpp>
|
||||
#include <com/sun/star/uno/Sequence.hxx>
|
||||
#include <com/sun/star/uno/XComponentContext.hpp>
|
||||
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
|
||||
#include <cppuhelper/implbase.hxx>
|
||||
#include <cppuhelper/weak.hxx>
|
||||
#include <rtl/ustring.hxx>
|
||||
#include <sal/types.h>
|
||||
|
||||
#define MORK_DRIVER_IMPL_NAME "com.sun.star.comp.sdbc.MorkDriver"
|
||||
|
||||
|
@@ -20,8 +20,6 @@
|
||||
#ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MERRORRESOURCE_HXX
|
||||
#define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MERRORRESOURCE_HXX
|
||||
|
||||
#include <rtl/ustring.hxx>
|
||||
|
||||
namespace connectivity
|
||||
{
|
||||
namespace mork
|
||||
|
@@ -7,17 +7,10 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#include <osl/diagnose.h>
|
||||
#include <connectivity/sdbcx/VColumn.hxx>
|
||||
#include "MPreparedStatement.hxx"
|
||||
#include <com/sun/star/sdbc/DataType.hpp>
|
||||
#include "MResultSetMetaData.hxx"
|
||||
#include <cppuhelper/typeprovider.hxx>
|
||||
#include <comphelper/sequence.hxx>
|
||||
#include <com/sun/star/lang/DisposedException.hpp>
|
||||
#include <connectivity/dbexception.hxx>
|
||||
#include <connectivity/dbtools.hxx>
|
||||
#include <comphelper/types.hxx>
|
||||
#include <com/sun/star/sdbc/ColumnValue.hpp>
|
||||
|
||||
#if OSL_DEBUG_LEVEL > 0
|
||||
@@ -30,12 +23,8 @@ using namespace ::comphelper;
|
||||
using namespace connectivity;
|
||||
using namespace connectivity::mork;
|
||||
using namespace com::sun::star::uno;
|
||||
using namespace com::sun::star::lang;
|
||||
using namespace com::sun::star::beans;
|
||||
using namespace com::sun::star::sdbc;
|
||||
using namespace com::sun::star::sdbcx;
|
||||
using namespace com::sun::star::container;
|
||||
using namespace com::sun::star::io;
|
||||
using namespace com::sun::star::util;
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(OPreparedStatement,"com.sun.star.sdbcx.mork.PreparedStatement","com.sun.star.sdbc.PreparedStatement");
|
||||
|
@@ -21,11 +21,7 @@
|
||||
#define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MPREPAREDSTATEMENT_HXX
|
||||
|
||||
#include "MResultSet.hxx"
|
||||
#include "MStatement.hxx"
|
||||
#include <com/sun/star/sdbc/XPreparedStatement.hpp>
|
||||
#include <com/sun/star/sdbc/XParameters.hpp>
|
||||
#include <com/sun/star/sdbc/XResultSetMetaDataSupplier.hpp>
|
||||
#include <com/sun/star/io/XInputStream.hpp>
|
||||
#include <com/sun/star/sdbc/XMultipleResults.hpp>
|
||||
#include <cppuhelper/compbase5.hxx>
|
||||
|
||||
|
@@ -31,9 +31,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "resource/mork_res.hrc"
|
||||
#include "resource/common_res.hrc"
|
||||
|
||||
#include <connectivity/dbexception.hxx>
|
||||
#include <unotools/textsearch.hxx>
|
||||
|
||||
using namespace connectivity::mork;
|
||||
|
@@ -20,14 +20,8 @@
|
||||
#ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MQUERYHELPER_HXX
|
||||
#define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MQUERYHELPER_HXX
|
||||
|
||||
#include <sal/types.h>
|
||||
#include <rtl/ustring.hxx>
|
||||
#include <osl/mutex.hxx>
|
||||
#include <osl/conditn.hxx>
|
||||
#include <osl/thread.hxx>
|
||||
#include <connectivity/FValue.hxx>
|
||||
#include "MErrorResource.hxx"
|
||||
#include <unordered_map>
|
||||
|
||||
namespace connectivity
|
||||
{
|
||||
|
@@ -17,24 +17,12 @@
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#include <com/sun/star/sdbc/DataType.hpp>
|
||||
#include <com/sun/star/beans/PropertyAttribute.hpp>
|
||||
#include <comphelper/property.hxx>
|
||||
#include <comphelper/sequence.hxx>
|
||||
#include <cppuhelper/typeprovider.hxx>
|
||||
#include <cppuhelper/supportsservice.hxx>
|
||||
#include <comphelper/extract.hxx>
|
||||
#include <com/sun/star/lang/DisposedException.hpp>
|
||||
#include <com/sun/star/sdbc/ResultSetType.hpp>
|
||||
#include <com/sun/star/sdbc/FetchDirection.hpp>
|
||||
#include <com/sun/star/sdbc/ResultSetConcurrency.hpp>
|
||||
#include <com/sun/star/sdbcx/CompareBookmark.hpp>
|
||||
#include <comphelper/types.hxx>
|
||||
#include <connectivity/dbexception.hxx>
|
||||
#include <connectivity/dbtools.hxx>
|
||||
|
||||
#include <TSortIndex.hxx>
|
||||
#include <rtl/string.hxx>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
#include "MResultSet.hxx"
|
||||
|
@@ -18,32 +18,17 @@
|
||||
*/
|
||||
|
||||
|
||||
#include <osl/diagnose.h>
|
||||
#include <comphelper/property.hxx>
|
||||
#include <comphelper/uno3.hxx>
|
||||
#include <osl/thread.h>
|
||||
#include <tools/diagnose_ex.h>
|
||||
#include <com/sun/star/sdbc/ResultSetConcurrency.hpp>
|
||||
#include <com/sun/star/sdbc/ResultSetType.hpp>
|
||||
#include <com/sun/star/sdbc/FetchDirection.hpp>
|
||||
#include <com/sun/star/lang/DisposedException.hpp>
|
||||
#include <comphelper/sequence.hxx>
|
||||
#include <cppuhelper/queryinterface.hxx>
|
||||
#include <cppuhelper/typeprovider.hxx>
|
||||
#include <comphelper/processfactory.hxx>
|
||||
#include <comphelper/extract.hxx>
|
||||
#include <comphelper/types.hxx>
|
||||
#include <connectivity/dbexception.hxx>
|
||||
#include <com/sun/star/container/XIndexAccess.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "MDriver.hxx"
|
||||
#include "MStatement.hxx"
|
||||
#include "sqlbison.hxx"
|
||||
#include "MConnection.hxx"
|
||||
#include "MResultSet.hxx"
|
||||
#include "MDatabaseMetaData.hxx"
|
||||
|
||||
#include "resource/mork_res.hrc"
|
||||
#include "resource/common_res.hrc"
|
||||
|
@@ -20,23 +20,10 @@
|
||||
#ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MSTATEMENT_HXX
|
||||
#define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MSTATEMENT_HXX
|
||||
|
||||
#include <com/sun/star/sdbc/XStatement.hpp>
|
||||
#include <com/sun/star/sdbc/XWarningsSupplier.hpp>
|
||||
#include <com/sun/star/sdbc/XBatchExecution.hpp>
|
||||
#include <com/sun/star/sdbc/XCloseable.hpp>
|
||||
#include <com/sun/star/sdbc/SQLWarning.hpp>
|
||||
#include <comphelper/proparrhlp.hxx>
|
||||
#include <cppuhelper/compbase.hxx>
|
||||
#include <comphelper/uno3.hxx>
|
||||
#include <connectivity/CommonTools.hxx>
|
||||
#include <list>
|
||||
#include <com/sun/star/lang/XServiceInfo.hpp>
|
||||
#include <comphelper/broadcasthelper.hxx>
|
||||
#include <connectivity/sqliterator.hxx>
|
||||
#include <connectivity/sqlparse.hxx>
|
||||
#include <connectivity/FValue.hxx>
|
||||
#include "TSortIndex.hxx"
|
||||
#include "MConnection.hxx"
|
||||
#include "MTable.hxx"
|
||||
|
||||
#include <memory>
|
||||
|
@@ -18,33 +18,13 @@
|
||||
*/
|
||||
|
||||
#include "MTable.hxx"
|
||||
#include "MTables.hxx"
|
||||
#include "MColumns.hxx"
|
||||
#include <com/sun/star/sdbc/XRow.hpp>
|
||||
#include <com/sun/star/sdbc/XResultSet.hpp>
|
||||
#include <com/sun/star/sdbcx/KeyType.hpp>
|
||||
#include <com/sun/star/sdbc/KeyRule.hpp>
|
||||
#include <cppuhelper/typeprovider.hxx>
|
||||
#include <com/sun/star/lang/DisposedException.hpp>
|
||||
#include <com/sun/star/sdbc/ColumnValue.hpp>
|
||||
#include <comphelper/sequence.hxx>
|
||||
#include <comphelper/extract.hxx>
|
||||
#include <comphelper/types.hxx>
|
||||
#include <connectivity/dbtools.hxx>
|
||||
#include <connectivity/TKeys.hxx>
|
||||
#include <connectivity/TIndexes.hxx>
|
||||
#include "MCatalog.hxx"
|
||||
|
||||
|
||||
using namespace ::comphelper;
|
||||
using namespace connectivity::mork;
|
||||
using namespace connectivity;
|
||||
using namespace ::com::sun::star::uno;
|
||||
using namespace ::com::sun::star::beans;
|
||||
using namespace ::com::sun::star::sdbcx;
|
||||
using namespace ::com::sun::star::sdbc;
|
||||
using namespace ::com::sun::star::container;
|
||||
using namespace ::com::sun::star::lang;
|
||||
|
||||
|
||||
OTable::OTable( sdbcx::OCollection* _pTables, OConnection* _pConnection,
|
||||
|
@@ -21,7 +21,6 @@
|
||||
#define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MTABLE_HXX
|
||||
|
||||
#include <connectivity/TTableHelper.hxx>
|
||||
#include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
|
||||
#include "MConnection.hxx"
|
||||
|
||||
namespace connectivity
|
||||
|
@@ -19,30 +19,13 @@
|
||||
|
||||
#include "MTables.hxx"
|
||||
#include "MTable.hxx"
|
||||
#include <com/sun/star/sdbc/XRow.hpp>
|
||||
#include <com/sun/star/sdbc/XResultSet.hpp>
|
||||
#include <com/sun/star/sdbc/ColumnValue.hpp>
|
||||
#include <com/sun/star/sdbc/KeyRule.hpp>
|
||||
#include <com/sun/star/sdbcx/KeyType.hpp>
|
||||
#include "MCatalog.hxx"
|
||||
#include "MConnection.hxx"
|
||||
#include <comphelper/extract.hxx>
|
||||
#include <connectivity/dbtools.hxx>
|
||||
#include <connectivity/dbexception.hxx>
|
||||
#include <cppuhelper/interfacecontainer.h>
|
||||
#include <comphelper/types.hxx>
|
||||
|
||||
using namespace ::comphelper;
|
||||
using namespace connectivity;
|
||||
using namespace ::cppu;
|
||||
using namespace connectivity::mork;
|
||||
using namespace ::com::sun::star::uno;
|
||||
using namespace ::com::sun::star::beans;
|
||||
using namespace ::com::sun::star::sdbcx;
|
||||
using namespace ::com::sun::star::sdbc;
|
||||
using namespace ::com::sun::star::container;
|
||||
using namespace ::com::sun::star::lang;
|
||||
using namespace dbtools;
|
||||
|
||||
sdbcx::ObjectType OTables::createObject(const OUString& _rName)
|
||||
{
|
||||
|
Reference in New Issue
Block a user