LibreOffice Module sw (master)  1
unostyle.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef INCLUDED_SW_INC_UNOSTYLE_HXX
20 #define INCLUDED_SW_INC_UNOSTYLE_HXX
21 
22 #include <svl/listener.hxx>
23 #include <svl/style.hxx>
24 #include "unocoll.hxx"
25 #include "tblafmt.hxx"
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>
31 #include <cppuhelper/implbase.hxx>
32 #include "calbck.hxx"
33 
34 #include <com/sun/star/style/XAutoStyleFamily.hpp>
35 #include <com/sun/star/style/XAutoStyles.hpp>
36 #include <com/sun/star/style/XAutoStyle.hpp>
37 
38 #include "istyleaccess.hxx"
39 #include <memory>
40 #include <map>
41 
42 namespace com { namespace sun { namespace star { namespace document { class XEventsSupplier; } } } }
43 
44 class SwDocShell;
46 class SfxItemSet;
47 
48 class SwXStyleFamilies : public cppu::WeakImplHelper
49 <
50  css::container::XIndexAccess,
51  css::container::XNameAccess,
52  css::lang::XServiceInfo,
53  css::style::XStyleLoader
54 >,
55  public SwUnoCollection
56 {
58 
59  std::map<SfxStyleFamily, css::uno::Reference<css::container::XNameContainer>> m_vFamilies;
60 protected:
61  virtual ~SwXStyleFamilies() override;
62 public:
63  SwXStyleFamilies(SwDocShell& rDocShell);
64 
65  //XNameAccess
66  virtual css::uno::Any SAL_CALL getByName(const OUString& Name) override;
67  virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
68  virtual sal_Bool SAL_CALL hasByName(const OUString& Name) override;
69 
70  //XIndexAccess
71  virtual sal_Int32 SAL_CALL getCount() override;
72  virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
73 
74  //XElementAccess
75  virtual css::uno::Type SAL_CALL getElementType( ) override;
76  virtual sal_Bool SAL_CALL hasElements( ) override;
77 
78  //XStyleLoader
79  virtual void SAL_CALL loadStylesFromURL(const OUString& rURL, const css::uno::Sequence< css::beans::PropertyValue >& aOptions) override;
80  virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getStyleLoaderOptions() override;
81 
82  //XServiceInfo
83  virtual OUString SAL_CALL getImplementationName() override;
84  virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
85  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
86 
87  static css::uno::Reference<css::style::XStyle> CreateStyle(SfxStyleFamily eFamily, SwDoc& rDoc);
88  // FIXME: This is very ugly as is the whole conditional paragraph style
89  // hackety. Should be folded into CreateStyle hopefully one day
90  static css::uno::Reference<css::style::XStyle> CreateStyleCondParagraph(SwDoc& rDoc);
91 };
92 
93 namespace sw
94 {
96  {
97  public:
98  virtual void SetItem(sal_uInt16 eAtr, const SfxPoolItem& rItem) =0;
99  virtual const SfxPoolItem* GetItem(sal_uInt16 eAtr) =0;
100  virtual css::document::XEventsSupplier& GetEventsSupplier() =0;
101  virtual ~ICoreFrameStyle() {};
102  };
103 }
104 
105 // access to all automatic style families
107  public cppu::WeakImplHelper< css::style::XAutoStyles >,
108  public SwUnoCollection
109 {
111  css::uno::Reference< css::style::XAutoStyleFamily > m_xAutoCharStyles;
112  css::uno::Reference< css::style::XAutoStyleFamily > m_xAutoRubyStyles;
113  css::uno::Reference< css::style::XAutoStyleFamily > m_xAutoParaStyles;
114  virtual ~SwXAutoStyles() override;
115 
116 public:
117  SwXAutoStyles(SwDocShell& rDocShell);
118 
119  //XIndexAccess
120  virtual sal_Int32 SAL_CALL getCount() override;
121  virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
122 
123  //XElementAccess
124  virtual css::uno::Type SAL_CALL getElementType( ) override;
125  virtual sal_Bool SAL_CALL hasElements( ) override;
126 
127  //XNameAccess
128  virtual css::uno::Any SAL_CALL getByName(const OUString& Name) override;
129  virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
130  virtual sal_Bool SAL_CALL hasByName(const OUString& Name) override;
131 
132 };
133 
134 // access to a family of automatic styles (character or paragraph or ...)
135 class SwXAutoStyleFamily : public cppu::WeakImplHelper< css::style::XAutoStyleFamily >, public SvtListener
136 {
139 
140 
141 public:
143  virtual ~SwXAutoStyleFamily() override;
144 
145  //XAutoStyleFamily
146  virtual css::uno::Reference< css::style::XAutoStyle > SAL_CALL insertStyle( const css::uno::Sequence< css::beans::PropertyValue >& Values ) override;
147 
148  //XEnumerationAccess
149  virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration( ) override;
150 
151  //XElementAccess
152  virtual css::uno::Type SAL_CALL getElementType( ) override;
153  virtual sal_Bool SAL_CALL hasElements( ) override;
154 
155  virtual void Notify( const SfxHint&) override;
156 };
157 
158 class SwXAutoStylesEnumerator : public cppu::WeakImplHelper< css::container::XEnumeration >, public SvtListener
159 {
160  std::unique_ptr<SwAutoStylesEnumImpl> m_pImpl;
161 public:
163  virtual ~SwXAutoStylesEnumerator() override;
164 
165  //XEnumeration
166  virtual sal_Bool SAL_CALL hasMoreElements( ) override;
167  virtual css::uno::Any SAL_CALL nextElement( ) override;
168 
169  virtual void Notify( const SfxHint&) override;
170 };
171 
172 // an automatic style
173 class SwXAutoStyle : public cppu::WeakImplHelper
174 <
175  css::beans::XPropertySet,
176  css::beans::XPropertyState,
177  css::style::XAutoStyle
178 >,
179  public SvtListener
180 {
181 private:
182  std::shared_ptr<SfxItemSet> mpSet;
185 
189  css::uno::Sequence< css::uno::Any > GetPropertyValues_Impl( const css::uno::Sequence< OUString >& aPropertyNames );
190 
191 public:
192 
193  SwXAutoStyle( SwDoc* pDoc, std::shared_ptr<SfxItemSet> const & pInitSet, IStyleAccess::SwAutoStyleFamily eFam );
194  virtual ~SwXAutoStyle() override;
195 
196  //XPropertySet
197  virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
198  virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
199  virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
200  virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
201  virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
202  virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
203  virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
204 
205  //XMultiPropertySet
206  virtual void SAL_CALL setPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Sequence< css::uno::Any >& aValues ) override;
207  virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames ) override;
208  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 removePropertiesChangeListener( const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) override;
210  virtual void SAL_CALL firePropertiesChangeEvent( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) override;
211 
212  //XPropertyState
213  virtual css::beans::PropertyState SAL_CALL getPropertyState( const OUString& PropertyName ) override;
214  virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates( const css::uno::Sequence< OUString >& aPropertyName ) override;
215  virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) override;
216  virtual css::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName ) override;
217 
218  //XMultiPropertyStates
219  virtual void SAL_CALL setAllPropertiesToDefault( ) override;
220  virtual void SAL_CALL setPropertiesToDefault( const css::uno::Sequence< OUString >& aPropertyNames ) override;
221  virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyDefaults( const css::uno::Sequence< OUString >& aPropertyNames ) override;
222 
223  // Special
224  virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getProperties() override;
225 
226  virtual void Notify( const SfxHint& ) override;
227 
228 };
229 
230 typedef std::map<OUString, sal_Int32> CellStyleNameMap;
231 
233 class SwXTextTableStyle : public cppu::WeakImplHelper
234 <
235  css::style::XStyle,
236  css::beans::XPropertySet,
237  css::container::XNameContainer,
238  css::lang::XServiceInfo
239 >
240 {
244  std::unique_ptr<SwTableAutoFormat> m_pTableAutoFormat_Impl;
247 
248  enum {
259  // loext namespace
267  };
268 
271  static const CellStyleNameMap& GetCellStyleNameMap();
272  css::uno::Reference<css::style::XStyle> m_aCellStyles[STYLE_COUNT];
273 public:
274  SwXTextTableStyle(SwDocShell* pDocShell, SwTableAutoFormat* pTableAutoFormat);
276  SwXTextTableStyle(SwDocShell* pDocShell, const OUString& rTableAutoFormatName);
277 
279  static SwTableAutoFormat* GetTableAutoFormat(SwDocShell* pDocShell, const OUString& sName);
282  void SetPhysical();
283 
284  //XStyle
285  virtual sal_Bool SAL_CALL isUserDefined() override;
286  virtual sal_Bool SAL_CALL isInUse() override;
287  virtual OUString SAL_CALL getParentStyle() override;
288  virtual void SAL_CALL setParentStyle(const OUString& aParentStyle ) override;
289 
290  //XNamed
291  virtual OUString SAL_CALL getName() override;
292  virtual void SAL_CALL setName(const OUString& rName) override;
293 
294  //XPropertySet
295  virtual css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() override;
296  virtual void SAL_CALL setPropertyValue(const OUString& aPropertyName, const css::uno::Any& aValue) override;
297  virtual css::uno::Any SAL_CALL getPropertyValue(const OUString& PropertyName) override;
298  virtual void SAL_CALL addPropertyChangeListener(const OUString& aPropertyName, const css::uno::Reference<css::beans::XPropertyChangeListener>& xListener) override;
299  virtual void SAL_CALL removePropertyChangeListener(const OUString& aPropertyName, const css::uno::Reference<css::beans::XPropertyChangeListener>& aListener) override;
300  virtual void SAL_CALL addVetoableChangeListener(const OUString& PropertyName, const css::uno::Reference<css::beans::XVetoableChangeListener>& aListener) override;
301  virtual void SAL_CALL removeVetoableChangeListener(const OUString& PropertyName, const css::uno::Reference<css::beans::XVetoableChangeListener>& aListener) override;
302 
303  //XNameAccess
304  virtual css::uno::Any SAL_CALL getByName(const OUString& rName) override;
305  virtual css::uno::Sequence<OUString> SAL_CALL getElementNames() override;
306  virtual sal_Bool SAL_CALL hasByName(const OUString& rName) override;
307 
308  //XNameContainer
309  virtual void SAL_CALL insertByName(const OUString& rName, const css::uno::Any& aElement) override;
310  virtual void SAL_CALL replaceByName(const OUString& rName, const css::uno::Any& aElement) override;
311  virtual void SAL_CALL removeByName(const OUString& rName) override;
312 
313  //XElementAccess
314  virtual css::uno::Type SAL_CALL getElementType() override;
315  virtual sal_Bool SAL_CALL hasElements() override;
316 
317  //XServiceInfo
318  virtual OUString SAL_CALL getImplementationName() override;
319  virtual sal_Bool SAL_CALL supportsService(const OUString& rServiceName) override;
320  virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
321 
322  static css::uno::Reference<css::style::XStyle> CreateXTextTableStyle(SwDocShell* pDocShell, const OUString& rTableAutoFormatName);
323 };
324 
326 class SwXTextCellStyle : public cppu::WeakImplHelper
327 <
328  css::style::XStyle,
329  css::beans::XPropertySet,
330  css::beans::XPropertyState,
331  css::lang::XServiceInfo
332 >
333 {
337  std::shared_ptr<SwBoxAutoFormat> m_pBoxAutoFormat_Impl;
338  OUString m_sParentStyle;
339  OUString m_sName;
342 
343  public:
344  SwXTextCellStyle(SwDocShell* pDocShell, SwBoxAutoFormat* pBoxAutoFormat, const OUString& sParentStyle);
346  SwXTextCellStyle(SwDocShell* pDocShell, const OUString& sName);
347 
355  static SwBoxAutoFormat* GetBoxAutoFormat(SwDocShell* pDocShell, const OUString& sName, OUString* pParentName);
359  void SetBoxFormat(SwBoxAutoFormat* pBoxFormat);
360  void SetPhysical();
361  bool IsPhysical();
362 
363  //XStyle
364  virtual sal_Bool SAL_CALL isUserDefined() override;
365  virtual sal_Bool SAL_CALL isInUse() override;
366  virtual OUString SAL_CALL getParentStyle() override;
367  virtual void SAL_CALL setParentStyle(const OUString& aParentStyle ) override;
368 
369  //XNamed
370  virtual OUString SAL_CALL getName() override;
371  virtual void SAL_CALL setName(const OUString& sName) override;
372 
373  //XPropertySet
374  virtual css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() override;
375  virtual void SAL_CALL setPropertyValue(const OUString& aPropertyName, const css::uno::Any& aValue) override;
376  virtual css::uno::Any SAL_CALL getPropertyValue(const OUString& PropertyName) override;
377  virtual void SAL_CALL addPropertyChangeListener(const OUString& aPropertyName, const css::uno::Reference<css::beans::XPropertyChangeListener>& xListener) override;
378  virtual void SAL_CALL removePropertyChangeListener(const OUString& aPropertyName, const css::uno::Reference<css::beans::XPropertyChangeListener>& aListener) override;
379  virtual void SAL_CALL addVetoableChangeListener(const OUString& PropertyName, const css::uno::Reference<css::beans::XVetoableChangeListener>& aListener) override;
380  virtual void SAL_CALL removeVetoableChangeListener(const OUString& PropertyName, const css::uno::Reference<css::beans::XVetoableChangeListener>& aListener) override;
381 
382  //XPropertyState
383  virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString& PropertyName) override;
384  virtual css::uno::Sequence<css::beans::PropertyState> SAL_CALL getPropertyStates(const css::uno::Sequence< OUString >& aPropertyName) override;
385  virtual void SAL_CALL setPropertyToDefault(const OUString& PropertyName) override;
386  virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString& aPropertyName) override;
387 
388  //XServiceInfo
389  virtual OUString SAL_CALL getImplementationName() override;
390  virtual sal_Bool SAL_CALL supportsService(const OUString& rServiceName) override;
391  virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
392 
393  static css::uno::Reference<css::style::XStyle> CreateXTextCellStyle(SwDocShell* pDocShell, const OUString& sName);
394 };
395 #endif
396 
397 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SwTableAutoFormat * m_pTableAutoFormat
Definition: unostyle.hxx:242
virtual void SAL_CALL replaceByName(const OUString &rName, const css::uno::Any &aElement) override
Definition: unostyle.cxx:4554
virtual OUString SAL_CALL getImplementationName() override
Definition: unostyle.cxx:450
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
Definition: unostyle.cxx:469
SwDocShell *const m_pDocShell
Definition: unostyle.hxx:110
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
Definition: unostyle.cxx:4112
virtual sal_Bool SAL_CALL hasElements() override
Definition: unostyle.cxx:524
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: unostyle.cxx:4481
SwXAutoStyles(SwDocShell &rDocShell)
Definition: unostyle.cxx:3370
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
Definition: unostyle.cxx:5580
virtual sal_Bool SAL_CALL isUserDefined() override
Definition: unostyle.cxx:4744
virtual sal_Int32 SAL_CALL getCount() override
Definition: unostyle.cxx:498
virtual void SAL_CALL setPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
Definition: unostyle.cxx:3914
virtual ~SwXStyleFamilies() override
Definition: unostyle.cxx:466
SwDoc & mrDoc
Definition: unostyle.hxx:184
virtual css::uno::Any SAL_CALL getByName(const OUString &rName) override
Definition: unostyle.cxx:4523
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
Definition: unostyle.cxx:4507
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: unostyle.cxx:3451
std::map< OUString, sal_Int32 > CellStyleNameMap
virtual sal_Bool SAL_CALL isInUse() override
Definition: unostyle.cxx:4754
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: unostyle.cxx:3384
Definition: doc.hxx:185
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
Definition: unostyle.cxx:3894
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unostyle.cxx:4517
virtual void SAL_CALL loadStylesFromURL(const OUString &rURL, const css::uno::Sequence< css::beans::PropertyValue > &aOptions) override
Definition: unostyle.cxx:527
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
Definition: unostyle.cxx:3461
static css::uno::Reference< css::style::XStyle > CreateStyleCondParagraph(SwDoc &rDoc)
Definition: unostyle.cxx:775
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyDefaults(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition: unostyle.cxx:4211
static SwTableAutoFormat * GetTableAutoFormat(SwDocShell *pDocShell, const OUString &sName)
This function looks for a SwTableAutoFormat with given name. Returns nullptr if could not be found...
Definition: unostyle.cxx:4358
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
Definition: unostyle.cxx:5187
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition: unostyle.cxx:4057
virtual OUString SAL_CALL getName() override
Definition: unostyle.cxx:4792
virtual void SetItem(sal_uInt16 eAtr, const SfxPoolItem &rItem)=0
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: unostyle.cxx:4834
virtual void SAL_CALL setParentStyle(const OUString &aParentStyle) override
Definition: unostyle.cxx:4784
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getStyleLoaderOptions() override
Definition: unostyle.cxx:560
virtual void SAL_CALL removeByName(const OUString &rName) override
Definition: unostyle.cxx:4589
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
Definition: unostyle.cxx:3437
Dialog to specify the properties of drop-down form field.
Definition: accframe.hxx:34
SwXAutoStyleFamily(SwDocShell *pDocShell, IStyleAccess::SwAutoStyleFamily eFamily)
Definition: unostyle.cxx:3471
virtual const SfxPoolItem * GetItem(sal_uInt16 eAtr)=0
OUString m_sParentStyle
Definition: unostyle.hxx:338
static const CellStyleNameMap & GetCellStyleNameMap()
Definition: unostyle.cxx:4328
virtual void SAL_CALL setParentStyle(const OUString &aParentStyle) override
Definition: unostyle.cxx:4451
css::uno::Reference< css::style::XStyle > m_aCellStyles[STYLE_COUNT]
Definition: unostyle.hxx:272
virtual sal_Bool SAL_CALL isInUse() override
Definition: unostyle.cxx:4417
SwDocShell * m_pDocShell
Definition: unostyle.hxx:57
virtual void Notify(const SfxHint &) override
Definition: unostyle.cxx:3482
A text cell style is a uno api wrapper for a SwBoxAutoFormat core class.
Definition: unostyle.hxx:326
static css::uno::Reference< css::style::XStyle > CreateXTextTableStyle(SwDocShell *pDocShell, const OUString &rTableAutoFormatName)
Definition: unostyle.cxx:4286
virtual OUString SAL_CALL getImplementationName() override
Definition: unostyle.cxx:4606
SwBoxAutoFormat * GetBoxFormat()
returns box format assigned to this style
Definition: unostyle.cxx:4638
virtual sal_Bool SAL_CALL isUserDefined() override
Definition: unostyle.cxx:4407
SfxStyleFamily
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unostyle.cxx:4616
std::shared_ptr< SwBoxAutoFormat > m_pBoxAutoFormat_Impl
Stores SwBoxAutoFormat when this is not a physical style.
Definition: unostyle.hxx:337
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unostyle.cxx:5202
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: unostyle.cxx:4476
SwDocShell * m_pDocShell
Definition: unostyle.hxx:241
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
Definition: unostyle.cxx:5208
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unostyle.cxx:3724
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unostyle.cxx:5197
css::uno::Sequence< css::uno::Any > GetPropertyValues_Impl(const css::uno::Sequence< OUString > &aPropertyNames)
Definition: unostyle.cxx:3920
virtual void SAL_CALL removePropertiesChangeListener(const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
Definition: unostyle.cxx:4088
virtual ~ICoreFrameStyle()
Definition: unostyle.hxx:101
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
Definition: unostyle.cxx:5567
virtual sal_Bool SAL_CALL hasByName(const OUString &rName) override
Definition: unostyle.cxx:4540
virtual css::uno::Any SAL_CALL nextElement() override
Definition: unostyle.cxx:3794
virtual sal_Bool SAL_CALL hasElements() override
Definition: unostyle.cxx:3729
void SetBoxFormat(SwBoxAutoFormat *pBoxFormat)
Sets the address of SwBoxAutoFormat this style is bound to. Usable only when style is physical...
Definition: unostyle.cxx:4643
A text table style is a uno api wrapper for a SwTableAutoFormat.
Definition: unostyle.hxx:233
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
Definition: unostyle.cxx:4108
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unostyle.cxx:5585
SwXAutoStylesEnumerator(SwDoc *pDoc, IStyleAccess::SwAutoStyleFamily eFam)
Definition: unostyle.cxx:3770
virtual css::document::XEventsSupplier & GetEventsSupplier()=0
virtual void SAL_CALL insertByName(const OUString &rName, const css::uno::Any &aElement) override
Definition: unostyle.cxx:4549
SwXAutoStyle(SwDoc *pDoc, std::shared_ptr< SfxItemSet > const &pInitSet, IStyleAccess::SwAutoStyleFamily eFam)
Definition: unostyle.cxx:3816
virtual sal_Bool SAL_CALL hasMoreElements() override
Definition: unostyle.cxx:3787
SwXTextTableStyle(SwDocShell *pDocShell, SwTableAutoFormat *pTableAutoFormat)
Definition: unostyle.cxx:4273
virtual OUString SAL_CALL getParentStyle() override
Definition: unostyle.cxx:4446
std::unique_ptr< SwTableAutoFormat > m_pTableAutoFormat_Impl
Stores SwTableAutoFormat when this is not a physical style.
Definition: unostyle.hxx:244
SwTableAutoFormat * GetTableFormat()
Returns box format assigned to this style.
Definition: unostyle.cxx:4353
virtual void SAL_CALL setAllPropertiesToDefault() override
Definition: unostyle.cxx:4202
unsigned char sal_Bool
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: unostyle.cxx:4534
void UpdateCellStylesMapping()
Fills m_aCellStyles with SwXTextCellStyles pointing to children of this style.
Definition: unostyle.cxx:4311
std::shared_ptr< SfxItemSet > mpSet
Definition: unostyle.hxx:182
css::uno::Reference< css::style::XAutoStyleFamily > m_xAutoParaStyles
Definition: unostyle.hxx:113
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unostyle.cxx:3909
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: unostyle.cxx:3887
virtual sal_Bool SAL_CALL hasElements() override
Definition: unostyle.cxx:3432
SwDocShell * m_pDocShell
Definition: unostyle.hxx:334
bool m_bPhysical
If true, then it points to a core object, if false, then this is a created, but not-yet-inserted form...
Definition: unostyle.hxx:246
virtual void Notify(const SfxHint &) override
Definition: unostyle.cxx:3832
std::map< SfxStyleFamily, css::uno::Reference< css::container::XNameContainer > > m_vFamilies
Definition: unostyle.hxx:59
virtual void SAL_CALL setPropertiesToDefault(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition: unostyle.cxx:4206
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unostyle.cxx:453
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unostyle.cxx:458
static css::uno::Reference< css::style::XStyle > CreateStyle(SfxStyleFamily eFamily, SwDoc &rDoc)
Definition: unostyle.cxx:766
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
Definition: unostyle.cxx:5192
std::map< OUString, sal_Int32 > CellStyleNameMap
Definition: unostyle.hxx:230
virtual void Notify(const SfxHint &) override
Definition: unostyle.cxx:3781
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: unostyle.cxx:5023
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: unostyle.cxx:4470
css::uno::Reference< css::style::XAutoStyleFamily > m_xAutoRubyStyles
Definition: unostyle.hxx:112
virtual ~SwXAutoStyle() override
Definition: unostyle.cxx:3828
virtual void SAL_CALL setName(const OUString &sName) override
Definition: unostyle.cxx:4817
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: unostyle.cxx:482
SwXStyleFamilies(SwDocShell &rDocShell)
Definition: unostyle.cxx:461
bool m_bPhysical
If true, then it points to a core object, if false, then this is a created, but not-yet-inserted form...
Definition: unostyle.hxx:341
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unostyle.cxx:519
SwBoxAutoFormat * m_pBoxAutoFormat
Definition: unostyle.hxx:335
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unostyle.cxx:3904
virtual sal_Int32 SAL_CALL getCount() override
Definition: unostyle.cxx:3379
virtual ~SwXAutoStyles() override
Definition: unostyle.cxx:3375
virtual void SAL_CALL addPropertiesChangeListener(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
Definition: unostyle.cxx:4082
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: unostyle.cxx:3883
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unostyle.cxx:3427
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
Definition: unostyle.cxx:3899
virtual void SAL_CALL setName(const OUString &rName) override
Definition: unostyle.cxx:4463
virtual ~SwXAutoStyleFamily() override
Definition: unostyle.cxx:3478
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unostyle.cxx:4595
virtual OUString SAL_CALL getName() override
Definition: unostyle.cxx:4455
IStyleAccess::SwAutoStyleFamily const meFamily
Definition: unostyle.hxx:183
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
Definition: unostyle.cxx:4502
css::uno::Reference< css::style::XAutoStyleFamily > m_xAutoCharStyles
Definition: unostyle.hxx:111
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
Definition: unostyle.cxx:4099
SwXTextCellStyle(SwDocShell *pDocShell, SwBoxAutoFormat *pBoxAutoFormat, const OUString &sParentStyle)
Definition: unostyle.cxx:4622
virtual OUString SAL_CALL getParentStyle() override
Definition: unostyle.cxx:4778
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: unostyle.cxx:4828
virtual void SAL_CALL firePropertiesChangeEvent(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
Definition: unostyle.cxx:4093
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &aPropertyName) override
Definition: unostyle.cxx:5216
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
Definition: unostyle.cxx:3716
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &aPropertyName) override
Definition: unostyle.cxx:4118
virtual OUString SAL_CALL getImplementationName() override
Definition: unostyle.cxx:5575
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getProperties() override
Definition: unostyle.cxx:4218
virtual ~SwXAutoStylesEnumerator() override
Definition: unostyle.cxx:3777
virtual css::uno::Reference< css::style::XAutoStyle > SAL_CALL insertStyle(const css::uno::Sequence< css::beans::PropertyValue > &Values) override
Definition: unostyle.cxx:3488
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
Definition: unostyle.cxx:491
virtual sal_Bool SAL_CALL hasElements() override
Definition: unostyle.cxx:4600
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: unostyle.cxx:3838
OUString m_sName
Definition: unostyle.hxx:339
static SwBoxAutoFormat * GetBoxAutoFormat(SwDocShell *pDocShell, const OUString &sName, OUString *pParentName)
This function looks for a SwBoxAutoFormat with given name.
Definition: unostyle.cxx:4675
IStyleAccess::SwAutoStyleFamily const m_eFamily
Definition: unostyle.hxx:138
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
Definition: unostyle.cxx:4611
std::unique_ptr< SwAutoStylesEnumImpl > m_pImpl
Definition: unostyle.hxx:160
static css::uno::Reference< css::style::XStyle > CreateXTextCellStyle(SwDocShell *pDocShell, const OUString &sName)
Definition: unostyle.cxx:4713
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
Definition: unostyle.cxx:5366
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: unostyle.cxx:503
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unostyle.cxx:4512
SwDocShell * m_pDocShell
Definition: unostyle.hxx:137