Kaydet (Commit) 60020f61 authored tarafından Miklos Vajna's avatar Miklos Vajna

connectivity writer driver: add Tables implementation

But leave OWriterTables::createObject() as a stub for now.

Change-Id: I8a05d698e565cefded1286decdfbdfece8c2237b
üst 6fb3e3a9
......@@ -41,6 +41,7 @@ $(eval $(call gb_Library_add_exception_objects,writer,\
connectivity/source/drivers/writer/WConnection \
connectivity/source/drivers/writer/WDatabaseMetaData \
connectivity/source/drivers/writer/WDriver \
connectivity/source/drivers/writer/WTables \
connectivity/source/drivers/writer/Wservices \
))
......
......@@ -18,6 +18,7 @@
*/
#include "writer/WCatalog.hxx"
#include "writer/WTables.hxx"
#include <com/sun/star/sdbc/XRow.hpp>
#include <com/sun/star/sdbc/XResultSet.hpp>
......@@ -53,7 +54,7 @@ void OWriterCatalog::refreshTables()
if (m_pTables)
m_pTables->reFill(aVector);
else
SAL_WARN("connectivity.writer", "TODO implement OWriterCatalog::refreshTables()");
m_pTables = new OWriterTables(m_xMetaData, *this, m_aMutex, aVector);
}
} // namespace writer
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "writer/WTables.hxx"
#include <sal/config.h>
#include <comphelper/types.hxx>
#include <writer/WConnection.hxx>
#include "file/FCatalog.hxx"
#include "file/FConnection.hxx"
#include "writer/WCatalog.hxx"
using namespace ::com::sun::star;
namespace connectivity
{
namespace writer
{
sdbcx::ObjectType OWriterTables::createObject(const OUString& /*rName*/)
{
sdbcx::ObjectType xRet;
SAL_WARN("connectivity.writer", "TODO implement OWriterTables::createObject()");
return xRet;
}
} // namespace writer
} // namespace connectivity
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_CONNECTIVITY_SOURCE_INC_WRITER_WTABLES_HXX
#define INCLUDED_CONNECTIVITY_SOURCE_INC_WRITER_WTABLES_HXX
#include "file/FTables.hxx"
namespace connectivity
{
namespace writer
{
typedef file::OTables OWriterTables_BASE;
class OWriterTables : public OWriterTables_BASE
{
protected:
virtual sdbcx::ObjectType createObject(const OUString& _rName) override;
public:
OWriterTables(const css::uno::Reference<css::sdbc::XDatabaseMetaData>& _rMetaData,::cppu::OWeakObject& _rParent, ::osl::Mutex& _rMutex,
const TStringVector& _rVector) : OWriterTables_BASE(_rMetaData,_rParent,_rMutex,_rVector)
{}
};
}
}
#endif // INCLUDED_CONNECTIVITY_SOURCE_INC_WRITER_WTABLES_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment