LibreOffice Module sw (master) 1
|
#include <unotbl.hxx>
Public Member Functions | |
SwXCell (SwFrameFormat *pTableFormat, SwTableBox *pBox, size_t nPos) | |
SwXCell (SwFrameFormat *pTableFormat, const SwStartNode &rStartNode) | |
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 rtl::Reference< SwXTextCursor > | createXTextCursor () override |
virtual rtl::Reference< SwXTextCursor > | createXTextCursorByRange (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 |
SwTableBox * | GetTableBox () const |
SwTableBox * | FindBox (SwTable *pTable, SwTableBox *pBox) |
search if a box exists in a table More... | |
SwFrameFormat * | GetFrameFormat () const |
double | GetForcedNumericalValue () const |
css::uno::Any | GetAny () const |
Public Member Functions inherited from SwXText | |
virtual const SwStartNode * | GetStartNode () const |
SwXText (SwDoc *const pDoc, const CursorType eType) | |
const SwDoc * | GetDoc () const |
SwDoc * | GetDoc () |
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 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 css::uno::Reference< css::text::XTextCursor > SAL_CALL | createTextCursorByRange (const ::css::uno::Reference< ::css::text::XTextRange > &aTextPosition) override final |
virtual rtl::Reference< SwXTextCursor > | createXTextCursorByRange (const ::css::uno::Reference< ::css::text::XTextRange > &aTextPosition)=0 |
virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL | createTextCursor () override final |
virtual rtl::Reference< SwXTextCursor > | createXTextCursor ()=0 |
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 rtl::Reference< SwXCell > | CreateXCell (SwFrameFormat *pTableFormat, SwTableBox *pBox, SwTable *pTable=nullptr) |
Private Member Functions | |
virtual const SwStartNode * | GetStartNode () const override |
bool | IsValid () const |
virtual | ~SwXCell () override |
virtual void | Notify (const SfxHint &) override |
Private Attributes | |
const SfxItemPropertySet * | m_pPropSet |
SwTableBox * | m_pBox |
const SwStartNode * | m_pStartNode |
SwFrameFormat * | m_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 () |
Definition at line 60 of file unotbl.hxx.
|
overrideprivatevirtual |
Definition at line 739 of file unotbl.cxx.
References SvtListener::EndListeningAll().
SwXCell::SwXCell | ( | SwFrameFormat * | pTableFormat, |
SwTableBox * | pBox, | ||
size_t | nPos | ||
) |
Definition at line 717 of file unotbl.cxx.
References nPos, SvtListener::StartListening(), and TableText.
Referenced by CreateXCell().
SwXCell::SwXCell | ( | SwFrameFormat * | pTableFormat, |
const SwStartNode & | rStartNode | ||
) |
Definition at line 728 of file unotbl.cxx.
References NOTFOUND, SvtListener::StartListening(), and TableText.
|
overridevirtualnoexcept |
Definition at line 758 of file unotbl.cxx.
|
overridevirtual |
Reimplemented from SwXText.
Definition at line 1062 of file unotbl.cxx.
|
overridevirtual |
Reimplemented from SwXText.
Definition at line 1068 of file unotbl.cxx.
|
overridevirtual |
Definition at line 1074 of file unotbl.cxx.
References SwXParagraphEnumeration::Create(), fnMoveForward, SwXText::GetDoc(), SwTableBox::GetSttNd(), GoInNode(), IsValid(), m_pBox, and TableText.
|
static |
Definition at line 1111 of file unotbl.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::begin(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), SwTable::FindTable(), SwTable::GetTabSortBoxes(), nPos, and SwXCell().
Referenced by SwXMLTextParagraphExport::CollectTableLinesAutoStyles(), sw::CreateParentXText(), SwXMLExport::ExportTableBox(), SwXMLExport::ExportTableLinesAutoStyles(), SwXTextTable::getCellByName(), SwUnoCursorHelper::getCursorPropertyValue(), SwXMLTableContext::InsertTableSection(), and lcl_CreateXCell().
|
overridevirtual |
Implements SwXText.
Definition at line 898 of file unotbl.cxx.
References fnMoveForward, SwXText::GetDoc(), SwTableBox::GetSttNd(), GoInNode(), IsValid(), m_pBox, m_pStartNode, and TableText.
|
overridevirtual |
Implements SwXText.
Definition at line 911 of file unotbl.cxx.
References SwXText::GetDoc(), SwPaM::GetMark(), SwPaM::GetPoint(), SwPaM::GetPointNode(), SwTableBox::GetSttNd(), SwNode::IsSectionNode(), IsValid(), m_pBox, m_pStartNode, SwNode::StartOfSectionNode(), TableText, and sw::XTextRangeToSwPaM().
SwTableBox * SwXCell::FindBox | ( | SwTable * | pTable, |
SwTableBox * | pBox2 | ||
) |
search if a box exists in a table
pTable | the table to search in |
pBox2 | box model to find |
Definition at line 1132 of file unotbl.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::begin(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), SwTable::GetTabSortBoxes(), m_nFndPos, NOTFOUND, and size.
Referenced by SwUnoCursorHelper::GetSelectableFromAny(), and IsValid().
uno::Any SwXCell::GetAny | ( | ) | const |
Definition at line 1193 of file unotbl.cxx.
References SwTableBox::GetFrameFormat(), SwXText::getString(), getValue(), m_pBox, and RES_BOXATR_VALUE().
|
overridevirtual |
Definition at line 1088 of file unotbl.cxx.
References cppu::UnoType< typename T >::get().
|
overridevirtual |
Definition at line 891 of file unotbl.cxx.
References SwViewShell::GetShellRes(), and SwXText::getString().
double SwXCell::GetForcedNumericalValue | ( | ) | const |
Definition at line 1152 of file unotbl.cxx.
References SwXText::GetDoc(), GetFrameFormat(), SvNumberFormatter::GetStandardIndex(), SwXText::getString(), GetTableBox(), getType(), CntUInt32Item::GetValue(), getValue(), SwDoc::IsNumberFormat(), LANGUAGE_SYSTEM, RES_BOXATR_FORMAT(), and SV_COUNTRY_LANGUAGE_OFFSET.
|
overridevirtual |
Definition at line 810 of file unotbl.cxx.
References SwTable::FindTable(), SwTableFormula::GetFormula(), SwTableBox::GetFrameFormat(), GetFrameFormat(), SwFormat::GetTableBoxFormula(), IsValid(), m_pBox, and SwTableFormula::PtrToBoxNm().
|
inline |
Definition at line 139 of file unotbl.hxx.
References m_pTableFormat.
Referenced by GetForcedNumericalValue(), getFormula(), getPropertyValue(), SwUnoCursorHelper::GetSelectableFromAny(), IsValid(), and setFormula().
|
overridevirtual |
Definition at line 753 of file unotbl.cxx.
|
overridevirtual |
Definition at line 1203 of file unotbl.cxx.
|
overridevirtual |
Reimplemented from SwXText.
Definition at line 927 of file unotbl.cxx.
References SfxItemPropertySet::getPropertySetInfo(), and m_pPropSet.
|
overridevirtual |
Reimplemented from SwXText.
Definition at line 999 of file unotbl.cxx.
References sw::CreateParentXText(), SwNode::FindSectionNode(), SwTable::FindTable(), SwNode::FindTableNode(), FN_UNO_CELL_NAME, FN_UNO_CELL_ROW_SPAN, FN_UNO_PARENT_TEXT, FN_UNO_REDLINE_NODE_END, FN_UNO_REDLINE_NODE_START, FN_UNO_TEXT_SECTION, SwFormat::GetAttrSet(), SfxItemPropertyMap::getByName(), SwPosition::GetDoc(), SwSection::GetFormat(), SwTableBox::GetFrameFormat(), GetFrameFormat(), SwTableBox::GetName(), SwXTextSections::GetObject(), SfxItemPropertySet::getPropertyMap(), SwXText::getPropertyValue(), SfxItemPropertySet::getPropertyValue(), SwTableBox::getRowSpan(), SwSectionNode::GetSection(), SwTableBox::GetSttNd(), SwTable::GetTableNode(), IsValid(), m_pBox, m_pPropSet, m_xParentText, and rSet.
|
overrideprivatevirtual |
Reimplemented from SwXText.
Definition at line 778 of file unotbl.cxx.
References SwTableBox::GetSttNd(), IsValid(), m_pBox, and m_pStartNode.
Referenced by setPropertyValue().
|
overridevirtual |
Definition at line 1209 of file unotbl.cxx.
|
inline |
Definition at line 136 of file unotbl.hxx.
References m_pBox.
Referenced by GetForcedNumericalValue(), SwUnoCursorHelper::GetSelectableFromAny(), and Notify().
|
overridevirtual |
Definition at line 867 of file unotbl.cxx.
References SwTableBox::IsFormulaOrValueBox(), m_pBox, RES_BOXATR_FORMULA(), and RES_BOXATR_VALUE().
Referenced by GetForcedNumericalValue().
|
overridevirtual |
Reimplemented from SwXText.
Definition at line 745 of file unotbl.cxx.
References comphelper::concatSequences(), and SwXText::getTypes().
|
inline |
css::uno::RuntimeException |
Definition at line 103 of file unotbl.hxx.
References getValue().
|
overridevirtual |
Definition at line 852 of file unotbl.cxx.
References SwTableBox::GetFrameFormat(), SwXText::getString(), SwFormat::GetTableBoxValue(), SwTableBoxValue::GetValue(), IsValid(), and m_pBox.
Referenced by GetAny(), GetForcedNumericalValue(), and getValue().
|
overridevirtual |
Definition at line 1093 of file unotbl.cxx.
|
private |
Definition at line 788 of file unotbl.cxx.
References FindBox(), SwTable::FindTable(), GetFrameFormat(), and m_pBox.
Referenced by createEnumeration(), createXTextCursor(), createXTextCursorByRange(), getFormula(), getPropertyValue(), GetStartNode(), getValue(), setFormula(), and setPropertyValue().
|
overrideprivatevirtual |
Reimplemented from SvtListener.
Definition at line 1098 of file unotbl.cxx.
References SfxHint::GetId(), GetTableBox(), and m_pTableFormat.
|
overridevirtual |
Reimplemented from SwXText.
Definition at line 770 of file unotbl.cxx.
References SwXText::queryInterface().
|
overridevirtualnoexcept |
Definition at line 763 of file unotbl.cxx.
|
overridevirtual |
Reimplemented from SwXText.
Definition at line 1065 of file unotbl.cxx.
|
overridevirtual |
Reimplemented from SwXText.
Definition at line 1071 of file unotbl.cxx.
|
overridevirtual |
Definition at line 822 of file unotbl.cxx.
References SwTable::FindTable(), SwDoc::GetAttrPool(), SwFormat::GetAttrSet(), SwXText::GetDoc(), SwTableBox::GetFrameFormat(), GetFrameFormat(), SwDoc::getIDocumentFieldsAccess(), SfxItemSet::GetItemIfSet(), SwDoc::GetNumberFormatter(), CntUInt32Item::GetValue(), SvNumberFormatter::IsTextFormat(), IsValid(), SwTableBox::IsValidNumTextNd(), m_pBox, SfxItemSet::Put(), RES_BOXATR_FORMAT(), SwDoc::SetTableBoxFormulaAttrs(), sFormula, comphelper::string::stripStart(), sw_setString, and IDocumentFieldsAccess::UpdateTableFields().
|
overridevirtual |
Reimplemented from SwXText.
Definition at line 933 of file unotbl.cxx.
References aSwMapProvider, SwTableBox::ClaimFrameFormat(), SwNode::EndOfSectionNode(), FN_UNO_CELL_ROW_SPAN, SwFormat::GetAttrSet(), SfxItemPropertyMap::getByName(), SwFormat::GetDoc(), SwTableBox::GetFrameFormat(), SwNodeIndex::GetNode(), SfxItemPropertySet::getPropertyMap(), SwUnoPropertyMapProvider::GetPropertySet(), GetStartNode(), SwNode::GetTextNode(), IsValid(), m_pBox, m_pPropSet, SwUnoCursorHelper::makeTableCellRedline(), PROPERTY_MAP_PARAGRAPH, SvxFrameDirectionItem::PutValue(), RES_FRAMEDIR(), SwDoc::SetAttr(), SwTextNode::SetCountedInList(), SwFormat::SetFormatAttr(), SfxItemPropertySet::setPropertyValue(), and SwTableBox::setRowSpan().
|
overridevirtual |
|
overridevirtual |
Definition at line 861 of file unotbl.cxx.
References sw_setValue.
|
overridevirtual |
Definition at line 1206 of file unotbl.cxx.
References cppu::supportsService().
|
friend |
Definition at line 668 of file unotbl.cxx.
Referenced by setFormula(), and setString().
|
friend |
! do we need to set a new number format? Yes, if
Definition at line 686 of file unotbl.cxx.
Referenced by setValue().
|
private |
Definition at line 74 of file unotbl.hxx.
Referenced by FindBox().
|
private |
Definition at line 69 of file unotbl.hxx.
Referenced by createEnumeration(), createXTextCursor(), createXTextCursorByRange(), GetAny(), getFormula(), getPropertyValue(), GetStartNode(), GetTableBox(), getType(), getValue(), IsValid(), setFormula(), and setPropertyValue().
|
private |
Definition at line 68 of file unotbl.hxx.
Referenced by getPropertySetInfo(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 70 of file unotbl.hxx.
Referenced by createXTextCursor(), createXTextCursorByRange(), and GetStartNode().
|
private |
Definition at line 71 of file unotbl.hxx.
Referenced by GetFrameFormat(), and Notify().
|
private |
Definition at line 75 of file unotbl.hxx.
Referenced by getPropertyValue().
|
staticprivate |
Definition at line 76 of file unotbl.hxx.
Referenced by FindBox().