diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-07-19 14:31:13 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-07-19 19:50:27 +0200 |
commit | 4073bc15d1aa1b46b2e0953d6316f2ab6a23dc87 (patch) | |
tree | c9558a3bd0198d18cc8cdc594dad14d853a0f40c /connectivity/source/drivers/component | |
parent | connectivity: merge OCalcResultSet and OWriterResultSet (diff) | |
download | core-4073bc15d1aa1b46b2e0953d6316f2ab6a23dc87.tar.gz core-4073bc15d1aa1b46b2e0953d6316f2ab6a23dc87.zip |
connectivity: merge OCalcStatement and OWriterStatement
Into a single OComponentStatement, as both of them just provide statement
functionality based on a file loaded into an LO component, so they can share
code.
Change-Id: Iad2852f93783ec3c4a672f4b86424b4aa0ae8eaf
Reviewed-on: https://gerrit.libreoffice.org/40181
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'connectivity/source/drivers/component')
-rw-r--r-- | connectivity/source/drivers/component/CStatement.cxx | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/connectivity/source/drivers/component/CStatement.cxx b/connectivity/source/drivers/component/CStatement.cxx new file mode 100644 index 000000000000..a83ff8587e20 --- /dev/null +++ b/connectivity/source/drivers/component/CStatement.cxx @@ -0,0 +1,34 @@ +/* -*- 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 "component/CStatement.hxx" +#include "component/CResultSet.hxx" + +using namespace connectivity::component; +using namespace connectivity::file; +using namespace com::sun::star::uno; + +OResultSet* OComponentStatement::createResultSet() +{ + return new connectivity::component::OComponentResultSet(this,m_aSQLIterator); +} + +IMPLEMENT_SERVICE_INFO(OComponentStatement,"com.sun.star.sdbc.driver.component.Statement","com.sun.star.sdbc.Statement"); + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |