15#include <com/sun/star/io/XInputStream.hpp>
16#include <com/sun/star/io/XOutputStream.hpp>
17#include <com/sun/star/ucb/ContentCreationException.hpp>
18#include <com/sun/star/ucb/OpenCommandArgument2.hpp>
19#include <com/sun/star/ucb/TransferInfo.hpp>
20#include <com/sun/star/ucb/XContentCreator.hpp>
22#include <libcmis/libcmis.hxx>
44inline constexpr OUStringLiteral
CMIS_REPO_TYPE =
u"application/vnd.libreoffice.cmis-repository";
61 css::uno::Reference< css::sdbc::XRow >
63 const css::uno::Sequence< css::beans::Property >& rProperties,
64 const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv );
69 void getRepositories(
const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv );
71 libcmis::RepositoryPtr
getRepository(
const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv );
77 const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier,
78 std::vector< libcmis::RepositoryPtr > && aRepos = std::vector< libcmis::RepositoryPtr > ( ) );
82 virtual css::uno::Sequence< css::beans::Property >
83 getProperties(
const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv )
override;
85 virtual css::uno::Sequence< css::ucb::CommandInfo >
86 getCommands(
const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv )
override;
93 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes()
override;
95 virtual OUString SAL_CALL
98 virtual css::uno::Sequence< OUString > SAL_CALL
101 virtual OUString SAL_CALL
104 virtual css::uno::Any SAL_CALL
105 execute(
const css::ucb::Command& aCommand,
107 const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment )
override;
109 virtual void SAL_CALL
abort( sal_Int32 CommandId )
override;
111 virtual std::vector< css::uno::Reference< css::ucb::XContent > >
getChildren( )
override;
virtual css::uno::Sequence< css::beans::Property > getProperties(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override
virtual std::vector< css::uno::Reference< css::ucb::XContent > > getChildren() override
css::uno::Reference< css::sdbc::XRow > getPropertyValues(const css::uno::Sequence< css::beans::Property > &rProperties, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
RepoContent(const css::uno::Reference< css::uno::XComponentContext > &rxContext, ContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, std::vector< libcmis::RepositoryPtr > &&aRepos=std::vector< libcmis::RepositoryPtr >())
virtual css::uno::Any SAL_CALL execute(const css::ucb::Command &aCommand, sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment > &Environment) override
virtual OUString SAL_CALL getImplementationName() override
ContentProvider * m_pProvider
virtual css::uno::Sequence< css::ucb::CommandInfo > getCommands(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override
std::vector< libcmis::RepositoryPtr > m_aRepositories
void getRepositories(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
css::uno::Any getBadArgExcept()
virtual void SAL_CALL abort(sal_Int32 CommandId) override
virtual ~RepoContent() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
libcmis::RepositoryPtr getRepository(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
virtual OUString getParentURL() override
virtual OUString SAL_CALL getContentType() override
constexpr OUStringLiteral CMIS_REPO_TYPE