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#pragma once
20
21#include <rtl/ref.hxx>
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>
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
41namespace com::sun::star::document { class XEventsSupplier; }
42
43class SwDocShell;
45class SfxItemSet;
46
47class SwXStyleFamilies final : 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
60 virtual ~SwXStyleFamilies() override;
61public:
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
92namespace 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
105class SwXAutoStyles final :
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
115public:
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 ...)
134class SwXAutoStyleFamily final : public cppu::WeakImplHelper< css::style::XAutoStyleFamily >, public SvtListener
135{
138
139
140public:
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
157class SwXAutoStylesEnumerator final : public cppu::WeakImplHelper< css::container::XEnumeration >, public SvtListener
158{
159 std::unique_ptr<SwAutoStylesEnumImpl> m_pImpl;
160public:
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
172class SwXAutoStyle final : public cppu::WeakImplHelper
173<
174 css::beans::XPropertySet,
175 css::beans::XPropertyState,
176 css::style::XAutoStyle
177>,
178 public SvtListener
179{
180private:
181 std::shared_ptr<SfxItemSet> mpSet;
184
188 css::uno::Sequence< css::uno::Any > GetPropertyValues_Impl( const css::uno::Sequence< OUString >& aPropertyNames );
189
190public:
191
192 SwXAutoStyle( SwDoc* pDoc, std::shared_ptr<SfxItemSet> 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
229typedef std::map<OUString, sal_Int32> CellStyleNameMap;
230
232class SwXTextTableStyle final : 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
272public:
273 SwXTextTableStyle(SwDocShell* pDocShell, SwTableAutoFormat* pTableAutoFormat);
275 SwXTextTableStyle(SwDocShell* pDocShell, const OUString& rTableAutoFormatName);
276
278 static SwTableAutoFormat* GetTableAutoFormat(SwDocShell* pDocShell, std::u16string_view 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
325class SwXTextCellStyle final : 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;
338 OUString m_sName;
341
342 public:
343 SwXTextCellStyle(SwDocShell* pDocShell, SwBoxAutoFormat* pBoxAutoFormat, OUString sParentStyle);
345 SwXTextCellStyle(SwDocShell* pDocShell, OUString sName);
346
354 static SwBoxAutoFormat* GetBoxAutoFormat(SwDocShell* pDocShell, std::u16string_view sName, OUString* pParentName);
358 void SetBoxFormat(SwBoxAutoFormat* pBoxFormat);
359 void SetPhysical();
360 bool IsPhysical() const;
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
395/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: doc.hxx:197
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unostyle.cxx:3780
virtual void Notify(const SfxHint &) override
Definition: unostyle.cxx:3515
SwDocShell * m_pDocShell
Definition: unostyle.hxx:136
virtual ~SwXAutoStyleFamily() override
Definition: unostyle.cxx:3511
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
Definition: unostyle.cxx:3772
IStyleAccess::SwAutoStyleFamily m_eFamily
Definition: unostyle.hxx:137
virtual css::uno::Reference< css::style::XAutoStyle > SAL_CALL insertStyle(const css::uno::Sequence< css::beans::PropertyValue > &Values) override
Definition: unostyle.cxx:3734
virtual sal_Bool SAL_CALL hasElements() override
Definition: unostyle.cxx:3785
SwXAutoStyleFamily(SwDocShell *pDocShell, IStyleAccess::SwAutoStyleFamily eFamily)
Definition: unostyle.cxx:3504
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
Definition: unostyle.cxx:3941
virtual void SAL_CALL setAllPropertiesToDefault() override
Definition: unostyle.cxx:4244
SwDoc & mrDoc
Definition: unostyle.hxx:183
virtual void Notify(const SfxHint &) override
Definition: unostyle.cxx:3888
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &aPropertyName) override
Definition: unostyle.cxx:4160
IStyleAccess::SwAutoStyleFamily meFamily
Definition: unostyle.hxx:182
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: unostyle.cxx:3894
virtual void SAL_CALL addPropertiesChangeListener(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
Definition: unostyle.cxx:4124
css::uno::Sequence< css::uno::Any > GetPropertyValues_Impl(const css::uno::Sequence< OUString > &aPropertyNames)
Definition: unostyle.cxx:3962
SwXAutoStyle(SwDoc *pDoc, std::shared_ptr< SfxItemSet > pInitSet, IStyleAccess::SwAutoStyleFamily eFam)
Definition: unostyle.cxx:3872
virtual void SAL_CALL removePropertiesChangeListener(const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
Definition: unostyle.cxx:4130
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyDefaults(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition: unostyle.cxx:4253
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getProperties() override
Definition: unostyle.cxx:4259
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition: unostyle.cxx:4099
virtual void SAL_CALL firePropertiesChangeEvent(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
Definition: unostyle.cxx:4135
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unostyle.cxx:3951
std::shared_ptr< SfxItemSet > mpSet
Definition: unostyle.hxx:181
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
Definition: unostyle.cxx:4154
virtual ~SwXAutoStyle() override
Definition: unostyle.cxx:3884
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
Definition: unostyle.cxx:3936
virtual void SAL_CALL setPropertiesToDefault(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition: unostyle.cxx:4248
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
Definition: unostyle.cxx:4141
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: unostyle.cxx:3929
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: unostyle.cxx:3925
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
Definition: unostyle.cxx:4150
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unostyle.cxx:3946
virtual void SAL_CALL setPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
Definition: unostyle.cxx:3956
virtual css::uno::Any SAL_CALL nextElement() override
Definition: unostyle.cxx:3850
SwXAutoStylesEnumerator(SwDoc &rDoc, IStyleAccess::SwAutoStyleFamily eFam)
Definition: unostyle.cxx:3826
virtual sal_Bool SAL_CALL hasMoreElements() override
Definition: unostyle.cxx:3843
virtual void Notify(const SfxHint &) override
Definition: unostyle.cxx:3837
std::unique_ptr< SwAutoStylesEnumImpl > m_pImpl
Definition: unostyle.hxx:159
virtual ~SwXAutoStylesEnumerator() override
Definition: unostyle.cxx:3833
SwDocShell * m_pDocShell
Definition: unostyle.hxx:109
SwXAutoStyles(SwDocShell &rDocShell)
Definition: unostyle.cxx:3403
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
Definition: unostyle.cxx:3470
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
Definition: unostyle.cxx:3494
css::uno::Reference< css::style::XAutoStyleFamily > m_xAutoRubyStyles
Definition: unostyle.hxx:111
css::uno::Reference< css::style::XAutoStyleFamily > m_xAutoCharStyles
Definition: unostyle.hxx:110
virtual sal_Bool SAL_CALL hasElements() override
Definition: unostyle.cxx:3465
virtual sal_Int32 SAL_CALL getCount() override
Definition: unostyle.cxx:3412
css::uno::Reference< css::style::XAutoStyleFamily > m_xAutoParaStyles
Definition: unostyle.hxx:112
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: unostyle.cxx:3484
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unostyle.cxx:3460
virtual ~SwXAutoStyles() override
Definition: unostyle.cxx:3408
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: unostyle.cxx:3417
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
Definition: unostyle.cxx:889
virtual ~SwXStyleFamilies() override
Definition: unostyle.cxx:864
virtual OUString SAL_CALL getImplementationName() override
Definition: unostyle.cxx:848
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: unostyle.cxx:880
std::map< SfxStyleFamily, css::uno::Reference< css::container::XNameContainer > > m_vFamilies
Definition: unostyle.hxx:58
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: unostyle.cxx:901
virtual void SAL_CALL loadStylesFromURL(const OUString &rURL, const css::uno::Sequence< css::beans::PropertyValue > &aOptions) override
Definition: unostyle.cxx:925
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unostyle.cxx:917
virtual sal_Int32 SAL_CALL getCount() override
Definition: unostyle.cxx:896
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unostyle.cxx:851
static css::uno::Reference< css::style::XStyle > CreateStyle(SfxStyleFamily eFamily, SwDoc &rDoc)
Definition: unostyle.cxx:999
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unostyle.cxx:856
virtual sal_Bool SAL_CALL hasElements() override
Definition: unostyle.cxx:922
SwDocShell * m_pDocShell
Definition: unostyle.hxx:56
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
Definition: unostyle.cxx:867
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getStyleLoaderOptions() override
Definition: unostyle.cxx:970
static css::uno::Reference< css::style::XStyle > CreateStyleCondParagraph(SwDoc &rDoc)
Definition: unostyle.cxx:1008
SwXStyleFamilies(SwDocShell &rDocShell)
Definition: unostyle.cxx:859
A text cell style is a UNO API wrapper for a SwBoxAutoFormat core class.
Definition: unostyle.hxx:332
virtual void SAL_CALL setParentStyle(const OUString &aParentStyle) override
Definition: unostyle.cxx:4810
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 sal_Bool SAL_CALL isUserDefined() override
Definition: unostyle.cxx:4770
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unostyle.cxx:5612
SwDocShell * m_pDocShell
Definition: unostyle.hxx:333
static css::uno::Reference< css::style::XStyle > CreateXTextCellStyle(SwDocShell *pDocShell, const OUString &sName)
Definition: unostyle.cxx:4739
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
Definition: unostyle.cxx:5607
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
Definition: unostyle.cxx:5219
void SetBoxFormat(SwBoxAutoFormat *pBoxFormat)
Sets the address of SwBoxAutoFormat this style is bound to. Usable only when style is physical.
Definition: unostyle.cxx:4667
SwBoxAutoFormat * GetBoxFormat()
returns box format assigned to this style
Definition: unostyle.cxx:4662
virtual sal_Bool SAL_CALL isInUse() override
Definition: unostyle.cxx:4780
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &aPropertyName) override
Definition: unostyle.cxx:5243
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: unostyle.cxx:4855
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
Definition: unostyle.cxx:5235
virtual OUString SAL_CALL getName() override
Definition: unostyle.cxx:4817
SwBoxAutoFormat * m_pBoxAutoFormat
Definition: unostyle.hxx:334
bool IsPhysical() const
Definition: unostyle.cxx:4694
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: unostyle.cxx:4861
virtual OUString SAL_CALL getImplementationName() override
Definition: unostyle.cxx:5602
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
Definition: unostyle.cxx:5393
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
Definition: unostyle.cxx:5214
virtual void SAL_CALL setName(const OUString &sName) override
Definition: unostyle.cxx:4844
OUString m_sParentStyle
Definition: unostyle.hxx:337
SwXTextCellStyle(SwDocShell *pDocShell, SwBoxAutoFormat *pBoxAutoFormat, OUString sParentStyle)
Definition: unostyle.cxx:4646
std::shared_ptr< SwBoxAutoFormat > m_pBoxAutoFormat_Impl
Stores SwBoxAutoFormat when this is not a physical style.
Definition: unostyle.hxx:336
virtual OUString SAL_CALL getParentStyle() override
Definition: unostyle.cxx:4804
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unostyle.cxx:5224
static SwBoxAutoFormat * GetBoxAutoFormat(SwDocShell *pDocShell, std::u16string_view sName, OUString *pParentName)
This function looks for a SwBoxAutoFormat with given name.
Definition: unostyle.cxx:4699
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: unostyle.cxx:5050
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
Definition: unostyle.cxx:5594
OUString m_sName
Definition: unostyle.hxx:338
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unostyle.cxx:5229
A text table style is a UNO API wrapper for a SwTableAutoFormat.
Definition: unostyle.hxx:239
SwTableAutoFormat * m_pTableAutoFormat
Definition: unostyle.hxx:241
virtual void SAL_CALL setParentStyle(const OUString &aParentStyle) override
Definition: unostyle.cxx:4480
rtl::Reference< SwXTextCellStyle > m_aCellStyles[STYLE_COUNT]
Definition: unostyle.hxx:271
SwDocShell * m_pDocShell
Definition: unostyle.hxx:240
virtual void SAL_CALL insertByName(const OUString &rName, const css::uno::Any &aElement) override
Definition: unostyle.cxx:4577
virtual void SAL_CALL setName(const OUString &rName) override
Definition: unostyle.cxx:4492
static const CellStyleNameMap & GetCellStyleNameMap()
Definition: unostyle.cxx:4366
virtual void SAL_CALL removeByName(const OUString &rName) override
Definition: unostyle.cxx:4613
virtual OUString SAL_CALL getParentStyle() override
Definition: unostyle.cxx:4475
virtual sal_Bool SAL_CALL hasElements() override
Definition: unostyle.cxx:4624
SwXTextTableStyle(SwDocShell *pDocShell, SwTableAutoFormat *pTableAutoFormat)
Definition: unostyle.cxx:4311
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
void UpdateCellStylesMapping()
Fills m_aCellStyles with SwXTextCellStyles pointing to children of this style.
Definition: unostyle.cxx:4349
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: unostyle.cxx:4564
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
Definition: unostyle.cxx:4536
virtual OUString SAL_CALL getName() override
Definition: unostyle.cxx:4484
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unostyle.cxx:4619
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: unostyle.cxx:4510
virtual sal_Bool SAL_CALL isInUse() override
Definition: unostyle.cxx:4454
static css::uno::Reference< css::style::XStyle > CreateXTextTableStyle(SwDocShell *pDocShell, const OUString &rTableAutoFormatName)
Definition: unostyle.cxx:4324
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
Definition: unostyle.cxx:4531
virtual void SAL_CALL replaceByName(const OUString &rName, const css::uno::Any &aElement) override
Definition: unostyle.cxx:4582
@ FIRST_ROW_START_COLUMN_STYLE
Definition: unostyle.hxx:259
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: unostyle.cxx:4505
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unostyle.cxx:4640
virtual sal_Bool SAL_CALL isUserDefined() override
Definition: unostyle.cxx:4444
std::unique_ptr< SwTableAutoFormat > m_pTableAutoFormat_Impl
Stores SwTableAutoFormat when this is not a physical style.
Definition: unostyle.hxx:243
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unostyle.cxx:4541
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: unostyle.cxx:4499
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unostyle.cxx:4546
virtual css::uno::Any SAL_CALL getByName(const OUString &rName) override
Definition: unostyle.cxx:4552
virtual sal_Bool SAL_CALL hasByName(const OUString &rName) override
Definition: unostyle.cxx:4569
virtual OUString SAL_CALL getImplementationName() override
Definition: unostyle.cxx:4630
SwTableAutoFormat * GetTableFormat()
Returns box format assigned to this style.
Definition: unostyle.cxx:4391
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.
Definition: unostyle.cxx:4396
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
Definition: unostyle.cxx:4635
virtual ~ICoreFrameStyle()
Definition: unostyle.hxx:100
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.
SfxStyleFamily
unsigned char sal_Bool
std::map< OUString, sal_Int32 > CellStyleNameMap
Definition: unostyle.hxx:229