LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
SwXCell Class Referencefinal

#include <unotbl.hxx>

Inheritance diagram for SwXCell:
[legend]
Collaboration diagram for SwXCell:
[legend]

Public Member Functions

 SwXCell (SwFrameFormat *pTableFormat, SwTableBox *pBox, size_t nPos)
 
 SwXCell (SwFrameFormat *pTableFormat, const SwStartNode &rStartNode)
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual OUString SAL_CALL getFormula () override
 
virtual void SAL_CALL setFormula (const OUString &aFormula) override
 
virtual double SAL_CALL getValue () override
 
double getValue () const
 
virtual void SAL_CALL setValue (double nValue) override
 
virtual css::table::CellContentType SAL_CALL getType () override
 
virtual sal_Int32 SAL_CALL getError () override
 
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 setString (const OUString &aString) override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &PropertyName) override
 
virtual void SAL_CALL addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
 
virtual void SAL_CALL addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () 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
 
SwTableBoxGetTableBox () const
 
SwTableBoxFindBox (SwTable *pTable, SwTableBox *pBox)
 search if a box exists in a table More...
 
SwFrameFormatGetFrameFormat () const
 
double GetForcedNumericalValue () const
 
css::uno::Any GetAny () const
 
- Public Member Functions inherited from SwXText
virtual const SwStartNodeGetStartNode () const
 
 SwXText (SwDoc *const pDoc, const CursorType eType)
 
const SwDocGetDoc () const
 
SwDocGetDoc ()
 
virtual css::uno::Reference< css::text::XTextCursor > CreateCursor ()
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &rIdentifier) override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL setPropertyValue (const OUString &rPropertyName, const css::uno::Any &rValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &rPropertyName) override
 
virtual void SAL_CALL addPropertyChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertyChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
 
virtual void SAL_CALL addVetoableChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override
 
virtual void SAL_CALL removeVetoableChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) 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 OUString SAL_CALL getString () override
 
virtual void SAL_CALL setString (const OUString &rString) override
 
virtual void SAL_CALL insertString (const css::uno::Reference< css::text::XTextRange > &xRange, const OUString &aString, sal_Bool bAbsorb) override
 
virtual void SAL_CALL insertControlCharacter (const css::uno::Reference< css::text::XTextRange > &xRange, sal_Int16 nControlCharacter, sal_Bool bAbsorb) override
 
virtual 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 void SAL_CALL removeTextContent (const css::uno::Reference< css::text::XTextContent > &xContent) override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL finishParagraph (const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties) override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL finishParagraphInsert (const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties, const css::uno::Reference< css::text::XTextRange > &xInsertPosition) override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL appendTextPortion (const OUString &rText, const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties) override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL insertTextPortion (const OUString &rText, const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties, const css::uno::Reference< css::text::XTextRange > &rTextRange) override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL appendTextContent (const css::uno::Reference< css::text::XTextContent > &xTextContent, const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties) override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL insertTextContentWithProperties (const css::uno::Reference< css::text::XTextContent > &xTextContent, const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties, const css::uno::Reference< css::text::XTextRange > &xInsertPosition) override
 
virtual css::uno::Reference< css::text::XTextContent > SAL_CALL convertToTextFrame (const css::uno::Reference< css::text::XTextRange > &xStart, const css::uno::Reference< css::text::XTextRange > &xEnd, const css::uno::Sequence< css::beans::PropertyValue > &xFrameProperties) override
 
virtual css::uno::Reference< css::text::XTextTable > SAL_CALL convertToTable (css::uno::Sequence< css::uno::Sequence< css::uno::Sequence< css::uno::Reference< css::text::XTextRange > > > > const &rTableRanges, css::uno::Sequence< css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > > const &rCellProperties, css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > const &rRowProperties, css::uno::Sequence< css::beans::PropertyValue > const &rTableProperties) override
 
virtual void SAL_CALL copyText (const css::uno::Reference< css::text::XTextCopy > &xSource) override
 
sal_Int16 SAL_CALL compareRegionStarts (const css::uno::Reference< css::text::XTextRange > &xR1, const css::uno::Reference< css::text::XTextRange > &xR2) override
 
sal_Int16 SAL_CALL compareRegionEnds (const css::uno::Reference< css::text::XTextRange > &xR1, const css::uno::Reference< css::text::XTextRange > &xR2) override
 
virtual void SAL_CALL insertTextContentBefore (const css::uno::Reference< css::text::XTextContent > &xNewContent, const css::uno::Reference< css::text::XTextContent > &xSuccessor) override
 
virtual void SAL_CALL insertTextContentAfter (const css::uno::Reference< css::text::XTextContent > &xNewContent, const css::uno::Reference< css::text::XTextContent > &xPredecessor) override
 
virtual void SAL_CALL removeTextContentBefore (const css::uno::Reference< css::text::XTextContent > &xSuccessor) override
 
virtual void SAL_CALL removeTextContentAfter (const css::uno::Reference< css::text::XTextContent > &xPredecessor) override
 
- Public Member Functions inherited from SvtListener
 SvtListener ()=default
 
 SvtListener (const SvtListener &r)=default
 
virtual ~SvtListener () COVERITY_NOEXCEPT_FALSE
 
bool StartListening (SvtBroadcaster &rBroadcaster)
 
void EndListening (SvtBroadcaster &rBroadcaster)
 
void EndListeningAll ()
 
void CopyAllBroadcasters (const SvtListener &r)
 
bool HasBroadcaster () const
 
virtual void Notify (const SfxHint &rHint)
 
virtual void Query (QueryBase &rQuery) const
 

Static Public Member Functions

static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 
static rtl::Reference< SwXCellCreateXCell (SwFrameFormat *pTableFormat, SwTableBox *pBox, SwTable *pTable=nullptr)
 
- Static Public Member Functions inherited from SwXText
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

Private Member Functions

virtual const SwStartNodeGetStartNode () const override
 
virtual css::uno::Reference< css::text::XTextCursor > CreateCursor () override
 
bool IsValid () const
 
virtual ~SwXCell () override
 
virtual void Notify (const SfxHint &) override
 

Private Attributes

const SfxItemPropertySetm_pPropSet
 
SwTableBoxm_pBox
 
const SwStartNodem_pStartNode
 
SwFrameFormatm_pTableFormat
 
size_t m_nFndPos
 
css::uno::Reference< css::text::XText > m_xParentText
 

Static Private Attributes

static size_t const NOTFOUND = SAL_MAX_SIZE
 

Friends

void sw_setString (SwXCell &rCell, const OUString &rText, bool bKeepNumberFormat)
 
void sw_setValue (SwXCell &rCell, double nVal)
 

Additional Inherited Members

- Protected Member Functions inherited from SwXText
bool IsValid () const
 
void Invalidate ()
 
void SetDoc (SwDoc *const pDoc)
 
virtual ~SwXText ()
 

Detailed Description

Definition at line 59 of file unotbl.hxx.

Constructor & Destructor Documentation

◆ ~SwXCell()

SwXCell::~SwXCell ( )
overrideprivatevirtual

Definition at line 740 of file unotbl.cxx.

References SvtListener::EndListeningAll().

◆ SwXCell() [1/2]

SwXCell::SwXCell ( SwFrameFormat pTableFormat,
SwTableBox pBox,
size_t  nPos 
)

Definition at line 718 of file unotbl.cxx.

References sw::BroadcasterMixin::GetNotifier(), nPos, SvtListener::StartListening(), and TableText.

Referenced by CreateXCell().

◆ SwXCell() [2/2]

SwXCell::SwXCell ( SwFrameFormat pTableFormat,
const SwStartNode rStartNode 
)

Member Function Documentation

◆ acquire()

void SAL_CALL SwXCell::acquire ( )
overridevirtualnoexcept

Definition at line 770 of file unotbl.cxx.

◆ addPropertyChangeListener()

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

Reimplemented from SwXText.

Definition at line 1084 of file unotbl.cxx.

◆ addVetoableChangeListener()

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

Reimplemented from SwXText.

Definition at line 1090 of file unotbl.cxx.

◆ CreateCursor()

uno::Reference< text::XTextCursor > SwXCell::CreateCursor ( )
overrideprivatevirtual
Exceptions
css::uno::RuntimeException

Reimplemented from SwXText.

Definition at line 801 of file unotbl.cxx.

References createTextCursor().

◆ createEnumeration()

uno::Reference< container::XEnumeration > SwXCell::createEnumeration ( )
overridevirtual

◆ createTextCursor()

uno::Reference< text::XTextCursor > SwXCell::createTextCursor ( )
overridevirtual

◆ createTextCursorByRange()

uno::Reference< text::XTextCursor > SwXCell::createTextCursorByRange ( const css::uno::Reference< css::text::XTextRange > &  aTextPosition)
overridevirtual

◆ CreateXCell()

rtl::Reference< SwXCell > SwXCell::CreateXCell ( SwFrameFormat pTableFormat,
SwTableBox pBox,
SwTable pTable = nullptr 
)
static

◆ FindBox()

SwTableBox * SwXCell::FindBox ( SwTable pTable,
SwTableBox pBox2 
)

◆ GetAny()

uno::Any SwXCell::GetAny ( ) const

◆ getElementType()

uno::Type SAL_CALL SwXCell::getElementType ( )
overridevirtual

Definition at line 1110 of file unotbl.cxx.

References cppu::UnoType< typename T >::get().

◆ getError()

sal_Int32 SwXCell::getError ( )
overridevirtual

Definition at line 910 of file unotbl.cxx.

References SwViewShell::GetShellRes(), and SwXText::getString().

◆ GetForcedNumericalValue()

double SwXCell::GetForcedNumericalValue ( ) const

◆ getFormula()

OUString SwXCell::getFormula ( )
overridevirtual

◆ GetFrameFormat()

SwFrameFormat * SwXCell::GetFrameFormat ( ) const
inline

◆ getImplementationId()

uno::Sequence< sal_Int8 > SAL_CALL SwXCell::getImplementationId ( )
overridevirtual

Definition at line 765 of file unotbl.cxx.

◆ getImplementationName()

OUString SwXCell::getImplementationName ( )
overridevirtual

Definition at line 1225 of file unotbl.cxx.

◆ getPropertySetInfo()

uno::Reference< beans::XPropertySetInfo > SwXCell::getPropertySetInfo ( )
overridevirtual

Reimplemented from SwXText.

Definition at line 949 of file unotbl.cxx.

References SfxItemPropertySet::getPropertySetInfo(), and m_pPropSet.

◆ getPropertyValue()

uno::Any SwXCell::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

◆ getSomething()

sal_Int64 SAL_CALL SwXCell::getSomething ( const css::uno::Sequence< sal_Int8 > &  aIdentifier)
overridevirtual

Reimplemented from SwXText.

Definition at line 752 of file unotbl.cxx.

References comphelper::getSomethingImpl().

◆ GetStartNode()

const SwStartNode * SwXCell::GetStartNode ( ) const
overrideprivatevirtual

Reimplemented from SwXText.

Definition at line 790 of file unotbl.cxx.

References SwTableBox::GetSttNd(), IsValid(), m_pBox, and m_pStartNode.

Referenced by setPropertyValue().

◆ getSupportedServiceNames()

uno::Sequence< OUString > SwXCell::getSupportedServiceNames ( )
overridevirtual

Definition at line 1231 of file unotbl.cxx.

◆ GetTableBox()

SwTableBox * SwXCell::GetTableBox ( ) const
inline

Definition at line 143 of file unotbl.hxx.

References m_pBox.

Referenced by GetForcedNumericalValue(), SwUnoCursorHelper::GetSelectableFromAny(), and Notify().

◆ getType()

table::CellContentType SwXCell::getType ( )
overridevirtual

◆ getTypes()

uno::Sequence< uno::Type > SAL_CALL SwXCell::getTypes ( )
overridevirtual

Reimplemented from SwXText.

Definition at line 757 of file unotbl.cxx.

References comphelper::concatSequences(), and SwXText::getTypes().

