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 
33 #include <com/sun/star/style/XAutoStyleFamily.hpp>
34 #include <com/sun/star/style/XAutoStyles.hpp>
35 #include <com/sun/star/style/XAutoStyle.hpp>
36 
37 #include "istyleaccess.hxx"
38 #include <memory>
39 #include <map>
40 
41 namespace com { namespace sun { namespace star { namespace document { class XEventsSupplier; } } } }
42 
43 class SwDocShell;
45 class SfxItemSet;
46 
47 class SwXStyleFamilies : public cppu::WeakImplHelper
48 <
49  css::container::XIndexAccess,
50  css::container::XNameAccess,
51  css::lang::XServiceInfo,
52  css::style::XStyleLoader
53 >,
54  public SwUnoCollection
55 {
57 
58  std::map<SfxStyleFamily, css::uno::Reference<css::container::XNameContainer>> m_vFamilies;
59 protected:
60  virtual ~SwXStyleFamilies() override;
61 public:
62  SwXStyleFamilies(SwDocShell& rDocShell);
63 
64  //XNameAccess
65  virtual css::uno::Any SAL_CALL getByName(const OUString& Name) override;
66  virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
67  virtual sal_Bool SAL_CALL hasByName(const OUString& Name) override;
68 
69  //XIndexAccess
70  virtual sal_Int32 SAL_CALL getCount() override;
71  virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
72 
73  //XElementAccess
74  virtual css::uno::Type SAL_CALL getElementType( ) override;
75  virtual sal_Bool SAL_CALL hasElements( ) override;
76 
77  //XStyleLoader
78  virtual void SAL_CALL loadStylesFromURL(const OUString& rURL, const css::uno::Sequence< css::beans::PropertyValue >& aOptions) override;
79  virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getStyleLoaderOptions() override;
80 
81  //XServiceInfo
82  virtual OUString SAL_CALL getImplementationName() override;
83  virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
84  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
85 
86  static css::uno::Reference<css::style::XStyle> CreateStyle(SfxStyleFamily eFamily, SwDoc& rDoc);
87  // FIXME: This is very ugly as is the whole conditional paragraph style
88  // hackety. Should be folded into CreateStyle hopefully one day
89  static css::uno::Reference<css::style::XStyle> CreateStyleCondParagraph(SwDoc& rDoc);
90 };
91 
92 namespace sw
93 {
95  {
96  public:
97  virtual void SetItem(sal_uInt16 eAtr, const SfxPoolItem& rItem) =0;
98  virtual const SfxPoolItem* GetItem(sal_uInt16 eAtr) =0;
99  virtual css::document::XEventsSupplier& GetEventsSupplier() =0;
100  virtual ~ICoreFrameStyle() {};
101  };
102 }
103 
104 // access to all automatic style families
106  public cppu::WeakImplHelper< css::style::XAutoStyles >,
107  public SwUnoCollection
108 {
110  css::uno::Reference< css::style::XAutoStyleFamily > m_xAutoCharStyles;
111  css::uno::Reference< css::style::XAutoStyleFamily > m_xAutoRubyStyles;
112  css::uno::Reference< css::style::XAutoStyleFamily > m_xAutoParaStyles;
113  virtual ~SwXAutoStyles() override;
114 
115 public:
116  SwXAutoStyles(SwDocShell& rDocShell);
117 
118  //XIndexAccess
119  virtual sal_Int32 SAL_CALL getCount() override;
120  virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
121 
122  //XElementAccess
123  virtual css::uno::Type SAL_CALL getElementType( ) override;
124  virtual sal_Bool SAL_CALL hasElements( ) override;
125 
126  //XNameAccess
127  virtual css::uno::Any SAL_CALL getByName(const OUString& Name) override;
128  virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
129  virtual sal_Bool SAL_CALL hasByName(const OUString& Name) override;
130 
131 };
132 
133 // access to a family of automatic styles (character or paragraph or ...)
134 class SwXAutoStyleFamily : public cppu::WeakImplHelper< css::style::XAutoStyleFamily >, public SvtListener
135 {
138 
139 
140 public:
142  virtual ~SwXAutoStyleFamily() override;
143 
144  //XAutoStyleFamily
145  virtual css::uno::Reference< css::style::XAutoStyle > SAL_CALL insertStyle( const css::uno::Sequence< css::beans::PropertyValue >& Values ) override;
146 
147  //XEnumerationAccess
148  virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration( ) override;
149 
150  //XElementAccess
151  virtual css::uno::Type SAL_CALL getElementType( ) override;
152  virtual sal_Bool SAL_CALL hasElements( ) override;
153 
154  virtual void Notify( const SfxHint&) override;
155 };
156 
157 class SwXAutoStylesEnumerator : public cppu::WeakImplHelper< css::container::XEnumeration >, public SvtListener
158 {
159  std::unique_ptr<SwAutoStylesEnumImpl> m_pImpl;
160 public:
162  virtual ~SwXAutoStylesEnumerator() override;
163 
164  //XEnumeration
165  virtual sal_Bool SAL_CALL hasMoreElements( ) override;
166  virtual css::uno::Any SAL_CALL nextElement( ) override;
167 
168  virtual void Notify( const SfxHint&) override;
169 };
170 
171 // an automatic style
172 class SwXAutoStyle : public cppu::WeakImplHelper
173 <
174  css::beans::XPropertySet,
175  css::beans::XPropertyState,
176  css::style::XAutoStyle
177 >,
178  public SvtListener
179 {
180 private:
181  std::shared_ptr<SfxItemSet> mpSet;
184 
188  css::uno::Sequence< css::uno::Any > GetPropertyValues_Impl( const css::uno::Sequence< OUString >& aPropertyNames );
189 
190 public:
191 
192  SwXAutoStyle( SwDoc* pDoc, std::shared_ptr<SfxItemSet> const & pInitSet, IStyleAccess::SwAutoStyleFamily eFam );
193  virtual ~SwXAutoStyle() override;
194 
195  //XPropertySet
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;
203 
204  //XMultiPropertySet
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;
208  virtual void SAL_CALL removePropertiesChangeListener( 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;
210 
211  //XPropertyState
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;
214  virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) override;
215  virtual css::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName ) override;
216 
217  //XMultiPropertyStates
218  virtual void SAL_CALL setAllPropertiesToDefault( ) 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;
221 
222  // Special
223  virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getProperties() override;
224 
225  virtual void Notify( const SfxHint& ) override;
226 
227 };
228 
229 typedef std::map<OUString, sal_Int32> CellStyleNameMap;
230 
232 class SwXTextTableStyle : public cppu::WeakImplHelper
233 <
234  css::style::XStyle,
235  css::beans::XPropertySet,
236  css::container::XNameContainer,
237  css::lang::XServiceInfo
238 >
239 {
243  std::unique_ptr<SwTableAutoFormat> m_pTableAutoFormat_Impl;
246 
247  enum {
258  // loext namespace
266  };
267 
270  static const CellStyleNameMap& GetCellStyleNameMap();
271  css::uno::Reference<css::style::XStyle> m_aCellStyles[STYLE_COUNT];
272 public:
273  SwXTextTableStyle(SwDocShell* pDocShell, SwTableAutoFormat* pTableAutoFormat);
275  SwXTextTableStyle(SwDocShell* pDocShell, const OUString& rTableAutoFormatName);
276 
278  static SwTableAutoFormat* GetTableAutoFormat(SwDocShell* pDocShell, const OUString& sName);
281  void SetPhysical();
282 
283  //XStyle
284  virtual sal_Bool SAL_CALL isUserDefined() override;
285  virtual sal_Bool SAL_CALL isInUse() override;
286  virtual OUString SAL_CALL getParentStyle() override;
287  virtual void SAL_CALL setParentStyle(const OUString& aParentStyle ) override;
288 
289  //XNamed
290  virtual OUString SAL_CALL getName() override;
291  virtual void SAL_CALL setName(const OUString& rName) override;
292 
293  //XPropertySet
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;
301 
302  //XNameAccess
303  virtual css::uno::Any SAL_CALL getByName(const OUString& rName) override;
304  virtual css::uno::Sequence<OUString> SAL_CALL getElementNames() override;
305  virtual sal_Bool SAL_CALL hasByName(const OUString& rName) override;
306 
307  //XNameContainer
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;
311 
312  //XElementAccess
313  virtual css::uno::Type SAL_CALL getElementType() override;
314  virtual sal_Bool SAL_CALL hasElements() override;
315 
316  //XServiceInfo
317  virtual OUString SAL_CALL getImplementationName() override;
318  virtual sal_Bool SAL_CALL supportsService(const OUString& rServiceName) override;
319  virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
320 
321  static css::uno::Reference<css::style::XStyle> CreateXTextTableStyle(SwDocShell* pDocShell, const OUString& rTableAutoFormatName);
322 };
323 
325 class SwXTextCellStyle : public cppu::WeakImplHelper
326 <
327  css::style::XStyle,
328  css::beans::XPropertySet,
329  css::beans::XPropertyState,
330  css::lang::XServiceInfo
331 >
332 {
336  std::shared_ptr<SwBoxAutoFormat> m_pBoxAutoFormat_Impl;
337  OUString m_sParentStyle;
338  OUString m_sName;
341 
342  public:
343  SwXTextCellStyle(SwDocShell* pDocShell, SwBoxAutoFormat* pBoxAutoFormat, const OUString& sParentStyle);
345  SwXTextCellStyle(SwDocShell* pDocShell, const OUString& sName);
346 
354  static SwBoxAutoFormat* GetBoxAutoFormat(SwDocShell* pDocShell, const OUString& sName, OUString* pParentName);
358  void SetBoxFormat(SwBoxAutoFormat* pBoxFormat);
359  void SetPhysical();
360  bool IsPhysical();
361 
362  //XStyle
363  virtual sal_Bool SAL_CALL isUserDefined() override;
364  virtual sal_Bool SAL_CALL isInUse() override;
365  virtual OUString SAL_CALL getParentStyle() override;
366  virtual void SAL_CALL setParentStyle(const OUString& aParentStyle ) override;
367 
368  //XNamed
369  virtual OUString SAL_CALL getName() override;
370  virtual void SAL_CALL setName(const OUString& sName) override;
371 
372  //XPropertySet
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;
380 
381  //XPropertyState
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;
384  virtual void SAL_CALL setPropertyToDefault(const OUString& PropertyName) override;
385  virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString& aPropertyName) override;
386 
387  //XServiceInfo
388  virtual OUString SAL_CALL getImplementationName() override;
389  virtual sal_Bool SAL_CALL supportsService(const OUString& rServiceName) override;
390  virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
391 
392  static css::uno::Reference<css::style::XStyle> CreateXTextCellStyle(SwDocShell* pDocShell, const OUString& sName);
393 };
394 #endif
395 
396 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SwTableAutoFormat * m_pTableAutoFormat
Definition: unostyle.hxx:241
virtual void SAL_CALL replaceByName(const OUString &rName, const css::uno::Any &aElement) override
Definition: unostyle.cxx:4563
virtual OUString SAL_CALL getImplementationName() override
Definition: unostyle.cxx:460
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
Definition: unostyle.cxx:479
SwDocShell *const m_pDocShell
Definition: unostyle.hxx:109
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
Definition: unostyle.cxx:4121
virtual sal_Bool SAL_CALL hasElements() override
Definition: unostyle.cxx:534
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: unostyle.cxx:4490
SwXAutoStyles(SwDocShell &rDocShell)
Definition: unostyle.cxx:3381
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
Definition: unostyle.cxx:5589
virtual sal_Bool SAL_CALL isUserDefined() override
Definition: unostyle.cxx:4753
virtual sal_Int32 SAL_CALL getCount() override
Definition: unostyle.cxx:508
virtual void SAL_CALL setPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
Definition: unostyle.cxx:3923
virtual ~SwXStyleFamilies() override
Definition: unostyle.cxx:476
SwDoc & mrDoc
Definition: unostyle.hxx:183
virtual css::uno::Any SAL_CALL getByName(const OUString &rName) override
Definition: unostyle.cxx:4532
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
Definition: unostyle.cxx:4516
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: unostyle.cxx:3462
std::map< OUString, sal_Int32 > CellStyleNameMap
virtual sal_Bool SAL_CALL isInUse() override
Definition: unostyle.cxx:4763
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: unostyle.cxx:3395
Definition: doc.hxx:185
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
Definition: unostyle.cxx:3903
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unostyle.cxx:4526
virtual void SAL_CALL loadStylesFromURL(const OUString &rURL, const css::uno::Sequence< css::beans::PropertyValue > &aOptions) override
Definition: unostyle.cxx:537
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
Definition: unostyle.cxx:3472
static css::uno::Reference< css::style::XStyle > CreateStyleCondParagraph(SwDoc &rDoc)
Definition: unostyle.cxx:785
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyDefaults(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition: unostyle.cxx:4220
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:4367
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
Definition: unostyle.cxx:5196
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition: unostyle.cxx:4066
virtual OUString SAL_CALL getName() override
Definition: unostyle.cxx:4801
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:4843
virtual void SAL_CALL setParentStyle(const OUString &aParentStyle) override
Definition: unostyle.cxx:4793
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getStyleLoaderOptions() override
Definition: unostyle.cxx:570
virtual void SAL_CALL removeByName(const OUString &rName) override
Definition: unostyle.cxx:4598
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
Definition: unostyle.cxx:3448
Dialog to specify the properties of date form field.
Definition: accfrmobj.cxx:38
SwXAutoStyleFamily(SwDocShell *pDocShell, IStyleAccess::SwAutoStyleFamily eFamily)
Definition: unostyle.cxx:3482
virtual const SfxPoolItem * GetItem(sal_uInt16 eAtr)=0
OUString m_sParentStyle
Definition: unostyle.hxx:337
static const CellStyleNameMap & GetCellStyleNameMap()
Definition: unostyle.cxx:4337
virtual void SAL_CALL setParentStyle(const OUString &aParentStyle) override
Definition: unostyle.cxx:4460
css::uno::Reference< css::style::XStyle > m_aCellStyles[STYLE_COUNT]
Definition: unostyle.hxx:271
virtual sal_Bool SAL_CALL isInUse() override
Definition: unostyle.cxx:4426
SwDocShell * m_pDocShell
Definition: unostyle.hxx:56
virtual void Notify(const SfxHint &) override
Definition: unostyle.cxx:3493
A text cell style is a UNO API wrapper for a SwBoxAutoFormat core class.
Definition: unostyle.hxx:325
static css::uno::Reference< css::style::XStyle > CreateXTextTableStyle(SwDocShell *pDocShell, const OUString &rTableAutoFormatName)
Definition: unostyle.cxx:4295
virtual OUString SAL_CALL getImplementationName() override
Definition: unostyle.cxx:4615
SwBoxAutoFormat * GetBoxFormat()
returns box format assigned to this style
Definition: unostyle.cxx:4647
virtual sal_Bool SAL_CALL isUserDefined() override
Definition: unostyle.cxx:4416
SfxStyleFamily
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unostyle.cxx:4625
std::shared_ptr< SwBoxAutoFormat > m_pBoxAutoFormat_Impl
Stores SwBoxAutoFormat when this is not a physical style.
Definition: unostyle.hxx:336
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unostyle.cxx:5211
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: unostyle.cxx:4485
SwDocShell * m_pDocShell
Definition: unostyle.hxx:240
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
Definition: unostyle.cxx:5217
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unostyle.cxx:3733
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unostyle.cxx:5206
css::uno::Sequence< css::uno::Any > GetPropertyValues_Impl(const css::uno::Sequence< OUString > &aPropertyNames)
Definition: unostyle.cxx:3929
virtual void SAL_CALL removePropertiesChangeListener(const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
Definition: unostyle.cxx:4097
virtual ~ICoreFrameStyle()
Definition: unostyle.hxx:100
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
Definition: unostyle.cxx:5576
virtual sal_Bool SAL_CALL hasByName(const OUString &rName) override
Definition: unostyle.cxx:4549
virtual css::uno::Any SAL_CALL nextElement() override
Definition: unostyle.cxx:3803
virtual sal_Bool SAL_CALL hasElements() override
Definition: unostyle.cxx:3738
void SetBoxFormat(SwBoxAutoFormat *pBoxFormat)
Sets the address of SwBoxAutoFormat this style is bound to. Usable only when style is physical...
Definition: unostyle.cxx:4652
A text table style is a UNO API wrapper for a SwTableAutoFormat.
Definition: unostyle.hxx:232
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
Definition: unostyle.cxx:4117
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unostyle.cxx:5594
SwXAutoStylesEnumerator(SwDoc *pDoc, IStyleAccess::SwAutoStyleFamily eFam)
Definition: unostyle.cxx:3779
virtual css::document::XEventsSupplier & GetEventsSupplier()=0
virtual void SAL_CALL insertByName(const OUString &rName, const css::uno::Any &aElement) override
Definition: unostyle.cxx:4558
SwXAutoStyle(SwDoc *pDoc, std::shared_ptr< SfxItemSet > const &pInitSet, IStyleAccess::SwAutoStyleFamily eFam)
Definition: unostyle.cxx:3825
virtual sal_Bool SAL_CALL hasMoreElements() override
Definition: unostyle.cxx:3796
SwXTextTableStyle(SwDocShell *pDocShell, SwTableAutoFormat *pTableAutoFormat)
Definition: unostyle.cxx:4282
virtual OUString SAL_CALL getParentStyle() override
Definition: unostyle.cxx:4455
std::unique_ptr< SwTableAutoFormat > m_pTableAutoFormat_Impl
Stores SwTableAutoFormat when this is not a physical style.
Definition: unostyle.hxx:243
SwTableAutoFormat * GetTableFormat()
Returns box format assigned to this style.
Definition: unostyle.cxx:4362
virtual void SAL_CALL setAllPropertiesToDefault() override
Definition: unostyle.cxx:4211
unsigned char sal_Bool
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: unostyle.cxx:4543
void UpdateCellStylesMapping()
Fills m_aCellStyles with SwXTextCellStyles pointing to children of this style.
Definition: unostyle.cxx:4320
std::shared_ptr< SfxItemSet > mpSet
Definition: unostyle.hxx:181
css::uno::Reference< css::style::XAutoStyleFamily > m_xAutoParaStyles
Definition: unostyle.hxx:112
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unostyle.cxx:3918
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: unostyle.cxx:3896
virtual sal_Bool SAL_CALL hasElements() override
Definition: unostyle.cxx:3443
SwDocShell * m_pDocShell
Definition: unostyle.hxx:333
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:245
virtual void Notify(const SfxHint &) override
Definition: unostyle.cxx:3841
std::map< SfxStyleFamily, css::uno::Reference< css::container::XNameContainer > > m_vFamilies
Definition: unostyle.hxx:58
virtual void SAL_CALL setPropertiesToDefault(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition: unostyle.cxx:4215
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unostyle.cxx:463
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unostyle.cxx:468
static css::uno::Reference< css::style::XStyle > CreateStyle(SfxStyleFamily eFamily, SwDoc &rDoc)
Definition: unostyle.cxx:776
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
Definition: unostyle.cxx:5201
std::map< OUString, sal_Int32 > CellStyleNameMap
Definition: unostyle.hxx:229
virtual void Notify(const SfxHint &) override
Definition: unostyle.cxx:3790
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: unostyle.cxx:5032
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: unostyle.cxx:4479
css::uno::Reference< css::style::XAutoStyleFamily > m_xAutoRubyStyles
Definition: unostyle.hxx:111
virtual ~SwXAutoStyle() override
Definition: unostyle.cxx:3837
virtual void SAL_CALL setName(const OUString &sName) override
Definition: unostyle.cxx:4826
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: unostyle.cxx:492
SwXStyleFamilies(SwDocShell &rDocShell)
Definition: unostyle.cxx:471
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:340
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unostyle.cxx:529
SwBoxAutoFormat * m_pBoxAutoFormat
Definition: unostyle.hxx:334
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unostyle.cxx:3913
virtual sal_Int32 SAL_CALL getCount() override
Definition: unostyle.cxx:3390
virtual ~SwXAutoStyles() override
Definition: unostyle.cxx:3386
virtual void SAL_CALL addPropertiesChangeListener(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
Definition: unostyle.cxx:4091
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: unostyle.cxx:3892
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unostyle.cxx:3438
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
Definition: unostyle.cxx:3908
virtual void SAL_CALL setName(const OUString &rName) override
Definition: unostyle.cxx:4472
virtual ~SwXAutoStyleFamily() override
Definition: unostyle.cxx:3489
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unostyle.cxx:4604
virtual OUString SAL_CALL getName() override
Definition: unostyle.cxx:4464
IStyleAccess::SwAutoStyleFamily const meFamily
Definition: unostyle.hxx:182
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
Definition: unostyle.cxx:4511
css::uno::Reference< css::style::XAutoStyleFamily > m_xAutoCharStyles
Definition: unostyle.hxx:110
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
Definition: unostyle.cxx:4108
SwXTextCellStyle(SwDocShell *pDocShell, SwBoxAutoFormat *pBoxAutoFormat, const OUString &sParentStyle)
Definition: unostyle.cxx:4631
virtual OUString SAL_CALL getParentStyle() override
Definition: unostyle.cxx:4787
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: unostyle.cxx:4837
virtual void SAL_CALL firePropertiesChangeEvent(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
Definition: unostyle.cxx:4102
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &aPropertyName) override
Definition: unostyle.cxx:5225
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
Definition: unostyle.cxx:3725
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &aPropertyName) override
Definition: unostyle.cxx:4127
virtual OUString SAL_CALL getImplementationName() override
Definition: unostyle.cxx:5584
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getProperties() override
Definition: unostyle.cxx:4227
virtual ~SwXAutoStylesEnumerator() override
Definition: unostyle.cxx:3786
virtual css::uno::Reference< css::style::XAutoStyle > SAL_CALL insertStyle(const css::uno::Sequence< css::beans::PropertyValue > &Values) override
Definition: unostyle.cxx:3499
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
Definition: unostyle.cxx:501
virtual sal_Bool SAL_CALL hasElements() override
Definition: unostyle.cxx:4609
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: unostyle.cxx:3847
OUString m_sName
Definition: unostyle.hxx:338
static SwBoxAutoFormat * GetBoxAutoFormat(SwDocShell *pDocShell, const OUString &sName, OUString *pParentName)
This function looks for a SwBoxAutoFormat with given name.
Definition: unostyle.cxx:4684
IStyleAccess::SwAutoStyleFamily const m_eFamily
Definition: unostyle.hxx:137
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
Definition: unostyle.cxx:4620
std::unique_ptr< SwAutoStylesEnumImpl > m_pImpl
Definition: unostyle.hxx:159
static css::uno::Reference< css::style::XStyle > CreateXTextCellStyle(SwDocShell *pDocShell, const OUString &sName)
Definition: unostyle.cxx:4722
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
Definition: unostyle.cxx:5375
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: unostyle.cxx:513
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unostyle.cxx:4521
SwDocShell * m_pDocShell
Definition: unostyle.hxx:136