xref: /aoo41x/main/svx/source/table/cell.hxx (revision 3334a7e6)
1*3334a7e6SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*3334a7e6SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*3334a7e6SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*3334a7e6SAndrew Rist  * distributed with this work for additional information
6*3334a7e6SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*3334a7e6SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*3334a7e6SAndrew Rist  * "License"); you may not use this file except in compliance
9*3334a7e6SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*3334a7e6SAndrew Rist  *
11*3334a7e6SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*3334a7e6SAndrew Rist  *
13*3334a7e6SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*3334a7e6SAndrew Rist  * software distributed under the License is distributed on an
15*3334a7e6SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*3334a7e6SAndrew Rist  * KIND, either express or implied.  See the License for the
17*3334a7e6SAndrew Rist  * specific language governing permissions and limitations
18*3334a7e6SAndrew Rist  * under the License.
19*3334a7e6SAndrew Rist  *
20*3334a7e6SAndrew Rist  *************************************************************/
21*3334a7e6SAndrew Rist 
22*3334a7e6SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _SVX_CELL_HXX_
25cdf0e10cSrcweir #define _SVX_CELL_HXX_
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <com/sun/star/table/XMergeableCell.hpp>
28cdf0e10cSrcweir #include <com/sun/star/awt/XLayoutConstrains.hpp>
29cdf0e10cSrcweir #include <com/sun/star/beans/XMultiPropertyStates.hpp>
30cdf0e10cSrcweir #include <com/sun/star/lang/XEventListener.hpp>
31cdf0e10cSrcweir 
32cdf0e10cSrcweir #include <rtl/ref.hxx>
33cdf0e10cSrcweir #include <svl/style.hxx>
34cdf0e10cSrcweir #include "svx/sdtaitm.hxx"
35cdf0e10cSrcweir #include "tablemodel.hxx"
36cdf0e10cSrcweir #include "editeng/unotext.hxx"
37cdf0e10cSrcweir #include "svx/svdtext.hxx"
38cdf0e10cSrcweir 
39cdf0e10cSrcweir // -----------------------------------------------------------------------------
40cdf0e10cSrcweir 
41cdf0e10cSrcweir class SfxItemSet;
42cdf0e10cSrcweir class OutlinerParaObject;
43cdf0e10cSrcweir class SdrObject;
44cdf0e10cSrcweir 
45cdf0e10cSrcweir namespace sdr { namespace properties {
46cdf0e10cSrcweir 	class TextProperties;
47cdf0e10cSrcweir } }
48cdf0e10cSrcweir 
49cdf0e10cSrcweir // -----------------------------------------------------------------------------
50cdf0e10cSrcweir 
51cdf0e10cSrcweir namespace sdr { namespace table {
52cdf0e10cSrcweir 
53cdf0e10cSrcweir // -----------------------------------------------------------------------------
54cdf0e10cSrcweir 
55cdf0e10cSrcweir class SVX_DLLPUBLIC Cell :	public SdrText,
56cdf0e10cSrcweir 				public SvxUnoTextBase,
57cdf0e10cSrcweir 				public ::com::sun::star::table::XMergeableCell,
58cdf0e10cSrcweir 				public ::com::sun::star::awt::XLayoutConstrains,
59cdf0e10cSrcweir                 public ::com::sun::star::lang::XEventListener,
60cdf0e10cSrcweir 				public ::cppu::OWeakObject
61cdf0e10cSrcweir {
62cdf0e10cSrcweir     friend class CellUndo;
63cdf0e10cSrcweir 
64cdf0e10cSrcweir public:
65cdf0e10cSrcweir     SVX_DLLPRIVATE static rtl::Reference< Cell > create( SdrTableObj& rTableObj, OutlinerParaObject* pOutlinerParaObject );
66cdf0e10cSrcweir 
67cdf0e10cSrcweir     // private
68cdf0e10cSrcweir     SVX_DLLPRIVATE void dispose();
69cdf0e10cSrcweir 
70cdf0e10cSrcweir     // SdrTextShape proxy
71cdf0e10cSrcweir     bool IsTextEditActive();
72cdf0e10cSrcweir     SVX_DLLPRIVATE bool hasText() const;
73cdf0e10cSrcweir 
74cdf0e10cSrcweir     SVX_DLLPRIVATE void cloneFrom( const CellRef& rCell );
75cdf0e10cSrcweir 
setCellRect(::Rectangle & rCellRect)76cdf0e10cSrcweir     SVX_DLLPRIVATE void setCellRect( ::Rectangle& rCellRect ) { maCellRect = rCellRect; }
getCellRect() const77cdf0e10cSrcweir     SVX_DLLPRIVATE const ::Rectangle& getCellRect() const { return maCellRect; }
getCellRect()78cdf0e10cSrcweir     SVX_DLLPRIVATE ::Rectangle& getCellRect() { return maCellRect; }
79cdf0e10cSrcweir 
80cdf0e10cSrcweir     OutlinerParaObject* GetEditOutlinerParaObject() const;
81cdf0e10cSrcweir     SVX_DLLPRIVATE void SetStyleSheet( SfxStyleSheet* pStyleSheet, sal_Bool bDontRemoveHardAttr );
82cdf0e10cSrcweir     SVX_DLLPRIVATE virtual SfxStyleSheet* GetStyleSheet() const;
83cdf0e10cSrcweir     SfxStyleSheetPool* GetStyleSheetPool() const;
84cdf0e10cSrcweir     SVX_DLLPRIVATE virtual const Rectangle& GetCurrentBoundRect() const;
85cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void TakeTextAnchorRect(Rectangle& rAnchorRect) const;
86cdf0e10cSrcweir 
87cdf0e10cSrcweir     SVX_DLLPRIVATE virtual const SfxItemSet& GetItemSet() const;
88cdf0e10cSrcweir     SVX_DLLPRIVATE void SetMergedItemSetAndBroadcast(const SfxItemSet& rSet, sal_Bool bClearAllItems);
89cdf0e10cSrcweir     void SetMergedItem(const SfxPoolItem& rItem);
90cdf0e10cSrcweir 
91cdf0e10cSrcweir     SVX_DLLPRIVATE sal_Int32 getMinimumWidth();
92cdf0e10cSrcweir     SVX_DLLPRIVATE sal_Int32 getMinimumHeight();
93cdf0e10cSrcweir 
94cdf0e10cSrcweir     SVX_DLLPRIVATE long GetTextLeftDistance() const;
95cdf0e10cSrcweir     SVX_DLLPRIVATE long GetTextRightDistance() const;
96cdf0e10cSrcweir     SVX_DLLPRIVATE long GetTextUpperDistance() const;
97cdf0e10cSrcweir     SVX_DLLPRIVATE long GetTextLowerDistance() const;
98cdf0e10cSrcweir 
99cdf0e10cSrcweir     SVX_DLLPRIVATE SdrTextVertAdjust GetTextVerticalAdjust() const;
100cdf0e10cSrcweir     SdrTextHorzAdjust GetTextHorizontalAdjust() const;
101cdf0e10cSrcweir 
102cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SetModel(SdrModel* pNewModel);
103cdf0e10cSrcweir 
104cdf0e10cSrcweir     SVX_DLLPRIVATE void merge( sal_Int32 nColumnSpan, sal_Int32 nRowSpan );
105cdf0e10cSrcweir     SVX_DLLPRIVATE void mergeContent( const CellRef& xSourceCell );
106cdf0e10cSrcweir     SVX_DLLPRIVATE void replaceContentAndFormating( const CellRef& xSourceCell );
107cdf0e10cSrcweir 
108cdf0e10cSrcweir     SVX_DLLPRIVATE void setMerged();
109cdf0e10cSrcweir 
110cdf0e10cSrcweir 	// XInterface
111cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& Type ) throw (::com::sun::star::uno::RuntimeException);
112cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL acquire() throw ();
113cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL release() throw ();
114cdf0e10cSrcweir 
115cdf0e10cSrcweir     // XTypeProvider
116cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw (::com::sun::star::uno::RuntimeException);
117cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Sequence< ::sal_Int8 > SAL_CALL getImplementationId(  ) throw (::com::sun::star::uno::RuntimeException);
118cdf0e10cSrcweir 
119cdf0e10cSrcweir     // XServiceInfo
120cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw (::com::sun::star::uno::RuntimeException);
121cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
122cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw (::com::sun::star::uno::RuntimeException);
123cdf0e10cSrcweir 
124cdf0e10cSrcweir     // XLayoutConstrains
125cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw (::com::sun::star::uno::RuntimeException);
126cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw (::com::sun::star::uno::RuntimeException);
127cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw (::com::sun::star::uno::RuntimeException);
128cdf0e10cSrcweir 
129cdf0e10cSrcweir     // XMergeableCell
130cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::sal_Int32 SAL_CALL getRowSpan() throw (::com::sun::star::uno::RuntimeException);
131cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::sal_Int32 SAL_CALL getColumnSpan() throw (::com::sun::star::uno::RuntimeException);
132cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::sal_Bool SAL_CALL isMerged() throw (::com::sun::star::uno::RuntimeException);
133cdf0e10cSrcweir 
134cdf0e10cSrcweir 	// XCell
135cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::rtl::OUString SAL_CALL getFormula() throw (::com::sun::star::uno::RuntimeException);
136cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL setFormula( const ::rtl::OUString& aFormula ) throw (::com::sun::star::uno::RuntimeException);
137cdf0e10cSrcweir     SVX_DLLPRIVATE virtual double SAL_CALL getValue() throw (::com::sun::star::uno::RuntimeException);
138cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL setValue( double nValue ) throw (::com::sun::star::uno::RuntimeException);
139cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::table::CellContentType SAL_CALL getType() throw (::com::sun::star::uno::RuntimeException);
140cdf0e10cSrcweir     SVX_DLLPRIVATE virtual sal_Int32 SAL_CALL getError() throw (::com::sun::star::uno::RuntimeException);
141cdf0e10cSrcweir 
142cdf0e10cSrcweir 	// ::com::sun::star::beans::XPropertySet
143cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException);
144cdf0e10cSrcweir     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);
145cdf0e10cSrcweir     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);
146cdf0e10cSrcweir     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);
147cdf0e10cSrcweir     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);
148cdf0e10cSrcweir     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);
149cdf0e10cSrcweir     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);
150cdf0e10cSrcweir 
151cdf0e10cSrcweir 	// XMultiPropertySet
152cdf0e10cSrcweir     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);
153cdf0e10cSrcweir     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);
154cdf0e10cSrcweir     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);
155cdf0e10cSrcweir     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);
156cdf0e10cSrcweir     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);
157cdf0e10cSrcweir 
158cdf0e10cSrcweir 	// ::com::sun::star::beans::XPropertyState
159cdf0e10cSrcweir     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);
160cdf0e10cSrcweir     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);
161cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
162cdf0e10cSrcweir     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);
163cdf0e10cSrcweir 
164cdf0e10cSrcweir 	// XMultiPropertyStates
165cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL setAllPropertiesToDefault(  ) throw (::com::sun::star::uno::RuntimeException);
166cdf0e10cSrcweir     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);
167cdf0e10cSrcweir     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);
168cdf0e10cSrcweir 
169cdf0e10cSrcweir 	// XFastPropertySet
170cdf0e10cSrcweir     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);
171cdf0e10cSrcweir     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);
172cdf0e10cSrcweir 
173cdf0e10cSrcweir 	// XText
174cdf0e10cSrcweir     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);
175cdf0e10cSrcweir     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);
176cdf0e10cSrcweir 
177cdf0e10cSrcweir     // XSimpleText
178cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor > SAL_CALL createTextCursor(  ) throw (::com::sun::star::uno::RuntimeException);
179cdf0e10cSrcweir     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);
180cdf0e10cSrcweir     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);
181cdf0e10cSrcweir     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);
182cdf0e10cSrcweir 
183cdf0e10cSrcweir     // XTextRange
184cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText > SAL_CALL getText(  ) throw (::com::sun::star::uno::RuntimeException);
185cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getStart(  ) throw (::com::sun::star::uno::RuntimeException);
186cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getEnd(  ) throw (::com::sun::star::uno::RuntimeException);
187cdf0e10cSrcweir     SVX_DLLPRIVATE virtual ::rtl::OUString SAL_CALL getString(  ) throw (::com::sun::star::uno::RuntimeException);
188cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL setString( const ::rtl::OUString& aString ) throw (::com::sun::star::uno::RuntimeException);
189cdf0e10cSrcweir 
190cdf0e10cSrcweir     // XEventListener
191cdf0e10cSrcweir     SVX_DLLPRIVATE virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
192cdf0e10cSrcweir 
193cdf0e10cSrcweir 	SVX_DLLPRIVATE virtual void SetOutlinerParaObject( OutlinerParaObject* pTextObject );
194cdf0e10cSrcweir 
195cdf0e10cSrcweir     SVX_DLLPRIVATE void	AddUndo();
196cdf0e10cSrcweir 
197cdf0e10cSrcweir     using SvxUnoTextRangeBase::setPropertyValue;
198cdf0e10cSrcweir     using SvxUnoTextRangeBase::getPropertyValue;
199cdf0e10cSrcweir 
200cdf0e10cSrcweir     SVX_DLLPRIVATE sdr::properties::TextProperties* CloneProperties( SdrObject& rNewObj, Cell& rNewCell );
201cdf0e10cSrcweir 
202cdf0e10cSrcweir     SVX_DLLPRIVATE static sdr::properties::TextProperties* CloneProperties( sdr::properties::TextProperties* pProperties, SdrObject& rNewObj, Cell& rNewCell );
203cdf0e10cSrcweir 
204cdf0e10cSrcweir 	SVX_DLLPRIVATE void notifyModified();
205cdf0e10cSrcweir 
206cdf0e10cSrcweir     ::rtl::OUString getName();
207cdf0e10cSrcweir 
208cdf0e10cSrcweir protected:
209cdf0e10cSrcweir 	SVX_DLLPRIVATE virtual const SfxItemSet& GetObjectItemSet();
210cdf0e10cSrcweir 	SVX_DLLPRIVATE virtual void SetObjectItem(const SfxPoolItem& rItem);
211cdf0e10cSrcweir 
212cdf0e10cSrcweir     SVX_DLLPRIVATE ::com::sun::star::uno::Any GetAnyForItem( SfxItemSet& aSet, const SfxItemPropertySimpleEntry* pMap );
213cdf0e10cSrcweir 
214cdf0e10cSrcweir private:
215cdf0e10cSrcweir 	SVX_DLLPRIVATE Cell( SdrTableObj& rTableObj, OutlinerParaObject* pOutlinerParaObject ) throw();
216cdf0e10cSrcweir 	SVX_DLLPRIVATE virtual ~Cell() throw();
217cdf0e10cSrcweir 
218cdf0e10cSrcweir 	const SvxItemPropertySet* mpPropSet;
219cdf0e10cSrcweir 
220cdf0e10cSrcweir 	sdr::properties::TextProperties*	mpProperties;
221cdf0e10cSrcweir 
222cdf0e10cSrcweir 	::com::sun::star::table::CellContentType mnCellContentType;
223cdf0e10cSrcweir 
224cdf0e10cSrcweir 	::rtl::OUString	msFormula;
225cdf0e10cSrcweir 	double			mfValue;
226cdf0e10cSrcweir 	::sal_Int32		mnError;
227cdf0e10cSrcweir 	::sal_Bool		mbMerged;
228cdf0e10cSrcweir 	::sal_Int32		mnRowSpan;
229cdf0e10cSrcweir 	::sal_Int32		mnColSpan;
230cdf0e10cSrcweir 
231cdf0e10cSrcweir 	Rectangle maCellRect;
232cdf0e10cSrcweir 
233cdf0e10cSrcweir 	::com::sun::star::uno::Reference< ::com::sun::star::table::XTable > mxTable;
234cdf0e10cSrcweir };
235cdf0e10cSrcweir 
236cdf0e10cSrcweir // -----------------------------------------------------------------------------
237cdf0e10cSrcweir 
238cdf0e10cSrcweir } }
239cdf0e10cSrcweir 
240cdf0e10cSrcweir #endif
241