26#include <com/sun/star/style/XStyle.hpp>
27#include <com/sun/star/style/XStyleLoader.hpp>
28#include <com/sun/star/container/XNameContainer.hpp>
29#include <com/sun/star/beans/XPropertySet.hpp>
30#include <com/sun/star/beans/XPropertyState.hpp>
33#include <com/sun/star/style/XAutoStyleFamily.hpp>
34#include <com/sun/star/style/XAutoStyles.hpp>
35#include <com/sun/star/style/XAutoStyle.hpp>
49 css::container::XIndexAccess,
50 css::container::XNameAccess,
51 css::lang::XServiceInfo,
52 css::style::XStyleLoader
58 std::map<SfxStyleFamily, css::uno::Reference<css::container::XNameContainer>>
m_vFamilies;
65 virtual css::uno::Any SAL_CALL
getByName(
const OUString& Name)
override;
66 virtual css::uno::Sequence< OUString > SAL_CALL
getElementNames()
override;
70 virtual sal_Int32 SAL_CALL
getCount()
override;
71 virtual css::uno::Any SAL_CALL
getByIndex(sal_Int32 nIndex)
override;
78 virtual void SAL_CALL
loadStylesFromURL(
const OUString& rURL,
const css::uno::Sequence< css::beans::PropertyValue >& aOptions)
override;
106 public cppu::WeakImplHelper< css::style::XAutoStyles >,
119 virtual sal_Int32 SAL_CALL
getCount()
override;
120 virtual css::uno::Any SAL_CALL
getByIndex(sal_Int32 nIndex)
override;
127 virtual css::uno::Any SAL_CALL
getByName(
const OUString& Name)
override;
128 virtual css::uno::Sequence< OUString > SAL_CALL
getElementNames()
override;
145 virtual css::uno::Reference< css::style::XAutoStyle > SAL_CALL
insertStyle(
const css::uno::Sequence< css::beans::PropertyValue >& Values )
override;
148 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
createEnumeration( )
override;
159 std::unique_ptr<SwAutoStylesEnumImpl>
m_pImpl;
166 virtual css::uno::Any SAL_CALL
nextElement( )
override;
174 css::beans::XPropertySet,
175 css::beans::XPropertyState,
176 css::style::XAutoStyle
188 css::uno::Sequence< css::uno::Any >
GetPropertyValues_Impl(
const css::uno::Sequence< OUString >& aPropertyNames );
196 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
getPropertySetInfo( )
override;
197 virtual void SAL_CALL
setPropertyValue(
const OUString& aPropertyName,
const css::uno::Any& aValue )
override;
198 virtual css::uno::Any SAL_CALL
getPropertyValue(
const OUString& PropertyName )
override;
199 virtual void SAL_CALL
addPropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener )
override;
200 virtual void SAL_CALL
removePropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener )
override;
201 virtual void SAL_CALL
addVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
202 virtual void SAL_CALL
removeVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
205 virtual void SAL_CALL
setPropertyValues(
const css::uno::Sequence< OUString >& aPropertyNames,
const css::uno::Sequence< css::uno::Any >& aValues )
override;
206 virtual css::uno::Sequence< css::uno::Any > SAL_CALL
getPropertyValues(
const css::uno::Sequence< OUString >& aPropertyNames )
override;
207 virtual void SAL_CALL
addPropertiesChangeListener(
const css::uno::Sequence< OUString >& aPropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener )
override;
209 virtual void SAL_CALL
firePropertiesChangeEvent(
const css::uno::Sequence< OUString >& aPropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener )
override;
212 virtual css::beans::PropertyState SAL_CALL
getPropertyState(
const OUString& PropertyName )
override;
213 virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL
getPropertyStates(
const css::uno::Sequence< OUString >& aPropertyName )
override;
215 virtual css::uno::Any SAL_CALL
getPropertyDefault(
const OUString& aPropertyName )
override;
219 virtual void SAL_CALL
setPropertiesToDefault(
const css::uno::Sequence< OUString >& aPropertyNames )
override;
220 virtual css::uno::Sequence< css::uno::Any > SAL_CALL
getPropertyDefaults(
const css::uno::Sequence< OUString >& aPropertyNames )
override;
223 virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL
getProperties()
override;
235 css::beans::XPropertySet,
236 css::container::XNameContainer,
237 css::lang::XServiceInfo
287 virtual void SAL_CALL
setParentStyle(
const OUString& aParentStyle )
override;
290 virtual OUString SAL_CALL
getName()
override;
291 virtual void SAL_CALL
setName(
const OUString& rName)
override;
294 virtual css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL
getPropertySetInfo()
override;
295 virtual void SAL_CALL
setPropertyValue(
const OUString& aPropertyName,
const css::uno::Any& aValue)
override;
296 virtual css::uno::Any SAL_CALL
getPropertyValue(
const OUString& PropertyName)
override;
297 virtual void SAL_CALL
addPropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference<css::beans::XPropertyChangeListener>& xListener)
override;
298 virtual void SAL_CALL
removePropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference<css::beans::XPropertyChangeListener>& aListener)
override;
299 virtual void SAL_CALL
addVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference<css::beans::XVetoableChangeListener>& aListener)
override;
300 virtual void SAL_CALL
removeVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference<css::beans::XVetoableChangeListener>& aListener)
override;
303 virtual css::uno::Any SAL_CALL
getByName(
const OUString& rName)
override;
304 virtual css::uno::Sequence<OUString> SAL_CALL
getElementNames()
override;
308 virtual void SAL_CALL
insertByName(
const OUString& rName,
const css::uno::Any& aElement)
override;
309 virtual void SAL_CALL
replaceByName(
const OUString& rName,
const css::uno::Any& aElement)
override;
310 virtual void SAL_CALL
removeByName(
const OUString& rName)
override;
328 css::beans::XPropertySet,
329 css::beans::XPropertyState,
330 css::lang::XServiceInfo
366 virtual void SAL_CALL
setParentStyle(
const OUString& aParentStyle )
override;
369 virtual OUString SAL_CALL
getName()
override;
370 virtual void SAL_CALL
setName(
const OUString& sName)
override;
373 virtual css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL
getPropertySetInfo()
override;
374 virtual void SAL_CALL
setPropertyValue(
const OUString& aPropertyName,
const css::uno::Any& aValue)
override;
375 virtual css::uno::Any SAL_CALL
getPropertyValue(
const OUString& PropertyName)
override;
376 virtual void SAL_CALL
addPropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference<css::beans::XPropertyChangeListener>& xListener)
override;
377 virtual void SAL_CALL
removePropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference<css::beans::XPropertyChangeListener>& aListener)
override;
378 virtual void SAL_CALL
addVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference<css::beans::XVetoableChangeListener>& aListener)
override;
379 virtual void SAL_CALL
removeVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference<css::beans::XVetoableChangeListener>& aListener)
override;
382 virtual css::beans::PropertyState SAL_CALL
getPropertyState(
const OUString& PropertyName)
override;
383 virtual css::uno::Sequence<css::beans::PropertyState> SAL_CALL
getPropertyStates(
const css::uno::Sequence< OUString >& aPropertyName)
override;
385 virtual css::uno::Any SAL_CALL
getPropertyDefault(
const OUString& aPropertyName)
override;
virtual css::uno::Type SAL_CALL getElementType() override
virtual void Notify(const SfxHint &) override
virtual ~SwXAutoStyleFamily() override
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
IStyleAccess::SwAutoStyleFamily m_eFamily
virtual css::uno::Reference< css::style::XAutoStyle > SAL_CALL insertStyle(const css::uno::Sequence< css::beans::PropertyValue > &Values) override
virtual sal_Bool SAL_CALL hasElements() override
SwXAutoStyleFamily(SwDocShell *pDocShell, IStyleAccess::SwAutoStyleFamily eFamily)
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual void SAL_CALL setAllPropertiesToDefault() override
virtual void Notify(const SfxHint &) override
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &aPropertyName) override
IStyleAccess::SwAutoStyleFamily meFamily
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL addPropertiesChangeListener(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
css::uno::Sequence< css::uno::Any > GetPropertyValues_Impl(const css::uno::Sequence< OUString > &aPropertyNames)
SwXAutoStyle(SwDoc *pDoc, std::shared_ptr< SfxItemSet > pInitSet, IStyleAccess::SwAutoStyleFamily eFam)
virtual void SAL_CALL removePropertiesChangeListener(const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyDefaults(const css::uno::Sequence< OUString > &aPropertyNames) override
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getProperties() override
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames) override
virtual void SAL_CALL firePropertiesChangeEvent(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
std::shared_ptr< SfxItemSet > mpSet
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
virtual ~SwXAutoStyle() override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual void SAL_CALL setPropertiesToDefault(const css::uno::Sequence< OUString > &aPropertyNames) override
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL setPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
virtual css::uno::Any SAL_CALL nextElement() override
SwXAutoStylesEnumerator(SwDoc &rDoc, IStyleAccess::SwAutoStyleFamily eFam)
virtual sal_Bool SAL_CALL hasMoreElements() override
virtual void Notify(const SfxHint &) override
std::unique_ptr< SwAutoStylesEnumImpl > m_pImpl
virtual ~SwXAutoStylesEnumerator() override
SwXAutoStyles(SwDocShell &rDocShell)
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
css::uno::Reference< css::style::XAutoStyleFamily > m_xAutoRubyStyles
css::uno::Reference< css::style::XAutoStyleFamily > m_xAutoCharStyles
virtual sal_Bool SAL_CALL hasElements() override
virtual sal_Int32 SAL_CALL getCount() override
css::uno::Reference< css::style::XAutoStyleFamily > m_xAutoParaStyles
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual css::uno::Type SAL_CALL getElementType() override
virtual ~SwXAutoStyles() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
virtual ~SwXStyleFamilies() override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
std::map< SfxStyleFamily, css::uno::Reference< css::container::XNameContainer > > m_vFamilies
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
virtual void SAL_CALL loadStylesFromURL(const OUString &rURL, const css::uno::Sequence< css::beans::PropertyValue > &aOptions) override
virtual css::uno::Type SAL_CALL getElementType() override
virtual sal_Int32 SAL_CALL getCount() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
static css::uno::Reference< css::style::XStyle > CreateStyle(SfxStyleFamily eFamily, SwDoc &rDoc)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL hasElements() override
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getStyleLoaderOptions() override
static css::uno::Reference< css::style::XStyle > CreateStyleCondParagraph(SwDoc &rDoc)
SwXStyleFamilies(SwDocShell &rDocShell)
A text cell style is a UNO API wrapper for a SwBoxAutoFormat core class.
virtual void SAL_CALL setParentStyle(const OUString &aParentStyle) override
bool m_bPhysical
If true, then it points to a core object, if false, then this is a created, but not-yet-inserted form...
virtual sal_Bool SAL_CALL isUserDefined() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
static css::uno::Reference< css::style::XStyle > CreateXTextCellStyle(SwDocShell *pDocShell, const OUString &sName)
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
void SetBoxFormat(SwBoxAutoFormat *pBoxFormat)
Sets the address of SwBoxAutoFormat this style is bound to. Usable only when style is physical.
SwBoxAutoFormat * GetBoxFormat()
returns box format assigned to this style
virtual sal_Bool SAL_CALL isInUse() override
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &aPropertyName) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
virtual OUString SAL_CALL getName() override
SwBoxAutoFormat * m_pBoxAutoFormat
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual void SAL_CALL setName(const OUString &sName) override
SwXTextCellStyle(SwDocShell *pDocShell, SwBoxAutoFormat *pBoxAutoFormat, OUString sParentStyle)
std::shared_ptr< SwBoxAutoFormat > m_pBoxAutoFormat_Impl
Stores SwBoxAutoFormat when this is not a physical style.
virtual OUString SAL_CALL getParentStyle() override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
static SwBoxAutoFormat * GetBoxAutoFormat(SwDocShell *pDocShell, std::u16string_view sName, OUString *pParentName)
This function looks for a SwBoxAutoFormat with given name.
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
A text table style is a UNO API wrapper for a SwTableAutoFormat.
SwTableAutoFormat * m_pTableAutoFormat
virtual void SAL_CALL setParentStyle(const OUString &aParentStyle) override
rtl::Reference< SwXTextCellStyle > m_aCellStyles[STYLE_COUNT]
virtual void SAL_CALL insertByName(const OUString &rName, const css::uno::Any &aElement) override
virtual void SAL_CALL setName(const OUString &rName) override
static const CellStyleNameMap & GetCellStyleNameMap()
virtual void SAL_CALL removeByName(const OUString &rName) override
virtual OUString SAL_CALL getParentStyle() override
virtual sal_Bool SAL_CALL hasElements() override
SwXTextTableStyle(SwDocShell *pDocShell, SwTableAutoFormat *pTableAutoFormat)
bool m_bPhysical
If true, then it points to a core object, if false, then this is a created, but not-yet-inserted form...
void UpdateCellStylesMapping()
Fills m_aCellStyles with SwXTextCellStyles pointing to children of this style.
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual OUString SAL_CALL getName() override
virtual css::uno::Type SAL_CALL getElementType() override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual sal_Bool SAL_CALL isInUse() override
static css::uno::Reference< css::style::XStyle > CreateXTextTableStyle(SwDocShell *pDocShell, const OUString &rTableAutoFormatName)
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual void SAL_CALL replaceByName(const OUString &rName, const css::uno::Any &aElement) override
@ LAST_ROW_END_COLUMN_STYLE
@ FIRST_ROW_END_COLUMN_STYLE
@ LAST_ROW_START_COLUMN_STYLE
@ LAST_ROW_EVEN_COLUMN_STYLE
@ FIRST_ROW_START_COLUMN_STYLE
@ FIRST_ROW_EVEN_COLUMN_STYLE
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL isUserDefined() override
std::unique_ptr< SwTableAutoFormat > m_pTableAutoFormat_Impl
Stores SwTableAutoFormat when this is not a physical style.
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual css::uno::Any SAL_CALL getByName(const OUString &rName) override
virtual sal_Bool SAL_CALL hasByName(const OUString &rName) override
virtual OUString SAL_CALL getImplementationName() override
SwTableAutoFormat * GetTableFormat()
Returns box format assigned to this style.
static SwTableAutoFormat * GetTableAutoFormat(SwDocShell *pDocShell, std::u16string_view sName)
This function looks for a SwTableAutoFormat with given name. Returns nullptr if could not be found.
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
virtual ~ICoreFrameStyle()
virtual const SfxPoolItem * GetItem(sal_uInt16 eAtr)=0
virtual css::document::XEventsSupplier & GetEventsSupplier()=0
virtual void SetItem(sal_uInt16 eAtr, const SfxPoolItem &rItem)=0
std::map< OUString, sal_Int32 > CellStyleNameMap
Dialog to specify the properties of date form field.
std::map< OUString, sal_Int32 > CellStyleNameMap