LibreOffice Module svx (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
sdr::table::Cell Class Reference

#include <cell.hxx>

Inheritance diagram for sdr::table::Cell:
[legend]
Collaboration diagram for sdr::table::Cell:
[legend]

Public Member Functions

SVX_DLLPRIVATE void dispose ()
 
bool IsActiveCell () const
 
bool IsTextEditActive () const
 
SVX_DLLPRIVATE bool hasText () const
 
SVX_DLLPRIVATE void cloneFrom (const CellRef &rCell)
 
SVX_DLLPRIVATE void setCellRect (::tools::Rectangle const &rCellRect)
 
SVX_DLLPRIVATEconst::tools::Rectangle & getCellRect () const
 
SVX_DLLPRIVATE::tools::Rectangle & getCellRect ()
 
std::unique_ptr< OutlinerParaObjectGetEditOutlinerParaObject () const
 
SVX_DLLPRIVATE void SetStyleSheet (SfxStyleSheet *pStyleSheet, bool bDontRemoveHardAttr)
 
virtual SVX_DLLPRIVATE SfxStyleSheetGetStyleSheet () const override
 
SVX_DLLPRIVATE void TakeTextAnchorRect (tools::Rectangle &rAnchorRect) const
 
virtual SVX_DLLPRIVATE const SfxItemSetGetItemSet () const override
 
SVX_DLLPRIVATE void SetMergedItemSetAndBroadcast (const SfxItemSet &rSet, bool bClearAllItems)
 
void SetMergedItem (const SfxPoolItem &rItem)
 
SVX_DLLPRIVATE sal_Int32 calcPreferredWidth (const Size aSize)
 
SVX_DLLPRIVATE sal_Int32 getMinimumWidth () const
 
SVX_DLLPRIVATE sal_Int32 getMinimumHeight ()
 
SVX_DLLPRIVATE long GetTextLeftDistance () const
 
SVX_DLLPRIVATE long GetTextRightDistance () const
 
SVX_DLLPRIVATE long GetTextUpperDistance () const
 
SVX_DLLPRIVATE long GetTextLowerDistance () const
 
SVX_DLLPRIVATE SdrTextVertAdjust GetTextVerticalAdjust () const
 
SdrTextHorzAdjust GetTextHorizontalAdjust () const
 
SVX_DLLPRIVATE void merge (sal_Int32 nColumnSpan, sal_Int32 nRowSpan)
 
SVX_DLLPRIVATE void mergeContent (const CellRef &xSourceCell)
 
SVX_DLLPRIVATE void replaceContentAndFormating (const CellRef &xSourceCell)
 
SVX_DLLPRIVATE void setMerged ()
 
SVX_DLLPRIVATE void copyFormatFrom (const CellRef &xSourceCell)
 
virtual SVX_DLLPRIVATE css::uno::Any SAL_CALL queryInterface (const css::uno::Type &Type) override
 
virtual SVX_DLLPRIVATE void SAL_CALL acquire () override throw ()
 
virtual SVX_DLLPRIVATE void SAL_CALL release () override throw ()
 
virtual SVX_DLLPRIVATE css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual SVX_DLLPRIVATE css::uno::Sequence< ::sal_Int8 > SAL_CALL getImplementationId () override
 
virtual SVX_DLLPRIVATE css::awt::Size SAL_CALL getMinimumSize () override
 
virtual SVX_DLLPRIVATE css::awt::Size SAL_CALL getPreferredSize () override
 
virtual SVX_DLLPRIVATE css::awt::Size SAL_CALL calcAdjustedSize (const css::awt::Size &aNewSize) override
 
virtual SVX_DLLPRIVATE::sal_Int32 SAL_CALL getRowSpan () override
 
virtual SVX_DLLPRIVATE::sal_Int32 SAL_CALL getColumnSpan () override
 
virtual SVX_DLLPRIVATE sal_Bool SAL_CALL isMerged () override
 
virtual SVX_DLLPRIVATE OUString SAL_CALL getFormula () override
 
virtual SVX_DLLPRIVATE void SAL_CALL setFormula (const OUString &aFormula) override
 
virtual SVX_DLLPRIVATE double SAL_CALL getValue () override
 
virtual SVX_DLLPRIVATE void SAL_CALL setValue (double nValue) override
 
virtual SVX_DLLPRIVATE css::table::CellContentType SAL_CALL getType () override
 
virtual SVX_DLLPRIVATE sal_Int32 SAL_CALL getError () override
 
virtual SVX_DLLPRIVATE css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual SVX_DLLPRIVATE void SAL_CALL setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual SVX_DLLPRIVATE css::uno::Any SAL_CALL getPropertyValue (const OUString &PropertyName) override
 
virtual SVX_DLLPRIVATE void SAL_CALL addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
 
virtual SVX_DLLPRIVATE void SAL_CALL removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
 
virtual SVX_DLLPRIVATE void SAL_CALL addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual SVX_DLLPRIVATE void SAL_CALL removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual SVX_DLLPRIVATE void SAL_CALL setPropertyValues (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
 
virtual SVX_DLLPRIVATE css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues (const css::uno::Sequence< OUString > &aPropertyNames) override
 
virtual SVX_DLLPRIVATE void SAL_CALL addPropertiesChangeListener (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
 
virtual SVX_DLLPRIVATE void SAL_CALL removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
 
virtual SVX_DLLPRIVATE void SAL_CALL firePropertiesChangeEvent (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
 
virtual SVX_DLLPRIVATE css::beans::PropertyState SAL_CALL getPropertyState (const OUString &PropertyName) override
 
virtual SVX_DLLPRIVATE css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override
 
virtual SVX_DLLPRIVATE void SAL_CALL setPropertyToDefault (const OUString &PropertyName) override
 
virtual SVX_DLLPRIVATE css::uno::Any SAL_CALL getPropertyDefault (const OUString &aPropertyName) override
 
virtual SVX_DLLPRIVATE void SAL_CALL setAllPropertiesToDefault () override
 
virtual SVX_DLLPRIVATE void SAL_CALL setPropertiesToDefault (const css::uno::Sequence< OUString > &aPropertyNames) override
 
virtual SVX_DLLPRIVATE css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyDefaults (const css::uno::Sequence< OUString > &aPropertyNames) override
 
virtual SVX_DLLPRIVATE void SAL_CALL insertTextContent (const css::uno::Reference< css::text::XTextRange > &xRange, const css::uno::Reference< css::text::XTextContent > &xContent, sal_Bool bAbsorb) override
 
virtual SVX_DLLPRIVATE void SAL_CALL removeTextContent (const css::uno::Reference< css::text::XTextContent > &xContent) override
 
virtual SVX_DLLPRIVATE void SAL_CALL insertString (const css::uno::Reference< css::text::XTextRange > &xRange, const OUString &aString, sal_Bool bAbsorb) override
 
virtual SVX_DLLPRIVATE void SAL_CALL insertControlCharacter (const css::uno::Reference< css::text::XTextRange > &xRange,::sal_Int16 nControlCharacter, sal_Bool bAbsorb) override
 
virtual SVX_DLLPRIVATE OUString SAL_CALL getString () override
 
virtual SVX_DLLPRIVATE void SAL_CALL setString (const OUString &aString) override
 
virtual SVX_DLLPRIVATE void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual SVX_DLLPRIVATE void SetOutlinerParaObject (std::unique_ptr< OutlinerParaObject > pTextObject) override
 
SVX_DLLPRIVATE void AddUndo ()
 
SVX_DLLPRIVATE sdr::properties::TextPropertiesCloneProperties (SdrObject &rNewObj, Cell &rNewCell)
 
SVX_DLLPRIVATE void notifyModified ()
 
void dumpAsXml (xmlTextWriterPtr pWriter, sal_Int32 nRow, sal_Int32 nCol) const
 
- Public Member Functions inherited from SdrText
 SdrText (SdrTextObj &rObject)
 
virtual ~SdrText () override
 
void ForceOutlinerParaObject (OutlinerMode nOutlMode)
 
OutlinerParaObjectGetOutlinerParaObject () const
 
void CheckPortionInfo (SdrOutliner &rOutliner)
 
void ReformatText ()
 
SdrTextObjGetObject () const
 
std::unique_ptr< OutlinerParaObjectRemoveOutlinerParaObject ()
 returns the current OutlinerParaObject and removes it from this instance More...
 
void dumpAsXml (xmlTextWriterPtr pWriter) const
 
- Public Member Functions inherited from tools::WeakBase
 WeakBase ()
 
virtual ~WeakBase ()
 
void clearWeak ()
 
- Public Member Functions inherited from SvxUnoTextBase
css::uno::Reference< css::text::XTextCursor > createTextCursorBySelection (const ESelection &rSel)
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &rType)
 
virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursor () override
 
virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursorByRange (const css::uno::Reference< css::text::XTextRange > &aTextPosition) override
 
virtual void SAL_CALL insertControlCharacter (const css::uno::Reference< css::text::XTextRange > &xRange, sal_Int16 nControlCharacter, sal_Bool bAbsorb) override
 
virtual css::uno::Reference< css::text::XText > SAL_CALL getText () override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart () override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd () override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual void SAL_CALL moveTextRange (const css::uno::Reference< css::text::XTextRange > &xRange, sal_Int16 nParagraphs) override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL finishParagraph (const css::uno::Sequence< css::beans::PropertyValue > &CharacterAndParagraphProperties) override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL finishParagraphInsert (const css::uno::Sequence< css::beans::PropertyValue > &CharacterAndParagraphProperties, const css::uno::Reference< css::text::XTextRange > &xInsertPosition) override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL appendTextPortion (const OUString &Text, const css::uno::Sequence< css::beans::PropertyValue > &CharacterAndParagraphProperties) override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL insertTextPortion (const OUString &Text, const css::uno::Sequence< css::beans::PropertyValue > &CharacterAndParagraphProperties, const css::uno::Reference< css::text::XTextRange > &rTextRange) override
 
virtual void SAL_CALL copyText (const css::uno::Reference< css::text::XTextCopy > &xSource) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
- Public Member Functions inherited from SvxUnoTextRangeBase
const ESelectionGetSelection () const
 
void SetSelection (const ESelection &rSelection)
 
void CollapseToStart ()
 
void CollapseToEnd ()
 
bool IsCollapsed ()
 
bool GoLeft (sal_Int16 nCount, bool Expand)
 
bool GoRight (sal_Int16 nCount, bool Expand)
 
void GotoStart (bool Expand)
 
void GotoEnd (bool Expand)
 
const SvxItemPropertySetgetPropertySet () const
 
SvxEditSourceGetEditSource () const
 
void attachField (std::unique_ptr< SvxFieldData > pData)
 
virtual ::sal_Int16 SAL_CALL compareRegionStarts (const css::uno::Reference< css::text::XTextRange > &xR1, const css::uno::Reference< css::text::XTextRange > &xR2) override
 
virtual ::sal_Int16 SAL_CALL compareRegionEnds (const css::uno::Reference< css::text::XTextRange > &xR1, const css::uno::Reference< css::text::XTextRange > &xR2) override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Static Public Member Functions

static SVX_DLLPRIVATE rtl::Reference< Cellcreate (SdrTableObj &rTableObj)
 
static SVX_DLLPRIVATE sdr::properties::TextPropertiesCloneProperties (sdr::properties::TextProperties const *pProperties, SdrObject &rNewObj, Cell &rNewCell)
 
- Static Public Member Functions inherited from SvxUnoTextBase
static css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_Static ()
 
- Static Public Member Functions inherited from SvxUnoTextRangeBase
static bool SetPropertyValueHelper (const SfxItemPropertySimpleEntry *pMap, const css::uno::Any &aValue, SfxItemSet &rNewSet, const ESelection *pSelection=nullptr, SvxEditSource *pEditSource=nullptr)
 
static bool GetPropertyValueHelper (SfxItemSet const &rSet, const SfxItemPropertySimpleEntry *pMap, css::uno::Any &aAny, const ESelection *pSelection=nullptr, SvxEditSource *pEditSource=nullptr)
 
static css::uno::Sequence< OUString > getSupportedServiceNames_Static ()
 

Protected Member Functions

virtual SVX_DLLPRIVATE const SfxItemSetGetObjectItemSet () override
 
SVX_DLLPRIVATE void SetObjectItem (const SfxPoolItem &rItem)
 
- Protected Member Functions inherited from SvxUnoTextBase
 SvxUnoTextBase (const SvxItemPropertySet *_pSet)
 
 SvxUnoTextBase (const SvxEditSource *pSource, const SvxItemPropertySet *_pSet, css::uno::Reference< css::text::XText > const &xParent)
 
 SvxUnoTextBase (const SvxUnoTextBase &rText)
 
virtual ~SvxUnoTextBase () override
 
- Protected Member Functions inherited from SvxUnoTextRangeBase
void _setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue, sal_Int32 nPara=-1)
 
css::uno::Any _getPropertyValue (const OUString &PropertyName, sal_Int32 nPara=-1)
 
void _setPropertyValues (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues, sal_Int32 nPara=-1)
 
css::uno::Sequence< css::uno::Any > _getPropertyValues (const css::uno::Sequence< OUString > &aPropertyNames, sal_Int32 nPara=-1)
 
css::beans::PropertyState _getPropertyState (const SfxItemPropertySimpleEntry *pMap, sal_Int32 nPara=-1)
 
css::beans::PropertyState _getPropertyState (const OUString &PropertyName, sal_Int32 nPara=-1)
 
css::uno::Sequence< css::beans::PropertyState > _getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName, sal_Int32 nPara=-1)
 
void _setPropertyToDefault (const OUString &PropertyName, sal_Int32 nPara=-1)
 
void _setPropertyToDefault (SvxTextForwarder *pForwarder, const SfxItemPropertySimpleEntry *pMap, sal_Int32 nPara)
 
void SetEditSource (SvxEditSource *_pEditSource)
 
void getPropertyValue (const SfxItemPropertySimpleEntry *pMap, css::uno::Any &rAny, const SfxItemSet &rSet)
 
void setPropertyValue (const SfxItemPropertySimpleEntry *pMap, const css::uno::Any &rValue, const ESelection &rSelection, const SfxItemSet &rOldSet, SfxItemSet &rNewSet)
 
 SvxUnoTextRangeBase (const SvxItemPropertySet *_pSet)
 
 SvxUnoTextRangeBase (const SvxEditSource *pSource, const SvxItemPropertySet *_pSet)
 
 SvxUnoTextRangeBase (const SvxUnoTextRangeBase &rRange)
 
virtual ~SvxUnoTextRangeBase ()
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 

Static Protected Member Functions

static SVX_DLLPRIVATE css::uno::Any GetAnyForItem (SfxItemSet const &aSet, const SfxItemPropertySimpleEntry *pMap)
 
- Static Protected Member Functions inherited from SvxUnoTextRangeBase
static bool _getOnePropertyStates (const SfxItemSet *pSet, const SfxItemPropertySimpleEntry *pMap, css::beans::PropertyState &rState)
 

Private Member Functions

SVX_DLLPRIVATE Cell (SdrTableObj &rTableObj)
 
virtual SVX_DLLPRIVATE ~Cell () override throw ()
 
 Cell (Cell const &)=delete
 
void operator= (Cell const &)=delete
 

Private Attributes

const SvxItemPropertySetmpPropSet
 
std::unique_ptr< sdr::properties::TextPropertiesmpProperties
 
css::table::CellContentType mnCellContentType
 
OUString msFormula
 
double mfValue
 
::sal_Int32 mnError
 
bool mbMerged
 
::sal_Int32 mnRowSpan
 
::sal_Int32 mnColSpan
 
tools::Rectangle maCellRect
 
css::uno::Reference< css::table::XTable > mxTable
 

Friends

class CellUndo
 

Additional Inherited Members

- Protected Attributes inherited from SvxUnoTextRangeBase
std::unique_ptr< SvxEditSourcempEditSource
 
ESelection maSelection
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Definition at line 48 of file cell.hxx.

Constructor & Destructor Documentation

Cell::Cell ( SdrTableObj rTableObj)
private
Exceptions
css::uno::RuntimeException

Definition at line 398 of file cell.cxx.

References SvxUnoTextRangeBase::GetEditSource(), SdrText::GetObject(), ImplGetSvxUnoOutlinerTextCursorSvxPropertySet(), mfValue, and SvxUnoTextRangeBase::SetEditSource().

Referenced by create().

Cell::~Cell ( )
throw (
)
overrideprivatevirtual

Definition at line 426 of file cell.cxx.

References dispose().

sdr::table::Cell::Cell ( Cell const &  )
privatedelete

Member Function Documentation

void SAL_CALL Cell::acquire ( )
throw (
)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 880 of file cell.cxx.

References cppu::OWeakObject::acquire().

void SAL_CALL Cell::addPropertiesChangeListener ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener 
)
overridevirtual

