23#include <com/sun/star/sdb/TableDefinition.hpp>
24#include <com/sun/star/sdb/CommandDefinition.hpp>
33using namespace ::
cppu;
41 ,
const Reference< XInterface >& _xParentContainer
57 return ::comphelper::concatSequences(
65 return css::uno::Sequence<sal_Int8>();
71 OSL_ENSURE( rDefinitions.
find(_rName) != rDefinitions.
end(),
"OCommandContainer::createObject: Invalid entry in map!" );
73 const TContentPtr& pElementContent( rDefinitions.
find( _rName )->second );
88 return css::sdb::TableDefinition::createDefault(
m_aContext );
90 return css::sdb::CommandDefinition::create(
m_aContext );
95 return "application/vnd.org.openoffice.DatabaseCommandDefinitionContainer";
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance() override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
OCommandContainer(const css::uno::Reference< css::uno::XComponentContext > &_xORB, const css::uno::Reference< css::uno::XInterface > &_xParentContainer, const TContentPtr &_pImpl, bool _bTables)
constructs the container.
virtual ~OCommandContainer() override
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments(const css::uno::Sequence< css::uno::Any > &aArguments) override
virtual css::uno::Reference< css::ucb::XContent > createObject(const OUString &_rName) override
create an object from its persistent data within the configuration.
virtual OUString determineContentType() const override
const css::uno::Reference< css::uno::XComponentContext > m_aContext
const_iterator end() const
const_iterator find(const OUString &_rName) const
const ODefinitionContainer_Impl & getDefinitions() const
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
std::shared_ptr< OContentHelper_Impl > TContentPtr
IMPLEMENT_FORWARD_XINTERFACE2(OStatement, OStatementBase, OStatement_IFACE)