24#include <com/sun/star/style/XStyle.hpp>
25#include <com/sun/star/beans/XMultiPropertySet.hpp>
26#include <com/sun/star/beans/XPropertySet.hpp>
27#include <com/sun/star/lang/XServiceInfo.hpp>
28#include <com/sun/star/beans/XPropertyState.hpp>
29#include <com/sun/star/lang/XComponent.hpp>
30#include <com/sun/star/util/XModifyBroadcaster.hpp>
47 css::beans::XPropertySet,
48 css::beans::XMultiPropertySet,
49 css::lang::XServiceInfo,
50 css::beans::XPropertyState,
51 css::util::XModifyBroadcaster,
59 virtual bool SetParent (
const OUString& rParentName)
override;
61 virtual bool IsUsed()
const override;
88 virtual bool SetName(
const OUString& rNewName,
bool bReindexNow =
true)
override;
91 virtual void SAL_CALL
release( )
noexcept override;
99 virtual OUString SAL_CALL
getName( )
override;
100 virtual void SAL_CALL
setName(
const OUString&
aName )
override;
106 virtual void SAL_CALL
setParentStyle(
const OUString& aParentStyle )
override;
109 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
getPropertySetInfo()
override;
110 virtual void SAL_CALL
setPropertyValue(
const OUString& aPropertyName,
const css::uno::Any& aValue )
override;
111 virtual css::uno::Any SAL_CALL
getPropertyValue(
const OUString& PropertyName )
override;
112 virtual void SAL_CALL
addPropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener )
override;
113 virtual void SAL_CALL
removePropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener )
override;
114 virtual void SAL_CALL
addVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
115 virtual void SAL_CALL
removeVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
118 virtual void SAL_CALL
setPropertyValues(
const css::uno::Sequence<OUString>& aPropertyNames,
const css::uno::Sequence<css::uno::Any>& aValues)
override;
119 virtual css::uno::Sequence<css::uno::Any> SAL_CALL
getPropertyValues(
const css::uno::Sequence<OUString>& aPropertyNames)
override;
120 virtual void SAL_CALL
addPropertiesChangeListener(
const css::uno::Sequence<OUString>& aPropertyNames,
const css::uno::Reference<css::beans::XPropertiesChangeListener>& xListener)
override;
122 virtual void SAL_CALL
firePropertiesChangeEvent(
const css::uno::Sequence<OUString>& aPropertyNames,
const css::uno::Reference<css::beans::XPropertiesChangeListener>& xListener)
override;
125 virtual css::beans::PropertyState SAL_CALL
getPropertyState(
const OUString& PropertyName )
override;
126 virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL
getPropertyStates(
const css::uno::Sequence< OUString >& aPropertyName )
override;
128 virtual css::uno::Any SAL_CALL
getPropertyDefault(
const OUString& aPropertyName )
override;
131 virtual void SAL_CALL
addModifyListener(
const css::uno::Reference< css::util::XModifyListener >& aListener )
override;
132 virtual void SAL_CALL
removeModifyListener(
const css::uno::Reference< css::util::XModifyListener >& aListener )
override;
135 virtual void SAL_CALL
dispose( )
override;
136 virtual void SAL_CALL
addEventListener(
const css::uno::Reference< css::lang::XEventListener >& xListener )
override;
137 virtual void SAL_CALL
removeEventListener(
const css::uno::Reference< css::lang::XEventListener >& aListener )
override;
171typedef std::vector< css::uno::Reference< css::style::XStyle > >
XStyleVector;
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
void notifyModifyListener()
virtual void SAL_CALL addPropertiesChangeListener(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
SdStyleSheet(const SdStyleSheet &)=delete
OUString const & GetApiName() const
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
virtual OUString SAL_CALL getName() override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
SdStyleSheet * GetRealStyleSheet() const
Determine the style sheet for which this dummy is for.
virtual void SAL_CALL setName(const OUString &aName) override
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
virtual void SetHelpId(const OUString &r, sal_uLong nId) override
virtual void SAL_CALL firePropertiesChangeEvent(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
SdStyleSheet * GetPseudoStyleSheet() const
Determine pseudo style sheet which stands for this style sheet.
SdStyleSheet(const OUString &rDisplayName, SfxStyleSheetBasePool &rPool, SfxStyleFamily eFamily, SfxStyleSearchBits nMask)
static OUString GetFamilyString(SfxStyleFamily eFamily)
virtual bool SetParent(const OUString &rParentName) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual bool HasParentSupport() const override
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames) override
virtual void SAL_CALL setParentStyle(const OUString &aParentStyle) override
bool IsEditable()
Checks if a cell style is used in two places at once.
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
virtual bool SetName(const OUString &rNewName, bool bReindexNow=true) override
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &aPropertyName) override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual void SAL_CALL removePropertiesChangeListener(const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
virtual SfxItemSet & GetItemSet() override
create if necessary and return ItemSets
virtual void SAL_CALL setPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
virtual void SAL_CALL dispose() override
comphelper::OInterfaceContainerHelper4< css::util::XModifyListener > maModifyListeners
virtual sal_Bool SAL_CALL isUserDefined() override
void AdjustToFontHeight(SfxItemSet &rSet, bool bOnlyMissingItems=true)
Adjust the bullet width and the left text indent of the provided ItemSets to their font height.
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
static rtl::Reference< SdStyleSheet > CreateEmptyUserStyle(SfxStyleSheetBasePool &rPool, SfxStyleFamily eFamily)
virtual ~SdStyleSheet() override
void setPropertyValue_Impl(const OUString &aPropertyName, const css::uno::Any &aValue)
css::uno::Any getPropertyValue_Impl(const OUString &PropertyName)
SdStyleSheet & operator=(const SdStyleSheet &)=delete
void SetApiName(const OUString &rApiName)
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual bool HasFollowSupport() const override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual bool IsUsed() const override
A template is used when it is referenced by inserted object or by a used template.
rtl::Reference< SfxStyleSheetBasePool > mxPool
virtual OUString SAL_CALL getParentStyle() override
virtual bool HasClearParentSupport() const override
virtual sal_Bool SAL_CALL isInUse() override
static void BroadcastSdStyleSheetChange(SfxStyleSheetBase const *pStyleSheet, PresentationObjects ePO, SfxStyleSheetBasePool *pSSPool)
std::unique_ptr< ModifyListenerForwarder > mpModifyListenerForwarder
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
static const SfxItemPropertyMapEntry * getPropertyMapEntry(std::u16string_view rPropertyName)
this is used because our property map is not sorted yet
virtual void SAL_CALL release() noexcept override
std::vector< css::uno::Reference< css::style::XStyle > > XStyleVector
std::vector< rtl::Reference< SdStyleSheet > > SdStyleSheetVector
std::vector< StyleSheetCopyResult > StyleSheetCopyResultVector
cppu::ImplInheritanceHelper< SfxUnoStyleSheet, css::beans::XPropertySet, css::beans::XMultiPropertySet, css::lang::XServiceInfo, css::beans::XPropertyState, css::util::XModifyBroadcaster, css::lang::XComponent > SdStyleSheetBase
rtl::Reference< SdStyleSheet > m_xStyleSheet
StyleSheetCopyResult(SdStyleSheet *pStyleSheet, bool bCreatedByCopy)