2010-10-12 15:59:03 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-14 17:39:53 +01:00
|
|
|
/*
|
|
|
|
* 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 .
|
|
|
|
*/
|
2004-08-02 14:11:51 +00:00
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
TODO
|
|
|
|
**************************************************************************
|
|
|
|
|
|
|
|
- This implementation is not a dynamic result set!!! It only implements
|
|
|
|
the necessary interfaces, but never recognizes/notifies changes!!!
|
|
|
|
|
|
|
|
*************************************************************************/
|
|
|
|
|
|
|
|
#include "myucp_datasupplier.hxx"
|
|
|
|
#include "myucp_resultset.hxx"
|
2012-11-07 17:20:04 +02:00
|
|
|
#include <comphelper/processfactory.hxx>
|
2004-08-02 14:11:51 +00:00
|
|
|
|
|
|
|
using namespace ::com::sun::star::uno;
|
|
|
|
using namespace ::com::sun::star::ucb;
|
|
|
|
using namespace ::com::sun::star::beans;
|
|
|
|
using namespace ::com::sun::star::lang;
|
|
|
|
using namespace ::com::sun::star::sdbc;
|
|
|
|
using namespace ::com::sun::star::io;
|
|
|
|
using namespace ::com::sun::star::container;
|
|
|
|
|
|
|
|
using namespace dbaccess;
|
|
|
|
|
|
|
|
// DynamicResultSet Implementation.
|
|
|
|
DynamicResultSet::DynamicResultSet(
|
2012-11-08 08:16:06 +02:00
|
|
|
const Reference< XComponentContext >& rxContext,
|
2004-08-02 14:11:51 +00:00
|
|
|
const rtl::Reference< ODocumentContainer >& rxContent,
|
|
|
|
const OpenCommandArgument2& rCommand,
|
|
|
|
const Reference< XCommandEnvironment >& rxEnv )
|
2012-11-08 08:16:06 +02:00
|
|
|
:ResultSetImplHelper( rxContext, rCommand )
|
2006-06-20 01:46:11 +00:00
|
|
|
,m_xContent(rxContent)
|
|
|
|
,m_xEnv( rxEnv )
|
2004-08-02 14:11:51 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// Non-interface methods.
|
|
|
|
void DynamicResultSet::initStatic()
|
|
|
|
{
|
|
|
|
m_xResultSet1
|
2012-11-08 08:16:06 +02:00
|
|
|
= new ::ucbhelper::ResultSet( m_xContext,
|
2007-06-05 13:39:58 +00:00
|
|
|
m_aCommand.Properties,
|
2012-11-07 17:20:04 +02:00
|
|
|
new DataSupplier( m_xContent,
|
2007-06-05 13:39:58 +00:00
|
|
|
m_aCommand.Mode ),
|
|
|
|
m_xEnv );
|
2004-08-02 14:11:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DynamicResultSet::initDynamic()
|
|
|
|
{
|
|
|
|
m_xResultSet1
|
2012-11-08 08:16:06 +02:00
|
|
|
= new ::ucbhelper::ResultSet( m_xContext,
|
2007-06-05 13:39:58 +00:00
|
|
|
m_aCommand.Properties,
|
2012-11-07 17:20:04 +02:00
|
|
|
new DataSupplier( m_xContent,
|
2007-06-05 13:39:58 +00:00
|
|
|
m_aCommand.Mode ),
|
|
|
|
m_xEnv );
|
2004-08-02 14:11:51 +00:00
|
|
|
m_xResultSet2 = m_xResultSet1;
|
|
|
|
}
|
2013-08-17 23:43:14 +02:00
|
|
|
|
2010-10-12 15:59:03 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|