28#include <com/sun/star/ucb/XContentCreator.hpp>
40 class XHierarchicalNameAccess;
53 struct OpenCommandArgument2;
82 css::uno::Sequence< css::ucb::ContentInfo >
90 public css::ucb::XContentCreator
107 Content(
const css::uno::Reference< css::uno::XComponentContext >& rxContext,
109 const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier,
110 css::uno::Reference< css::container::XHierarchicalNameAccess > Package,
113 Content(
const css::uno::Reference< css::uno::XComponentContext >& rxContext,
115 const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier,
116 css::uno::Reference< css::container::XHierarchicalNameAccess > Package,
118 const css::ucb::ContentInfo& Info );
120 virtual css::uno::Sequence< css::beans::Property >
121 getProperties(
const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv )
override;
122 virtual css::uno::Sequence< css::ucb::CommandInfo >
123 getCommands(
const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv )
override;
126 static css::uno::Reference< css::sdbc::XRow >
128 const css::uno::Sequence< css::beans::Property >& rProperties,
131 const OUString& rContentId );
133 css::uno::Reference< css::sdbc::XRow >
136 css::uno::Sequence< css::uno::Any >
138 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
140 css::uno::Reference< css::container::XHierarchicalNameAccess >
142 css::uno::Reference< css::container::XHierarchicalNameAccess >
149 css::uno::Reference< css::container::XHierarchicalNameAccess > & rxPackage );
153 css::uno::Reference< css::container::XHierarchicalNameAccess > & rxPackage );
158 renameData(
const css::uno::Reference< css::ucb::XContentIdentifier >& xOldId,
159 const css::uno::Reference< css::ucb::XContentIdentifier >& xNewId );
161 storeData(
const css::uno::Reference< css::io::XInputStream >& xStream );
174 css::ucb::XContentIdentifier >& xNewId );
178 open(
const css::ucb::OpenCommandArgument2& rArg,
179 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
182 void insert(
const css::uno::Reference< css::io::XInputStream >& xStream,
183 sal_Int32 nNameClashResolve,
184 const css::uno::Reference<
185 css::ucb::XCommandEnvironment > & xEnv );
189 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
192 void transfer(
const css::ucb::TransferInfo& rInfo,
193 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
195 css::uno::Reference< css::io::XInputStream >
203 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
205 const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier );
209 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
211 const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier,
212 const css::ucb::ContentInfo& Info );
217 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type & rType )
override;
218 virtual void SAL_CALL
acquire()
220 virtual
void SAL_CALL
release()
228 virtual OUString SAL_CALL
230 virtual css::
uno::Sequence< OUString > SAL_CALL
234 virtual OUString SAL_CALL
238 virtual css::
uno::Any SAL_CALL
241 const css::
uno::Reference< css::
ucb::XCommandEnvironment >& Environment ) override;
242 virtual
void SAL_CALL
243 abort( sal_Int32 CommandId ) override;
252 virtual css::
uno::Reference< css::
ucb::XContent > SAL_CALL
260 static css::
uno::Reference< css::sdbc::XRow >
262 const css::
uno::Sequence< css::beans::Property >& rProperties,
264 const OUString& rContentId );
267 css::
uno::Reference< css::container::XEnumeration >
bool storeData(const css::uno::Reference< css::io::XInputStream > &xStream)
Content(const css::uno::Reference< css::uno::XComponentContext > &rxContext, ContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, css::uno::Reference< css::container::XHierarchicalNameAccess > Package, PackageUri aUri, const css::ucb::ContentInfo &Info)
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
rtl::Reference< Content > ContentRef
bool exchangeIdentity(const css::uno::Reference< css::ucb::XContentIdentifier > &xNewId)
css::uno::Reference< css::container::XHierarchicalNameAccess > getPackage()
static css::uno::Reference< css::sdbc::XRow > getPropertyValues(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Sequence< css::beans::Property > &rProperties, const ContentProperties &rData, const rtl::Reference< ::ucbhelper::ContentProviderImplHelper > &rProvider, const OUString &rContentId)
virtual css::uno::Sequence< css::ucb::ContentInfo > SAL_CALL queryCreatableContentsInfo() override
css::uno::Any open(const css::ucb::OpenCommandArgument2 &rArg, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
static bool loadData(ContentProvider *pProvider, const PackageUri &rURI, ContentProperties &rProps, css::uno::Reference< css::container::XHierarchicalNameAccess > &rxPackage)
virtual css::uno::Sequence< css::beans::Property > getProperties(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override
ContentProperties m_aProps
void destroy(bool bDeletePhysical, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
Content(const css::uno::Reference< css::uno::XComponentContext > &rxContext, ContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, css::uno::Reference< css::container::XHierarchicalNameAccess > Package, PackageUri aUri, ContentProperties aProps)
css::uno::Reference< css::io::XInputStream > getInputStream()
static rtl::Reference< Content > create(const css::uno::Reference< css::uno::XComponentContext > &rxContext, ContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier)
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
css::uno::Reference< css::container::XHierarchicalNameAccess > m_xPackage
css::uno::Reference< css::sdbc::XRow > getPropertyValues(const css::uno::Sequence< css::beans::Property > &rProperties)
static rtl::Reference< Content > create(const css::uno::Reference< css::uno::XComponentContext > &rxContext, ContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, const css::ucb::ContentInfo &Info)
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL createNewContent(const css::ucb::ContentInfo &Info) override
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 css::uno::Sequence< css::ucb::CommandInfo > getCommands(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override
virtual OUString SAL_CALL getImplementationName() override
std::vector< ContentRef > ContentRefList
virtual void SAL_CALL acquire() noexcept override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
ContentProvider * m_pProvider
virtual void SAL_CALL release() noexcept override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
void renameData(const css::uno::Reference< css::ucb::XContentIdentifier > &xOldId, const css::uno::Reference< css::ucb::XContentIdentifier > &xNewId)
void transfer(const css::ucb::TransferInfo &rInfo, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
sal_uInt32 m_nModifiedProps
void queryChildren(ContentRefList &rChildren)
virtual OUString SAL_CALL getContentType() override
virtual void SAL_CALL abort(sal_Int32 CommandId) override
virtual OUString getParentURL() override
static bool hasData(ContentProvider *pProvider, const PackageUri &rURI, css::uno::Reference< css::container::XHierarchicalNameAccess > &rxPackage)
void insert(const css::uno::Reference< css::io::XInputStream > &xStream, sal_Int32 nNameClashResolve, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
css::uno::Reference< css::container::XEnumeration > getIterator()
css::uno::Sequence< css::uno::Any > setPropertyValues(const css::uno::Sequence< css::beans::PropertyValue > &rValues, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
virtual ~Content() override
css::uno::Sequence< css::ucb::ContentInfo > getCreatableContentsInfo(PackageUri const &rUri) const
css::uno::Sequence< sal_Int8 > aEncryptionKey
bool bHasEncryptedEntries