21#include <com/sun/star/ucb/XContent.hpp>
22#include <com/sun/star/ucb/XCommandProcessor.hpp>
23#include <com/sun/star/beans/XPropertiesChangeNotifier.hpp>
24#include <com/sun/star/beans/XPropertyContainer.hpp>
25#include <com/sun/star/lang/XServiceInfo.hpp>
26#include <com/sun/star/lang/XInitialization.hpp>
27#include <com/sun/star/sdbc/XRow.hpp>
28#include <com/sun/star/uno/XComponentContext.hpp>
33#include <com/sun/star/beans/Property.hpp>
34#include <com/sun/star/container/XChild.hpp>
35#include <com/sun/star/sdbcx/XRename.hpp>
43 class ODatabaseModelImpl;
47 ::std::optional< OUString >
76 typedef ::cppu::WeakComponentImplHelper< css::ucb::XContent
77 , css::ucb::XCommandProcessor
78 , css::lang::XServiceInfo
79 , css::beans::XPropertiesChangeNotifier
80 , css::beans::XPropertyContainer
81 , css::lang::XInitialization
82 , css::container::XChild
89 css::uno::Sequence< css::uno::Any >
90 setPropertyValues(
const css::uno::Sequence< css::beans::PropertyValue >& rValues );
97 css::uno::Reference< css::uno::XInterface >
99 const css::uno::Reference< css::uno::XComponentContext >
106 virtual void SAL_CALL
disposing()
override;
121 OContentHelper(
const css::uno::Reference< css::uno::XComponentContext >& _xORB
122 ,
const css::uno::Reference< css::uno::XInterface >& _xParentContainer
135 virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL
getIdentifier( )
override ;
137 virtual void SAL_CALL
addContentEventListener(
const css::uno::Reference< css::ucb::XContentEventListener >& Listener )
override ;
138 virtual void SAL_CALL
removeContentEventListener(
const css::uno::Reference< css::ucb::XContentEventListener >& Listener )
override ;
142 virtual css::uno::Any SAL_CALL
execute(
const css::ucb::Command& aCommand, sal_Int32 CommandId,
const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment )
override ;
143 virtual void SAL_CALL
abort( sal_Int32 CommandId )
override ;
146 virtual void SAL_CALL
addPropertiesChangeListener(
const css::uno::Sequence< OUString >& PropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener )
override ;
147 virtual void SAL_CALL
removePropertiesChangeListener(
const css::uno::Sequence< OUString >& PropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener )
override ;
150 virtual void SAL_CALL
addProperty(
const OUString& Name, sal_Int16 Attributes,
const css::uno::Any& DefaultValue )
override ;
151 virtual void SAL_CALL
removeProperty(
const OUString& Name )
override ;
154 virtual void SAL_CALL
initialize(
const css::uno::Sequence< css::uno::Any >&
aArguments )
override;
157 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL
getParent( )
override;
158 virtual void SAL_CALL
setParent(
const css::uno::Reference< css::uno::XInterface >& Parent )
override;
161 virtual void SAL_CALL
rename(
const OUString& newName )
override;
164 css::uno::Reference< css::sdbc::XRow >
165 getPropertyValues(
const css::uno::Sequence< css::beans::Property >& rProperties );
ODatabaseModelImpl * m_pDataSource
ContentProperties m_aProps
virtual ~OContentHelper_Impl()
virtual void SAL_CALL addContentEventListener(const css::uno::Reference< css::ucb::XContentEventListener > &Listener) override
virtual void SAL_CALL setParent(const css::uno::Reference< css::uno::XInterface > &Parent) override
css::uno::Sequence< css::uno::Any > setPropertyValues(const css::uno::Sequence< css::beans::PropertyValue > &rValues)
const ContentProperties & getContentProperties() const
void notifyDataSourceModified()
OUString impl_getHierarchicalName(bool _includingRootContainer) const
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
::comphelper::OInterfaceContainerHelper3< css::ucb::XContentEventListener > m_aContentListeners
const TContentPtr & getImpl() const
virtual OUString determineContentType() const =0
void notifyPropertiesChange(const css::uno::Sequence< css::beans::PropertyChangeEvent > &evt) const
This method can be used to propagate changes of property values.
virtual void SAL_CALL disposing() override
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent() override
virtual sal_Int32 SAL_CALL createCommandIdentifier() override
const css::uno::Reference< css::uno::XComponentContext > m_aContext
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) 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 void SAL_CALL removeContentEventListener(const css::uno::Reference< css::ucb::XContentEventListener > &Listener) override
virtual void SAL_CALL addPropertiesChangeListener(const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override
virtual OUString SAL_CALL getImplementationName() override
const ::connectivity::SQLError m_aErrorHelper
virtual void SAL_CALL addProperty(const OUString &Name, sal_Int16 Attributes, const css::uno::Any &DefaultValue) override
virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL getIdentifier() override
OContentHelper(const css::uno::Reference< css::uno::XComponentContext > &_xORB, const css::uno::Reference< css::uno::XInterface > &_xParentContainer, TContentPtr _pImpl)
virtual void SAL_CALL abort(sal_Int32 CommandId) override
virtual OUString SAL_CALL getContentType() override
virtual void SAL_CALL removePropertiesChangeListener(const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override
PropertyChangeListenerContainer m_aPropertyChangeListeners
void impl_rename_throw(const OUString &_sNewName, bool _bNotify=true)
virtual void SAL_CALL rename(const OUString &newName) override
css::uno::Reference< css::uno::XInterface > m_xParentContainer
virtual void SAL_CALL removeProperty(const OUString &Name) override
const css::uno::Reference< css::uno::XComponentContext > & getContext() const
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
css::uno::Reference< css::sdbc::XRow > getPropertyValues(const css::uno::Sequence< css::beans::Property > &rProperties)
Sequence< PropertyValue > aArguments
std::shared_ptr< OContentHelper_Impl > TContentPtr
comphelper::OMultiTypeInterfaceContainerHelperVar3< css::beans::XPropertiesChangeListener, OUString > PropertyChangeListenerContainer
::cppu::WeakComponentImplHelper< css::ucb::XContent, css::ucb::XCommandProcessor, css::lang::XServiceInfo, css::beans::XPropertiesChangeNotifier, css::beans::XPropertyContainer, css::lang::XInitialization, css::container::XChild, css::sdbcx::XRename > OContentHelper_COMPBASE
::std::optional< OUString > aContentType