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 () override throw ()
 
virtual void SAL_CALL release () override throw ()
 
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
 SwXText (SwDoc *const pDoc, const CursorType eType)
 
const SwDocGetDoc () const
 
SwDocGetDoc ()
 
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 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 ()
 
 SvtListener (const SvtListener &r)
 
virtual ~SvtListener () COVERITY_NOEXCEPT_FALSE
 
bool StartListening (SvtBroadcaster &rBroadcaster)
 
bool EndListening (SvtBroadcaster &rBroadcaster)
 
void EndListeningAll ()
 
void CopyAllBroadcasters (const SvtListener &r)
 
bool HasBroadcaster () const
 
virtual void Query (QueryBase &rQuery) const
 

Static Public Member Functions

static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 
static 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
 
SwTableBoxpBox
 
const SwStartNodepStartNode
 
SwFrameFormatm_pTableFormat
 
size_t 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 ( )
overrideprivatevirtual

Definition at line 758 of file unotbl.cxx.

References SvtListener::EndListeningAll().

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

Definition at line 736 of file unotbl.cxx.

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

Referenced by CreateXCell().

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

Member Function Documentation

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

Definition at line 799 of file unotbl.cxx.

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

Reimplemented from SwXText.

Definition at line 1128 of file unotbl.cxx.

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

Reimplemented from SwXText.

Definition at line 1134 of file unotbl.cxx.

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

Reimplemented from SwXText.

Definition at line 830 of file unotbl.cxx.

References createTextCursor().

uno::Reference< container::XEnumeration > SwXCell::createEnumeration ( )
overridevirtual
uno::Reference< text::XTextCursor > SwXCell::createTextCursor ( )
overridevirtual
uno::Reference< text::XTextCursor > SwXCell::createTextCursorByRange ( const css::uno::Reference< css::text::XTextRange > &  aTextPosition)
overridevirtual
SwXCell * SwXCell::CreateXCell ( SwFrameFormat pTableFormat,
SwTableBox pBox,
SwTable pTable = nullptr 
)
static
SwTableBox * SwXCell::FindBox ( SwTable pTable,
SwTableBox pBox2 
)

search if a box exists in a table

Parameters
pTablethe table to search in
pBox2box model to find
Returns
the box if existent in pTable, 0 (!!!) if not found

Definition at line 1199 of file unotbl.cxx.

References o3tl::sorted_vector< Value, Compare, Find, class >::begin(), o3tl::sorted_vector< Value, Compare, Find, class >::end(), o3tl::sorted_vector< Value, Compare, Find, class >::find(), SwTable::GetTabSortBoxes(), nFndPos, NOTFOUND, and size.

Referenced by SwUnoCursorHelper::GetSelectableFromAny(), and IsValid().

uno::Any SwXCell::GetAny ( ) const
uno::Type SAL_CALL SwXCell::getElementType ( )
overridevirtual

Definition at line 1155 of file unotbl.cxx.

References cppu::UnoType< class >::get().

sal_Int32 SwXCell::getError ( )
overridevirtual

Definition at line 941 of file unotbl.cxx.

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

double SwXCell::GetForcedNumericalValue ( ) const
OUString SwXCell::getFormula ( )
overridevirtual
SwFrameFormat* SwXCell::GetFrameFormat ( ) const
inline
uno::Sequence< sal_Int8 > SAL_CALL SwXCell::getImplementationId ( )
overridevirtual

Definition at line 794 of file unotbl.cxx.

OUString SwXCell::getImplementationName ( )
overridevirtual

Definition at line 1271 of file unotbl.cxx.

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

Reimplemented from SwXText.

Definition at line 980 of file unotbl.cxx.

References SfxItemPropertySet::getPropertySetInfo(), and m_pPropSet.

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

Reimplemented from SwXText.

Definition at line 774 of file unotbl.cxx.

References SwXText::getSomething(), and getUnoTunnelId().

const SwStartNode * SwXCell::GetStartNode ( ) const
overrideprivatevirtual

Reimplemented from SwXText.

Definition at line 819 of file unotbl.cxx.

References SwTableBox::GetSttNd(), IsValid(), pBox, and pStartNode.

Referenced by setPropertyValue().

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

Definition at line 1277 of file unotbl.cxx.

SwTableBox* SwXCell::GetTableBox ( ) const
inline

Definition at line 143 of file unotbl.hxx.

References pBox.

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

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

Reimplemented from SwXText.

Definition at line 786 of file unotbl.cxx.

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

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

Definition at line 769 of file unotbl.cxx.

References sw::proofreadingiterator::get().

Referenced by getSomething().

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

Definition at line 111 of file unotbl.hxx.

References getValue().

sal_Bool SwXCell::hasElements ( )
overridevirtual

Definition at line 1160 of file unotbl.cxx.

bool SwXCell::IsValid ( ) const
private
void SwXCell::Notify ( const SfxHint rHint)
overrideprivatevirtual

Reimplemented from SvtListener.

Definition at line 1165 of file unotbl.cxx.

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

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

Reimplemented from SwXText.

Definition at line 811 of file unotbl.cxx.

References cppu::UnoType< class >::get(), and SwXText::queryInterface().

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

Definition at line 804 of file unotbl.cxx.

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

Reimplemented from SwXText.

Definition at line 1131 of file unotbl.cxx.

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

Reimplemented from SwXText.

Definition at line 1137 of file unotbl.cxx.

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

Reimplemented from SwXText.

Definition at line 935 of file unotbl.cxx.

References sw_setString.

void SwXCell::setValue ( double  nValue)
overridevirtual

Definition at line 911 of file unotbl.cxx.

References sw_setValue.

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

Definition at line 1274 of file unotbl.cxx.

References cppu::supportsService().

Friends And Related Function Documentation

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

Definition at line 686 of file unotbl.cxx.

Referenced by setFormula(), and setString().

void sw_setValue ( SwXCell rCell,
double  nVal 
)
friend

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

Definition at line 704 of file unotbl.cxx.

Referenced by setValue().

Member Data Documentation

const SfxItemPropertySet* SwXCell::m_pPropSet
private

Definition at line 67 of file unotbl.hxx.

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

SwFrameFormat* SwXCell::m_pTableFormat
private

Definition at line 70 of file unotbl.hxx.

Referenced by GetFrameFormat(), and Notify().

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

Definition at line 74 of file unotbl.hxx.

Referenced by getPropertyValue().

size_t SwXCell::nFndPos
private

Definition at line 73 of file unotbl.hxx.

Referenced by FindBox().

size_t const SwXCell::NOTFOUND = SAL_MAX_SIZE
staticprivate

Definition at line 75 of file unotbl.hxx.

Referenced by FindBox().

SwTableBox* SwXCell::pBox
private
const SwStartNode* SwXCell::pStartNode
private

Definition at line 69 of file unotbl.hxx.

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


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