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 _UNOTBL_HXX 24cdf0e10cSrcweir #define _UNOTBL_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include <com/sun/star/container/XNamed.hpp> 27cdf0e10cSrcweir #include <com/sun/star/container/XEnumerationAccess.hpp> 28cdf0e10cSrcweir #include <com/sun/star/util/XSortable.hpp> 29cdf0e10cSrcweir #include <com/sun/star/chart/XChartData.hpp> 30cdf0e10cSrcweir #include <com/sun/star/chart/XChartDataArray.hpp> 31cdf0e10cSrcweir #include <com/sun/star/chart2/data/XLabeledDataSequence.hpp> 32cdf0e10cSrcweir #include <com/sun/star/text/XTextTableCursor.hpp> 33cdf0e10cSrcweir #include <com/sun/star/text/XTextTable.hpp> 34cdf0e10cSrcweir #include <com/sun/star/table/XCellRange.hpp> 35cdf0e10cSrcweir #include <com/sun/star/sheet/XCellRangeData.hpp> 36cdf0e10cSrcweir #include <com/sun/star/table/XAutoFormattable.hpp> 37cdf0e10cSrcweir 38cdf0e10cSrcweir #include <cppuhelper/implbase3.hxx> 39cdf0e10cSrcweir #include <cppuhelper/implbase4.hxx> 40cdf0e10cSrcweir #include <cppuhelper/implbase5.hxx> 41cdf0e10cSrcweir #include <cppuhelper/implbase7.hxx> 42cdf0e10cSrcweir #include <cppuhelper/implbase10.hxx> 43cdf0e10cSrcweir 44cdf0e10cSrcweir #include <comphelper/uno3.hxx> 45cdf0e10cSrcweir #include <tools/string.hxx> 46cdf0e10cSrcweir 47cdf0e10cSrcweir #include <calbck.hxx> 48cdf0e10cSrcweir #include <TextCursorHelper.hxx> 49cdf0e10cSrcweir #include <unoevtlstnr.hxx> 50cdf0e10cSrcweir #include <unotext.hxx> 51cdf0e10cSrcweir 52cdf0e10cSrcweir 53cdf0e10cSrcweir class SwUnoCrsr; 54cdf0e10cSrcweir class SwTable; 55cdf0e10cSrcweir class SwTableBox; 56cdf0e10cSrcweir class SwTableLine; 57cdf0e10cSrcweir class SwTableCursor; 58cdf0e10cSrcweir class SwTableBoxFmt; 59cdf0e10cSrcweir class SwChartDataProvider; 60cdf0e10cSrcweir class SwFrmFmt; 61cdf0e10cSrcweir 62cdf0e10cSrcweir 63cdf0e10cSrcweir /* -----------------------------22.09.00 11:10-------------------------------- 64cdf0e10cSrcweir 65cdf0e10cSrcweir ---------------------------------------------------------------------------*/ 66cdf0e10cSrcweir class SwChartEventListenerContainer : public SwEventListenerContainer 67cdf0e10cSrcweir { 68cdf0e10cSrcweir public: 69cdf0e10cSrcweir SwChartEventListenerContainer( ::com::sun::star::uno::XInterface* pxParentL) : 70cdf0e10cSrcweir SwEventListenerContainer(pxParentL){} 71cdf0e10cSrcweir void ChartDataChanged(); 72cdf0e10cSrcweir }; 73cdf0e10cSrcweir /* --------------------------------------------------------------------------- 74cdf0e10cSrcweir 75cdf0e10cSrcweir ---------------------------------------------------------------------------*/ 76cdf0e10cSrcweir typedef 77cdf0e10cSrcweir cppu::WeakImplHelper4 78cdf0e10cSrcweir < 79cdf0e10cSrcweir ::com::sun::star::table::XCell, 80cdf0e10cSrcweir ::com::sun::star::lang::XServiceInfo, 81cdf0e10cSrcweir ::com::sun::star::beans::XPropertySet, 82cdf0e10cSrcweir ::com::sun::star::container::XEnumerationAccess 83cdf0e10cSrcweir > 84cdf0e10cSrcweir SwXCellBaseClass; 85cdf0e10cSrcweir class SwXCell : public SwXCellBaseClass, 86cdf0e10cSrcweir public SwXText, 87cdf0e10cSrcweir public SwClient 88cdf0e10cSrcweir { 89cdf0e10cSrcweir friend void lcl_setString( SwXCell &rCell, const rtl::OUString &rTxt, 90cdf0e10cSrcweir sal_Bool bKeepNumberFmt = sal_False ); 91cdf0e10cSrcweir friend double lcl_getValue( SwXCell &rCell ); 92cdf0e10cSrcweir friend void lcl_setValue( SwXCell &rCell, double nVal ); 93cdf0e10cSrcweir 94cdf0e10cSrcweir 95cdf0e10cSrcweir const SfxItemPropertySet* m_pPropSet; 96cdf0e10cSrcweir SwTableBox* pBox; // only set in non-XML import 97cdf0e10cSrcweir const SwStartNode* pStartNode; // only set in XML import 98cdf0e10cSrcweir 99cdf0e10cSrcweir // table position where pBox was found last 100cdf0e10cSrcweir sal_uInt16 nFndPos; 101cdf0e10cSrcweir 102cdf0e10cSrcweir protected: 103cdf0e10cSrcweir virtual const SwStartNode *GetStartNode() const; 104cdf0e10cSrcweir 105cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< 106cdf0e10cSrcweir ::com::sun::star::text::XTextCursor > 107cdf0e10cSrcweir CreateCursor() 108cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 109cdf0e10cSrcweir 110cdf0e10cSrcweir bool IsValid() const; 111cdf0e10cSrcweir 112cdf0e10cSrcweir virtual ~SwXCell(); 113cdf0e10cSrcweir 114cdf0e10cSrcweir //SwClient 115cdf0e10cSrcweir virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew); 116cdf0e10cSrcweir 117cdf0e10cSrcweir public: 118cdf0e10cSrcweir SwXCell(SwFrmFmt* pTblFmt, SwTableBox* pBox, sal_uInt16 nPos=USHRT_MAX ); 119cdf0e10cSrcweir SwXCell(SwFrmFmt* pTblFmt, const SwStartNode& rStartNode); // XML import interface 120cdf0e10cSrcweir 121cdf0e10cSrcweir 122cdf0e10cSrcweir TYPEINFO(); 123cdf0e10cSrcweir 124cdf0e10cSrcweir static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId(); 125cdf0e10cSrcweir 126cdf0e10cSrcweir //XUnoTunnel 127cdf0e10cSrcweir virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException); 128cdf0e10cSrcweir 129cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException); 130cdf0e10cSrcweir virtual void SAL_CALL acquire( ) throw(); 131cdf0e10cSrcweir virtual void SAL_CALL release( ) throw(); 132cdf0e10cSrcweir 133cdf0e10cSrcweir //XTypeProvider 134cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException); 135cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException); 136cdf0e10cSrcweir 137cdf0e10cSrcweir //XCell 138cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getFormula( ) throw(::com::sun::star::uno::RuntimeException); 139cdf0e10cSrcweir virtual void SAL_CALL setFormula( const ::rtl::OUString& aFormula ) throw(::com::sun::star::uno::RuntimeException); 140cdf0e10cSrcweir virtual double SAL_CALL getValue( ) throw(::com::sun::star::uno::RuntimeException); 141cdf0e10cSrcweir virtual void SAL_CALL setValue( double nValue ) throw(::com::sun::star::uno::RuntimeException); 142cdf0e10cSrcweir virtual ::com::sun::star::table::CellContentType SAL_CALL getType( ) throw(::com::sun::star::uno::RuntimeException); 143cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getError( ) throw(::com::sun::star::uno::RuntimeException); 144cdf0e10cSrcweir 145cdf0e10cSrcweir //XText 146cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor > SAL_CALL createTextCursor(void) throw( ::com::sun::star::uno::RuntimeException ); 147cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor > SAL_CALL createTextCursorByRange(const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > & aTextPosition) throw( ::com::sun::star::uno::RuntimeException ); 148cdf0e10cSrcweir virtual void SAL_CALL setString(const rtl::OUString& aString) throw( ::com::sun::star::uno::RuntimeException ); 149cdf0e10cSrcweir 150cdf0e10cSrcweir //XPropertySet 151cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); 152cdf0e10cSrcweir 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); 153cdf0e10cSrcweir 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); 154cdf0e10cSrcweir 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); 155cdf0e10cSrcweir 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); 156cdf0e10cSrcweir 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); 157cdf0e10cSrcweir 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); 158cdf0e10cSrcweir 159cdf0e10cSrcweir //XServiceInfo 160cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); 161cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); 162cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); 163cdf0e10cSrcweir 164cdf0e10cSrcweir //XEnumerationAccess - frueher XParagraphEnumerationAccess 165cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL createEnumeration(void) throw( ::com::sun::star::uno::RuntimeException ); 166cdf0e10cSrcweir 167cdf0e10cSrcweir //XElementAccess 168cdf0e10cSrcweir virtual ::com::sun::star::uno::Type SAL_CALL getElementType( ) throw(::com::sun::star::uno::RuntimeException); 169cdf0e10cSrcweir virtual sal_Bool SAL_CALL hasElements( ) throw(::com::sun::star::uno::RuntimeException); 170cdf0e10cSrcweir 171cdf0e10cSrcweir SwTableBox* GetTblBox()const {return pBox;} 172cdf0e10cSrcweir static SwXCell* CreateXCell(SwFrmFmt* pTblFmt, SwTableBox* pBox, SwTable *pTbl = 0 ); 173cdf0e10cSrcweir SwTableBox* FindBox(SwTable* pTable, SwTableBox* pBox); 174cdf0e10cSrcweir 175cdf0e10cSrcweir SwFrmFmt* GetFrmFmt() const { return (SwFrmFmt*)GetRegisteredIn(); } 176cdf0e10cSrcweir }; 177cdf0e10cSrcweir /* -----------------27.06.98 15:40------------------- 178cdf0e10cSrcweir * 179cdf0e10cSrcweir * --------------------------------------------------*/ 180cdf0e10cSrcweir class SwXTextTableRow : public cppu::WeakImplHelper2 181cdf0e10cSrcweir < 182cdf0e10cSrcweir ::com::sun::star::beans::XPropertySet, 183cdf0e10cSrcweir ::com::sun::star::lang::XServiceInfo 184cdf0e10cSrcweir >, 185cdf0e10cSrcweir public SwClient 186cdf0e10cSrcweir { 187cdf0e10cSrcweir const SfxItemPropertySet* m_pPropSet; 188cdf0e10cSrcweir SwTableLine* pLine; 189cdf0e10cSrcweir 190cdf0e10cSrcweir SwFrmFmt* GetFrmFmt() const { return (SwFrmFmt*)GetRegisteredIn(); } 191cdf0e10cSrcweir protected: 192cdf0e10cSrcweir virtual ~SwXTextTableRow(); 193cdf0e10cSrcweir //SwClient 194cdf0e10cSrcweir virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew); 195cdf0e10cSrcweir 196cdf0e10cSrcweir public: 197cdf0e10cSrcweir SwXTextTableRow(SwFrmFmt* pFmt, SwTableLine* pLine); 198cdf0e10cSrcweir 199cdf0e10cSrcweir 200cdf0e10cSrcweir TYPEINFO(); 201cdf0e10cSrcweir 202cdf0e10cSrcweir //XPropertySet 203cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); 204cdf0e10cSrcweir 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); 205cdf0e10cSrcweir 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); 206cdf0e10cSrcweir 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); 207cdf0e10cSrcweir 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); 208cdf0e10cSrcweir 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); 209cdf0e10cSrcweir 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); 210cdf0e10cSrcweir 211cdf0e10cSrcweir //XServiceInfo 212cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); 213cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); 214cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); 215cdf0e10cSrcweir 216cdf0e10cSrcweir const SwTableLine* GetTblRow() const {return pLine;} 217cdf0e10cSrcweir static SwTableLine* FindLine(SwTable* pTable, SwTableLine* pLine); 218cdf0e10cSrcweir }; 219cdf0e10cSrcweir /* -----------------20.07.98 13:03------------------- 220cdf0e10cSrcweir * 221cdf0e10cSrcweir * --------------------------------------------------*/ 222cdf0e10cSrcweir typedef cppu::WeakImplHelper3< 223cdf0e10cSrcweir ::com::sun::star::text::XTextTableCursor, 224cdf0e10cSrcweir ::com::sun::star::lang::XServiceInfo, 225cdf0e10cSrcweir ::com::sun::star::beans::XPropertySet 226cdf0e10cSrcweir > SwXTextTableCursor_Base; 227cdf0e10cSrcweir class SW_DLLPUBLIC SwXTextTableCursor : public SwXTextTableCursor_Base 228cdf0e10cSrcweir ,public SwClient 229cdf0e10cSrcweir ,public OTextCursorHelper 230cdf0e10cSrcweir { 231cdf0e10cSrcweir SwDepend aCrsrDepend; 232cdf0e10cSrcweir const SfxItemPropertySet* m_pPropSet; 233cdf0e10cSrcweir 234cdf0e10cSrcweir // SwUnoCrsr* GetCrsr() const { return (SwUnoCrsr*)aCrsrDepend.GetRegisteredIn(); } 235cdf0e10cSrcweir 236cdf0e10cSrcweir protected: 237cdf0e10cSrcweir virtual ~SwXTextTableCursor(); 238cdf0e10cSrcweir public: 239cdf0e10cSrcweir SwXTextTableCursor(SwFrmFmt* pFmt, SwTableBox* pBox); 240cdf0e10cSrcweir SwXTextTableCursor(SwFrmFmt& rTableFmt, 241cdf0e10cSrcweir const SwTableCursor* pTableSelection); 242cdf0e10cSrcweir 243cdf0e10cSrcweir 244cdf0e10cSrcweir DECLARE_XINTERFACE() 245cdf0e10cSrcweir 246cdf0e10cSrcweir //XTextTableCursor 247cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getRangeName( ) throw(::com::sun::star::uno::RuntimeException); 248cdf0e10cSrcweir virtual sal_Bool SAL_CALL gotoCellByName( const ::rtl::OUString& aCellName, sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException); 249cdf0e10cSrcweir virtual sal_Bool SAL_CALL goLeft( sal_Int16 nCount, sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException); 250cdf0e10cSrcweir virtual sal_Bool SAL_CALL goRight( sal_Int16 nCount, sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException); 251cdf0e10cSrcweir virtual sal_Bool SAL_CALL goUp( sal_Int16 nCount, sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException); 252cdf0e10cSrcweir virtual sal_Bool SAL_CALL goDown( sal_Int16 nCount, sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException); 253cdf0e10cSrcweir virtual void SAL_CALL gotoStart( sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException); 254cdf0e10cSrcweir virtual void SAL_CALL gotoEnd( sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException); 255cdf0e10cSrcweir virtual sal_Bool SAL_CALL mergeRange( ) throw(::com::sun::star::uno::RuntimeException); 256cdf0e10cSrcweir virtual sal_Bool SAL_CALL splitRange( sal_Int16 Count, sal_Bool Horizontal ) throw(::com::sun::star::uno::RuntimeException); 257cdf0e10cSrcweir 258cdf0e10cSrcweir //XPropertySet 259cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); 260cdf0e10cSrcweir 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); 261cdf0e10cSrcweir 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); 262cdf0e10cSrcweir 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); 263cdf0e10cSrcweir 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); 264cdf0e10cSrcweir 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); 265cdf0e10cSrcweir 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); 266cdf0e10cSrcweir 267cdf0e10cSrcweir //XServiceInfo 268cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); 269cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); 270cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); 271cdf0e10cSrcweir 272cdf0e10cSrcweir //SwClient 273cdf0e10cSrcweir virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew); 274cdf0e10cSrcweir 275cdf0e10cSrcweir // ITextCursorHelper 276cdf0e10cSrcweir virtual const SwPaM* GetPaM() const; 277cdf0e10cSrcweir virtual SwPaM* GetPaM(); 278cdf0e10cSrcweir virtual const SwDoc* GetDoc() const; 279cdf0e10cSrcweir virtual SwDoc* GetDoc(); 280cdf0e10cSrcweir 281cdf0e10cSrcweir const SwUnoCrsr* GetCrsr() const; 282cdf0e10cSrcweir SwUnoCrsr* GetCrsr(); 283cdf0e10cSrcweir SwFrmFmt* GetFrmFmt() const { return (SwFrmFmt*)GetRegisteredIn(); } 284cdf0e10cSrcweir }; 285cdf0e10cSrcweir 286cdf0e10cSrcweir /*-----------------11.12.97 09:38------------------- 287cdf0e10cSrcweir 288cdf0e10cSrcweir --------------------------------------------------*/ 289cdf0e10cSrcweir struct SwRangeDescriptor 290cdf0e10cSrcweir { 291cdf0e10cSrcweir sal_Int32 nTop; 292cdf0e10cSrcweir sal_Int32 nLeft; 293cdf0e10cSrcweir sal_Int32 nBottom; 294cdf0e10cSrcweir sal_Int32 nRight; 295cdf0e10cSrcweir 296cdf0e10cSrcweir void Normalize(); 297cdf0e10cSrcweir }; 298cdf0e10cSrcweir 299cdf0e10cSrcweir class SwTableProperties_Impl; 300cdf0e10cSrcweir class SwXTextTable : public cppu::WeakImplHelper10 301cdf0e10cSrcweir < 302cdf0e10cSrcweir ::com::sun::star::text::XTextTable, 303cdf0e10cSrcweir ::com::sun::star::lang::XServiceInfo, 304cdf0e10cSrcweir ::com::sun::star::table::XCellRange, 305cdf0e10cSrcweir ::com::sun::star::chart::XChartDataArray, 306cdf0e10cSrcweir ::com::sun::star::beans::XPropertySet, 307cdf0e10cSrcweir ::com::sun::star::container::XNamed, 308cdf0e10cSrcweir ::com::sun::star::table::XAutoFormattable, 309cdf0e10cSrcweir ::com::sun::star::util::XSortable, 310cdf0e10cSrcweir ::com::sun::star::lang::XUnoTunnel, 311cdf0e10cSrcweir ::com::sun::star::sheet::XCellRangeData 312cdf0e10cSrcweir >, 313cdf0e10cSrcweir public SwClient 314cdf0e10cSrcweir { 315cdf0e10cSrcweir SwEventListenerContainer aLstnrCntnr; 316cdf0e10cSrcweir SwChartEventListenerContainer aChartLstnrCntnr; 317cdf0e10cSrcweir const SfxItemPropertySet* m_pPropSet; 318cdf0e10cSrcweir 319cdf0e10cSrcweir // Descriptor-interface 320cdf0e10cSrcweir SwTableProperties_Impl* pTableProps; 321cdf0e10cSrcweir String m_sTableName; 322cdf0e10cSrcweir sal_Bool bIsDescriptor; 323cdf0e10cSrcweir unsigned short nRows; 324cdf0e10cSrcweir unsigned short nColumns; 325cdf0e10cSrcweir 326cdf0e10cSrcweir 327cdf0e10cSrcweir sal_Bool bFirstRowAsLabel :1; 328cdf0e10cSrcweir sal_Bool bFirstColumnAsLabel :1; 329cdf0e10cSrcweir protected: 330cdf0e10cSrcweir virtual ~SwXTextTable(); 331cdf0e10cSrcweir public: 332cdf0e10cSrcweir SwXTextTable(); 333cdf0e10cSrcweir SwXTextTable(SwFrmFmt& rFrmFmt); 334cdf0e10cSrcweir 335cdf0e10cSrcweir 336cdf0e10cSrcweir static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId(); 337cdf0e10cSrcweir 338cdf0e10cSrcweir //XUnoTunnel 339cdf0e10cSrcweir virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException); 340cdf0e10cSrcweir 341cdf0e10cSrcweir TYPEINFO(); 342cdf0e10cSrcweir 343cdf0e10cSrcweir //XTextTable 344cdf0e10cSrcweir virtual void SAL_CALL initialize( sal_Int32 nRows, sal_Int32 nColumns ) throw(::com::sun::star::uno::RuntimeException); 345cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XTableRows > SAL_CALL getRows( ) throw(::com::sun::star::uno::RuntimeException); 346cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XTableColumns > SAL_CALL getColumns( ) throw(::com::sun::star::uno::RuntimeException); 347cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCell > SAL_CALL getCellByName( const ::rtl::OUString& aCellName ) throw(::com::sun::star::uno::RuntimeException); 348cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getCellNames( ) throw(::com::sun::star::uno::RuntimeException); 349cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextTableCursor > SAL_CALL createCursorByCellName( const ::rtl::OUString& aCellName ) throw(::com::sun::star::uno::RuntimeException); 350cdf0e10cSrcweir 351cdf0e10cSrcweir //XTextContent 352cdf0e10cSrcweir 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 ); 353cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getAnchor( ) throw(::com::sun::star::uno::RuntimeException); 354cdf0e10cSrcweir 355cdf0e10cSrcweir //XComponent 356cdf0e10cSrcweir virtual void SAL_CALL dispose(void) throw( ::com::sun::star::uno::RuntimeException ); 357cdf0e10cSrcweir virtual void SAL_CALL addEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener) throw( ::com::sun::star::uno::RuntimeException ); 358cdf0e10cSrcweir virtual void SAL_CALL removeEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener) throw( ::com::sun::star::uno::RuntimeException ); 359cdf0e10cSrcweir 360cdf0e10cSrcweir //XCellRange 361cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCell > SAL_CALL getCellByPosition( sal_Int32 nColumn, sal_Int32 nRow ) throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); 362cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL getCellRangeByPosition( sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom ) throw(com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); 363cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL getCellRangeByName( const ::rtl::OUString& aRange ) throw(::com::sun::star::uno::RuntimeException); 364cdf0e10cSrcweir 365cdf0e10cSrcweir //XChartDataArray 366cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > > SAL_CALL getData( ) throw(::com::sun::star::uno::RuntimeException); 367cdf0e10cSrcweir virtual void SAL_CALL setData( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& aData ) throw(::com::sun::star::uno::RuntimeException); 368cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getRowDescriptions( ) throw(::com::sun::star::uno::RuntimeException); 369cdf0e10cSrcweir virtual void SAL_CALL setRowDescriptions( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aRowDescriptions ) throw(::com::sun::star::uno::RuntimeException); 370cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getColumnDescriptions( ) throw(::com::sun::star::uno::RuntimeException); 371cdf0e10cSrcweir virtual void SAL_CALL setColumnDescriptions( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aColumnDescriptions ) throw(::com::sun::star::uno::RuntimeException); 372cdf0e10cSrcweir 373cdf0e10cSrcweir //XChartData 374cdf0e10cSrcweir virtual void SAL_CALL addChartDataChangeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::chart::XChartDataChangeEventListener >& aListener ) throw(::com::sun::star::uno::RuntimeException); 375cdf0e10cSrcweir virtual void SAL_CALL removeChartDataChangeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::chart::XChartDataChangeEventListener >& aListener ) throw(::com::sun::star::uno::RuntimeException); 376cdf0e10cSrcweir virtual double SAL_CALL getNotANumber( ) throw(::com::sun::star::uno::RuntimeException); 377cdf0e10cSrcweir virtual sal_Bool SAL_CALL isNotANumber( double nNumber ) throw(::com::sun::star::uno::RuntimeException); 378cdf0e10cSrcweir 379cdf0e10cSrcweir //XSortable 380cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL createSortDescriptor(void) throw( ::com::sun::star::uno::RuntimeException ); 381cdf0e10cSrcweir virtual void SAL_CALL sort(const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& xDescriptor) throw( ::com::sun::star::uno::RuntimeException ); 382cdf0e10cSrcweir 383cdf0e10cSrcweir //XAutoFormattable 384cdf0e10cSrcweir virtual void SAL_CALL autoFormat(const rtl::OUString& aName) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException ); 385cdf0e10cSrcweir 386cdf0e10cSrcweir //XPropertySet 387cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); 388cdf0e10cSrcweir 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); 389cdf0e10cSrcweir 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); 390cdf0e10cSrcweir 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); 391cdf0e10cSrcweir 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); 392cdf0e10cSrcweir 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); 393cdf0e10cSrcweir 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); 394cdf0e10cSrcweir 395cdf0e10cSrcweir //XNamed 396cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getName(void) throw( ::com::sun::star::uno::RuntimeException ); 397cdf0e10cSrcweir virtual void SAL_CALL setName(const rtl::OUString& Name_) throw( ::com::sun::star::uno::RuntimeException ); 398cdf0e10cSrcweir 399cdf0e10cSrcweir //XCellRangeData 400cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > > SAL_CALL getDataArray( ) throw (::com::sun::star::uno::RuntimeException); 401cdf0e10cSrcweir virtual void SAL_CALL setDataArray( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > >& aArray ) throw (::com::sun::star::uno::RuntimeException); 402cdf0e10cSrcweir 403cdf0e10cSrcweir //XServiceInfo 404cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); 405cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); 406cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); 407cdf0e10cSrcweir 408cdf0e10cSrcweir void attachToRange(const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > & xTextRange)throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException ); 409cdf0e10cSrcweir 410cdf0e10cSrcweir sal_uInt16 getRowCount(void); 411cdf0e10cSrcweir sal_uInt16 getColumnCount(void); 412cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > GetRangeByName(SwFrmFmt* pFmt, SwTable* pTable, 413cdf0e10cSrcweir const String& sTLName, const String& sBRName, 414cdf0e10cSrcweir SwRangeDescriptor& rDesc); 415cdf0e10cSrcweir 416cdf0e10cSrcweir //SwClient 417cdf0e10cSrcweir virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew); 418cdf0e10cSrcweir 419cdf0e10cSrcweir SwFrmFmt* GetFrmFmt() const { return (SwFrmFmt*)GetRegisteredIn(); } 420cdf0e10cSrcweir }; 421cdf0e10cSrcweir 422cdf0e10cSrcweir /* -----------------27.04.98 16:41------------------- 423cdf0e10cSrcweir * 424cdf0e10cSrcweir * --------------------------------------------------*/ 425cdf0e10cSrcweir class SwXCellRange : public cppu::WeakImplHelper7 426cdf0e10cSrcweir < 427cdf0e10cSrcweir ::com::sun::star::table::XCellRange, 428cdf0e10cSrcweir ::com::sun::star::lang::XServiceInfo, 429cdf0e10cSrcweir ::com::sun::star::lang::XUnoTunnel, 430cdf0e10cSrcweir ::com::sun::star::beans::XPropertySet, 431cdf0e10cSrcweir ::com::sun::star::chart::XChartDataArray, 432cdf0e10cSrcweir ::com::sun::star::util::XSortable, 433cdf0e10cSrcweir ::com::sun::star::sheet::XCellRangeData 434cdf0e10cSrcweir >, 435cdf0e10cSrcweir public SwClient 436cdf0e10cSrcweir { 437cdf0e10cSrcweir SwDepend aCursorDepend; //the cursor is removed after the doc has been removed 438cdf0e10cSrcweir SwChartEventListenerContainer aChartLstnrCntnr; 439cdf0e10cSrcweir 440cdf0e10cSrcweir SwRangeDescriptor aRgDesc; 441cdf0e10cSrcweir const SfxItemPropertySet* m_pPropSet; 442cdf0e10cSrcweir 443cdf0e10cSrcweir SwUnoCrsr* pTblCrsr; 444cdf0e10cSrcweir 445cdf0e10cSrcweir sal_Bool bFirstRowAsLabel :1; 446cdf0e10cSrcweir sal_Bool bFirstColumnAsLabel :1; 447cdf0e10cSrcweir 448cdf0e10cSrcweir public: 449cdf0e10cSrcweir SwXCellRange(SwUnoCrsr* pCrsr, SwFrmFmt& rFrmFmt, SwRangeDescriptor& rDesc); 450cdf0e10cSrcweir ~SwXCellRange(); 451cdf0e10cSrcweir 452cdf0e10cSrcweir TYPEINFO(); 453cdf0e10cSrcweir 454cdf0e10cSrcweir static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId(); 455cdf0e10cSrcweir 456cdf0e10cSrcweir //XUnoTunnel 457cdf0e10cSrcweir virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException); 458cdf0e10cSrcweir 459cdf0e10cSrcweir 460cdf0e10cSrcweir //XCellRange 461cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCell > SAL_CALL getCellByPosition( sal_Int32 nColumn, sal_Int32 nRow ) throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); 462cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL getCellRangeByPosition( sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom ) throw(com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); 463cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL getCellRangeByName( const ::rtl::OUString& aRange ) throw(::com::sun::star::uno::RuntimeException); 464cdf0e10cSrcweir 465cdf0e10cSrcweir //XPropertySet 466cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); 467cdf0e10cSrcweir 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); 468cdf0e10cSrcweir 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); 469cdf0e10cSrcweir 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); 470cdf0e10cSrcweir 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); 471cdf0e10cSrcweir 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); 472cdf0e10cSrcweir 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); 473cdf0e10cSrcweir 474cdf0e10cSrcweir //XChartData 475cdf0e10cSrcweir virtual void SAL_CALL addChartDataChangeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::chart::XChartDataChangeEventListener >& aListener ) throw(::com::sun::star::uno::RuntimeException); 476cdf0e10cSrcweir virtual void SAL_CALL removeChartDataChangeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::chart::XChartDataChangeEventListener >& aListener ) throw(::com::sun::star::uno::RuntimeException); 477cdf0e10cSrcweir virtual double SAL_CALL getNotANumber( ) throw(::com::sun::star::uno::RuntimeException); 478cdf0e10cSrcweir virtual sal_Bool SAL_CALL isNotANumber( double nNumber ) throw(::com::sun::star::uno::RuntimeException); 479cdf0e10cSrcweir 480cdf0e10cSrcweir //XChartDataArray 481cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > > SAL_CALL getData( ) throw(::com::sun::star::uno::RuntimeException); 482cdf0e10cSrcweir virtual void SAL_CALL setData( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& aData ) throw(::com::sun::star::uno::RuntimeException); 483cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getRowDescriptions( ) throw(::com::sun::star::uno::RuntimeException); 484cdf0e10cSrcweir virtual void SAL_CALL setRowDescriptions( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aRowDescriptions ) throw(::com::sun::star::uno::RuntimeException); 485cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getColumnDescriptions( ) throw(::com::sun::star::uno::RuntimeException); 486cdf0e10cSrcweir virtual void SAL_CALL setColumnDescriptions( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aColumnDescriptions ) throw(::com::sun::star::uno::RuntimeException); 487cdf0e10cSrcweir 488cdf0e10cSrcweir //XSortable 489cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL createSortDescriptor(void) throw( ::com::sun::star::uno::RuntimeException ); 490cdf0e10cSrcweir virtual void SAL_CALL sort(const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& xDescriptor) throw( ::com::sun::star::uno::RuntimeException ); 491cdf0e10cSrcweir 492cdf0e10cSrcweir //XCellRangeData 493cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > > SAL_CALL getDataArray( ) throw (::com::sun::star::uno::RuntimeException); 494cdf0e10cSrcweir virtual void SAL_CALL setDataArray( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > >& aArray ) throw (::com::sun::star::uno::RuntimeException); 495cdf0e10cSrcweir 496cdf0e10cSrcweir //XServiceInfo 497cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); 498cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); 499cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); 500cdf0e10cSrcweir 501cdf0e10cSrcweir //SwClient 502cdf0e10cSrcweir virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew); 503cdf0e10cSrcweir 504cdf0e10cSrcweir SwFrmFmt* GetFrmFmt() const { return (SwFrmFmt*)GetRegisteredIn(); } 505cdf0e10cSrcweir sal_uInt16 getRowCount(void); 506cdf0e10cSrcweir sal_uInt16 getColumnCount(void); 507cdf0e10cSrcweir 508cdf0e10cSrcweir const SwUnoCrsr* GetTblCrsr() const; 509cdf0e10cSrcweir 510cdf0e10cSrcweir // for SwChartDataSequence 511cdf0e10cSrcweir void GetDataSequence( 512cdf0e10cSrcweir ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > *pAnySeq, 513cdf0e10cSrcweir ::com::sun::star::uno::Sequence< ::rtl::OUString > *pTxtSeq, 514cdf0e10cSrcweir ::com::sun::star::uno::Sequence< double > *pDblSeq, 515cdf0e10cSrcweir sal_Bool bForceNumberResults = sal_False ) throw (::com::sun::star::uno::RuntimeException); 516cdf0e10cSrcweir 517cdf0e10cSrcweir }; 518cdf0e10cSrcweir /* -----------------03.02.99 07:31------------------- 519cdf0e10cSrcweir * 520cdf0e10cSrcweir * --------------------------------------------------*/ 521cdf0e10cSrcweir class SwXTableRows : public cppu::WeakImplHelper2 522cdf0e10cSrcweir < 523cdf0e10cSrcweir ::com::sun::star::table::XTableRows, 524cdf0e10cSrcweir ::com::sun::star::lang::XServiceInfo 525cdf0e10cSrcweir >, 526cdf0e10cSrcweir public SwClient 527cdf0e10cSrcweir 528cdf0e10cSrcweir { 529cdf0e10cSrcweir SwFrmFmt* GetFrmFmt() const { return (SwFrmFmt*)GetRegisteredIn(); } 530cdf0e10cSrcweir protected: 531cdf0e10cSrcweir virtual ~SwXTableRows(); 532cdf0e10cSrcweir public: 533cdf0e10cSrcweir SwXTableRows(SwFrmFmt& rFrmFmt); 534cdf0e10cSrcweir 535cdf0e10cSrcweir 536cdf0e10cSrcweir TYPEINFO(); 537cdf0e10cSrcweir 538cdf0e10cSrcweir // automatisch auskommentiert - [getIdlClass or queryInterface] - Bitte XTypeProvider benutzen! 539cdf0e10cSrcweir // virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::reflection::XIdlClass > > getIdlClasses(void) throw( ::com::sun::star::uno::RuntimeException ); 540cdf0e10cSrcweir 541cdf0e10cSrcweir // automatisch auskommentiert - [getIdlClass or queryInterface] - Bitte XTypeProvider benutzen! 542cdf0e10cSrcweir // virtual sal_Bool queryInterface( ::com::sun::star::uno::Uik aUik, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & rOut ); 543cdf0e10cSrcweir 544cdf0e10cSrcweir // SMART_UNO_DECLARATION( SwXTableRows, UsrObject ); 545cdf0e10cSrcweir 546cdf0e10cSrcweir //XIndexAccess 547cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getCount(void) throw( ::com::sun::star::uno::RuntimeException ); 548cdf0e10cSrcweir 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 ); 549cdf0e10cSrcweir 550cdf0e10cSrcweir //XElementAccess 551cdf0e10cSrcweir virtual ::com::sun::star::uno::Type SAL_CALL getElementType( ) throw(::com::sun::star::uno::RuntimeException); 552cdf0e10cSrcweir virtual sal_Bool SAL_CALL hasElements( ) throw(::com::sun::star::uno::RuntimeException); 553cdf0e10cSrcweir 554cdf0e10cSrcweir //XTableRows 555cdf0e10cSrcweir virtual void SAL_CALL insertByIndex(sal_Int32 nIndex, sal_Int32 nCount) throw( ::com::sun::star::uno::RuntimeException ); 556cdf0e10cSrcweir virtual void SAL_CALL removeByIndex(sal_Int32 nIndex, sal_Int32 nCount) throw( ::com::sun::star::uno::RuntimeException ); 557cdf0e10cSrcweir 558cdf0e10cSrcweir //XServiceInfo 559cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); 560cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); 561cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); 562cdf0e10cSrcweir 563cdf0e10cSrcweir //SwClient 564cdf0e10cSrcweir virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew); 565cdf0e10cSrcweir }; 566cdf0e10cSrcweir 567cdf0e10cSrcweir /* -----------------03.02.99 07:31------------------- 568cdf0e10cSrcweir * 569cdf0e10cSrcweir * --------------------------------------------------*/ 570cdf0e10cSrcweir class SwXTableColumns : public cppu::WeakImplHelper2 571cdf0e10cSrcweir < 572cdf0e10cSrcweir ::com::sun::star::table::XTableColumns, 573cdf0e10cSrcweir ::com::sun::star::lang::XServiceInfo 574cdf0e10cSrcweir >, 575cdf0e10cSrcweir public SwClient 576cdf0e10cSrcweir 577cdf0e10cSrcweir { 578cdf0e10cSrcweir SwFrmFmt* GetFrmFmt() const { return (SwFrmFmt*)GetRegisteredIn(); } 579cdf0e10cSrcweir protected: 580cdf0e10cSrcweir virtual ~SwXTableColumns(); 581cdf0e10cSrcweir public: 582cdf0e10cSrcweir SwXTableColumns(SwFrmFmt& rFrmFmt); 583cdf0e10cSrcweir 584cdf0e10cSrcweir 585cdf0e10cSrcweir TYPEINFO(); 586cdf0e10cSrcweir // automatisch auskommentiert - [getIdlClass or queryInterface] - Bitte XTypeProvider benutzen! 587cdf0e10cSrcweir // virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::reflection::XIdlClass > > getIdlClasses(void) throw( ::com::sun::star::uno::RuntimeException ); 588cdf0e10cSrcweir 589cdf0e10cSrcweir // automatisch auskommentiert - [getIdlClass or queryInterface] - Bitte XTypeProvider benutzen! 590cdf0e10cSrcweir // virtual sal_Bool queryInterface( ::com::sun::star::uno::Uik aUik, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & rOut ); 591cdf0e10cSrcweir 592cdf0e10cSrcweir // SMART_UNO_DECLARATION( SwXTableColumns, UsrObject ); 593cdf0e10cSrcweir 594cdf0e10cSrcweir //XIndexAccess 595cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getCount(void) throw( ::com::sun::star::uno::RuntimeException ); 596cdf0e10cSrcweir 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 ); 597cdf0e10cSrcweir 598cdf0e10cSrcweir //XElementAccess 599cdf0e10cSrcweir virtual ::com::sun::star::uno::Type SAL_CALL getElementType( ) throw(::com::sun::star::uno::RuntimeException); 600cdf0e10cSrcweir virtual sal_Bool SAL_CALL hasElements( ) throw(::com::sun::star::uno::RuntimeException); 601cdf0e10cSrcweir 602cdf0e10cSrcweir //XTableColumns 603cdf0e10cSrcweir virtual void SAL_CALL insertByIndex(sal_Int32 nIndex, sal_Int32 nCount) throw( ::com::sun::star::uno::RuntimeException ); 604cdf0e10cSrcweir virtual void SAL_CALL removeByIndex(sal_Int32 nIndex, sal_Int32 nCount) throw( ::com::sun::star::uno::RuntimeException ); 605cdf0e10cSrcweir 606cdf0e10cSrcweir //XServiceInfo 607cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); 608cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); 609cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); 610cdf0e10cSrcweir 611cdf0e10cSrcweir //SwClient 612cdf0e10cSrcweir virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew); 613cdf0e10cSrcweir }; 614cdf0e10cSrcweir 615cdf0e10cSrcweir #endif 616cdf0e10cSrcweir 617cdf0e10cSrcweir 618cdf0e10cSrcweir 619cdf0e10cSrcweir 620