xref: /aoo41x/main/svx/source/table/cell.hxx (revision cdf0e10c)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #ifndef _SVX_CELL_HXX_
29*cdf0e10cSrcweir #define _SVX_CELL_HXX_
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir #include <com/sun/star/table/XMergeableCell.hpp>
32*cdf0e10cSrcweir #include <com/sun/star/awt/XLayoutConstrains.hpp>
33*cdf0e10cSrcweir #include <com/sun/star/beans/XMultiPropertyStates.hpp>
34*cdf0e10cSrcweir #include <com/sun/star/lang/XEventListener.hpp>
35*cdf0e10cSrcweir 
36*cdf0e10cSrcweir #include <rtl/ref.hxx>
37*cdf0e10cSrcweir #include <svl/style.hxx>
38*cdf0e10cSrcweir #include "svx/sdtaitm.hxx"
39*cdf0e10cSrcweir #include "tablemodel.hxx"
40*cdf0e10cSrcweir #include "editeng/unotext.hxx"
41*cdf0e10cSrcweir #include "svx/svdtext.hxx"
42*cdf0e10cSrcweir 
43*cdf0e10cSrcweir // -----------------------------------------------------------------------------
44*cdf0e10cSrcweir 
45*cdf0e10cSrcweir class SfxItemSet;
46*cdf0e10cSrcweir class OutlinerParaObject;
47*cdf0e10cSrcweir class SdrObject;
48*cdf0e10cSrcweir 
49*cdf0e10cSrcweir namespace sdr { namespace properties {
50*cdf0e10cSrcweir 	class TextProperties;
51*cdf0e10cSrcweir } }
52*cdf0e10cSrcweir 
53*cdf0e10cSrcweir // -----------------------------------------------------------------------------
54*cdf0e10cSrcweir 
55*cdf0e10cSrcweir namespace sdr { namespace table {
56*cdf0e10cSrcweir 
57*cdf0e10cSrcweir // -----------------------------------------------------------------------------
58*cdf0e10cSrcweir 
59*cdf0e10cSrcweir class SVX_DLLPUBLIC Cell :	public SdrText,
60*cdf0e10cSrcweir 				public SvxUnoTextBase,
61*cdf0e10cSrcweir 				public ::com::sun::star::table::XMergeableCell,
62*cdf0e10cSrcweir 				public ::com::sun::star::awt::XLayoutConstrains,
63*cdf0e10cSrcweir                 public ::com::sun::star::lang::XEventListener,
64*cdf0e10cSrcweir 				public ::cppu::OWeakObject
65*cdf0e10cSrcweir {
66*cdf0e10cSrcweir     friend class CellUndo;
67*cdf0e10cSrcweir 
68*cdf0e10cSrcweir public:
69*cdf0e10cSrcweir     SVX_DLLPRIVATE static rtl::Reference< Cell > create( SdrTableObj& rTableObj, OutlinerParaObject* pOutlinerParaObject );
70*cdf0e10cSrcweir 
71*cdf0e10cSrcweir     // private
72*cdf0e10cSrcweir     SVX_DLLPRIVATE void dispose();
73*cdf0e10cSrcweir 
74*cdf0e10cSrcweir     // SdrTextShape proxy
75*cdf0e10cSrcweir     bool IsTextEditActive();
76*cdf0e10cSrcweir     SVX_DLLPRIVATE bool hasText() const;
77*cdf0e10cSrcweir 
78*cdf0e10cSrcweir     SVX_DLLPRIVATE void cloneFrom( const CellRef& rCell );
79*cdf0e10cSrcweir 
80*cdf0e10cSrcweir     SVX_DLLPRIVATE void setCellRect( ::Rectangle& rCellRect ) { maCellRect = rCellRect; }
81*cdf0e10cSrcweir     SVX_DLLPRIVATE const ::Rectangle& getCellRect() const { return maCellRect; }
82*cdf0e10cSrcweir     SVX_DLLPRIVATE ::Rectangle& getCellRect() { return maCellRect; }
83*cdf0e10cSrcweir 
84*cdf0e10cSrcweir     OutlinerParaObject* GetEditOutlinerParaObject() const;
85*cdf0e10cSrcweir     SVX_DLLPRIVATE void SetStyleSheet( SfxStyleSheet* pStyleSheet, sal_Bool bDontRemoveHardAttr );
86*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual SfxStyleSheet* GetStyleSheet() const;
87*cdf0e10cSrcweir     SfxStyleSheetPool* GetStyleSheetPool() const;
88*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual const Rectangle& GetCurrentBoundRect() const;
89*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void TakeTextAnchorRect(Rectangle& rAnchorRect) const;
90*cdf0e10cSrcweir 
91*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual const SfxItemSet& GetItemSet() const;
92*cdf0e10cSrcweir     SVX_DLLPRIVATE void SetMergedItemSetAndBroadcast(const SfxItemSet& rSet, sal_Bool bClearAllItems);
93*cdf0e10cSrcweir     void SetMergedItem(const SfxPoolItem& rItem);
94*cdf0e10cSrcweir 
95*cdf0e10cSrcweir     SVX_DLLPRIVATE sal_Int32 getMinimumWidth();
96*cdf0e10cSrcweir     SVX_DLLPRIVATE sal_Int32 getMinimumHeight();
97*cdf0e10cSrcweir 
98*cdf0e10cSrcweir     SVX_DLLPRIVATE long GetTextLeftDistance() const;
99*cdf0e10cSrcweir     SVX_DLLPRIVATE long GetTextRightDistance() const;
100*cdf0e10cSrcweir     SVX_DLLPRIVATE long GetTextUpperDistance() const;
101*cdf0e10cSrcweir     SVX_DLLPRIVATE long GetTextLowerDistance() const;
102*cdf0e10cSrcweir 
103*cdf0e10cSrcweir     SVX_DLLPRIVATE SdrTextVertAdjust GetTextVerticalAdjust() const;
104*cdf0e10cSrcweir     SdrTextHorzAdjust GetTextHorizontalAdjust() const;
105*cdf0e10cSrcweir 
106*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SetModel(SdrModel* pNewModel);
107*cdf0e10cSrcweir 
108*cdf0e10cSrcweir     SVX_DLLPRIVATE void merge( sal_Int32 nColumnSpan, sal_Int32 nRowSpan );
109*cdf0e10cSrcweir     SVX_DLLPRIVATE void mergeContent( const CellRef& xSourceCell );
110*cdf0e10cSrcweir     SVX_DLLPRIVATE void replaceContentAndFormating( const CellRef& xSourceCell );
111*cdf0e10cSrcweir 
112*cdf0e10cSrcweir     SVX_DLLPRIVATE void setMerged();
113*cdf0e10cSrcweir 
114*cdf0e10cSrcweir 	// XInterface
115*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& Type ) throw (::com::sun::star::uno::RuntimeException);
116*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL acquire() throw ();
117*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL release() throw ();
118*cdf0e10cSrcweir 
119*cdf0e10cSrcweir     // XTypeProvider
120*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw (::com::sun::star::uno::RuntimeException);
121*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Sequence< ::sal_Int8 > SAL_CALL getImplementationId(  ) throw (::com::sun::star::uno::RuntimeException);
122*cdf0e10cSrcweir 
123*cdf0e10cSrcweir     // XServiceInfo
124*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw (::com::sun::star::uno::RuntimeException);
125*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
126*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw (::com::sun::star::uno::RuntimeException);
127*cdf0e10cSrcweir 
128*cdf0e10cSrcweir     // XLayoutConstrains
129*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw (::com::sun::star::uno::RuntimeException);
130*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw (::com::sun::star::uno::RuntimeException);
131*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw (::com::sun::star::uno::RuntimeException);
132*cdf0e10cSrcweir 
133*cdf0e10cSrcweir     // XMergeableCell
134*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::sal_Int32 SAL_CALL getRowSpan() throw (::com::sun::star::uno::RuntimeException);
135*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::sal_Int32 SAL_CALL getColumnSpan() throw (::com::sun::star::uno::RuntimeException);
136*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::sal_Bool SAL_CALL isMerged() throw (::com::sun::star::uno::RuntimeException);
137*cdf0e10cSrcweir 
138*cdf0e10cSrcweir 	// XCell
139*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::rtl::OUString SAL_CALL getFormula() throw (::com::sun::star::uno::RuntimeException);
140*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL setFormula( const ::rtl::OUString& aFormula ) throw (::com::sun::star::uno::RuntimeException);
141*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual double SAL_CALL getValue() throw (::com::sun::star::uno::RuntimeException);
142*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL setValue( double nValue ) throw (::com::sun::star::uno::RuntimeException);
143*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::table::CellContentType SAL_CALL getType() throw (::com::sun::star::uno::RuntimeException);
144*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual sal_Int32 SAL_CALL getError() throw (::com::sun::star::uno::RuntimeException);
145*cdf0e10cSrcweir 
146*cdf0e10cSrcweir 	// ::com::sun::star::beans::XPropertySet
147*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException);
148*cdf0e10cSrcweir     SVX_DLLPRIVATE 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);
149*cdf0e10cSrcweir     SVX_DLLPRIVATE 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);
150*cdf0e10cSrcweir     SVX_DLLPRIVATE 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);
151*cdf0e10cSrcweir     SVX_DLLPRIVATE 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);
152*cdf0e10cSrcweir     SVX_DLLPRIVATE 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);
153*cdf0e10cSrcweir     SVX_DLLPRIVATE 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);
154*cdf0e10cSrcweir 
155*cdf0e10cSrcweir 	// XMultiPropertySet
156*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues ) throw (::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
157*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) throw (::com::sun::star::uno::RuntimeException);
158*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL addPropertiesChangeListener( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
159*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL removePropertiesChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
160*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL firePropertiesChangeEvent( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
161*cdf0e10cSrcweir 
162*cdf0e10cSrcweir 	// ::com::sun::star::beans::XPropertyState
163*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
164*cdf0e10cSrcweir     SVX_DLLPRIVATE 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);
165*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
166*cdf0e10cSrcweir     SVX_DLLPRIVATE 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);
167*cdf0e10cSrcweir 
168*cdf0e10cSrcweir 	// XMultiPropertyStates
169*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL setAllPropertiesToDefault(  ) throw (::com::sun::star::uno::RuntimeException);
170*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL setPropertiesToDefault( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
171*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyDefaults( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
172*cdf0e10cSrcweir 
173*cdf0e10cSrcweir 	// XFastPropertySet
174*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL setFastPropertyValue( ::sal_Int32 nHandle, 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);
175*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Any SAL_CALL getFastPropertyValue( ::sal_Int32 nHandle ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
176*cdf0e10cSrcweir 
177*cdf0e10cSrcweir 	// XText
178*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL insertTextContent( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >& xRange, const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextContent >& xContent, ::sal_Bool bAbsorb ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
179*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL removeTextContent( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextContent >& xContent ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException);
180*cdf0e10cSrcweir 
181*cdf0e10cSrcweir     // XSimpleText
182*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor > SAL_CALL createTextCursor(  ) throw (::com::sun::star::uno::RuntimeException);
183*cdf0e10cSrcweir     SVX_DLLPRIVATE 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);
184*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL insertString( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >& xRange, const ::rtl::OUString& aString, ::sal_Bool bAbsorb ) throw (::com::sun::star::uno::RuntimeException);
185*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL insertControlCharacter( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >& xRange, ::sal_Int16 nControlCharacter, ::sal_Bool bAbsorb ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
186*cdf0e10cSrcweir 
187*cdf0e10cSrcweir     // XTextRange
188*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText > SAL_CALL getText(  ) throw (::com::sun::star::uno::RuntimeException);
189*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getStart(  ) throw (::com::sun::star::uno::RuntimeException);
190*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getEnd(  ) throw (::com::sun::star::uno::RuntimeException);
191*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::rtl::OUString SAL_CALL getString(  ) throw (::com::sun::star::uno::RuntimeException);
192*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL setString( const ::rtl::OUString& aString ) throw (::com::sun::star::uno::RuntimeException);
193*cdf0e10cSrcweir 
194*cdf0e10cSrcweir     // XEventListener
195*cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
196*cdf0e10cSrcweir 
197*cdf0e10cSrcweir 	SVX_DLLPRIVATE virtual void SetOutlinerParaObject( OutlinerParaObject* pTextObject );
198*cdf0e10cSrcweir 
199*cdf0e10cSrcweir     SVX_DLLPRIVATE void	AddUndo();
200*cdf0e10cSrcweir 
201*cdf0e10cSrcweir     using SvxUnoTextRangeBase::setPropertyValue;
202*cdf0e10cSrcweir     using SvxUnoTextRangeBase::getPropertyValue;
203*cdf0e10cSrcweir 
204*cdf0e10cSrcweir     SVX_DLLPRIVATE sdr::properties::TextProperties* CloneProperties( SdrObject& rNewObj, Cell& rNewCell );
205*cdf0e10cSrcweir 
206*cdf0e10cSrcweir     SVX_DLLPRIVATE static sdr::properties::TextProperties* CloneProperties( sdr::properties::TextProperties* pProperties, SdrObject& rNewObj, Cell& rNewCell );
207*cdf0e10cSrcweir 
208*cdf0e10cSrcweir 	SVX_DLLPRIVATE void notifyModified();
209*cdf0e10cSrcweir 
210*cdf0e10cSrcweir     ::rtl::OUString getName();
211*cdf0e10cSrcweir 
212*cdf0e10cSrcweir protected:
213*cdf0e10cSrcweir 	SVX_DLLPRIVATE virtual const SfxItemSet& GetObjectItemSet();
214*cdf0e10cSrcweir 	SVX_DLLPRIVATE virtual void SetObjectItem(const SfxPoolItem& rItem);
215*cdf0e10cSrcweir 
216*cdf0e10cSrcweir     SVX_DLLPRIVATE ::com::sun::star::uno::Any GetAnyForItem( SfxItemSet& aSet, const SfxItemPropertySimpleEntry* pMap );
217*cdf0e10cSrcweir 
218*cdf0e10cSrcweir private:
219*cdf0e10cSrcweir 	SVX_DLLPRIVATE Cell( SdrTableObj& rTableObj, OutlinerParaObject* pOutlinerParaObject ) throw();
220*cdf0e10cSrcweir 	SVX_DLLPRIVATE virtual ~Cell() throw();
221*cdf0e10cSrcweir 
222*cdf0e10cSrcweir 	const SvxItemPropertySet* mpPropSet;
223*cdf0e10cSrcweir 
224*cdf0e10cSrcweir 	sdr::properties::TextProperties*	mpProperties;
225*cdf0e10cSrcweir 
226*cdf0e10cSrcweir 	::com::sun::star::table::CellContentType mnCellContentType;
227*cdf0e10cSrcweir 
228*cdf0e10cSrcweir 	::rtl::OUString	msFormula;
229*cdf0e10cSrcweir 	double			mfValue;
230*cdf0e10cSrcweir 	::sal_Int32		mnError;
231*cdf0e10cSrcweir 	::sal_Bool		mbMerged;
232*cdf0e10cSrcweir 	::sal_Int32		mnRowSpan;
233*cdf0e10cSrcweir 	::sal_Int32		mnColSpan;
234*cdf0e10cSrcweir 
235*cdf0e10cSrcweir 	Rectangle maCellRect;
236*cdf0e10cSrcweir 
237*cdf0e10cSrcweir 	::com::sun::star::uno::Reference< ::com::sun::star::table::XTable > mxTable;
238*cdf0e10cSrcweir };
239*cdf0e10cSrcweir 
240*cdf0e10cSrcweir // -----------------------------------------------------------------------------
241*cdf0e10cSrcweir 
242*cdf0e10cSrcweir } }
243*cdf0e10cSrcweir 
244*cdf0e10cSrcweir #endif
245