19#ifndef INCLUDED_SW_INC_UNODRAW_HXX
20#define INCLUDED_SW_INC_UNODRAW_HXX
26#include <com/sun/star/text/XTextContent.hpp>
27#include <com/sun/star/drawing/PolyPolygonBezierCoords.hpp>
28#include <com/sun/star/drawing/XShape.hpp>
29#include <com/sun/star/lang/XUnoTunnel.hpp>
30#include <com/sun/star/beans/XPropertySet.hpp>
31#include <com/sun/star/beans/XPropertyState.hpp>
32#include <com/sun/star/drawing/XShapes.hpp>
35#include <com/sun/star/container/XEnumerationAccess.hpp>
36#include <com/sun/star/drawing/HomogenMatrix3.hpp>
46 css::container::XEnumerationAccess,
47 css::beans::XPropertySet>
62 void PreUnGroup(const css::
uno::Reference< css::drawing::XShapeGroup >& rShapeGroup);
73 virtual css::uno::Reference< css::drawing::XShape >
CreateShape(
SdrObject *pObj )
const override;
82 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
createEnumeration()
override;
85 virtual sal_Int32 SAL_CALL
getCount()
override;
86 virtual css::uno::Any SAL_CALL
getByIndex(sal_Int32 nIndex)
override;
93 virtual void SAL_CALL
add(
const css::uno::Reference< css::drawing::XShape > & xShape)
override;
94 virtual void SAL_CALL
remove(
const css::uno::Reference< css::drawing::XShape > & xShape)
override;
97 virtual css::uno::Reference< css::drawing::XShapeGroup > SAL_CALL
group(
const css::uno::Reference< css::drawing::XShapes > & xShapes)
override;
98 virtual void SAL_CALL
ungroup(
const css::uno::Reference< css::drawing::XShapeGroup > & aGroup)
override;
106 virtual css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL
getPropertySetInfo()
override;
107 virtual void SAL_CALL
setPropertyValue(
const OUString& aPropertyName,
const css::uno::Any& aValue)
override;
108 virtual css::uno::Any SAL_CALL
getPropertyValue(
const OUString& PropertyName)
override;
109 virtual void SAL_CALL
addPropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference<css::beans::XPropertyChangeListener>& xListener)
override;
110 virtual void SAL_CALL
removePropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference<css::beans::XPropertyChangeListener>& aListener)
override;
111 virtual void SAL_CALL
addVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference<css::beans::XVetoableChangeListener>& aListener)
override;
112 virtual void SAL_CALL
removeVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference<css::beans::XVetoableChangeListener>& aListener)
override;
122 css::beans::XPropertySet,
123 css::beans::XPropertyState,
124 css::text::XTextContent,
125 css::lang::XServiceInfo,
126 css::lang::XUnoTunnel,
139 css::uno::Reference< css::drawing::XShape >
mxShape;
145 std::unique_ptr<SwShapeDescriptor_Impl>
m_pImpl;
160 const css::awt::Point& rObjPos,
161 const css::awt::Size& rObjSize );
167 const css::drawing::HomogenMatrix3& rMatrixInHoriL2R );
182 const css::awt::Point& aStartOrEndPos );
188 const css::drawing::PolyPolygonBezierCoords& aPath );
201 SwXShape(css::uno::Reference<css::uno::XInterface> & xShape,
SwDoc const*
const pDoc);
204 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type& aType )
override;
205 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes( )
override;
209 virtual sal_Int64 SAL_CALL
getSomething(
const css::uno::Sequence< sal_Int8 >& aIdentifier )
override;
212 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
getPropertySetInfo( )
override;
213 virtual void SAL_CALL
setPropertyValue(
const OUString& aPropertyName,
const css::uno::Any& aValue )
override;
214 virtual css::uno::Any SAL_CALL
getPropertyValue(
const OUString& PropertyName )
override;
215 virtual void SAL_CALL
addPropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener )
override;
216 virtual void SAL_CALL
removePropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener )
override;
217 virtual void SAL_CALL
addVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
218 virtual void SAL_CALL
removeVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
221 virtual css::beans::PropertyState SAL_CALL
getPropertyState(
const OUString& PropertyName )
override;
222 virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL
getPropertyStates(
const css::uno::Sequence< OUString >& aPropertyName )
override;
224 virtual css::uno::Any SAL_CALL
getPropertyDefault(
const OUString& aPropertyName )
override;
227 virtual void SAL_CALL
attach(
const css::uno::Reference< css::text::XTextRange > & xTextRange)
override;
228 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
getAnchor()
override;
231 virtual void SAL_CALL
dispose()
override;
232 virtual void SAL_CALL
addEventListener(
const css::uno::Reference< css::lang::XEventListener > & aListener)
override;
233 virtual void SAL_CALL
removeEventListener(
const css::uno::Reference< css::lang::XEventListener > & aListener)
override;
240 virtual css::awt::Point SAL_CALL
getPosition( )
override;
241 virtual void SAL_CALL
setPosition(
const css::awt::Point& aPosition )
override;
242 virtual css::awt::Size SAL_CALL
getSize( )
override;
243 virtual void SAL_CALL
setSize(
const css::awt::Size& aSize )
override;
256 public css::drawing::XShapes
262 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type& aType )
override;
263 virtual void SAL_CALL
acquire( )
noexcept override;
264 virtual void SAL_CALL
release( )
noexcept override;
267 virtual void SAL_CALL
add(
const css::uno::Reference< css::drawing::XShape >& xShape )
override;
268 virtual void SAL_CALL
remove(
const css::uno::Reference< css::drawing::XShape >& xShape )
override;
271 virtual sal_Int32 SAL_CALL
getCount()
override;
SdrPageView * m_pPageView
virtual sal_Bool SAL_CALL hasElements() override
std::vector< rtl::Reference< SwXShape > > m_vShapes
void InvalidateSwDoc()
Renamed and outlined to detect where it's called.
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
static css::uno::Reference< css::drawing::XShapeGroup > GetShapeGroup(SdrObject *pObj)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
static css::uno::Reference< css::drawing::XShape > GetShape(SdrObject *pObj)
virtual css::uno::Type SAL_CALL getElementType() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual css::uno::Reference< css::drawing::XShapeGroup > SAL_CALL group(const css::uno::Reference< css::drawing::XShapes > &xShapes) override
virtual ~SwFmDrawPage() noexcept override
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL remove(const css::uno::Reference< css::drawing::XShape > &xShape) override
virtual void SAL_CALL ungroup(const css::uno::Reference< css::drawing::XShapeGroup > &aGroup) override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
SwFmDrawPage(SwDoc *pDoc, SdrPage *pPage)
virtual css::uno::Reference< css::drawing::XShape > CreateShape(SdrObject *pObj) const override
virtual void SAL_CALL add(const css::uno::Reference< css::drawing::XShape > &xShape) override
void RemoveShape(const SwXShape *pShape)
const SfxItemPropertySet * m_pPropertySet
void PreUnGroup(const css::uno::Reference< css::drawing::XShapeGroup > &rShapeGroup)
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
const SdrMarkList & PreGroup(const css::uno::Reference< css::drawing::XShapes > &rShapes)
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual sal_Int32 SAL_CALL getCount() override
SdrPageView * GetPageView()
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL acquire() noexcept override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
virtual sal_Bool SAL_CALL hasElements() override
virtual void SAL_CALL add(const css::uno::Reference< css::drawing::XShape > &xShape) override
virtual void SAL_CALL remove(const css::uno::Reference< css::drawing::XShape > &xShape) override
virtual void SAL_CALL release() noexcept override
virtual sal_Int32 SAL_CALL getCount() override
virtual ~SwXGroupShape() override
virtual css::uno::Type SAL_CALL getElementType() override
css::uno::Reference< css::uno::XAggregation > m_xShapeAgg
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
css::uno::Any _getPropAtAggrObj(const OUString &_rPropertyName)
method to get property from aggregation object
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
css::awt::Point GetAttrPosition()
method to determine position according to the positioning attributes
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
std::unique_ptr< SwShapeDescriptor_Impl > m_pImpl
virtual css::awt::Point SAL_CALL getPosition() override
o3tl::span< const SfxItemPropertyMapEntry > m_pPropertyMapEntries
SwShapeDescriptor_Impl * GetDescImpl()
static void AddExistingShapeToFormat(SdrObject const &_rObj)
virtual OUString SAL_CALL getShapeType() override
virtual void SAL_CALL attach(const css::uno::Reference< css::text::XTextRange > &xTextRange) override
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
SdrObject * GetTopGroupObj(SvxShape *_pSvxShape=nullptr)
method to determine top group object
friend class SwXGroupShape
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
SwXShape(css::uno::Reference< css::uno::XInterface > &xShape, SwDoc const *const pDoc)
virtual sal_Int64 SAL_CALL getSomething(const css::uno::Sequence< sal_Int8 > &aIdentifier) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
css::uno::Reference< css::drawing::XShape > mxShape
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId()
const SwFmDrawPage * m_pPage
css::drawing::HomogenMatrix3 ConvertTransformationToLayoutDir(const css::drawing::HomogenMatrix3 &rMatrixInHoriL2R)
method to convert the transformation of the drawing object to the layout direction,...
virtual css::awt::Size SAL_CALL getSize() override
const SfxItemPropertySet * m_pPropSet
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &aPropertyName) override
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
css::uno::Reference< css::beans::XPropertySetInfo > mxPropertySetInfo
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual void SAL_CALL dispose() override
SwFrameFormat * GetFrameFormat() const
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual void SAL_CALL setSize(const css::awt::Size &aSize) override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
css::awt::Point ConvertStartOrEndPosToLayoutDir(const css::awt::Point &aStartOrEndPos)
method to convert start or end position of the drawing object to the Writer specific position,...
css::drawing::PolyPolygonBezierCoords ConvertPolyPolygonBezierToLayoutDir(const css::drawing::PolyPolygonBezierCoords &aPath)
method to convert PolyPolygonBezier of the drawing object to the Writer specific position,...
css::awt::Point ConvertPositionToHoriL2R(const css::awt::Point &rObjPos, const css::awt::Size &rObjSize)
method to convert the position (translation) of the drawing object to the layout direction horizontal...
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
void AdjustPositionProperties(const css::awt::Point &rPosition)
method to adjust the positioning properties
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual ~SwXShape() override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getAnchor() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL setPosition(const css::awt::Point &aPosition) override
const css::uno::Reference< css::uno::XAggregation > & GetAggregationInterface() const
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
OSQLColumns::const_iterator find(const OSQLColumns::const_iterator &first, const OSQLColumns::const_iterator &last, std::u16string_view _rVal, const ::comphelper::UStringMixEqual &_rCase)
cppu::WeakImplHelper< css::beans::XPropertySet, css::beans::XPropertyState, css::text::XTextContent, css::lang::XServiceInfo, css::lang::XUnoTunnel, css::drawing::XShape > SwXShapeBaseClass
cppu::AggImplInheritanceHelper2< SvxFmDrawPage, css::container::XEnumerationAccess, css::beans::XPropertySet > SwFmDrawPage_Base