Reimplemented from SvxUnoTextRangeBase.

Definition at line 1352 of file cell.cxx.

void SAL_CALL Cell::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

Reimplemented from SvxUnoTextRangeBase.

Definition at line 1267 of file cell.cxx.

void Cell::AddUndo ( )
void SAL_CALL Cell::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Reimplemented from SvxUnoTextRangeBase.

Definition at line 1277 of file cell.cxx.

css::awt::Size SAL_CALL Cell::calcAdjustedSize ( const css::awt::Size &  aNewSize)
overridevirtual

Definition at line 922 of file cell.cxx.

sal_Int32 Cell::calcPreferredWidth ( const Size  aSize)
void Cell::cloneFrom ( const CellRef rCell)
sdr::properties::TextProperties * Cell::CloneProperties ( SdrObject rNewObj,
Cell rNewCell 
)

Definition at line 849 of file cell.cxx.

References mpProperties.

Referenced by sdr::table::CellUndo::setDataToCell().

sdr::properties::TextProperties * Cell::CloneProperties ( sdr::properties::TextProperties const *  pProperties,
SdrObject rNewObj,
Cell rNewCell 
)
static

Definition at line 840 of file cell.cxx.

void Cell::copyFormatFrom ( const CellRef xSourceCell)
rtl::Reference< Cell > Cell::create ( SdrTableObj rTableObj)
static

Definition at line 386 of file cell.cxx.

References Cell().

Referenced by sdr::table::SdrTableObj::createCell().

void Cell::dispose ( void  )

Definition at line 432 of file cell.cxx.

References Exception, mpProperties, mxTable, and SetOutlinerParaObject().

Referenced by disposing(), and ~Cell().

void SAL_CALL Cell::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 1681 of file cell.cxx.

References dispose(), and mxTable.

void Cell::dumpAsXml ( xmlTextWriterPtr  pWriter,
sal_Int32  nRow,
sal_Int32  nCol 
) const

Definition at line 1687 of file cell.cxx.

References SdrText::dumpAsXml(), and mpProperties.

void SAL_CALL Cell::firePropertiesChangeEvent ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener 
)
overridevirtual

Reimplemented from SvxUnoTextRangeBase.

Definition at line 1362 of file cell.cxx.

Any Cell::GetAnyForItem ( SfxItemSet const &  aSet,
const SfxItemPropertySimpleEntry pMap 
)
staticprotected
SVX_DLLPRIVATEconst ::tools::Rectangle& sdr::table::Cell::getCellRect ( ) const
inline

Definition at line 71 of file cell.hxx.

SVX_DLLPRIVATE ::tools::Rectangle& sdr::table::Cell::getCellRect ( )
inline

