1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir #ifndef _UNODRAW_HXX 28*cdf0e10cSrcweir #define _UNODRAW_HXX 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir #include <svx/fmdpage.hxx> 31*cdf0e10cSrcweir #include <calbck.hxx> 32*cdf0e10cSrcweir #include <frmfmt.hxx> 33*cdf0e10cSrcweir #include <com/sun/star/text/XTextContent.hpp> 34*cdf0e10cSrcweir // --> OD 2009-01-13 #i59051# 35*cdf0e10cSrcweir #include <com/sun/star/drawing/PolyPolygonBezierCoords.hpp> 36*cdf0e10cSrcweir // <-- 37*cdf0e10cSrcweir #include <com/sun/star/drawing/XShape.hpp> 38*cdf0e10cSrcweir #include <com/sun/star/lang/XUnoTunnel.hpp> 39*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyState.hpp> 40*cdf0e10cSrcweir #include <com/sun/star/drawing/XShapes.hpp> 41*cdf0e10cSrcweir #include <cppuhelper/implbase3.hxx> // helper for implementations 42*cdf0e10cSrcweir #include <cppuhelper/implbase4.hxx> // helper for implementations 43*cdf0e10cSrcweir // --> OD 2004-07-22 #i31698# 44*cdf0e10cSrcweir #include <cppuhelper/implbase6.hxx> // helper for implementations 45*cdf0e10cSrcweir #include <com/sun/star/container/XEnumerationAccess.hpp> 46*cdf0e10cSrcweir #include <com/sun/star/drawing/HomogenMatrix3.hpp> 47*cdf0e10cSrcweir // <-- 48*cdf0e10cSrcweir #include <svl/itemprop.hxx> 49*cdf0e10cSrcweir 50*cdf0e10cSrcweir class SdrMarkList; 51*cdf0e10cSrcweir class SdrView; 52*cdf0e10cSrcweir class SwDoc; 53*cdf0e10cSrcweir /****************************************************************************** 54*cdf0e10cSrcweir * 55*cdf0e10cSrcweir ******************************************************************************/ 56*cdf0e10cSrcweir class SwFmDrawPage : public SvxFmDrawPage 57*cdf0e10cSrcweir { 58*cdf0e10cSrcweir SdrPageView* pPageView; 59*cdf0e10cSrcweir protected: 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir // Erzeugen eines SdrObjects anhand einer Description. Kann von 62*cdf0e10cSrcweir // abgeleiteten Klassen dazu benutzt werden, eigene ::com::sun::star::drawing::Shapes zu 63*cdf0e10cSrcweir // unterstuetzen (z.B. Controls) 64*cdf0e10cSrcweir virtual SdrObject *_CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > & xShape ) throw (); 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir public: 67*cdf0e10cSrcweir SwFmDrawPage( SdrPage* pPage ); 68*cdf0e10cSrcweir virtual ~SwFmDrawPage() throw (); 69*cdf0e10cSrcweir 70*cdf0e10cSrcweir const SdrMarkList& PreGroup(const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes > & xShapes); 71*cdf0e10cSrcweir void PreUnGroup(const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapeGroup > xShapeGroup); 72*cdf0e10cSrcweir // void PostGroup(); ?? wird es noch gebraucht ?? 73*cdf0e10cSrcweir 74*cdf0e10cSrcweir SdrView* GetDrawView() {return mpView;} 75*cdf0e10cSrcweir SdrPageView* GetPageView(); 76*cdf0e10cSrcweir void RemovePageView(); 77*cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > GetInterface( SdrObject* pObj ); 78*cdf0e10cSrcweir 79*cdf0e10cSrcweir // Die folgende Methode wird gerufen, wenn ein SvxShape-Objekt angelegt 80*cdf0e10cSrcweir // werden soll. abgeleitete Klassen koennen hier eine Ableitung oder 81*cdf0e10cSrcweir // ein ein SvxShape aggregierendes Objekt anlegen. 82*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > _CreateShape( SdrObject *pObj ) const throw (); 83*cdf0e10cSrcweir }; 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir typedef cppu::WeakAggImplHelper4 86*cdf0e10cSrcweir < 87*cdf0e10cSrcweir ::com::sun::star::container::XEnumerationAccess, 88*cdf0e10cSrcweir ::com::sun::star::drawing::XDrawPage, 89*cdf0e10cSrcweir ::com::sun::star::lang::XServiceInfo, 90*cdf0e10cSrcweir ::com::sun::star::drawing::XShapeGrouper 91*cdf0e10cSrcweir > 92*cdf0e10cSrcweir SwXDrawPageBaseClass; 93*cdf0e10cSrcweir class SwXDrawPage : public SwXDrawPageBaseClass 94*cdf0e10cSrcweir { 95*cdf0e10cSrcweir SwDoc* pDoc; 96*cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::uno::XAggregation > xPageAgg; 97*cdf0e10cSrcweir SwFmDrawPage* pDrawPage; 98*cdf0e10cSrcweir public: 99*cdf0e10cSrcweir SwXDrawPage(SwDoc* pDoc); 100*cdf0e10cSrcweir ~SwXDrawPage(); 101*cdf0e10cSrcweir 102*cdf0e10cSrcweir //XEnumerationAccess 103*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL createEnumeration(void) throw( ::com::sun::star::uno::RuntimeException ); 104*cdf0e10cSrcweir 105*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException); 106*cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException); 107*cdf0e10cSrcweir 108*cdf0e10cSrcweir //XIndexAccess 109*cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getCount(void) throw( ::com::sun::star::uno::RuntimeException ); 110*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException ); 111*cdf0e10cSrcweir 112*cdf0e10cSrcweir //XElementAccess 113*cdf0e10cSrcweir virtual ::com::sun::star::uno::Type SAL_CALL getElementType( ) throw(::com::sun::star::uno::RuntimeException); 114*cdf0e10cSrcweir virtual sal_Bool SAL_CALL hasElements( ) throw(::com::sun::star::uno::RuntimeException); 115*cdf0e10cSrcweir 116*cdf0e10cSrcweir //XShapes 117*cdf0e10cSrcweir virtual void SAL_CALL add(const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > & xShape) throw( ::com::sun::star::uno::RuntimeException ); 118*cdf0e10cSrcweir virtual void SAL_CALL remove(const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > & xShape) throw( ::com::sun::star::uno::RuntimeException ); 119*cdf0e10cSrcweir 120*cdf0e10cSrcweir //XShapeGrouper 121*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapeGroup > SAL_CALL group(const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes > & xShapes) throw( ::com::sun::star::uno::RuntimeException ); 122*cdf0e10cSrcweir virtual void SAL_CALL ungroup(const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapeGroup > & aGroup) throw( ::com::sun::star::uno::RuntimeException ); 123*cdf0e10cSrcweir 124*cdf0e10cSrcweir //XServiceInfo 125*cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); 126*cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); 127*cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); 128*cdf0e10cSrcweir 129*cdf0e10cSrcweir SwFmDrawPage* GetSvxPage(); 130*cdf0e10cSrcweir // renamed and outlined to detect where it's called 131*cdf0e10cSrcweir void InvalidateSwDoc(); // {pDoc = 0;} 132*cdf0e10cSrcweir }; 133*cdf0e10cSrcweir /* -----------------22.01.99 10:20------------------- 134*cdf0e10cSrcweir * 135*cdf0e10cSrcweir * --------------------------------------------------*/ 136*cdf0e10cSrcweir class SwShapeDescriptor_Impl; 137*cdf0e10cSrcweir class SwXGroupShape; 138*cdf0e10cSrcweir typedef 139*cdf0e10cSrcweir cppu::WeakAggImplHelper6 140*cdf0e10cSrcweir < 141*cdf0e10cSrcweir ::com::sun::star::beans::XPropertySet, 142*cdf0e10cSrcweir ::com::sun::star::beans::XPropertyState, 143*cdf0e10cSrcweir ::com::sun::star::text::XTextContent, 144*cdf0e10cSrcweir ::com::sun::star::lang::XServiceInfo, 145*cdf0e10cSrcweir ::com::sun::star::lang::XUnoTunnel, 146*cdf0e10cSrcweir // --> OD 2004-07-22 #i31698# 147*cdf0e10cSrcweir ::com::sun::star::drawing::XShape 148*cdf0e10cSrcweir // <-- 149*cdf0e10cSrcweir > 150*cdf0e10cSrcweir SwXShapeBaseClass; 151*cdf0e10cSrcweir class SwXShape : public SwXShapeBaseClass, 152*cdf0e10cSrcweir public SwClient 153*cdf0e10cSrcweir { 154*cdf0e10cSrcweir friend class SwHTMLImageWatcher; 155*cdf0e10cSrcweir friend class SwHTMLParser; 156*cdf0e10cSrcweir friend class SwXGroupShape; 157*cdf0e10cSrcweir friend class SwXDrawPage; 158*cdf0e10cSrcweir 159*cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::uno::XAggregation > xShapeAgg; 160*cdf0e10cSrcweir // --> OD 2004-07-23 #i31698# - reference to <XShape>, determined in the 161*cdf0e10cSrcweir // constructor by <queryAggregation> at <xShapeAgg>. 162*cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > mxShape; 163*cdf0e10cSrcweir // <-- 164*cdf0e10cSrcweir 165*cdf0e10cSrcweir const SfxItemPropertySet* m_pPropSet; 166*cdf0e10cSrcweir const SfxItemPropertyMapEntry* m_pPropertyMapEntries; 167*cdf0e10cSrcweir com::sun::star::uno::Sequence< sal_Int8 >* pImplementationId; 168*cdf0e10cSrcweir 169*cdf0e10cSrcweir SwShapeDescriptor_Impl* pImpl; 170*cdf0e10cSrcweir 171*cdf0e10cSrcweir sal_Bool m_bDescriptor; 172*cdf0e10cSrcweir 173*cdf0e10cSrcweir SwFrmFmt* GetFrmFmt() const { return (SwFrmFmt*)GetRegisteredIn(); } 174*cdf0e10cSrcweir 175*cdf0e10cSrcweir SvxShape* GetSvxShape(); 176*cdf0e10cSrcweir 177*cdf0e10cSrcweir /** method to determine top group object 178*cdf0e10cSrcweir 179*cdf0e10cSrcweir OD 2004-08-03 #i31698# 180*cdf0e10cSrcweir 181*cdf0e10cSrcweir @author OD 182*cdf0e10cSrcweir */ 183*cdf0e10cSrcweir SdrObject* _GetTopGroupObj( SvxShape* _pSvxShape = 0L ); 184*cdf0e10cSrcweir 185*cdf0e10cSrcweir /** method to determine position according to the positioning attributes 186*cdf0e10cSrcweir 187*cdf0e10cSrcweir OD 2004-08-03 #i31698# 188*cdf0e10cSrcweir 189*cdf0e10cSrcweir @author OD 190*cdf0e10cSrcweir */ 191*cdf0e10cSrcweir com::sun::star::awt::Point _GetAttrPosition(); 192*cdf0e10cSrcweir 193*cdf0e10cSrcweir /** method to convert the position (translation) of the drawing object to 194*cdf0e10cSrcweir the layout direction horizontal left-to-right. 195*cdf0e10cSrcweir 196*cdf0e10cSrcweir OD 2004-07-27 #i31698# 197*cdf0e10cSrcweir 198*cdf0e10cSrcweir @author OD 199*cdf0e10cSrcweir */ 200*cdf0e10cSrcweir ::com::sun::star::awt::Point _ConvertPositionToHoriL2R( 201*cdf0e10cSrcweir const ::com::sun::star::awt::Point _aObjPos, 202*cdf0e10cSrcweir const ::com::sun::star::awt::Size _aObjSize ); 203*cdf0e10cSrcweir 204*cdf0e10cSrcweir /** method to convert the transformation of the drawing object to the layout 205*cdf0e10cSrcweir direction, the drawing object is in 206*cdf0e10cSrcweir 207*cdf0e10cSrcweir OD 2004-07-27 #i31698# 208*cdf0e10cSrcweir 209*cdf0e10cSrcweir @author OD 210*cdf0e10cSrcweir */ 211*cdf0e10cSrcweir ::com::sun::star::drawing::HomogenMatrix3 _ConvertTransformationToLayoutDir( 212*cdf0e10cSrcweir ::com::sun::star::drawing::HomogenMatrix3 _aMatrixInHoriL2R ); 213*cdf0e10cSrcweir 214*cdf0e10cSrcweir /** method to adjust the positioning properties 215*cdf0e10cSrcweir 216*cdf0e10cSrcweir OD 2004-08-02 #i31698# 217*cdf0e10cSrcweir 218*cdf0e10cSrcweir @author OD 219*cdf0e10cSrcweir 220*cdf0e10cSrcweir @param _aPosition 221*cdf0e10cSrcweir input parameter - point representing the new shape position. The position 222*cdf0e10cSrcweir has to be given in the layout direction the shape is in and relative to 223*cdf0e10cSrcweir its position alignment areas. 224*cdf0e10cSrcweir */ 225*cdf0e10cSrcweir void _AdjustPositionProperties( const ::com::sun::star::awt::Point _aPosition ); 226*cdf0e10cSrcweir 227*cdf0e10cSrcweir /** method to convert start or end position of the drawing object to the 228*cdf0e10cSrcweir Writer specific position, which is the attribute position in layout direction 229*cdf0e10cSrcweir 230*cdf0e10cSrcweir OD 2009-01-12 #i59051# 231*cdf0e10cSrcweir 232*cdf0e10cSrcweir @author OD 233*cdf0e10cSrcweir */ 234*cdf0e10cSrcweir ::com::sun::star::awt::Point _ConvertStartOrEndPosToLayoutDir( 235*cdf0e10cSrcweir const ::com::sun::star::awt::Point& aStartOrEndPos ); 236*cdf0e10cSrcweir 237*cdf0e10cSrcweir /** method to convert PolyPolygonBezier of the drawing object to the 238*cdf0e10cSrcweir Writer specific position, which is the attribute position in layout direction 239*cdf0e10cSrcweir 240*cdf0e10cSrcweir OD 2009-01-13 #i59051# 241*cdf0e10cSrcweir 242*cdf0e10cSrcweir @author OD 243*cdf0e10cSrcweir */ 244*cdf0e10cSrcweir ::com::sun::star::drawing::PolyPolygonBezierCoords _ConvertPolyPolygonBezierToLayoutDir( 245*cdf0e10cSrcweir const ::com::sun::star::drawing::PolyPolygonBezierCoords& aPath ); 246*cdf0e10cSrcweir 247*cdf0e10cSrcweir /** method to get property from aggregation object 248*cdf0e10cSrcweir 249*cdf0e10cSrcweir OD 2004-10-28 #i36248# 250*cdf0e10cSrcweir 251*cdf0e10cSrcweir @author OD 252*cdf0e10cSrcweir */ 253*cdf0e10cSrcweir ::com::sun::star::uno::Any _getPropAtAggrObj( const ::rtl::OUString& _rPropertyName ) 254*cdf0e10cSrcweir throw( ::com::sun::star::beans::UnknownPropertyException, 255*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 256*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 257*cdf0e10cSrcweir 258*cdf0e10cSrcweir protected: 259*cdf0e10cSrcweir virtual ~SwXShape(); 260*cdf0e10cSrcweir //SwClient 261*cdf0e10cSrcweir virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew); 262*cdf0e10cSrcweir 263*cdf0e10cSrcweir public: 264*cdf0e10cSrcweir SwXShape(::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & xShape); 265*cdf0e10cSrcweir 266*cdf0e10cSrcweir 267*cdf0e10cSrcweir TYPEINFO(); 268*cdf0e10cSrcweir static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId(); 269*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException); 270*cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException); 271*cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException); 272*cdf0e10cSrcweir 273*cdf0e10cSrcweir //XUnoTunnel 274*cdf0e10cSrcweir virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException); 275*cdf0e10cSrcweir 276*cdf0e10cSrcweir 277*cdf0e10cSrcweir //XPropertySet 278*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); 279*cdf0e10cSrcweir virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 280*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 281*cdf0e10cSrcweir virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 282*cdf0e10cSrcweir virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 283*cdf0e10cSrcweir virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 284*cdf0e10cSrcweir virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 285*cdf0e10cSrcweir 286*cdf0e10cSrcweir //XPropertyState 287*cdf0e10cSrcweir virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); 288*cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); 289*cdf0e10cSrcweir virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); 290*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const ::rtl::OUString& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 291*cdf0e10cSrcweir 292*cdf0e10cSrcweir //XTextContent 293*cdf0e10cSrcweir virtual void SAL_CALL attach(const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > & xTextRange) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException ); 294*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getAnchor(void) throw( ::com::sun::star::uno::RuntimeException ); 295*cdf0e10cSrcweir 296*cdf0e10cSrcweir //XComponent 297*cdf0e10cSrcweir virtual void SAL_CALL dispose(void) throw( ::com::sun::star::uno::RuntimeException ); 298*cdf0e10cSrcweir virtual void SAL_CALL addEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener) throw( ::com::sun::star::uno::RuntimeException ); 299*cdf0e10cSrcweir virtual void SAL_CALL removeEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener) throw( ::com::sun::star::uno::RuntimeException ); 300*cdf0e10cSrcweir 301*cdf0e10cSrcweir //XServiceInfo 302*cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); 303*cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); 304*cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); 305*cdf0e10cSrcweir 306*cdf0e10cSrcweir // --> OD 2004-07-22 #i31698# XShape 307*cdf0e10cSrcweir virtual ::com::sun::star::awt::Point SAL_CALL getPosition( ) throw (::com::sun::star::uno::RuntimeException); 308*cdf0e10cSrcweir virtual void SAL_CALL setPosition( const ::com::sun::star::awt::Point& aPosition ) throw (::com::sun::star::uno::RuntimeException); 309*cdf0e10cSrcweir virtual ::com::sun::star::awt::Size SAL_CALL getSize( ) throw (::com::sun::star::uno::RuntimeException); 310*cdf0e10cSrcweir virtual void SAL_CALL setSize( const ::com::sun::star::awt::Size& aSize ) throw (::com::sun::star::beans::PropertyVetoException, ::com::sun::star::uno::RuntimeException); 311*cdf0e10cSrcweir // <-- 312*cdf0e10cSrcweir // --> OD 2004-07-22 #i31698# XShapeDescriptor - superclass of XShape 313*cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getShapeType( ) throw (::com::sun::star::uno::RuntimeException); 314*cdf0e10cSrcweir // <-- 315*cdf0e10cSrcweir 316*cdf0e10cSrcweir SwShapeDescriptor_Impl* GetDescImpl() {return pImpl;} 317*cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::uno::XAggregation > GetAggregationInterface() {return xShapeAgg;} 318*cdf0e10cSrcweir 319*cdf0e10cSrcweir // helper 320*cdf0e10cSrcweir static void AddExistingShapeToFmt( SdrObject& _rObj ); 321*cdf0e10cSrcweir }; 322*cdf0e10cSrcweir /* -----------------------------31.05.01 09:54-------------------------------- 323*cdf0e10cSrcweir 324*cdf0e10cSrcweir ---------------------------------------------------------------------------*/ 325*cdf0e10cSrcweir class SwXGroupShape : 326*cdf0e10cSrcweir public SwXShape, 327*cdf0e10cSrcweir public ::com::sun::star::drawing::XShapes 328*cdf0e10cSrcweir { 329*cdf0e10cSrcweir protected: 330*cdf0e10cSrcweir virtual ~SwXGroupShape(); 331*cdf0e10cSrcweir public: 332*cdf0e10cSrcweir SwXGroupShape(::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & xShape); 333*cdf0e10cSrcweir 334*cdf0e10cSrcweir 335*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException); 336*cdf0e10cSrcweir virtual void SAL_CALL acquire( ) throw(); 337*cdf0e10cSrcweir virtual void SAL_CALL release( ) throw(); 338*cdf0e10cSrcweir 339*cdf0e10cSrcweir //XShapes 340*cdf0e10cSrcweir virtual void SAL_CALL add( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw (::com::sun::star::uno::RuntimeException); 341*cdf0e10cSrcweir virtual void SAL_CALL remove( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw (::com::sun::star::uno::RuntimeException); 342*cdf0e10cSrcweir 343*cdf0e10cSrcweir //XIndexAccess 344*cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getCount(void) throw( ::com::sun::star::uno::RuntimeException ); 345*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException ); 346*cdf0e10cSrcweir 347*cdf0e10cSrcweir //XElementAccess 348*cdf0e10cSrcweir virtual ::com::sun::star::uno::Type SAL_CALL getElementType( ) throw(::com::sun::star::uno::RuntimeException); 349*cdf0e10cSrcweir virtual sal_Bool SAL_CALL hasElements( ) throw(::com::sun::star::uno::RuntimeException); 350*cdf0e10cSrcweir }; 351*cdf0e10cSrcweir #endif 352*cdf0e10cSrcweir 353*cdf0e10cSrcweir 354