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