20#ifndef INCLUDED_UCBHELPER_CONTENTHELPER_HXX
21#define INCLUDED_UCBHELPER_CONTENTHELPER_HXX
23#include <com/sun/star/beans/XPropertyContainer.hpp>
24#include <com/sun/star/beans/XPropertiesChangeNotifier.hpp>
25#include <com/sun/star/ucb/XCommandProcessor.hpp>
26#include <com/sun/star/ucb/XContent.hpp>
27#include <com/sun/star/beans/XPropertySetInfoChangeNotifier.hpp>
28#include <com/sun/star/ucb/XCommandInfoChangeNotifier.hpp>
29#include <com/sun/star/container/XChild.hpp>
30#include <com/sun/star/lang/XTypeProvider.hpp>
31#include <com/sun/star/lang/XServiceInfo.hpp>
32#include <com/sun/star/lang/XComponent.hpp>
41 class XCommandEnvironment;
43 class XPersistentPropertySet;
48 class XPropertySetInfo;
59class ContentProviderImplHelper;
83 public css::lang::XTypeProvider,
84 public css::lang::XServiceInfo,
85 public css::lang::XComponent,
86 public css::ucb::XContent,
87 public css::ucb::XCommandProcessor,
88 public css::beans::XPropertiesChangeNotifier,
89 public css::beans::XPropertyContainer,
90 public css::beans::XPropertySetInfoChangeNotifier,
91 public css::ucb::XCommandInfoChangeNotifier,
92 public css::container::XChild
97 std::unique_ptr<ucbhelper_impl::ContentImplHelper_Impl>
m_pImpl;
101 css::uno::Reference< css::uno::XComponentContext >
103 css::uno::Reference< css::ucb::XContentIdentifier >
123 virtual css::uno::Sequence< css::beans::Property >
124 getProperties(
const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) = 0;
134 virtual css::uno::Sequence< css::ucb::CommandInfo >
135 getCommands(
const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) = 0;
162 css::uno::Reference< css::beans::XPropertySetInfo >
163 getPropertySetInfo(
const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv,
164 bool bCache =
true );
177 css::uno::Reference< css::ucb::XCommandInfo >
178 getCommandInfo(
const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv,
179 bool bCache =
true );
186 void notifyPropertiesChange(
187 const css::uno::Sequence< css::beans::PropertyChangeEvent >& evt )
const;
199 void notifyPropertySetInfoChange(
200 const css::beans::PropertySetInfoChangeEvent& evt )
const;
207 void notifyContentEvent(
208 const css::ucb::ContentEvent& evt )
const;
234 bool exchange(
const css::uno::Reference< css::ucb::XContentIdentifier >& rNewId );
247 css::uno::Reference< css::ucb::XPersistentPropertySet >
248 getAdditionalPropertySet(
bool bCreate );
258 bool renameAdditionalPropertySet(
const OUString& rOldKey,
259 const OUString& rNewKey );
269 bool copyAdditionalPropertySet(
const OUString& rSourceKey,
270 const OUString& rTargetKey );
280 bool removeAdditionalPropertySet();
296 css::uno::Reference< css::uno::XComponentContext > xContext,
298 css::uno::Reference< css::ucb::XContentIdentifier > Identifier );
310 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type & rType )
override;
311 virtual void SAL_CALL
acquire() noexcept
override
313 virtual void SAL_CALL release() noexcept override;
317 getImplementationId() override;
318 virtual css::
uno::Sequence< css::
uno::
Type > SAL_CALL
322 virtual OUString SAL_CALL
323 getImplementationName() override = 0;
325 supportsService( const OUString& ServiceName ) override;
326 virtual css::
uno::Sequence< OUString > SAL_CALL
327 getSupportedServiceNames() override = 0;
330 virtual
void SAL_CALL
332 virtual
void SAL_CALL
333 addEventListener( const css::
uno::Reference< css::lang::XEventListener >& Listener ) override;
334 virtual
void SAL_CALL
335 removeEventListener( const css::
uno::Reference< css::lang::XEventListener >& Listener ) override;
338 virtual css::
uno::Reference< css::
ucb::XContentIdentifier > SAL_CALL
339 getIdentifier() override;
340 virtual OUString SAL_CALL
341 getContentType() override = 0;
342 virtual
void SAL_CALL
343 addContentEventListener(
344 const css::
uno::Reference< css::
ucb::XContentEventListener >& Listener ) override;
345 virtual
void SAL_CALL
346 removeContentEventListener(
347 const css::
uno::Reference< css::
ucb::XContentEventListener >& Listener ) override;
350 virtual sal_Int32 SAL_CALL
351 createCommandIdentifier() override;
352 virtual css::
uno::Any SAL_CALL
353 execute( const css::
ucb::Command& aCommand,
355 const css::
uno::Reference< css::
ucb::XCommandEnvironment >& Environment ) override = 0;
356 virtual
void SAL_CALL
357 abort( sal_Int32 CommandId ) override = 0;
360 virtual
void SAL_CALL
361 addPropertiesChangeListener(
362 const css::
uno::Sequence< OUString >& PropertyNames,
363 const css::
uno::Reference< css::beans::XPropertiesChangeListener >& Listener ) override;
364 virtual
void SAL_CALL
365 removePropertiesChangeListener(
366 const css::
uno::Sequence< OUString >& PropertyNames,
367 const css::
uno::Reference< css::beans::XPropertiesChangeListener >& Listener ) override;
370 virtual
void SAL_CALL
371 addCommandInfoChangeListener(
372 const css::
uno::Reference< css::
ucb::XCommandInfoChangeListener >& Listener ) override;
373 virtual
void SAL_CALL
374 removeCommandInfoChangeListener(
375 const css::
uno::Reference< css::
ucb::XCommandInfoChangeListener >& Listener ) override;
389 virtual
void SAL_CALL
390 addProperty( const OUString& Name,
391 sal_Int16 Attributes,
392 const css::
uno::Any& DefaultValue ) override;
404 virtual
void SAL_CALL
405 removeProperty( const OUString& Name ) override;
408 virtual
void SAL_CALL
409 addPropertySetInfoChangeListener(
410 const css::
uno::Reference< css::beans::XPropertySetInfoChangeListener >& Listener ) override;
411 virtual
void SAL_CALL
412 removePropertySetInfoChangeListener(
413 const css::
uno::Reference< css::beans::XPropertySetInfoChangeListener >& Listener ) override;
423 getParent() override;
428 virtual
void SAL_CALL
429 setParent( const css::
uno::Reference< css::
uno::
XInterface >& Parent ) override;
441 {
return m_xProvider; }
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
This class provides a command info ( the complete implementation of the interface XCommandInfo ) for ...
This is an abstract base class for implementations of the service com.sun.star.ucb....
virtual UCBHELPER_DLLPRIVATE OUString getParentURL()=0
The implementation of this method shall return the URL of the parent of your content.
virtual UCBHELPER_DLLPRIVATE css::uno::Sequence< css::beans::Property > getProperties(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)=0
Your implementation of this method must return a sequence containing the meta data of the properties ...
virtual UCBHELPER_DLLPRIVATE css::uno::Sequence< css::ucb::CommandInfo > getCommands(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)=0
Your implementation of this method must return a sequence containing the meta data of the commands su...
rtl::Reference< ContentProviderImplHelper > m_xProvider
std::unique_ptr< ucbhelper_impl::ContentImplHelper_Impl > m_pImpl
virtual void SAL_CALL acquire() noexcept override
css::uno::Reference< css::ucb::XContentIdentifier > m_xIdentifier
css::uno::Reference< css::uno::XComponentContext > m_xContext
This is an abstract base class for implementations of the service com.sun.star.ucb....
This class provides a propertyset info ( the complete implementation of the interface XPropertySetInf...
DECL_LISTENERMULTIPLEXER_END void SAL_CALL inserted(::sal_Int32 ID) override
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)
#define UCBHELPER_DLLPUBLIC
#define UCBHELPER_DLLPRIVATE