fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / inc / condformatuno.hxx
blob0e70a853616fcc02dcc71b7b4282f5013a7a0520
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef _SC_CONDFORMATUNO_HXX_
11 #define _SC_CONDFORMATUNO_HXX_
13 #include "address.hxx"
15 #include <com/sun/star/beans/XPropertySet.hpp>
16 #include <com/sun/star/sheet/XConditionalFormats.hpp>
17 #include <com/sun/star/sheet/XConditionalFormat.hpp>
18 #include <com/sun/star/sheet/XConditionEntry.hpp>
19 #include <com/sun/star/sheet/XColorScaleEntry.hpp>
20 #include <com/sun/star/sheet/XDataBarEntry.hpp>
21 #include <com/sun/star/sheet/XIconSetEntry.hpp>
23 #include <cppuhelper/implbase1.hxx>
24 #include <cppuhelper/implbase2.hxx>
25 #include <svl/itemprop.hxx>
26 #include <svl/lstner.hxx>
27 #include <rtl/ref.hxx>
29 class ScDocument;
30 class ScDocShell;
31 class ScConditionalFormatList;
32 class ScConditionalFormat;
33 class ScIconSetFormat;
34 class ScDataBarFormat;
35 class ScColorScaleFormat;
36 class ScCondFormatEntry;
37 class ScColorScaleEntry;
38 class ScCondDateFormatEntry;
40 using namespace com::sun::star;
42 namespace com { namespace sun { namespace star {
44 namespace sheet {
46 class XSheetCellRanges;
50 } } }
52 class ScCondFormatsObj : public cppu::WeakImplHelper1<com::sun::star::sheet::XConditionalFormats>,
53 public SfxListener
55 public:
56 ScCondFormatsObj(ScDocShell* pDocShell, SCTAB nTab);
58 virtual ~ScCondFormatsObj();
60 virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) SAL_OVERRIDE;
62 static ScCondFormatsObj* getImplementation( uno::Reference< com::sun::star::sheet::XConditionalFormats > xCondFormat );
64 // XConditionalFormats
65 virtual sal_Int32 SAL_CALL createByRange(const uno::Reference<sheet::XSheetCellRanges>& xRanges)
66 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
68 virtual void SAL_CALL removeByID( const sal_Int32 nID )
69 throw(::com::sun::star::uno::RuntimeException,
70 std::exception) SAL_OVERRIDE;
72 virtual uno::Sequence< uno::Reference< sheet::XConditionalFormat > > SAL_CALL getConditionalFormats()
73 throw(::com::sun::star::uno::RuntimeException,
74 std::exception) SAL_OVERRIDE;
76 virtual sal_Int32 SAL_CALL getLength()
77 throw(::com::sun::star::uno::RuntimeException,
78 std::exception) SAL_OVERRIDE;
80 ScConditionalFormatList* getCoreObject();
82 private:
83 SCTAB mnTab;
84 ScDocShell* mpDocShell;
87 class ScCondFormatObj : public cppu::WeakImplHelper2<com::sun::star::sheet::XConditionalFormat,
88 com::sun::star::beans::XPropertySet>
90 public:
91 ScCondFormatObj(ScDocShell* pDocShell, rtl::Reference<ScCondFormatsObj> xCondFormats, sal_Int32 nKey);
93 virtual ~ScCondFormatObj();
95 static ScCondFormatObj* getImplementation( uno::Reference<sheet::XConditionalFormat> XCondFormat);
96 ScDocShell* getDocShell();
98 // XConditionalFormat
99 virtual void SAL_CALL createEntry(const sal_Int32 nType, const sal_Int32 nPos)
100 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
102 virtual void SAL_CALL removeByIndex(const sal_Int32 nIndex)
103 throw(::com::sun::star::uno::RuntimeException,
104 std::exception) SAL_OVERRIDE;
106 // XIndexAccess
108 virtual uno::Type SAL_CALL getElementType()
109 throw(::com::sun::star::uno::RuntimeException,
110 std::exception) SAL_OVERRIDE;
112 virtual sal_Bool SAL_CALL hasElements()
113 throw(::com::sun::star::uno::RuntimeException,
114 std::exception) SAL_OVERRIDE;
116 virtual sal_Int32 SAL_CALL getCount()
117 throw(::com::sun::star::uno::RuntimeException,
118 std::exception) SAL_OVERRIDE;
120 virtual uno::Any SAL_CALL getByIndex(sal_Int32 nIndex)
121 throw(::com::sun::star::uno::RuntimeException,
122 std::exception) SAL_OVERRIDE;
124 // XPropertySet
125 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
126 SAL_CALL getPropertySetInfo()
127 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
128 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
129 const ::com::sun::star::uno::Any& aValue )
130 throw(::com::sun::star::beans::UnknownPropertyException,
131 ::com::sun::star::beans::PropertyVetoException,
132 ::com::sun::star::lang::IllegalArgumentException,
133 ::com::sun::star::lang::WrappedTargetException,
134 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
135 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
136 const OUString& PropertyName )
137 throw(::com::sun::star::beans::UnknownPropertyException,
138 ::com::sun::star::lang::WrappedTargetException,
139 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
140 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
141 const ::com::sun::star::uno::Reference<
142 ::com::sun::star::beans::XPropertyChangeListener >& xListener )
143 throw(::com::sun::star::beans::UnknownPropertyException,
144 ::com::sun::star::lang::WrappedTargetException,
145 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
146 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
147 const ::com::sun::star::uno::Reference<
148 ::com::sun::star::beans::XPropertyChangeListener >& aListener )
149 throw(::com::sun::star::beans::UnknownPropertyException,
150 ::com::sun::star::lang::WrappedTargetException,
151 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
152 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
153 const ::com::sun::star::uno::Reference<
154 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
155 throw(::com::sun::star::beans::UnknownPropertyException,
156 ::com::sun::star::lang::WrappedTargetException,
157 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
158 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
159 const ::com::sun::star::uno::Reference<
160 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
161 throw(::com::sun::star::beans::UnknownPropertyException,
162 ::com::sun::star::lang::WrappedTargetException,
163 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
165 ScConditionalFormat* getCoreObject();
167 private:
168 rtl::Reference<ScCondFormatsObj> mxCondFormatList;
169 ScDocShell* mpDocShell;
170 SfxItemPropertySet maPropSet;
171 sal_Int32 mnKey;
174 class ScConditionEntryObj : public cppu::WeakImplHelper2<com::sun::star::beans::XPropertySet,
175 com::sun::star::sheet::XConditionEntry>
177 public:
179 ScConditionEntryObj(rtl::Reference<ScCondFormatObj> xParent,
180 const ScCondFormatEntry* pFormat);
181 virtual ~ScConditionEntryObj();
183 static ScConditionEntryObj* getImplementation(uno::Reference<sheet::XConditionEntry> xCondition);
185 ScCondFormatEntry* getCoreObject();
187 // XConditionEntry
188 virtual sal_Int32 SAL_CALL getType()
189 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
191 // XPropertySet
192 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
193 SAL_CALL getPropertySetInfo()
194 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
195 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
196 const ::com::sun::star::uno::Any& aValue )
197 throw(::com::sun::star::beans::UnknownPropertyException,
198 ::com::sun::star::beans::PropertyVetoException,
199 ::com::sun::star::lang::IllegalArgumentException,
200 ::com::sun::star::lang::WrappedTargetException,
201 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
202 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
203 const OUString& PropertyName )
204 throw(::com::sun::star::beans::UnknownPropertyException,
205 ::com::sun::star::lang::WrappedTargetException,
206 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
207 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
208 const ::com::sun::star::uno::Reference<
209 ::com::sun::star::beans::XPropertyChangeListener >& xListener )
210 throw(::com::sun::star::beans::UnknownPropertyException,
211 ::com::sun::star::lang::WrappedTargetException,
212 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
213 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
214 const ::com::sun::star::uno::Reference<
215 ::com::sun::star::beans::XPropertyChangeListener >& aListener )
216 throw(::com::sun::star::beans::UnknownPropertyException,
217 ::com::sun::star::lang::WrappedTargetException,
218 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
219 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
220 const ::com::sun::star::uno::Reference<
221 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
222 throw(::com::sun::star::beans::UnknownPropertyException,
223 ::com::sun::star::lang::WrappedTargetException,
224 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
225 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
226 const ::com::sun::star::uno::Reference<
227 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
228 throw(::com::sun::star::beans::UnknownPropertyException,
229 ::com::sun::star::lang::WrappedTargetException,
230 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
232 private:
233 ScDocShell* mpDocShell;
234 rtl::Reference<ScCondFormatObj> mxParent;
235 SfxItemPropertySet maPropSet;
236 const ScCondFormatEntry* mpFormat;
239 class ScColorScaleFormatObj : public cppu::WeakImplHelper2<com::sun::star::beans::XPropertySet,
240 com::sun::star::sheet::XConditionEntry>
242 public:
244 ScColorScaleFormatObj(rtl::Reference<ScCondFormatObj> xParent, const ScColorScaleFormat* pFormat);
245 virtual ~ScColorScaleFormatObj();
247 static ScColorScaleFormatObj* getImplementation(uno::Reference<beans::XPropertySet> xPropSet);
249 // XConditionEntry
250 virtual sal_Int32 SAL_CALL getType()
251 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
254 ScColorScaleFormat* getCoreObject();
256 // XPropertySet
257 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
258 SAL_CALL getPropertySetInfo()
259 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
260 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
261 const ::com::sun::star::uno::Any& aValue )
262 throw(::com::sun::star::beans::UnknownPropertyException,
263 ::com::sun::star::beans::PropertyVetoException,
264 ::com::sun::star::lang::IllegalArgumentException,
265 ::com::sun::star::lang::WrappedTargetException,
266 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
267 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
268 const OUString& PropertyName )
269 throw(::com::sun::star::beans::UnknownPropertyException,
270 ::com::sun::star::lang::WrappedTargetException,
271 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
272 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
273 const ::com::sun::star::uno::Reference<
274 ::com::sun::star::beans::XPropertyChangeListener >& xListener )
275 throw(::com::sun::star::beans::UnknownPropertyException,
276 ::com::sun::star::lang::WrappedTargetException,
277 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
278 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
279 const ::com::sun::star::uno::Reference<
280 ::com::sun::star::beans::XPropertyChangeListener >& aListener )
281 throw(::com::sun::star::beans::UnknownPropertyException,
282 ::com::sun::star::lang::WrappedTargetException,
283 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
284 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
285 const ::com::sun::star::uno::Reference<
286 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
287 throw(::com::sun::star::beans::UnknownPropertyException,
288 ::com::sun::star::lang::WrappedTargetException,
289 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
290 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
291 const ::com::sun::star::uno::Reference<
292 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
293 throw(::com::sun::star::beans::UnknownPropertyException,
294 ::com::sun::star::lang::WrappedTargetException,
295 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
297 private:
298 ScDocShell* mpDocShell;
299 rtl::Reference<ScCondFormatObj> mxParent;
300 SfxItemPropertySet maPropSet;
301 const ScColorScaleFormat* mpFormat;
304 class ScColorScaleEntryObj : public cppu::WeakImplHelper1<com::sun::star::sheet::XColorScaleEntry>
306 public:
307 ScColorScaleEntryObj(rtl::Reference<ScColorScaleFormatObj> xParent, size_t nPos);
309 virtual ~ScColorScaleEntryObj();
311 virtual com::sun::star::util::Color SAL_CALL getColor()
312 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
314 virtual void SAL_CALL setColor(com::sun::star::util::Color aColor)
315 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
317 virtual sal_Int32 SAL_CALL getType()
318 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
320 virtual void SAL_CALL setType(sal_Int32 nType)
321 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
323 virtual OUString SAL_CALL getFormula()
324 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
326 virtual void SAL_CALL setFormula(const OUString& rString)
327 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
329 private:
330 ScColorScaleEntry* getCoreObject();
332 rtl::Reference<ScColorScaleFormatObj> mxParent;
333 size_t mnPos;
336 class ScDataBarFormatObj : public cppu::WeakImplHelper2<com::sun::star::beans::XPropertySet,
337 com::sun::star::sheet::XConditionEntry>
339 public:
340 ScDataBarFormatObj(rtl::Reference<ScCondFormatObj> xParent,
341 const ScDataBarFormat* pFormat);
342 virtual ~ScDataBarFormatObj();
344 static ScDataBarFormatObj* getImplementation(uno::Reference<beans::XPropertySet> xPropSet);
346 ScDataBarFormat* getCoreObject();
348 // XConditionEntry
349 virtual sal_Int32 SAL_CALL getType()
350 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
352 // XPropertySet
353 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
354 SAL_CALL getPropertySetInfo()
355 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
356 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
357 const ::com::sun::star::uno::Any& aValue )
358 throw(::com::sun::star::beans::UnknownPropertyException,
359 ::com::sun::star::beans::PropertyVetoException,
360 ::com::sun::star::lang::IllegalArgumentException,
361 ::com::sun::star::lang::WrappedTargetException,
362 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
363 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
364 const OUString& PropertyName )
365 throw(::com::sun::star::beans::UnknownPropertyException,
366 ::com::sun::star::lang::WrappedTargetException,
367 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
368 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
369 const ::com::sun::star::uno::Reference<
370 ::com::sun::star::beans::XPropertyChangeListener >& xListener )
371 throw(::com::sun::star::beans::UnknownPropertyException,
372 ::com::sun::star::lang::WrappedTargetException,
373 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
374 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
375 const ::com::sun::star::uno::Reference<
376 ::com::sun::star::beans::XPropertyChangeListener >& aListener )
377 throw(::com::sun::star::beans::UnknownPropertyException,
378 ::com::sun::star::lang::WrappedTargetException,
379 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
380 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
381 const ::com::sun::star::uno::Reference<
382 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
383 throw(::com::sun::star::beans::UnknownPropertyException,
384 ::com::sun::star::lang::WrappedTargetException,
385 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
386 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
387 const ::com::sun::star::uno::Reference<
388 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
389 throw(::com::sun::star::beans::UnknownPropertyException,
390 ::com::sun::star::lang::WrappedTargetException,
391 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
393 private:
394 ScDocShell* mpDocShell;
395 rtl::Reference<ScCondFormatObj> mxParent;
396 SfxItemPropertySet maPropSet;
397 const ScDataBarFormat* mpFormat;
400 class ScDataBarEntryObj : public cppu::WeakImplHelper1<com::sun::star::sheet::XDataBarEntry>
402 public:
403 ScDataBarEntryObj(rtl::Reference<ScDataBarFormatObj> xParent, size_t nPos);
405 virtual ~ScDataBarEntryObj();
407 virtual sal_Int32 SAL_CALL getType()
408 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
410 virtual void SAL_CALL setType(sal_Int32 nType)
411 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
413 virtual OUString SAL_CALL getFormula()
414 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
416 virtual void SAL_CALL setFormula(const OUString& rString)
417 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
419 private:
420 ScColorScaleEntry* getCoreObject();
422 rtl::Reference<ScDataBarFormatObj> mxParent;
423 size_t mnPos;
426 class ScIconSetFormatObj : public cppu::WeakImplHelper2<com::sun::star::beans::XPropertySet,
427 com::sun::star::sheet::XConditionEntry>
429 public:
430 ScIconSetFormatObj(rtl::Reference<ScCondFormatObj> xParent,
431 const ScIconSetFormat* pFormat);
432 virtual ~ScIconSetFormatObj();
434 static ScIconSetFormatObj* getImplementation(uno::Reference<beans::XPropertySet> xPropSet);
436 ScIconSetFormat* getCoreObject();
438 // XConditionEntry
439 virtual sal_Int32 SAL_CALL getType()
440 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
442 // XPropertySet
443 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
444 SAL_CALL getPropertySetInfo()
445 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
446 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
447 const ::com::sun::star::uno::Any& aValue )
448 throw(::com::sun::star::beans::UnknownPropertyException,
449 ::com::sun::star::beans::PropertyVetoException,
450 ::com::sun::star::lang::IllegalArgumentException,
451 ::com::sun::star::lang::WrappedTargetException,
452 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
453 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
454 const OUString& PropertyName )
455 throw(::com::sun::star::beans::UnknownPropertyException,
456 ::com::sun::star::lang::WrappedTargetException,
457 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
458 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
459 const ::com::sun::star::uno::Reference<
460 ::com::sun::star::beans::XPropertyChangeListener >& xListener )
461 throw(::com::sun::star::beans::UnknownPropertyException,
462 ::com::sun::star::lang::WrappedTargetException,
463 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
464 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
465 const ::com::sun::star::uno::Reference<
466 ::com::sun::star::beans::XPropertyChangeListener >& aListener )
467 throw(::com::sun::star::beans::UnknownPropertyException,
468 ::com::sun::star::lang::WrappedTargetException,
469 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
470 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
471 const ::com::sun::star::uno::Reference<
472 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
473 throw(::com::sun::star::beans::UnknownPropertyException,
474 ::com::sun::star::lang::WrappedTargetException,
475 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
476 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
477 const ::com::sun::star::uno::Reference<
478 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
479 throw(::com::sun::star::beans::UnknownPropertyException,
480 ::com::sun::star::lang::WrappedTargetException,
481 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
483 private:
484 ScDocShell* mpDocShell;
485 rtl::Reference<ScCondFormatObj> mxParent;
486 SfxItemPropertySet maPropSet;
487 const ScIconSetFormat* mpFormat;
490 class ScIconSetEntryObj : public cppu::WeakImplHelper1<com::sun::star::sheet::XIconSetEntry>
492 public:
493 ScIconSetEntryObj(rtl::Reference<ScIconSetFormatObj> xParent, size_t nPos);
495 virtual ~ScIconSetEntryObj();
497 virtual sal_Int32 SAL_CALL getType()
498 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
500 virtual void SAL_CALL setType(sal_Int32 nType)
501 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
503 virtual OUString SAL_CALL getFormula()
504 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
506 virtual void SAL_CALL setFormula(const OUString& rString)
507 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
509 private:
510 ScColorScaleEntry* getCoreObject();
512 rtl::Reference<ScIconSetFormatObj> mxParent;
513 size_t mnPos;
516 class ScCondDateFormatObj : public cppu::WeakImplHelper2<com::sun::star::beans::XPropertySet,
517 com::sun::star::sheet::XConditionEntry>
519 public:
520 ScCondDateFormatObj(rtl::Reference<ScCondFormatObj> xParent,
521 const ScCondDateFormatEntry* pFormat);
523 virtual ~ScCondDateFormatObj();
525 ScCondDateFormatEntry* getCoreObject();
527 // XConditionEntry
528 virtual sal_Int32 SAL_CALL getType()
529 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
531 // XPropertySet
532 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
533 SAL_CALL getPropertySetInfo()
534 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
535 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
536 const ::com::sun::star::uno::Any& aValue )
537 throw(::com::sun::star::beans::UnknownPropertyException,
538 ::com::sun::star::beans::PropertyVetoException,
539 ::com::sun::star::lang::IllegalArgumentException,
540 ::com::sun::star::lang::WrappedTargetException,
541 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
542 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
543 const OUString& PropertyName )
544 throw(::com::sun::star::beans::UnknownPropertyException,
545 ::com::sun::star::lang::WrappedTargetException,
546 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
547 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
548 const ::com::sun::star::uno::Reference<
549 ::com::sun::star::beans::XPropertyChangeListener >& xListener )
550 throw(::com::sun::star::beans::UnknownPropertyException,
551 ::com::sun::star::lang::WrappedTargetException,
552 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
553 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
554 const ::com::sun::star::uno::Reference<
555 ::com::sun::star::beans::XPropertyChangeListener >& aListener )
556 throw(::com::sun::star::beans::UnknownPropertyException,
557 ::com::sun::star::lang::WrappedTargetException,
558 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
559 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
560 const ::com::sun::star::uno::Reference<
561 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
562 throw(::com::sun::star::beans::UnknownPropertyException,
563 ::com::sun::star::lang::WrappedTargetException,
564 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
565 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
566 const ::com::sun::star::uno::Reference<
567 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
568 throw(::com::sun::star::beans::UnknownPropertyException,
569 ::com::sun::star::lang::WrappedTargetException,
570 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
572 private:
573 rtl::Reference<ScCondFormatObj> mxParent;
574 SfxItemPropertySet maPropSet;
575 const ScCondDateFormatEntry* mpFormat;
578 #endif
580 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */