1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: unotbl.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
36 #ifndef _COM_SUN_STAR_CHART_XCHARTDATA_HPP_
37 #include <com/sun/star/chart/XChartData.hpp>
39 #ifndef _COM_SUN_STAR_CHART_XCHARTDATAARRAY_HPP_
40 #include <com/sun/star/chart/XChartDataArray.hpp>
42 #ifndef _COM_SUN_STAR_TEXT_XTEXTTABLECURSOR_HPP_
43 #include <com/sun/star/text/XTextTableCursor.hpp>
45 #ifndef _COM_SUN_STAR_TEXT_XTEXTTABLE_HPP_
46 #include <com/sun/star/text/XTextTable.hpp>
48 #ifndef _COM_SUN_STAR_TABLE_XCELLRANGE_HPP_
49 #include <com/sun/star/table/XCellRange.hpp>
51 #ifndef _COM_SUN_STAR_SHEET_XCELLRANGEDATA_HPP_
52 #include <com/sun/star/sheet/XCellRangeData.hpp>
54 #ifndef _COM_SUN_STAR_TABLE_XAUTOFORMATTABLE_HPP_
55 #include <com/sun/star/table/XAutoFormattable.hpp>
58 #ifndef _CPPUHELPER_IMPLBASE10_HXX_
59 #include <cppuhelper/implbase10.hxx> // helper for implementations
61 #ifndef _CPPUHELPER_IMPLBASE7_HXX_
62 #include <cppuhelper/implbase7.hxx> // helper for implementations
64 #ifndef _CPPUHELPER_IMPLBASE5_HXX_
65 #include <cppuhelper/implbase5.hxx> // helper for implementations
75 /* -----------------------------22.09.00 11:10--------------------------------
77 ---------------------------------------------------------------------------*/
78 class SwChartEventListenerContainer
: public SwEventListenerContainer
81 SwChartEventListenerContainer( ::com::sun::star::uno::XInterface
* pxParent
) :
82 SwEventListenerContainer(pxParent
){}
83 void ChartDataChanged();
85 /* ---------------------------------------------------------------------------
87 ---------------------------------------------------------------------------*/
91 ::com::sun::star::table::XCell
,
92 ::com::sun::star::lang::XServiceInfo
,
93 ::com::sun::star::beans::XPropertySet
,
94 ::com::sun::star::container::XEnumerationAccess
97 class SwXCell
: public SwXCellBaseClass
,
101 friend void lcl_setString( SwXCell
&rCell
, const ::rtl::OUString
&rTxt
);
102 friend double lcl_getValue( SwXCell
&rCell
);
103 friend void lcl_setValue( SwXCell
&rCell
, double nVal
);
106 SfxItemPropertySet aPropSet
;
107 SwTableBox
* pBox
; // only set in non-XML import
108 const SwStartNode
* pStartNode
; // only set in XML import
110 // table position where pBox was found last
114 virtual const SwStartNode
*GetStartNode() const;
115 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::text::XTextCursor
> createCursor()throw(::com::sun::star::uno::RuntimeException
);
119 SwXCell(SwFrmFmt
* pTblFmt
, SwTableBox
* pBox
, sal_uInt16 nPos
=USHRT_MAX
);
120 SwXCell(SwFrmFmt
* pTblFmt
, const SwStartNode
& rStartNode
); // XML import interface
125 static const ::com::sun::star::uno::Sequence
< sal_Int8
> & getUnoTunnelId();
128 virtual sal_Int64 SAL_CALL
getSomething( const ::com::sun::star::uno::Sequence
< sal_Int8
>& aIdentifier
) throw(::com::sun::star::uno::RuntimeException
);
130 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type
& aType
) throw(::com::sun::star::uno::RuntimeException
);
131 virtual void SAL_CALL
acquire( ) throw();
132 virtual void SAL_CALL
release( ) throw();
135 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes( ) throw(::com::sun::star::uno::RuntimeException
);
136 virtual ::com::sun::star::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId( ) throw(::com::sun::star::uno::RuntimeException
);
139 virtual ::rtl::OUString SAL_CALL
getFormula( ) throw(::com::sun::star::uno::RuntimeException
);
140 virtual void SAL_CALL
setFormula( const ::rtl::OUString
& aFormula
) throw(::com::sun::star::uno::RuntimeException
);
141 virtual double SAL_CALL
getValue( ) throw(::com::sun::star::uno::RuntimeException
);
142 virtual void SAL_CALL
setValue( double nValue
) throw(::com::sun::star::uno::RuntimeException
);
143 virtual ::com::sun::star::table::CellContentType SAL_CALL
getType( ) throw(::com::sun::star::uno::RuntimeException
);
144 virtual sal_Int32 SAL_CALL
getError( ) throw(::com::sun::star::uno::RuntimeException
);
147 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::text::XTextCursor
> SAL_CALL
createTextCursor(void) throw( ::com::sun::star::uno::RuntimeException
);
148 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
);
149 virtual void SAL_CALL
setString(const ::rtl::OUString
& aString
) throw( ::com::sun::star::uno::RuntimeException
);
152 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySetInfo
> SAL_CALL
getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException
);
153 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
);
154 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
);
155 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
);
156 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
);
157 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
);
158 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
);
161 virtual ::rtl::OUString SAL_CALL
getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException
);
162 virtual BOOL SAL_CALL
supportsService(const ::rtl::OUString
& ServiceName
) throw( ::com::sun::star::uno::RuntimeException
);
163 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException
);
166 virtual void Modify( SfxPoolItem
*pOld
, SfxPoolItem
*pNew
);
168 //XEnumerationAccess - frueher XParagraphEnumerationAccess
169 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::container::XEnumeration
> SAL_CALL
createEnumeration(void) throw( ::com::sun::star::uno::RuntimeException
);
172 virtual ::com::sun::star::uno::Type SAL_CALL
getElementType( ) throw(::com::sun::star::uno::RuntimeException
);
173 virtual sal_Bool SAL_CALL
hasElements( ) throw(::com::sun::star::uno::RuntimeException
);
175 SwTableBox
* GetTblBox()const {return pBox
;}
176 static SwXCell
* CreateXCell(SwFrmFmt
* pTblFmt
, SwTableBox
* pBox
, const String
* pCellName
= 0, SwTable
*pTbl
= 0 );
177 SwTableBox
* FindBox(SwTable
* pTable
, SwTableBox
* pBox
);
179 SwFrmFmt
* GetFrmFmt() const { return (SwFrmFmt
*)GetRegisteredIn(); }
181 /* -----------------27.06.98 15:40-------------------
183 * --------------------------------------------------*/
184 class SwXTextTableRow
: public cppu::WeakImplHelper2
186 ::com::sun::star::beans::XPropertySet
,
187 ::com::sun::star::lang::XServiceInfo
191 SfxItemPropertySet aPropSet
;
194 SwFrmFmt
* GetFrmFmt() const { return (SwFrmFmt
*)GetRegisteredIn(); }
196 virtual ~SwXTextTableRow();
198 SwXTextTableRow(SwFrmFmt
* pFmt
, SwTableLine
* pLine
);
204 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySetInfo
> SAL_CALL
getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException
);
205 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
);
206 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
);
207 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
);
208 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
);
209 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
);
210 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
);
213 virtual ::rtl::OUString SAL_CALL
getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException
);
214 virtual BOOL SAL_CALL
supportsService(const ::rtl::OUString
& ServiceName
) throw( ::com::sun::star::uno::RuntimeException
);
215 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException
);
218 virtual void Modify( SfxPoolItem
*pOld
, SfxPoolItem
*pNew
);
220 const SwTableLine
* GetTblRow() const {return pLine
;}
221 static SwTableLine
* FindLine(SwTable
* pTable
, SwTableLine
* pLine
);
223 /* -----------------20.07.98 13:03-------------------
225 * --------------------------------------------------*/
226 typedef cppu::WeakImplHelper3
<
227 ::com::sun::star::text::XTextTableCursor
,
228 ::com::sun::star::lang::XServiceInfo
,
229 ::com::sun::star::beans::XPropertySet
230 > SwXTextTableCursor_Base
;
231 class SwXTextTableCursor
: public SwXTextTableCursor_Base
233 ,public OTextCursorHelper
235 SwDepend aCrsrDepend
;
236 SfxItemPropertySet aPropSet
;
238 SwFrmFmt
* GetFrmFmt() const { return (SwFrmFmt
*)GetRegisteredIn(); }
239 // SwUnoCrsr* GetCrsr() const { return (SwUnoCrsr*)aCrsrDepend.GetRegisteredIn(); }
242 virtual ~SwXTextTableCursor();
244 SwXTextTableCursor(SwFrmFmt
* pFmt
, SwTableBox
* pBox
);
247 DECLARE_XINTERFACE();
249 virtual ::rtl::OUString SAL_CALL
getRangeName( ) throw(::com::sun::star::uno::RuntimeException
);
250 virtual sal_Bool SAL_CALL
gotoCellByName( const ::rtl::OUString
& aCellName
, sal_Bool bExpand
) throw(::com::sun::star::uno::RuntimeException
);
251 virtual sal_Bool SAL_CALL
goLeft( sal_Int16 nCount
, sal_Bool bExpand
) throw(::com::sun::star::uno::RuntimeException
);
252 virtual sal_Bool SAL_CALL
goRight( sal_Int16 nCount
, sal_Bool bExpand
) throw(::com::sun::star::uno::RuntimeException
);
253 virtual sal_Bool SAL_CALL
goUp( sal_Int16 nCount
, sal_Bool bExpand
) throw(::com::sun::star::uno::RuntimeException
);
254 virtual sal_Bool SAL_CALL
goDown( sal_Int16 nCount
, sal_Bool bExpand
) throw(::com::sun::star::uno::RuntimeException
);
255 virtual void SAL_CALL
gotoStart( sal_Bool bExpand
) throw(::com::sun::star::uno::RuntimeException
);
256 virtual void SAL_CALL
gotoEnd( sal_Bool bExpand
) throw(::com::sun::star::uno::RuntimeException
);
257 virtual sal_Bool SAL_CALL
mergeRange( ) throw(::com::sun::star::uno::RuntimeException
);
258 virtual sal_Bool SAL_CALL
splitRange( sal_Int16 Count
, sal_Bool Horizontal
) throw(::com::sun::star::uno::RuntimeException
);
261 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySetInfo
> SAL_CALL
getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException
);
262 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
);
263 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
);
264 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
);
265 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
);
266 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
);
267 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
);
270 virtual ::rtl::OUString SAL_CALL
getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException
);
271 virtual BOOL SAL_CALL
supportsService(const ::rtl::OUString
& ServiceName
) throw( ::com::sun::star::uno::RuntimeException
);
272 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException
);
275 virtual void Modify( SfxPoolItem
*pOld
, SfxPoolItem
*pNew
);
278 virtual const SwPaM
* GetPaM() const;
279 virtual SwPaM
* GetPaM();
280 virtual const SwDoc
* GetDoc() const;
281 virtual SwDoc
* GetDoc();
283 const SwUnoCrsr
* GetCrsr() const;
284 SwUnoCrsr
* GetCrsr();
287 /*-----------------11.12.97 09:38-------------------
289 --------------------------------------------------*/
290 struct SwRangeDescriptor
298 class SwTableProperties_Impl
;
299 class SwXTextTable
: public cppu::WeakImplHelper10
301 ::com::sun::star::text::XTextTable
,
302 ::com::sun::star::lang::XServiceInfo
,
303 ::com::sun::star::table::XCellRange
,
304 ::com::sun::star::chart::XChartDataArray
,
305 ::com::sun::star::beans::XPropertySet
,
306 ::com::sun::star::container::XNamed
,
307 ::com::sun::star::table::XAutoFormattable
,
308 ::com::sun::star::util::XSortable
,
309 ::com::sun::star::lang::XUnoTunnel
,
310 ::com::sun::star::sheet::XCellRangeData
314 SwEventListenerContainer aLstnrCntnr
;
315 SwChartEventListenerContainer aChartLstnrCntnr
;
316 SfxItemPropertySet aPropSet
;
317 const SfxItemPropertyMap
* _pMap
;
319 // Descriptor-interface
320 SwTableProperties_Impl
* pTableProps
;
322 sal_Bool bIsDescriptor
;
323 unsigned short nRows
;
324 unsigned short nColumns
;
327 sal_Bool bFirstRowAsLabel
:1;
328 sal_Bool bFirstColumnAsLabel
:1;
330 virtual ~SwXTextTable();
333 SwXTextTable(SwFrmFmt
& rFrmFmt
);
336 static const ::com::sun::star::uno::Sequence
< sal_Int8
> & getUnoTunnelId();
339 virtual sal_Int64 SAL_CALL
getSomething( const ::com::sun::star::uno::Sequence
< sal_Int8
>& aIdentifier
) throw(::com::sun::star::uno::RuntimeException
);
344 virtual void SAL_CALL
initialize( sal_Int32 nRows
, sal_Int32 nColumns
) throw(::com::sun::star::uno::RuntimeException
);
345 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::table::XTableRows
> SAL_CALL
getRows( ) throw(::com::sun::star::uno::RuntimeException
);
346 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::table::XTableColumns
> SAL_CALL
getColumns( ) throw(::com::sun::star::uno::RuntimeException
);
347 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::table::XCell
> SAL_CALL
getCellByName( const ::rtl::OUString
& aCellName
) throw(::com::sun::star::uno::RuntimeException
);
348 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getCellNames( ) throw(::com::sun::star::uno::RuntimeException
);
349 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::text::XTextTableCursor
> SAL_CALL
createCursorByCellName( const ::rtl::OUString
& aCellName
) throw(::com::sun::star::uno::RuntimeException
);
352 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
);
353 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::text::XTextRange
> SAL_CALL
getAnchor( ) throw(::com::sun::star::uno::RuntimeException
);
356 virtual void SAL_CALL
dispose(void) throw( ::com::sun::star::uno::RuntimeException
);
357 virtual void SAL_CALL
addEventListener(const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XEventListener
> & aListener
) throw( ::com::sun::star::uno::RuntimeException
);
358 virtual void SAL_CALL
removeEventListener(const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XEventListener
> & aListener
) throw( ::com::sun::star::uno::RuntimeException
);
361 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
);
362 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
);
363 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::table::XCellRange
> SAL_CALL
getCellRangeByName( const ::rtl::OUString
& aRange
) throw(::com::sun::star::uno::RuntimeException
);
366 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Sequence
< double > > SAL_CALL
getData( ) throw(::com::sun::star::uno::RuntimeException
);
367 virtual void SAL_CALL
setData( const ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Sequence
< double > >& aData
) throw(::com::sun::star::uno::RuntimeException
);
368 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getRowDescriptions( ) throw(::com::sun::star::uno::RuntimeException
);
369 virtual void SAL_CALL
setRowDescriptions( const ::com::sun::star::uno::Sequence
< ::rtl::OUString
>& aRowDescriptions
) throw(::com::sun::star::uno::RuntimeException
);
370 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getColumnDescriptions( ) throw(::com::sun::star::uno::RuntimeException
);
371 virtual void SAL_CALL
setColumnDescriptions( const ::com::sun::star::uno::Sequence
< ::rtl::OUString
>& aColumnDescriptions
) throw(::com::sun::star::uno::RuntimeException
);
374 virtual void SAL_CALL
addChartDataChangeEventListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::chart::XChartDataChangeEventListener
>& aListener
) throw(::com::sun::star::uno::RuntimeException
);
375 virtual void SAL_CALL
removeChartDataChangeEventListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::chart::XChartDataChangeEventListener
>& aListener
) throw(::com::sun::star::uno::RuntimeException
);
376 virtual double SAL_CALL
getNotANumber( ) throw(::com::sun::star::uno::RuntimeException
);
377 virtual sal_Bool SAL_CALL
isNotANumber( double nNumber
) throw(::com::sun::star::uno::RuntimeException
);
380 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
> SAL_CALL
createSortDescriptor(void) throw( ::com::sun::star::uno::RuntimeException
);
381 virtual void SAL_CALL
sort(const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& xDescriptor
) throw( ::com::sun::star::uno::RuntimeException
);
384 virtual void SAL_CALL
autoFormat(const ::rtl::OUString
& aName
) throw( ::com::sun::star::lang::IllegalArgumentException
, ::com::sun::star::uno::RuntimeException
);
387 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySetInfo
> SAL_CALL
getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException
);
388 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
);
389 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
);
390 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
);
391 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
);
392 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
);
393 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
);
396 virtual ::rtl::OUString SAL_CALL
getName(void) throw( ::com::sun::star::uno::RuntimeException
);
397 virtual void SAL_CALL
setName(const ::rtl::OUString
& Name_
) throw( ::com::sun::star::uno::RuntimeException
);
400 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
);
401 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
);
404 virtual ::rtl::OUString SAL_CALL
getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException
);
405 virtual BOOL SAL_CALL
supportsService(const ::rtl::OUString
& ServiceName
) throw( ::com::sun::star::uno::RuntimeException
);
406 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException
);
408 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
);
410 sal_uInt16
getRowCount(void);
411 sal_uInt16
getColumnCount(void);
412 ::com::sun::star::uno::Reference
< ::com::sun::star::table::XCellRange
> GetRangeByName(SwFrmFmt
* pFmt
, SwTable
* pTable
,
413 const String
& sTLName
, const String
& sBRName
,
414 SwRangeDescriptor
& rDesc
);
417 virtual void Modify( SfxPoolItem
*pOld
, SfxPoolItem
*pNew
);
419 SwFrmFmt
* GetFrmFmt() const { return (SwFrmFmt
*)GetRegisteredIn(); }
421 static SwXTextTable
* GetImplementation(::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
> xRef
);
424 /* -----------------27.04.98 16:41-------------------
426 * --------------------------------------------------*/
427 class SwXCellRange
: public cppu::WeakImplHelper7
429 ::com::sun::star::table::XCellRange
,
430 ::com::sun::star::lang::XServiceInfo
,
431 ::com::sun::star::lang::XUnoTunnel
,
432 ::com::sun::star::beans::XPropertySet
,
433 ::com::sun::star::chart::XChartDataArray
,
434 ::com::sun::star::util::XSortable
,
435 ::com::sun::star::sheet::XCellRangeData
439 SwDepend aCursorDepend
; //the cursor is removed after the doc has been removed
440 SwChartEventListenerContainer aChartLstnrCntnr
;
442 SwRangeDescriptor aRgDesc
;
443 SfxItemPropertySet aPropSet
;
446 const SfxItemPropertyMap
* _pMap
;
448 sal_Bool bFirstRowAsLabel
:1;
449 sal_Bool bFirstColumnAsLabel
:1;
452 SwXCellRange(SwUnoCrsr
* pCrsr
, SwFrmFmt
& rFrmFmt
, SwRangeDescriptor
& rDesc
);
457 static const ::com::sun::star::uno::Sequence
< sal_Int8
> & getUnoTunnelId();
460 virtual sal_Int64 SAL_CALL
getSomething( const ::com::sun::star::uno::Sequence
< sal_Int8
>& aIdentifier
) throw(::com::sun::star::uno::RuntimeException
);
464 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
);
465 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
);
466 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::table::XCellRange
> SAL_CALL
getCellRangeByName( const ::rtl::OUString
& aRange
) throw(::com::sun::star::uno::RuntimeException
);
469 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySetInfo
> SAL_CALL
getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException
);
470 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
);
471 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
);
472 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
);
473 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
);
474 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
);
475 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
);
478 virtual void SAL_CALL
addChartDataChangeEventListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::chart::XChartDataChangeEventListener
>& aListener
) throw(::com::sun::star::uno::RuntimeException
);
479 virtual void SAL_CALL
removeChartDataChangeEventListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::chart::XChartDataChangeEventListener
>& aListener
) throw(::com::sun::star::uno::RuntimeException
);
480 virtual double SAL_CALL
getNotANumber( ) throw(::com::sun::star::uno::RuntimeException
);
481 virtual sal_Bool SAL_CALL
isNotANumber( double nNumber
) throw(::com::sun::star::uno::RuntimeException
);
484 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Sequence
< double > > SAL_CALL
getData( ) throw(::com::sun::star::uno::RuntimeException
);
485 virtual void SAL_CALL
setData( const ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Sequence
< double > >& aData
) throw(::com::sun::star::uno::RuntimeException
);
486 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getRowDescriptions( ) throw(::com::sun::star::uno::RuntimeException
);
487 virtual void SAL_CALL
setRowDescriptions( const ::com::sun::star::uno::Sequence
< ::rtl::OUString
>& aRowDescriptions
) throw(::com::sun::star::uno::RuntimeException
);
488 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getColumnDescriptions( ) throw(::com::sun::star::uno::RuntimeException
);
489 virtual void SAL_CALL
setColumnDescriptions( const ::com::sun::star::uno::Sequence
< ::rtl::OUString
>& aColumnDescriptions
) throw(::com::sun::star::uno::RuntimeException
);
492 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
> SAL_CALL
createSortDescriptor(void) throw( ::com::sun::star::uno::RuntimeException
);
493 virtual void SAL_CALL
sort(const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& xDescriptor
) throw( ::com::sun::star::uno::RuntimeException
);
496 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
);
497 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
);
500 virtual ::rtl::OUString SAL_CALL
getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException
);
501 virtual BOOL SAL_CALL
supportsService(const ::rtl::OUString
& ServiceName
) throw( ::com::sun::star::uno::RuntimeException
);
502 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException
);
505 virtual void Modify( SfxPoolItem
*pOld
, SfxPoolItem
*pNew
);
507 SwFrmFmt
* GetFrmFmt() const { return (SwFrmFmt
*)GetRegisteredIn(); }
508 sal_uInt16
getRowCount(void);
509 sal_uInt16
getColumnCount(void);
511 /* -----------------03.02.99 07:31-------------------
513 * --------------------------------------------------*/
514 class SwXTableRows
: public cppu::WeakImplHelper2
516 ::com::sun::star::table::XTableRows
,
517 ::com::sun::star::lang::XServiceInfo
522 SwFrmFmt
* GetFrmFmt() const { return (SwFrmFmt
*)GetRegisteredIn(); }
524 virtual ~SwXTableRows();
526 SwXTableRows(SwFrmFmt
& rFrmFmt
);
531 // automatisch auskommentiert - [getIdlClass or queryInterface] - Bitte XTypeProvider benutzen!
532 // virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::reflection::XIdlClass > > getIdlClasses(void) throw( ::com::sun::star::uno::RuntimeException );
534 // automatisch auskommentiert - [getIdlClass or queryInterface] - Bitte XTypeProvider benutzen!
535 // virtual sal_Bool queryInterface( ::com::sun::star::uno::Uik aUik, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & rOut );
537 // SMART_UNO_DECLARATION( SwXTableRows, UsrObject );
540 virtual sal_Int32 SAL_CALL
getCount(void) throw( ::com::sun::star::uno::RuntimeException
);
541 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
);
544 virtual ::com::sun::star::uno::Type SAL_CALL
getElementType( ) throw(::com::sun::star::uno::RuntimeException
);
545 virtual sal_Bool SAL_CALL
hasElements( ) throw(::com::sun::star::uno::RuntimeException
);
548 virtual void SAL_CALL
insertByIndex(sal_Int32 nIndex
, sal_Int32 nCount
) throw( ::com::sun::star::uno::RuntimeException
);
549 virtual void SAL_CALL
removeByIndex(sal_Int32 nIndex
, sal_Int32 nCount
) throw( ::com::sun::star::uno::RuntimeException
);
552 virtual ::rtl::OUString SAL_CALL
getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException
);
553 virtual BOOL SAL_CALL
supportsService(const ::rtl::OUString
& ServiceName
) throw( ::com::sun::star::uno::RuntimeException
);
554 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException
);
557 virtual void Modify( SfxPoolItem
*pOld
, SfxPoolItem
*pNew
);
560 /* -----------------03.02.99 07:31-------------------
562 * --------------------------------------------------*/
563 class SwXTableColumns
: public cppu::WeakImplHelper2
565 ::com::sun::star::table::XTableColumns
,
566 ::com::sun::star::lang::XServiceInfo
571 SwFrmFmt
* GetFrmFmt() const { return (SwFrmFmt
*)GetRegisteredIn(); }
573 virtual ~SwXTableColumns();
575 SwXTableColumns(SwFrmFmt
& rFrmFmt
);
579 // automatisch auskommentiert - [getIdlClass or queryInterface] - Bitte XTypeProvider benutzen!
580 // virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::reflection::XIdlClass > > getIdlClasses(void) throw( ::com::sun::star::uno::RuntimeException );
582 // automatisch auskommentiert - [getIdlClass or queryInterface] - Bitte XTypeProvider benutzen!
583 // virtual sal_Bool queryInterface( ::com::sun::star::uno::Uik aUik, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & rOut );
585 // SMART_UNO_DECLARATION( SwXTableColumns, UsrObject );
588 virtual sal_Int32 SAL_CALL
getCount(void) throw( ::com::sun::star::uno::RuntimeException
);
589 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
);
592 virtual ::com::sun::star::uno::Type SAL_CALL
getElementType( ) throw(::com::sun::star::uno::RuntimeException
);
593 virtual sal_Bool SAL_CALL
hasElements( ) throw(::com::sun::star::uno::RuntimeException
);
596 virtual void SAL_CALL
insertByIndex(sal_Int32 nIndex
, sal_Int32 nCount
) throw( ::com::sun::star::uno::RuntimeException
);
597 virtual void SAL_CALL
removeByIndex(sal_Int32 nIndex
, sal_Int32 nCount
) throw( ::com::sun::star::uno::RuntimeException
);
600 virtual ::rtl::OUString SAL_CALL
getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException
);
601 virtual BOOL SAL_CALL
supportsService(const ::rtl::OUString
& ServiceName
) throw( ::com::sun::star::uno::RuntimeException
);
602 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException
);
605 virtual void Modify( SfxPoolItem
*pOld
, SfxPoolItem
*pNew
);
608 } //namespace binfilter