24#include <com/sun/star/ucb/XCommandEnvironment.hpp>
55 css::uno::Reference < css::ucb::XCommandEnvironment >
m_xCmdEnv;
61 bool implIs(
const OUString& _rURL,
Type _eType );
145 void bindTo(
const OUString& _rURL );
184 bool is(
const OUString& _rURL )
an InteractionHandler implementation which extends another handler with some customizability
EInterceptedInteractions
flags, which indicates special handled interactions These values will be used combined as flags - so ...
a "smart content" which basically wraps a UCB content, but caches some information so that repeatedly...
InteractionHandlerType
describes different types of interaction handlers
std::optional<::ucbhelper::Content > m_oContent
::svt::OFilePickerInteractionHandler * getOwnInteractionHandler() const
return the internal used interaction handler object ... Because this pointer will be valid only,...
State getState() const
returns the current state of the content
SmartContent(const SmartContent &_rSource)=delete
bool isBound() const
checks if the content is bound
void getTitle(OUString &_rTitle)
retrieves the title of the content @precond the content is bound and not invalid
void enableDefaultInteractionHandler()
disable the specialized interaction handler and use the global UI interaction handler only.
void disableInteractionHandler()
disable internal used interaction handler object ...
bool hasParentFolder()
checks if the content has a parent folder @precond the content is bound and not invalid
void bindTo(const OUString &_rURL)
(re)creates the content for the given URL
void enableOwnInteractionHandler(::svt::OFilePickerInteractionHandler::EInterceptedInteractions eInterceptions)
create and set a specialized interaction handler at the internal used command environment.
css::uno::Reference< css::ucb::XCommandEnvironment > m_xCmdEnv
bool canCreateFolder()
checks if sub folders below the content can be created @precond the content is bound and not invalid
OUString const & getURL() const
returns the URL of the content
OUString createFolder(const OUString &_rTitle)
creates a new folder with the given title and return the corresponding URL.
InteractionHandlerType queryCurrentInteractionHandler() const
return the type of the internal used interaction handler object ...
bool isInvalid() const
checks if the content is valid
bool isValid() const
checks if the content is valid
SmartContent & operator=(const SmartContent &_rSource)=delete
bool is(const OUString &_rURL)
checks if the content is existent (it is if and only if it is a document or a folder)
bool implIs(const OUString &_rURL, Type _eType)
checks if the currently bound content is a folder or document
bool isFolder(const OUString &_rURL)
binds to the given URL, checks whether or not it refers to a folder
rtl::Reference<::svt::OFilePickerInteractionHandler > m_xOwnInteraction