merge ftp::ResultSetFactory with ResultSetFactoryI
Change-Id: I061145fefef33aa3e7349adf7da03222c3b2a911 Reviewed-on: https://gerrit.libreoffice.org/26898 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
parent
20b9cbd0e5
commit
3459ab4a5d
@ -266,7 +266,6 @@ merge frm::ITextAttributeListener with frm::OAttributeDispatcher
|
|||||||
merge frm::ITextSelectionListener with frm::ORichTextPeer
|
merge frm::ITextSelectionListener with frm::ORichTextPeer
|
||||||
merge frm::OFormComponents with frm::ODatabaseForm
|
merge frm::OFormComponents with frm::ODatabaseForm
|
||||||
merge ftp::CurlInput with InsertData
|
merge ftp::CurlInput with InsertData
|
||||||
merge ftp::ResultSetFactory with ResultSetFactoryI
|
|
||||||
merge gio::Seekable with gio::OutputStream
|
merge gio::Seekable with gio::OutputStream
|
||||||
merge i_xml_parser_event_handler with (anonymous namespace)::recently_used_file_filter
|
merge i_xml_parser_event_handler with (anonymous namespace)::recently_used_file_filter
|
||||||
merge oglcanvas::CanvasHelper with oglcanvas::BitmapCanvasHelper
|
merge oglcanvas::CanvasHelper with oglcanvas::BitmapCanvasHelper
|
||||||
|
@ -221,42 +221,27 @@ void SAL_CALL FTPContent::abort( sal_Int32 /*CommandId*/ )
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************************/
|
|
||||||
/* */
|
|
||||||
/* Internal implementation class. */
|
|
||||||
/* */
|
|
||||||
/***************************************************************************/
|
|
||||||
|
|
||||||
class ResultSetFactoryI : public ResultSetFactory
|
ResultSetFactory::ResultSetFactory(const Reference<XComponentContext >& rxContext,
|
||||||
{
|
const Reference<XContentProvider >& xProvider,
|
||||||
public:
|
const Sequence<Property>& seq,
|
||||||
|
const std::vector<FTPDirentry>& dirvec)
|
||||||
ResultSetFactoryI(const Reference<XComponentContext >& rxContext,
|
|
||||||
const Reference<XContentProvider >& xProvider,
|
|
||||||
const Sequence<Property>& seq,
|
|
||||||
const std::vector<FTPDirentry>& dirvec)
|
|
||||||
: m_xContext(rxContext),
|
: m_xContext(rxContext),
|
||||||
m_xProvider(xProvider),
|
m_xProvider(xProvider),
|
||||||
m_seq(seq),
|
m_seq(seq),
|
||||||
m_dirvec(dirvec)
|
m_dirvec(dirvec)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ResultSetBase* createResultSet() override
|
|
||||||
{
|
|
||||||
return new ResultSetI(m_xContext,
|
|
||||||
m_xProvider,
|
|
||||||
m_seq,
|
|
||||||
m_dirvec);
|
|
||||||
}
|
|
||||||
|
|
||||||
public:
|
ResultSetBase* ResultSetFactory::createResultSet()
|
||||||
|
{
|
||||||
|
return new ResultSetI(m_xContext,
|
||||||
|
m_xProvider,
|
||||||
|
m_seq,
|
||||||
|
m_dirvec);
|
||||||
|
}
|
||||||
|
|
||||||
Reference< XComponentContext > m_xContext;
|
|
||||||
Reference< XContentProvider > m_xProvider;
|
|
||||||
Sequence< Property > m_seq;
|
|
||||||
std::vector<FTPDirentry> m_dirvec;
|
|
||||||
};
|
|
||||||
|
|
||||||
// XCommandProcessor methods.
|
// XCommandProcessor methods.
|
||||||
|
|
||||||
@ -547,10 +532,10 @@ Any SAL_CALL FTPContent::execute( const Command& aCommand,
|
|||||||
= new DynamicResultSet(
|
= new DynamicResultSet(
|
||||||
m_xContext,
|
m_xContext,
|
||||||
aOpenCommand,
|
aOpenCommand,
|
||||||
new ResultSetFactoryI(m_xContext,
|
new ResultSetFactory(m_xContext,
|
||||||
m_xProvider.get(),
|
m_xProvider.get(),
|
||||||
aOpenCommand.Properties,
|
aOpenCommand.Properties,
|
||||||
resvec));
|
resvec));
|
||||||
aRet <<= xSet;
|
aRet <<= xSet;
|
||||||
}
|
}
|
||||||
else if(aOpenCommand.Mode ==
|
else if(aOpenCommand.Mode ==
|
||||||
|
@ -26,20 +26,29 @@
|
|||||||
#define INCLUDED_UCB_SOURCE_UCP_FTP_FTPRESULTSETFACTORY_HXX
|
#define INCLUDED_UCB_SOURCE_UCP_FTP_FTPRESULTSETFACTORY_HXX
|
||||||
|
|
||||||
#include "ftpresultsetbase.hxx"
|
#include "ftpresultsetbase.hxx"
|
||||||
|
#include <com/sun/star/uno/XComponentContext.hpp>
|
||||||
|
#include <com/sun/star/beans/Property.hpp>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace ftp {
|
namespace ftp {
|
||||||
|
|
||||||
class ResultSetBase;
|
class ResultSetBase;
|
||||||
|
|
||||||
class ResultSetFactory
|
class ResultSetFactory
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
ResultSetFactory(const css::uno::Reference<css::uno::XComponentContext >& rxContext,
|
||||||
|
const css::uno::Reference<css::ucb::XContentProvider >& xProvider,
|
||||||
|
const css::uno::Sequence<css::beans::Property>& seq,
|
||||||
|
const std::vector<FTPDirentry>& dirvec);
|
||||||
|
|
||||||
virtual ~ResultSetFactory() { };
|
ResultSetBase* createResultSet();
|
||||||
|
private:
|
||||||
virtual ResultSetBase* createResultSet() = 0;
|
css::uno::Reference< css::uno::XComponentContext > m_xContext;
|
||||||
};
|
css::uno::Reference< css::ucb::XContentProvider > m_xProvider;
|
||||||
|
css::uno::Sequence< css::beans::Property > m_seq;
|
||||||
|
std::vector<FTPDirentry> m_dirvec;
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user