Definition at line 72 of file cell.hxx.

sal_Int32 SAL_CALL Cell::getColumnSpan ( )
overridevirtual

Definition at line 937 of file cell.cxx.

References mnColSpan.

std::unique_ptr< OutlinerParaObject > Cell::GetEditOutlinerParaObject ( ) const
sal_Int32 SAL_CALL Cell::getError ( )
overridevirtual

Definition at line 989 of file cell.cxx.

References mnError.

OUString SAL_CALL Cell::getFormula ( )
overridevirtual

Definition at line 952 of file cell.cxx.

References msFormula.

Sequence< sal_Int8 > SAL_CALL Cell::getImplementationId ( )
overridevirtual

Reimplemented from SvxUnoTextBase.

Definition at line 904 of file cell.cxx.

const SfxItemSet & Cell::GetItemSet ( ) const
overridevirtual
sal_Int32 Cell::getMinimumHeight ( )
css::awt::Size SAL_CALL Cell::getMinimumSize ( )
overridevirtual

Definition at line 910 of file cell.cxx.

References getMinimumHeight(), and getMinimumWidth().

Referenced by getPreferredSize().

sal_Int32 Cell::getMinimumWidth ( ) const

Definition at line 731 of file cell.cxx.

References GetTextLeftDistance(), and GetTextRightDistance().

Referenced by calcPreferredWidth(), and getMinimumSize().

const SfxItemSet & Cell::GetObjectItemSet ( )
overrideprotectedvirtual

Reimplemented from SdrText.

Definition at line 652 of file cell.cxx.

References SdrText::GetObject(), SdrObject::GetObjectItemSet(), and mpProperties.

css::awt::Size SAL_CALL Cell::getPreferredSize ( )
overridevirtual

Definition at line 916 of file cell.cxx.

References getMinimumSize().

Any SAL_CALL Cell::getPropertyDefault ( const OUString &  aPropertyName)
overridevirtual
Sequence< Any > SAL_CALL Cell::getPropertyDefaults ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Reimplemented from SvxUnoTextRangeBase.

Definition at line 1618 of file cell.cxx.

References Any, and getPropertyDefault().

Reference< XPropertySetInfo > SAL_CALL Cell::getPropertySetInfo ( )
overridevirtual

Reimplemented from SvxUnoTextRangeBase.

Definition at line 1020 of file cell.cxx.

References SvxItemPropertySet::getPropertySetInfo(), and mpPropSet.

PropertyState SAL_CALL Cell::getPropertyState ( const OUString &  PropertyName)
overridevirtual
Sequence< PropertyState > SAL_CALL Cell::getPropertyStates ( const css::uno::Sequence< OUString > &  aPropertyName)
overridevirtual