◆ getUnoTunnelId()

const uno::Sequence< sal_Int8 > & SwXCell::getUnoTunnelId ( )
static

Definition at line 746 of file unotbl.cxx.

References comphelper::UnoIdInit::getSeq().

◆ getValue() [1/2]

double SwXCell::getValue ( ) const
inline
Exceptions
css::uno::RuntimeException

Definition at line 111 of file unotbl.hxx.

References getValue().

◆ getValue() [2/2]

double SwXCell::getValue ( )
overridevirtual

◆ hasElements()

sal_Bool SwXCell::hasElements ( )
overridevirtual

Definition at line 1115 of file unotbl.cxx.

◆ IsValid()

bool SwXCell::IsValid ( ) const
private

◆ Notify()

void SwXCell::Notify ( const SfxHint rHint)
overrideprivatevirtual

Reimplemented from SvtListener.

Definition at line 1120 of file unotbl.cxx.

References SfxHint::GetId(), GetTableBox(), and m_pTableFormat.

◆ queryInterface()

uno::Any SAL_CALL SwXCell::queryInterface ( const css::uno::Type &  aType)
overridevirtual

Reimplemented from SwXText.

Definition at line 782 of file unotbl.cxx.

References SwXText::queryInterface().

◆ release()

void SAL_CALL SwXCell::release ( )
overridevirtualnoexcept

Definition at line 775 of file unotbl.cxx.

◆ removePropertyChangeListener()

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

Reimplemented from SwXText.

Definition at line 1087 of file unotbl.cxx.

◆ removeVetoableChangeListener()

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

Reimplemented from SwXText.

Definition at line 1093 of file unotbl.cxx.

◆ setFormula()

void SwXCell::setFormula ( const OUString &  rFormula)
overridevirtual

◆ setPropertyValue()

void SwXCell::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

◆ setString()

void SwXCell::setString ( const OUString &  aString)
overridevirtual

Reimplemented from SwXText.

Definition at line 904 of file unotbl.cxx.

References sw_setString.

◆ setValue()

void SwXCell::setValue ( double  nValue)
overridevirtual

Definition at line 880 of file unotbl.cxx.

References sw_setValue.

◆ supportsService()

sal_Bool SwXCell::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 1228 of file unotbl.cxx.

References cppu::supportsService().

Friends And Related Function Documentation

◆ sw_setString

void sw_setString ( SwXCell rCell,
const OUString &  rText,
bool  bKeepNumberFormat = false 
)
friend

Definition at line 668 of file unotbl.cxx.

Referenced by setFormula(), and setString().

◆ sw_setValue

void sw_setValue ( SwXCell rCell,
double  nVal 
)
friend

! do we need to set a new number format? Yes, if

Definition at line 686 of file unotbl.cxx.

Referenced by setValue().

Member Data Documentation

◆ m_nFndPos

size_t SwXCell::m_nFndPos
private

Definition at line 73 of file unotbl.hxx.

Referenced by FindBox().

◆ m_pBox

SwTableBox* SwXCell::m_pBox
private

◆ m_pPropSet

const SfxItemPropertySet* SwXCell::m_pPropSet
private

Definition at line 67 of file unotbl.hxx.

Referenced by getPropertySetInfo(), getPropertyValue(), and setPropertyValue().

◆ m_pStartNode

const SwStartNode* SwXCell::m_pStartNode
private

Definition at line 69 of file unotbl.hxx.

Referenced by createTextCursor(), createTextCursorByRange(), and GetStartNode().

◆ m_pTableFormat

SwFrameFormat* SwXCell::m_pTableFormat
private

Definition at line 70 of file unotbl.hxx.

Referenced by GetFrameFormat(), and Notify().

◆ m_xParentText

css::uno::Reference<css::text::XText> SwXCell::m_xParentText
private

Definition at line 74 of file unotbl.hxx.

Referenced by getPropertyValue().

◆ NOTFOUND

size_t const SwXCell::NOTFOUND = SAL_MAX_SIZE
staticprivate

Definition at line 75 of file unotbl.hxx.

Referenced by FindBox().


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