LibreOffice Module svx (master) 1
unoshape.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
20#ifndef INCLUDED_SVX_UNOSHAPE_HXX
21#define INCLUDED_SVX_UNOSHAPE_HXX
22
23#include <memory>
24#include <com/sun/star/document/XActionLockable.hpp>
25#include <com/sun/star/drawing/XEnhancedCustomShapeDefaulter.hpp>
26#include <com/sun/star/drawing/XGluePointsSupplier.hpp>
27#include <com/sun/star/drawing/XShape.hpp>
28#include <com/sun/star/lang/XComponent.hpp>
29#include <com/sun/star/beans/XPropertySet.hpp>
30#include <com/sun/star/beans/XPropertyState.hpp>
31#include <com/sun/star/lang/XServiceInfo.hpp>
32#include <com/sun/star/lang/XUnoTunnel.hpp>
33#include <com/sun/star/awt/Point.hpp>
34#include <com/sun/star/drawing/PolygonKind.hpp>
35#include <com/sun/star/drawing/XShapes.hpp>
36#include <com/sun/star/drawing/XShapes2.hpp>
37#include <com/sun/star/drawing/XShapeGroup.hpp>
38#include <com/sun/star/container/XNamed.hpp>
39#include <com/sun/star/container/XChild.hpp>
40#include <com/sun/star/beans/XMultiPropertySet.hpp>
41#include <com/sun/star/beans/XMultiPropertyStates.hpp>
42#include <com/sun/star/drawing/XConnectorShape.hpp>
43#include <com/sun/star/drawing/XControlShape.hpp>
45#include <sal/types.h>
46#include <svl/lstner.hxx>
47#include <editeng/unoipset.hxx>
48#include <svx/svxdllapi.h>
49#include <rtl/ref.hxx>
50#include <com/sun/star/uno/Any.hxx>
51#include <editeng/unotext.hxx>
52
53#include <svx/svdobj.hxx>
54
56
59
60class SfxItemSet;
61class SdrModel;
62class SvxDrawPage;
63class SvGlobalName;
64class Pair;
65
66// Dimension arrows change size/position on save/reload (#i59051#)
67namespace basegfx
68 {
69 class B2DPolyPolygon;
70 } // end of namespace basegfx
71
72struct SvxShapeImpl;
73class SvxShapeMaster;
75class SfxItemSet;
76
78 const css::uno::Any& rVal, SfxItemSet& rSet );
79
81
82
83// WARNING: if you update the supported interfaces,
84// also update SvxShape::_getTypes()
86 css::drawing::XShape,
87 css::lang::XComponent,
89 css::beans::XMultiPropertySet,
90 css::beans::XPropertyState,
91 css::lang::XUnoTunnel,
92 css::container::XNamed,
93 css::drawing::XGluePointsSupplier,
94 css::container::XChild,
95 css::lang::XServiceInfo,
96 css::document::XActionLockable,
97 css::beans::XMultiPropertyStates> SvxShape_UnoImplHelper;
98
100 public cppu::BaseMutex,
102 public SfxListener
103{
104private:
105 css::awt::Size maSize;
106 css::awt::Point maPosition;
107 OUString maShapeType;
108 OUString maShapeName;
109
111 std::unique_ptr<SvxShapeImpl> mpImpl;
113
114 css::uno::WeakReference< css::container::XIndexContainer > mxGluePoints;
115
116protected:
117 friend class SvxDrawPage;
118 friend class SvxShapeConnector;
119 friend class SdXShape;
120
124
125private:
127
128protected:
129 // translations for writer, which works in TWIPS
130 void ForceMetricToItemPoolMetric(Pair& rPoint) const noexcept;
131 void ForceMetricToItemPoolMetric(Point& rPoint) const noexcept { ForceMetricToItemPoolMetric(rPoint.toPair()); }
132 void ForceMetricToItemPoolMetric(Size& rPoint) const noexcept { ForceMetricToItemPoolMetric(rPoint.toPair()); }
133 void ForceMetricTo100th_mm(Pair& rPoint) const noexcept;
134 void ForceMetricTo100th_mm(Point& rPoint) const noexcept { ForceMetricTo100th_mm(rPoint.toPair()); }
135 void ForceMetricTo100th_mm(Size& rPoint) const noexcept { ForceMetricTo100th_mm(rPoint.toPair()); }
136
137 // version for basegfx::B2DPolyPolygon
138 void ForceMetricToItemPoolMetric(basegfx::B2DPolyPolygon& rPolyPolygon) const noexcept;
139 void ForceMetricTo100th_mm(basegfx::B2DPolyPolygon& rPolyPolygon) const noexcept;
140
141 // tdf#117145 version for basegfx::B2DHomMatrix
142 void ForceMetricToItemPoolMetric(basegfx::B2DHomMatrix& rB2DHomMatrix) const noexcept;
143 void ForceMetricTo100th_mm(basegfx::B2DHomMatrix& rB2DHomMatrix) const noexcept;
144
145 css::uno::Any GetAnyForItem( SfxItemSet const & aSet, const SfxItemPropertyMapEntry* pMap ) const;
146
147 bool SetFillAttribute( sal_uInt16 nWID, const OUString& rName );
148
150 virtual void lock();
151
153 virtual void unlock();
154
156 sal_uInt16 mnLockCount;
157
159
160 void updateShapeKind();
161 void endSetPropertyValues();
162
163 // override these for special property handling in subcasses. Return true if property is handled
169 virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, const css::uno::Any& rValue );
173 virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, css::uno::Any& rValue );
176 virtual bool getPropertyStateImpl( const SfxItemPropertyMapEntry* pProperty, css::beans::PropertyState& rState );
179 virtual bool setPropertyToDefaultImpl( const SfxItemPropertyMapEntry* pProperty );
180
181public:
183 SvxShape( SdrObject* pObj );
185 SvxShape( SdrObject* pObject, o3tl::span<const SfxItemPropertyMapEntry> pEntries, const SvxItemPropertySet* pPropertySet );
186 virtual ~SvxShape() noexcept override;
187
188 // Internals
189 void ObtainSettingsFromPropertySet(const SvxItemPropertySet& rPropSet);
190 virtual void Create( SdrObject* pNewOpj, SvxDrawPage* pNewPage );
191
192 // used exclusively by SdrObject
193 void InvalidateSdrObject();
194
195 // Encapsulated access to SdrObject
196 SdrObject* GetSdrObject() const { return mxSdrObject.get(); }
197 bool HasSdrObject() const { return mxSdrObject.is(); }
198
199 void SetShapeType( const OUString& ShapeType ) { maShapeType = ShapeType; }
201 css::uno::Any GetBitmap( bool bMetaFile = false ) const;
202
203 svx::PropertyChangeNotifier& getShapePropertyChangeNotifier();
204
205 void setShapeKind( SdrObjKind nKind );
206 SdrObjKind getShapeKind() const;
207
208 // styles need this
209 static bool SetFillAttribute( sal_uInt16 nWID, const OUString& rName, SfxItemSet& rSet, SdrModel const * pModel );
210 static bool SetFillAttribute( sal_uInt16 nWID, const OUString& rName, SfxItemSet& rSet );
211
218
219 // access methods for master objects
221 css::uno::Reference< css::beans::XPropertySetInfo > const & _getPropertySetInfo( );
227 void _setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue );
231 css::uno::Any _getPropertyValue( const OUString& PropertyName );
232
235 css::beans::PropertyState _getPropertyState( const OUString& PropertyName );
238 void _setPropertyToDefault( const OUString& PropertyName );
242 css::uno::Any _getPropertyDefault( const OUString& aPropertyName );
243
245 css::uno::Sequence< OUString > _getSupportedServiceNames();
246
248 css::uno::Sequence< css::uno::Type > const & _getTypes( );
249
250 void setMaster( SvxShapeMaster* pMaster );
251
252 // SfxListener
253 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) noexcept override;
254
255 // XAggregation
256 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type& aType ) override;
257
258 // XNamed
259 virtual OUString SAL_CALL getName( ) override;
260 virtual void SAL_CALL setName( const OUString& aName ) override;
261
262 // XShapeDescriptor
263 virtual OUString SAL_CALL getShapeType() override;
264
265 // XShape
266 virtual css::awt::Point SAL_CALL getPosition() override;
267 virtual void SAL_CALL setPosition( const css::awt::Point& aPosition ) override;
268 virtual css::awt::Size SAL_CALL getSize() override;
269 virtual void SAL_CALL setSize( const css::awt::Size& aSize ) override;
270
271 // XComponent
272 virtual void SAL_CALL dispose() override;
273 virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) override;
274 virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) override;
275
276 // XPropertySet
277 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
278 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
279 virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
280 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
281 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
282 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
283 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
284
285 // XMultiPropertySet
286 virtual void SAL_CALL setPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Sequence< css::uno::Any >& aValues ) override;
287 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames ) override;
288 virtual void SAL_CALL addPropertiesChangeListener( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) override;
289 virtual void SAL_CALL removePropertiesChangeListener( const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) override;
290 virtual void SAL_CALL firePropertiesChangeEvent( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) override;
291
292 // XPropertyState
293 virtual css::beans::PropertyState SAL_CALL getPropertyState( const OUString& PropertyName ) override;
294 virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates( const css::uno::Sequence< OUString >& aPropertyName ) override;
295 virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) override;
296 virtual css::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName ) override;
297
298 // XMultiPropertyStates
299 virtual void SAL_CALL setAllPropertiesToDefault() override;
300 virtual void SAL_CALL setPropertiesToDefault(
301 const css::uno::Sequence<
302 OUString >& aPropertyNames ) override;
303 virtual css::uno::Sequence< css::uno::Any >
304 SAL_CALL getPropertyDefaults(
305 const css::uno::Sequence<
306 OUString >& aPropertyNames ) override;
307
308 // XServiceInfo
309 virtual OUString SAL_CALL getImplementationName() override;
310 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
311 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
312
313 // XGluePointsSupplier
314 virtual css::uno::Reference< css::container::XIndexContainer > SAL_CALL getGluePoints( ) override;
315
316 // XChild
317 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent( ) override;
318 virtual void SAL_CALL setParent( const css::uno::Reference< css::uno::XInterface >& Parent ) override;
319
320 // XTypeProvider
321 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
322 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
323
324 // XActionLockable
325 virtual sal_Bool SAL_CALL isActionLocked( ) override;
326 virtual void SAL_CALL addActionLock( ) override;
327 virtual void SAL_CALL removeActionLock( ) override;
328 virtual void SAL_CALL setActionLocks( sal_Int16 nLock ) override;
329 virtual sal_Int16 SAL_CALL resetActionLocks( ) override;
330
331private:
334 SVX_DLLPRIVATE void impl_initFromSdrObject();
336 SVX_DLLPRIVATE void impl_construct();
337};
338
340{
341protected:
343 virtual void lock() override;
344
346 virtual void unlock() override;
347
348protected:
349 // override these for special property handling in subcasses. Return true if property is handled
350 virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, const css::uno::Any& rValue ) override;
351 virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, css::uno::Any& rValue ) override;
352 virtual bool getPropertyStateImpl( const SfxItemPropertyMapEntry* pProperty, css::beans::PropertyState& rState ) override;
353 virtual bool setPropertyToDefaultImpl( const SfxItemPropertyMapEntry* pProperty ) override;
354
355public:
356 SvxShapeText(SdrObject* pObj);
358 virtual ~SvxShapeText() noexcept override;
359
360 virtual void Create( SdrObject* pNewOpj, SvxDrawPage* pNewPage ) override;
361
362 // XInterface
363 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
364 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
365 virtual void SAL_CALL acquire() noexcept override
366 { SvxShape::acquire(); }
367 virtual void SAL_CALL release() noexcept override
368 { SvxShape::release(); }
369
370 // XServiceInfo
371 virtual OUString SAL_CALL getImplementationName() override;
372 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
373 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
374
375 // css::text::XTextRange
376 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart() override;
377 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd() override;
378 virtual OUString SAL_CALL getString() override;
379 virtual void SAL_CALL setString( const OUString& aString ) override;
380
381 // XUnoTunnel
382 virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
383
384 // XTypeProvider
385 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
386 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
387};
388
389class SAL_DLLPUBLIC_RTTI SvxShapeRect final : public SvxShapeText
390{
391public:
393 virtual ~SvxShapeRect() noexcept override;
394
395 // XInterface
396 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
397 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
398 virtual void SAL_CALL acquire() noexcept override
399 { OWeakAggObject::acquire(); }
400 virtual void SAL_CALL release() noexcept override
401 { OWeakAggObject::release(); }
402
403 // XServiceInfo
404 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
405};
406
409 public css::drawing::XShapes
410{
411public:
413 virtual ~SvxShapeGroupAnyD() noexcept override;
414
415 virtual void SAL_CALL acquire() noexcept override
416 { SvxShape::acquire(); }
417 virtual void SAL_CALL release() noexcept override
418 { SvxShape::release(); }
419
420 virtual void addShape(SvxShape& rShape) = 0;
421};
422
423/***********************************************************************
424* *
425***********************************************************************/
427 public css::drawing::XShapeGroup,
428 public css::drawing::XShapes2
429{
430private:
433
434 void addUnoShape( const css::uno::Reference< css::drawing::XShape >& xShape, size_t nPos );
435 void addShape(SvxShape& rShape, size_t nPos);
436
437public:
438 SvxShapeGroup(SdrObject* pObj,SvxDrawPage* pDrawPage);
439 virtual ~SvxShapeGroup() noexcept override;
440
441 virtual void Create( SdrObject* pNewOpj, SvxDrawPage* pNewPage ) override;
442
443 // XInterface
444 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
445 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
446 virtual void SAL_CALL acquire() noexcept override
447 { SvxShape::acquire(); }
448 virtual void SAL_CALL release() noexcept override
449 { SvxShape::release(); }
450
451 // XShapes
452 virtual void SAL_CALL add( const css::uno::Reference< css::drawing::XShape >& xShape ) override;
453 virtual void SAL_CALL remove( const css::uno::Reference< css::drawing::XShape >& xShape ) override;
454
455 // XShapes2
456 virtual void SAL_CALL addTop( const css::uno::Reference< css::drawing::XShape >& xShape ) override;
457 virtual void SAL_CALL addBottom( const css::uno::Reference< css::drawing::XShape >& xShape ) override;
458
459 // XElementAccess
460 virtual css::uno::Type SAL_CALL getElementType() override;
461 virtual sal_Bool SAL_CALL hasElements() override;
462
463 // XIndexAccess
464 virtual sal_Int32 SAL_CALL getCount() override ;
465 virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) override;
466
467 // XShapeDescriptor
468 virtual OUString SAL_CALL getShapeType() override;
469
470 // XShape
471 virtual css::awt::Point SAL_CALL getPosition() override;
472 virtual void SAL_CALL setPosition( const css::awt::Point& aPosition ) override;
473 virtual css::awt::Size SAL_CALL getSize() override;
474 virtual void SAL_CALL setSize( const css::awt::Size& aSize ) override;
475
476 // XShapeGroup
477 virtual void SAL_CALL enterGroup( ) override;
478 virtual void SAL_CALL leaveGroup( ) override;
479
480 // XTypeProvider
481 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
482
483 virtual void addShape(SvxShape& rShape) final override;
484};
485
486/***********************************************************************
487* *
488***********************************************************************/
489class SvxShapeConnector final : public css::drawing::XConnectorShape,
490 public SvxShapeText
491{
492public:
494 virtual ~SvxShapeConnector() noexcept override;
495
496 // XInterface
497 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
498 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
499 virtual void SAL_CALL acquire() noexcept override
501 virtual void SAL_CALL release() noexcept override
503
504 // XShapeDescriptor
505 virtual OUString SAL_CALL getShapeType() override;
506
507 // XShape
508 virtual css::awt::Point SAL_CALL getPosition() override;
509 virtual void SAL_CALL setPosition( const css::awt::Point& aPosition ) override;
510 virtual css::awt::Size SAL_CALL getSize() override;
511 virtual void SAL_CALL setSize( const css::awt::Size& aSize ) override;
512
513 // XConnectorShape
514 virtual void SAL_CALL connectStart( const css::uno::Reference< css::drawing::XConnectableShape >& xShape, css::drawing::ConnectionType nPos ) override;
515 virtual void SAL_CALL connectEnd( const css::uno::Reference< css::drawing::XConnectableShape >& xShape, css::drawing::ConnectionType nPos ) override;
516 virtual void SAL_CALL disconnectBegin( const css::uno::Reference< css::drawing::XConnectableShape >& xShape ) override;
517 virtual void SAL_CALL disconnectEnd( const css::uno::Reference< css::drawing::XConnectableShape >& xShape ) override;
518
519 // XTypeProvider
520 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
521 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
522};
523
524/***********************************************************************
525* *
526***********************************************************************/
527class SVXCORE_DLLPUBLIC SvxShapeControl final : public css::drawing::XControlShape, public SvxShapeText
528{
529protected:
532
533public:
535 virtual ~SvxShapeControl() noexcept override;
536
537 // XInterface
538 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
539 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
540 virtual void SAL_CALL acquire() noexcept override
542 virtual void SAL_CALL release() noexcept override
544
545 // XPropertySet
546 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
547 virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
548
549 // XPropertyState
550 virtual css::beans::PropertyState SAL_CALL getPropertyState( const OUString& PropertyName ) override;
551 virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) override;
552 virtual css::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName ) override;
553
554 // XShapeDescriptor
555 virtual OUString SAL_CALL getShapeType() override;
556
557 // XShape
558 virtual css::awt::Point SAL_CALL getPosition() override;
559 virtual void SAL_CALL setPosition( const css::awt::Point& aPosition ) override;
560 virtual css::awt::Size SAL_CALL getSize() override;
561 virtual void SAL_CALL setSize( const css::awt::Size& aSize ) override;
562
563 // XControlShape
564 virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL getControl() override;
565 virtual void SAL_CALL setControl( const css::uno::Reference< css::awt::XControlModel >& xControl ) override;
566
567 // XTypeProvider
568 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
569 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
570};
571
572/***********************************************************************
573* *
574***********************************************************************/
576{
577public:
579 virtual ~SvxShapeDimensioning() noexcept override;
580};
581
582/***********************************************************************
583* *
584***********************************************************************/
585class SvxShapeCircle final : public SvxShapeText
586{
587public:
589 virtual ~SvxShapeCircle() noexcept override;
590};
591
592/***********************************************************************
593* *
594***********************************************************************/
595
596// #i118485# changed parent to SvxShapeText to allow Text handling over UNO API
598{
599protected:
600 // override these for special property handling in subcasses. Return true if property is handled
601 virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, const css::uno::Any& rValue ) override;
602 virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, css::uno::Any& rValue ) override;
603
604 void resetModifiedState();
605
606 SvGlobalName GetClassName_Impl(OUString& rHexCLSID);
607public:
608 SvxOle2Shape(SdrObject* pObj);
610 virtual ~SvxOle2Shape() noexcept override;
611
612 bool createObject( const SvGlobalName &aClassName );
613
614 void createLink( const OUString& aLinkURL );
615};
616
617
618/***********************************************************************
619* *
620***********************************************************************/
621class SAL_DLLPUBLIC_RTTI SvxShapePolyPolygon final : public SvxShapeText
622{
625
626 // override these for special property handling in subcasses. Return true if property is handled
627 virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, const css::uno::Any& rValue ) override;
628 virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, css::uno::Any& rValue ) override;
629
630 // local helper to detect PolygonKind from SdrObject::GetObjIdentifier()
631 css::drawing::PolygonKind GetPolygonKind() const;
632
633public:
637 virtual ~SvxShapePolyPolygon() noexcept override;
638
639 // Local support functions
641 void SetPolygon(const basegfx::B2DPolyPolygon& rNew);
642 basegfx::B2DPolyPolygon GetPolygon() const noexcept;
643};
644
645/***********************************************************************
646* *
647***********************************************************************/
648
649class SvxGraphicObject final : public SvxShapeText
650{
653
654 // override these for special property handling in subcasses. Return true if property is handled
655 virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, const css::uno::Any& rValue ) override;
656 virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, css::uno::Any& rValue ) override;
657
658public:
660 virtual ~SvxGraphicObject() noexcept override;
661};
662
663/***********************************************************************
664* *
665***********************************************************************/
666class SAL_DLLPUBLIC_RTTI Svx3DSceneObject final : public SvxShapeGroupAnyD
667{
668private:
670
671protected:
674
675public:
677 // override these for special property handling in subcasses. Return true if property is handled
678 virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, const css::uno::Any& rValue ) override;
679 virtual bool getPropertyValueImpl(const OUString& rName, const SfxItemPropertyMapEntry* pProperty,
680 css::uno::Any& rValue ) override;
681
682 virtual ~Svx3DSceneObject() noexcept override;
683
684 virtual void Create( SdrObject* pNewOpj, SvxDrawPage* pNewPage ) override;
685
686 // XInterface
687 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
688 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
689 virtual void SAL_CALL acquire() noexcept override
690 { SvxShape::acquire(); }
691 virtual void SAL_CALL release() noexcept override
692 { SvxShape::release(); }
693
694 // XShapes
695 virtual void SAL_CALL add( const css::uno::Reference< css::drawing::XShape >& xShape ) override;
696 virtual void SAL_CALL remove( const css::uno::Reference< css::drawing::XShape >& xShape ) override;
697
698 // XElementAccess
699 virtual css::uno::Type SAL_CALL getElementType( ) override;
700 virtual sal_Bool SAL_CALL hasElements( ) override;
701
702 // XIndexAccess
703 virtual sal_Int32 SAL_CALL getCount( ) override ;
704 virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) override;
705
706 // XServiceInfo
707 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
708
709 // XTypeProvider
710 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
711
712 virtual void addShape(SvxShape& rShape) override final;
713};
714
715/***********************************************************************
716* *
717***********************************************************************/
718class Svx3DCubeObject final : public SvxShape
719{
720 // override these for special property handling in subcasses. Return true if property is handled
721 virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, const css::uno::Any& rValue ) override;
722 virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, css::uno::Any& rValue ) override;
723
724public:
726 virtual ~Svx3DCubeObject() noexcept override;
727
728 // XServiceInfo
729 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
730};
731
732/***********************************************************************
733* *
734***********************************************************************/
735class Svx3DSphereObject final : public SvxShape
736{
737public:
739private:
740 // override these for special property handling in subcasses. Return true if property is handled
741 virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, const css::uno::Any& rValue ) override;
742 virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, css::uno::Any& rValue ) override;
743
744 virtual ~Svx3DSphereObject() noexcept override;
745
746 // XServiceInfo
747 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
748};
749
750/***********************************************************************
751* *
752***********************************************************************/
753class Svx3DLatheObject final : public SvxShape
754{
755 // override these for special property handling in subcasses. Return true if property is handled
756 virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, const css::uno::Any& rValue ) override;
757 virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, css::uno::Any& rValue ) override;
758
759public:
761 virtual ~Svx3DLatheObject() noexcept override;
762
763 // XServiceInfo
764 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
765};
766
767/***********************************************************************
768* *
769***********************************************************************/
770class Svx3DExtrudeObject final : public SvxShape
771{
772public:
774private:
775 // override these for special property handling in subcasses. Return true if property is handled
776 virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, const css::uno::Any& rValue ) override;
777 virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, css::uno::Any& rValue ) override;
778
779 virtual ~Svx3DExtrudeObject() noexcept override;
780
781 // XServiceInfo
782 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
783};
784
785/***********************************************************************
786* *
787***********************************************************************/
788class Svx3DPolygonObject final : public SvxShape
789{
790 // override these for special property handling in subcasses. Return true if property is handled
791 virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, const css::uno::Any& rValue ) override;
792 virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, css::uno::Any& rValue ) override;
793
794public:
796 virtual ~Svx3DPolygonObject() noexcept override;
797
798 // XServiceInfo
799 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
800};
801
802/***********************************************************************
803* *
804***********************************************************************/
805class SVXCORE_DLLPUBLIC SvxCustomShape final : public SvxShapeText, public css::drawing::XEnhancedCustomShapeDefaulter
806{
807protected:
810
811public:
813 // override these for special property handling in subcasses. Return true if property is handled
814 virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, css::uno::Any& rValue ) override;
815
816
817 virtual ~SvxCustomShape() noexcept override;
818
819 // XInterface
820 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
821 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
822 virtual void SAL_CALL acquire() noexcept override
824 virtual void SAL_CALL release() noexcept override
826
827 // XShape
828 virtual css::awt::Point SAL_CALL getPosition() override;
829
830 // XPropertySet
831 void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
832
833 // XTypeProvider
834 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
835
836 //XEnhancedCustomShapeDefaulter
837 virtual void SAL_CALL createCustomShapeDefaults( const OUString& rShapeType ) override;
838};
839
840/***********************************************************************
841* *
842***********************************************************************/
843
844class SvxMediaShape final : public SvxShape
845{
846public:
847 SvxMediaShape(SdrObject* pObj, OUString referer);
848 virtual ~SvxMediaShape() noexcept override;
849
850private:
851 // override these for special property handling in subcasses. Return true if property is handled
852 virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, const css::uno::Any& rValue ) override;
853 virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, css::uno::Any& rValue ) override;
854 bool getPropertyStateImpl(const SfxItemPropertyMapEntry* pProperty,
855 css::beans::PropertyState& rState) override;
856
857 OUString referer_;
858};
859
860#endif
861
862/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
struct _ADOIndex Index
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual bool queryAggregation(const css::uno::Type &rType, css::uno::Any &aAny) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
virtual void dispose() override
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
Abstract DrawObject.
Definition: svdobj.hxx:261
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint)
virtual ~Svx3DCubeObject() noexcept override
Definition: unoshap3.cxx:431
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unoshap3.cxx:539
virtual bool setPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, const css::uno::Any &rValue) override
Definition: unoshap3.cxx:435
virtual bool getPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, css::uno::Any &rValue) override
Definition: unoshap3.cxx:490
Svx3DCubeObject(SdrObject *pObj)
Definition: unoshap3.cxx:426
virtual bool getPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, css::uno::Any &rValue) override
Definition: unoshap3.cxx:876
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unoshap3.cxx:907
virtual bool setPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, const css::uno::Any &rValue) override
Definition: unoshap3.cxx:841
virtual ~Svx3DExtrudeObject() noexcept override
Definition: unoshap3.cxx:837
SVXCORE_DLLPUBLIC Svx3DExtrudeObject(SdrObject *pObj)
Definition: unoshap3.cxx:832
SVXCORE_DLLPUBLIC Svx3DLatheObject(SdrObject *pObj)
Definition: unoshap3.cxx:652
virtual ~Svx3DLatheObject() noexcept override
Definition: unoshap3.cxx:657
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unoshap3.cxx:824
virtual bool getPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, css::uno::Any &rValue) override
Definition: unoshap3.cxx:795
virtual bool setPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, const css::uno::Any &rValue) override
Definition: unoshap3.cxx:749
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unoshap3.cxx:1043
virtual ~Svx3DPolygonObject() noexcept override
Definition: unoshap3.cxx:920
virtual bool getPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, css::uno::Any &rValue) override
Definition: unoshap3.cxx:997
SVXCORE_DLLPUBLIC Svx3DPolygonObject(SdrObject *pObj)
Definition: unoshap3.cxx:915
virtual bool setPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, const css::uno::Any &rValue) override
Definition: unoshap3.cxx:924
rtl::Reference< SvxDrawPage > mxPage
Definition: unoshape.hxx:669
virtual void SAL_CALL release() noexcept override
Definition: unoshape.hxx:691
virtual bool setPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, const css::uno::Any &rValue) override
Definition: unoshap3.cxx:556
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unoshap3.cxx:644
virtual bool getPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, css::uno::Any &rValue) override
Definition: unoshap3.cxx:600
Svx3DSphereObject(SdrObject *pObj)
Definition: unoshap3.cxx:547
virtual ~Svx3DSphereObject() noexcept override
Definition: unoshap3.cxx:552
virtual void SAL_CALL release() noexcept override
Definition: unoshape.hxx:824
virtual void SAL_CALL acquire() noexcept override
Definition: unoshape.hxx:822
virtual ~SvxGraphicObject() noexcept override
Definition: unoshap2.cxx:1176
SVXCORE_DLLPUBLIC SvxGraphicObject(SdrObject *pObj)
Definition: unoshap2.cxx:1171
virtual bool getPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, css::uno::Any &rValue) override
Definition: unoshap2.cxx:1414
virtual bool setPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, const css::uno::Any &rValue) override
Definition: unoshap2.cxx:1180
virtual bool setPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, const css::uno::Any &rValue) override
Definition: unoshap4.cxx:782
virtual bool getPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, css::uno::Any &rValue) override
Definition: unoshap4.cxx:956
bool getPropertyStateImpl(const SfxItemPropertyMapEntry *pProperty, css::beans::PropertyState &rState) override
Definition: unoshap4.cxx:1074
OUString referer_
Definition: unoshape.hxx:857
virtual ~SvxMediaShape() noexcept override
Definition: unoshap4.cxx:777
SvxMediaShape(SdrObject *pObj, OUString referer)
Definition: unoshap4.cxx:769
virtual ~SvxShapeCircle() noexcept override
Definition: unoshap2.cxx:891
SVXCORE_DLLPUBLIC SvxShapeCircle(SdrObject *pObj)
Definition: unoshap2.cxx:886
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
Definition: unoshap2.cxx:360
virtual void SAL_CALL release() noexcept override
Definition: unoshape.hxx:501
virtual ~SvxShapeConnector() noexcept override
Definition: unoshap2.cxx:355
virtual css::awt::Point SAL_CALL getPosition() override
Definition: unoshap2.cxx:396
virtual void SAL_CALL setPosition(const css::awt::Point &aPosition) override
Definition: unoshap2.cxx:402
virtual void SAL_CALL disconnectEnd(const css::uno::Reference< css::drawing::XConnectableShape > &xShape) override
Definition: unoshap2.cxx:461
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Definition: unoshap2.cxx:378
virtual OUString SAL_CALL getShapeType() override
Definition: unoshap2.cxx:391
virtual css::awt::Size SAL_CALL getSize() override
Definition: unoshap2.cxx:408
virtual void SAL_CALL acquire() noexcept override
Definition: unoshape.hxx:499
virtual void SAL_CALL disconnectBegin(const css::uno::Reference< css::drawing::XConnectableShape > &xShape) override
Definition: unoshap2.cxx:450
virtual void SAL_CALL connectStart(const css::uno::Reference< css::drawing::XConnectableShape > &xShape, css::drawing::ConnectionType nPos) override
Definition: unoshap2.cxx:422
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
Definition: unoshap2.cxx:383
virtual void SAL_CALL connectEnd(const css::uno::Reference< css::drawing::XConnectableShape > &xShape, css::drawing::ConnectionType nPos) override
Definition: unoshap2.cxx:436
virtual css::uno::Any SAL_CALL queryAggregation(const css::uno::Type &rType) override
Definition: unoshap2.cxx:365
virtual void SAL_CALL setSize(const css::awt::Size &aSize) override
Definition: unoshap2.cxx:414
virtual void SAL_CALL release() noexcept override
Definition: unoshape.hxx:542
virtual void SAL_CALL acquire() noexcept override
Definition: unoshape.hxx:540
SvxShapeDimensioning(SdrObject *pObj)
Definition: unoshap2.cxx:877
virtual ~SvxShapeDimensioning() noexcept override
Definition: unoshap2.cxx:882
This only exists so I have a common base class for SvxShapeGroup and Svx3DSceneObject.
Definition: unoshape.hxx:410
virtual void SAL_CALL release() noexcept override
Definition: unoshape.hxx:417
virtual void SAL_CALL acquire() noexcept override
Definition: unoshape.hxx:415
virtual void addShape(SvxShape &rShape)=0
unotools::WeakReference< SvxDrawPage > mxWeakPage
using a weak reference to prevent leaks via ref-counting cycles
Definition: unoshape.hxx:432
virtual void SAL_CALL release() noexcept override
Definition: unoshape.hxx:448
this abstract class is the interface for an instance that likes to enhance the functionality of compo...
Definition: unomaster.hxx:34
virtual void SAL_CALL release() noexcept override
Definition: unoshape.hxx:400
virtual void SAL_CALL acquire() noexcept override
Definition: unoshape.hxx:398
virtual void SAL_CALL acquire() noexcept override
Definition: unoshape.hxx:365
virtual bool getPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, css::uno::Any &rValue) override
Definition: unoshape.cxx:3903
virtual css::uno::Any SAL_CALL queryAggregation(const css::uno::Type &rType) override
Definition: unoshape.cxx:3771
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
Definition: unoshape.cxx:3817
virtual void SAL_CALL release() noexcept override
Definition: unoshape.hxx:367
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
Definition: unoshape.cxx:3765
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unoshape.cxx:3789
virtual bool setPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, const css::uno::Any &rValue) override
Definition: unoshape.cxx:3880
o3tl::span< const SfxItemPropertyMapEntry > maPropMapEntries
Definition: unoshape.hxx:123
o3tl::span< const SfxItemPropertyMapEntry > getPropertyMapEntries() const
Definition: unoshape.hxx:158
OUString maShapeType
Definition: unoshape.hxx:107
SvxItemPropertySetUsrAnys maUrsAnys
Definition: unoshape.hxx:122
void ForceMetricTo100th_mm(Point &rPoint) const noexcept
Definition: unoshape.hxx:134
rtl::Reference< SdrObject > mxSdrObject
Definition: unoshape.hxx:126
void ForceMetricToItemPoolMetric(Size &rPoint) const noexcept
Definition: unoshape.hxx:132
bool mbIsMultiPropertyCall
Definition: unoshape.hxx:112
void ForceMetricTo100th_mm(Size &rPoint) const noexcept
Definition: unoshape.hxx:135
bool HasSdrObject() const
Definition: unoshape.hxx:197
void ForceMetricToItemPoolMetric(Point &rPoint) const noexcept
Definition: unoshape.hxx:131
sal_uInt16 mnLockCount
used from the XActionLockable interface
Definition: unoshape.hxx:156
OUString maShapeName
Definition: unoshape.hxx:108
css::uno::WeakReference< css::container::XIndexContainer > mxGluePoints
Definition: unoshape.hxx:114
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: unoshape.cxx:1610
void SetShapeType(const OUString &ShapeType)
Definition: unoshape.hxx:199
friend class SvxShapeConnector
Definition: unoshape.hxx:118
std::unique_ptr< SvxShapeImpl > mpImpl
these members are used to optimize XMultiProperty calls
Definition: unoshape.hxx:111
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: unoshape.cxx:1471
const SvxItemPropertySet * mpPropSet
Definition: unoshape.hxx:121
css::awt::Size maSize
Definition: unoshape.hxx:105
css::awt::Point maPosition
Definition: unoshape.hxx:106
virtual sal_Bool SAL_CALL hasElements() override
virtual css::uno::Type SAL_CALL getElementType() override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
virtual css::uno::Any SAL_CALL queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
helper class for notifying XPropertyChangeListeners
EmbeddedObjectRef * pObject
class SAL_NO_VTABLE XPropertySet
Definition: xmlexchg.hxx:28
OUStringBuffer & remove(OUStringBuffer &rIn, sal_Unicode c)
OUString getString(const Any &_rAny)
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
std::shared_ptr< osl::Mutex > const & lock()
Type
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
void Create(SwFormatVertOrient &rItem, SvStream &rStrm, sal_uInt16 nVersionAbusedAsSize)
VBAHELPER_DLLPUBLIC bool setPropertyValue(css::uno::Sequence< css::beans::PropertyValue > &aProp, const OUString &aName, const css::uno::Any &aValue)
bool getPropertyValue(ValueType &rValue, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, OUString const &propName)
#define UNO3_GETIMPLEMENTATION_DECL(classname)
SdrObjKind
Definition: svdobjkind.hxx:25
#define SVX_DLLPRIVATE
Definition: svxdllapi.h:30
#define SVXCORE_DLLPUBLIC
Definition: svxdllapi.h:35
unsigned char sal_Bool
void SVXCORE_DLLPUBLIC SvxItemPropertySet_setPropertyValue(const SfxItemPropertyMapEntry *pMap, const css::uno::Any &rVal, SfxItemSet &rSet)
::cppu::WeakAggImplHelper12< css::drawing::XShape, css::lang::XComponent, css::beans::XPropertySet, css::beans::XMultiPropertySet, css::beans::XPropertyState, css::lang::XUnoTunnel, css::container::XNamed, css::drawing::XGluePointsSupplier, css::container::XChild, css::lang::XServiceInfo, css::document::XActionLockable, css::beans::XMultiPropertyStates > SvxShape_UnoImplHelper
Definition: unoshape.hxx:97
css::uno::Any SVXCORE_DLLPUBLIC SvxItemPropertySet_getPropertyValue(const SfxItemPropertyMapEntry *pMap, const SfxItemSet &rSet)
Definition: unoshape.cxx:3968