Reimplemented from SvxUnoTextRangeBase.

Definition at line 1473 of file cell.cxx.

References Exception, getPropertyState(), and mpProperties.

Any SAL_CALL Cell::getPropertyValue ( const OUString &  PropertyName)
overridevirtual
Sequence< Any > SAL_CALL Cell::getPropertyValues ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Reimplemented from SvxUnoTextRangeBase.

Definition at line 1320 of file cell.cxx.

References Any, Exception, getPropertyValue(), and mpProperties.

sal_Int32 SAL_CALL Cell::getRowSpan ( )
overridevirtual

Definition at line 931 of file cell.cxx.

References mnRowSpan.

OUString SAL_CALL Cell::getString ( )
overridevirtual
SfxStyleSheet * Cell::GetStyleSheet ( ) const
overridevirtual

Reimplemented from SdrText.

Definition at line 679 of file cell.cxx.

References mpProperties.

Referenced by getPropertyValue(), and mergeContent().

SdrTextHorzAdjust Cell::GetTextHorizontalAdjust ( ) const

Definition at line 806 of file cell.cxx.

References SfxItemSet::Get(), GetItemSet(), and SDRATTR_TEXT_HORZADJUST.

long Cell::GetTextLeftDistance ( ) const
long Cell::GetTextLowerDistance ( ) const

Definition at line 794 of file cell.cxx.

References SfxItemSet::Get(), GetItemSet(), and SDRATTR_TEXT_LOWERDIST.

Referenced by getMinimumHeight(), and TakeTextAnchorRect().

long Cell::GetTextRightDistance ( ) const
long Cell::GetTextUpperDistance ( ) const

Definition at line 788 of file cell.cxx.

References SfxItemSet::Get(), GetItemSet(), and SDRATTR_TEXT_UPPERDIST.

Referenced by getMinimumHeight(), and TakeTextAnchorRect().

SdrTextVertAdjust Cell::GetTextVerticalAdjust ( ) const

Definition at line 800 of file cell.cxx.

References SfxItemSet::Get(), GetItemSet(), and SDRATTR_TEXT_VERTADJUST.

CellContentType SAL_CALL Cell::getType ( )
overridevirtual

Definition at line 983 of file cell.cxx.

References mnCellContentType.

Sequence< Type > SAL_CALL Cell::getTypes ( )
overridevirtual
double SAL_CALL Cell::getValue ( )
overridevirtual

Definition at line 967 of file cell.cxx.

References mfValue.

bool Cell::hasText ( ) const
void SAL_CALL Cell::insertControlCharacter ( const css::uno::Reference< css::text::XTextRange > &  xRange,
::sal_Int16  nControlCharacter,
sal_Bool  bAbsorb 
)
overridevirtual

Definition at line 1657 of file cell.cxx.

References SvxUnoTextBase::insertControlCharacter(), and notifyModified().

void SAL_CALL Cell::insertString ( const css::uno::Reference< css::text::XTextRange > &  xRange,
const OUString &  aString,
sal_Bool  bAbsorb 
)
overridevirtual

Reimplemented from SvxUnoTextBase.

Definition at line 1650 of file cell.cxx.

References SvxUnoTextBase::insertString(), and notifyModified().

void SAL_CALL Cell::insertTextContent ( const css::uno::Reference< css::text::XTextRange > &  xRange,
const css::uno::Reference< css::text::XTextContent > &  xContent,
sal_Bool  bAbsorb 
)
overridevirtual

Reimplemented from SvxUnoTextBase.

Definition at line 1633 of file cell.cxx.

References SvxUnoTextBase::insertTextContent(), and notifyModified().

bool Cell::IsActiveCell ( ) const
sal_Bool SAL_CALL Cell::isMerged ( )
overridevirtual

Definition at line 943 of file cell.cxx.

References mbMerged.

bool Cell::IsTextEditActive ( ) const
void Cell::merge ( sal_Int32  nColumnSpan,
sal_Int32  nRowSpan 
)

Definition at line 457 of file cell.cxx.

References mbMerged, mnColSpan, mnRowSpan, and notifyModified().

void Cell::mergeContent ( const CellRef xSourceCell)
void Cell::notifyModified ( )
void sdr::table::Cell::operator= ( Cell const &  )
privatedelete
Any SAL_CALL Cell::queryInterface ( const css::uno::Type &  Type)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 858 of file cell.cxx.

References Any, and SvxUnoTextBase::queryAggregation().

void SAL_CALL Cell::release ( )
throw (
)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 886 of file cell.cxx.

References cppu::OWeakObject::release().

void SAL_CALL Cell::removePropertiesChangeListener ( const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener)
overridevirtual

Reimplemented from SvxUnoTextRangeBase.

Definition at line 1357 of file cell.cxx.

void SAL_CALL Cell::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual

Reimplemented from SvxUnoTextRangeBase.

Definition at line 1272 of file cell.cxx.

void SAL_CALL Cell::removeTextContent ( const css::uno::Reference< css::text::XTextContent > &  xContent)
overridevirtual

Reimplemented from SvxUnoTextBase.

Definition at line 1640 of file cell.cxx.

References notifyModified(), and SvxUnoTextBase::removeTextContent().

void SAL_CALL Cell::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Reimplemented from SvxUnoTextRangeBase.

Definition at line 1282 of file cell.cxx.

void Cell::replaceContentAndFormating ( const CellRef xSourceCell)
void SAL_CALL Cell::setAllPropertiesToDefault ( )
overridevirtual
SVX_DLLPRIVATE void sdr::table::Cell::setCellRect ( ::tools::Rectangle const &  rCellRect)
inline

Definition at line 70 of file cell.hxx.

void SAL_CALL Cell::setFormula ( const OUString &  aFormula)
overridevirtual

Definition at line 958 of file cell.cxx.

References msFormula.

void Cell::setMerged ( )

Definition at line 543 of file cell.cxx.

References mbMerged, and notifyModified().

void Cell::SetMergedItem ( const SfxPoolItem rItem)

Definition at line 674 of file cell.cxx.

References SetObjectItem().

void Cell::SetMergedItemSetAndBroadcast ( const SfxItemSet rSet,
bool  bClearAllItems 
)

Definition at line 702 of file cell.cxx.

References mpProperties, and notifyModified().

void Cell::SetObjectItem ( const SfxPoolItem rItem)
protected

Definition at line 665 of file cell.cxx.

References mpProperties, and notifyModified().

Referenced by SetMergedItem().

void Cell::SetOutlinerParaObject ( std::unique_ptr< OutlinerParaObject pTextObject)
overridevirtual
void SAL_CALL Cell::setPropertiesToDefault ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Reimplemented from SvxUnoTextRangeBase.

Definition at line 1611 of file cell.cxx.

References setPropertyToDefault().

void SAL_CALL Cell::setPropertyToDefault ( const OUString &  PropertyName)
overridevirtual
void SAL_CALL Cell::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual
void SAL_CALL Cell::setPropertyValues ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Sequence< css::uno::Any > &  aValues 
)
overridevirtual

Reimplemented from SvxUnoTextRangeBase.

Definition at line 1290 of file cell.cxx.

References Any, Exception, mpProperties, and setPropertyValue().

void SAL_CALL Cell::setString ( const OUString &  aString)
overridevirtual

Reimplemented from SvxUnoTextBase.

Definition at line 1674 of file cell.cxx.

References notifyModified(), and SvxUnoTextBase::setString().

void Cell::SetStyleSheet ( SfxStyleSheet pStyleSheet,
bool  bDontRemoveHardAttr 
)
void SAL_CALL Cell::setValue ( double  nValue)
overridevirtual

Definition at line 973 of file cell.cxx.

References mfValue, and mnCellContentType.

void Cell::TakeTextAnchorRect ( tools::Rectangle rAnchorRect) const

Friends And Related Function Documentation

friend class CellUndo
friend

Definition at line 55 of file cell.hxx.

Member Data Documentation

tools::Rectangle sdr::table::Cell::maCellRect
private

Definition at line 214 of file cell.hxx.

Referenced by TakeTextAnchorRect().

bool sdr::table::Cell::mbMerged
private

Definition at line 210 of file cell.hxx.

Referenced by cloneFrom(), isMerged(), merge(), and setMerged().

double sdr::table::Cell::mfValue
private

Definition at line 208 of file cell.hxx.

Referenced by cloneFrom(), getValue(), and setValue().

css::table::CellContentType sdr::table::Cell::mnCellContentType
private

Definition at line 205 of file cell.hxx.

Referenced by cloneFrom(), getType(), and setValue().

::sal_Int32 sdr::table::Cell::mnColSpan
private

Definition at line 212 of file cell.hxx.

Referenced by cloneFrom(), getColumnSpan(), and merge().

::sal_Int32 sdr::table::Cell::mnError
private

Definition at line 209 of file cell.hxx.

Referenced by cloneFrom(), and getError().

::sal_Int32 sdr::table::Cell::mnRowSpan
private

Definition at line 211 of file cell.hxx.

Referenced by cloneFrom(), getRowSpan(), and merge().

std::unique_ptr<sdr::properties::TextProperties> sdr::table::Cell::mpProperties
private
const SvxItemPropertySet* sdr::table::Cell::mpPropSet
private
OUString sdr::table::Cell::msFormula
private

Definition at line 207 of file cell.hxx.

Referenced by cloneFrom(), getFormula(), and setFormula().

css::uno::Reference< css::table::XTable > sdr::table::Cell::mxTable
private

Definition at line 216 of file cell.hxx.

Referenced by dispose(), disposing(), and notifyModified().


The documentation for this class was generated from the following files: