24#include <com/sun/star/ucb/XContentCreator.hpp>
82 css::uno::Sequence< css::ucb::ContentInfo >
96 public css::ucb::XContentCreator
114 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
116 const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier,
119 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
121 const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier,
122 const css::ucb::ContentInfo& Info );
124 virtual css::uno::Sequence< css::beans::Property >
125 getProperties(
const css::uno::Reference<css::ucb::XCommandEnvironment > & xEnv )
override;
126 virtual css::uno::Sequence< css::ucb::CommandInfo >
127 getCommands(
const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv )
override;
131 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
133 const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier );
135 const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier )
138 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
140 const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier,
143 void renameData(
const css::uno::Reference< css::ucb::XContentIdentifier >& xOldId,
144 const css::uno::Reference< css::ucb::XContentIdentifier >& xNewId );
147 void setKind(
const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier );
153 css::uno::Reference< css::ucb::XContentIdentifier >
161 const css::uno::Reference< css::ucb::XContentIdentifier >& xNewId );
163 css::uno::Reference< css::sdbc::XRow >
166 css::uno::Sequence< css::uno::Any >
168 const css::uno::Sequence< css::beans::PropertyValue >& rValues,
169 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
172 void insert( sal_Int32 nNameClashResolve,
173 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
176 void destroy(
bool bDeletePhysical,
177 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
180 void transfer(
const css::ucb::TransferInfo& rInfo,
181 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
186 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
188 const css::uno::Reference<
189 css::ucb::XContentIdentifier >& Identifier );
193 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
195 const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier,
196 const css::ucb::ContentInfo& Info );
201 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type & rType )
override;
202 virtual void SAL_CALL
acquire()
204 virtual
void SAL_CALL
release()
212 virtual OUString SAL_CALL
214 virtual css::
uno::Sequence< OUString > SAL_CALL
218 virtual OUString SAL_CALL
220 virtual css::
uno::Reference< css::
ucb::XContentIdentifier > SAL_CALL
224 virtual css::
uno::Any SAL_CALL
227 const css::
uno::Reference< css::
ucb::XCommandEnvironment >& Environment ) override;
228 virtual
void SAL_CALL
229 abort( sal_Int32 CommandId ) override;
238 virtual css::
uno::Reference< css::
ucb::XContent > SAL_CALL
245 static css::
uno::Reference< css::sdbc::XRow >
247 const css::
uno::Sequence< css::beans::Property >& rProperties,
250 const OUString& rContentId );
HierarchyContentProperties()
HierarchyEntryData m_aData
void setName(const OUString &rName)
css::uno::Sequence< css::ucb::ContentInfo > getCreatableContentsInfo() const
const OUString & getContentType() const
const HierarchyEntryData & getHierarchyEntryData() const
HierarchyContentProperties(const HierarchyEntryData::Type &rType)
const OUString & getName() const
const OUString & getTitle() const
void setTargetURL(const OUString &rURL)
const OUString & getTargetURL() const
void setTitle(const OUString &rTitle)
bool getIsDocument() const
HierarchyContentProperties(const HierarchyEntryData &rData)
css::uno::Sequence< css::uno::Any > setPropertyValues(const css::uno::Sequence< css::beans::PropertyValue > &rValues, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
std::vector< HierarchyContentRef > HierarchyContentRefVector
HierarchyContent(const css::uno::Reference< css::uno::XComponentContext > &rxContext, HierarchyContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, const css::ucb::ContentInfo &Info)
void destroy(bool bDeletePhysical, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
virtual OUString SAL_CALL getImplementationName() override
HierarchyContentProvider * m_pProvider
void renameData(const css::uno::Reference< css::ucb::XContentIdentifier > &xOldId, const css::uno::Reference< css::ucb::XContentIdentifier > &xNewId)
bool exchangeIdentity(const css::uno::Reference< css::ucb::XContentIdentifier > &xNewId)
virtual void SAL_CALL abort(sal_Int32 CommandId) override
virtual css::uno::Sequence< css::ucb::ContentInfo > SAL_CALL queryCreatableContentsInfo() override
void insert(sal_Int32 nNameClashResolve, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
void setKind(const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier)
void transfer(const css::ucb::TransferInfo &rInfo, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
virtual OUString getParentURL() override
virtual css::uno::Sequence< css::beans::Property > getProperties(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
css::uno::Reference< css::sdbc::XRow > getPropertyValues(const css::uno::Sequence< css::beans::Property > &rProperties)
virtual css::uno::Sequence< css::ucb::CommandInfo > getCommands(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL createNewContent(const css::ucb::ContentInfo &Info) override
virtual OUString SAL_CALL getContentType() override
static bool loadData(const css::uno::Reference< css::uno::XComponentContext > &rxContext, HierarchyContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, HierarchyContentProperties &rProps)
virtual css::uno::Any SAL_CALL execute(const css::ucb::Command &aCommand, sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment > &Environment) override
void queryChildren(HierarchyContentRefVector &rChildren)
static rtl::Reference< HierarchyContent > create(const css::uno::Reference< css::uno::XComponentContext > &rxContext, HierarchyContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, const css::ucb::ContentInfo &Info)
virtual void SAL_CALL release() noexcept override
css::uno::Reference< css::ucb::XContentIdentifier > makeNewIdentifier(const OUString &rTitle)
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
rtl::Reference< HierarchyContent > HierarchyContentRef
HierarchyContent(const css::uno::Reference< css::uno::XComponentContext > &rxContext, HierarchyContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, HierarchyContentProperties aProps)
HierarchyContentProperties m_aProps
virtual ~HierarchyContent() override
static rtl::Reference< HierarchyContent > create(const css::uno::Reference< css::uno::XComponentContext > &rxContext, HierarchyContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier)
virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL getIdentifier() override
virtual void SAL_CALL acquire() noexcept override
bool hasData(const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier)
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
static bool hasData(const css::uno::Reference< css::uno::XComponentContext > &rxContext, HierarchyContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier)
void setName(const OUString &rName)
void setTargetURL(const OUString &rURL)
const OUString & getTitle() const
void setTitle(const OUString &rTitle)
const OUString & getName() const
const OUString & getTargetURL() const
css::uno::Reference< css::uno::XComponentContext > m_xContext
constexpr OUStringLiteral HIERARCHY_LINK_CONTENT_TYPE
constexpr OUStringLiteral HIERARCHY_FOLDER_CONTENT_TYPE
bool getType(BSTR name, Type &type)