LibreOffice Module sw (master) 1
|
#include <unotbl.hxx>
Classes | |
class | Impl |
Public Member Functions | |
SwFrameFormat * | GetFrameFormat () |
virtual void SAL_CALL | initialize (sal_Int32 nRows, sal_Int32 nColumns) override |
virtual css::uno::Reference< css::table::XTableRows > SAL_CALL | getRows () override |
virtual css::uno::Reference< css::table::XTableColumns > SAL_CALL | getColumns () override |
virtual css::uno::Reference< css::table::XCell > SAL_CALL | getCellByName (const OUString &aCellName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getCellNames () override |
virtual css::uno::Reference< css::text::XTextTableCursor > SAL_CALL | createCursorByCellName (const OUString &aCellName) override |
virtual void SAL_CALL | attach (const css::uno::Reference< css::text::XTextRange > &xTextRange) override |
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL | getAnchor () override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override |
virtual css::uno::Reference< css::table::XCell > SAL_CALL | getCellByPosition (sal_Int32 nColumn, sal_Int32 nRow) override |
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL | getCellRangeByPosition (sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom) override |
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL | getCellRangeByName (const OUString &aRange) override |
virtual css::uno::Sequence< css::uno::Sequence< double > > SAL_CALL | getData () override |
virtual void SAL_CALL | setData (const css::uno::Sequence< css::uno::Sequence< double > > &aData) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getRowDescriptions () override |
virtual void SAL_CALL | setRowDescriptions (const css::uno::Sequence< OUString > &aRowDescriptions) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getColumnDescriptions () override |
virtual void SAL_CALL | setColumnDescriptions (const css::uno::Sequence< OUString > &aColumnDescriptions) override |
virtual void SAL_CALL | addChartDataChangeEventListener (const css::uno::Reference< css::chart::XChartDataChangeEventListener > &aListener) override |
virtual void SAL_CALL | removeChartDataChangeEventListener (const css::uno::Reference< css::chart::XChartDataChangeEventListener > &aListener) override |
virtual double SAL_CALL | getNotANumber () override |
virtual sal_Bool SAL_CALL | isNotANumber (double nNumber) override |
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL | createSortDescriptor () override |
virtual void SAL_CALL | sort (const css::uno::Sequence< css::beans::PropertyValue > &xDescriptor) override |
virtual void SAL_CALL | autoFormat (const OUString &aName) 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 | getName () override |
virtual void SAL_CALL | setName (const OUString &Name_) override |
virtual css::uno::Sequence< css::uno::Sequence< css::uno::Any > > SAL_CALL | getDataArray () override |
virtual void SAL_CALL | setDataArray (const css::uno::Sequence< css::uno::Sequence< css::uno::Any > > &aArray) 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 |
Static Public Member Functions | |
static rtl::Reference< SwXTextTable > | CreateXTextTable (SwFrameFormat *pFrameFormat) |
static void | GetCellPosition (std::u16string_view aCellName, sal_Int32 &o_rColumn, sal_Int32 &o_rRow) |
get position of a cell with a given name More... | |
Private Member Functions | |
SwXTextTable () | |
SwXTextTable (SwFrameFormat &rFrameFormat) | |
virtual | ~SwXTextTable () override |
Private Attributes | |
::sw::UnoImplPtr< Impl > | m_pImpl |
Definition at line 249 of file unotbl.hxx.
|
private |
|
private |
Definition at line 1955 of file unotbl.cxx.
References m_pImpl.
|
overrideprivatevirtual |
Definition at line 1960 of file unotbl.cxx.
|
overridevirtual |
Definition at line 2345 of file unotbl.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 2139 of file unotbl.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 2936 of file unotbl.cxx.
|
overridevirtual |
Definition at line 2942 of file unotbl.cxx.
|
overridevirtual |
Definition at line 2055 of file unotbl.cxx.
References DefaultBorder, IDocumentContentOperations::DeleteAndJoin(), SwPaM::DeleteMark(), EMPTY, END, SwDoc::FindTableFormatByName(), FN_UNO_TABLE_NAME, SwPosition::GetContentIndex(), SwXTextRange::GetDoc(), SwTable::GetFrameFormat(), SwDoc::getIDocumentContentOperations(), SwDoc::GetIDocumentUndoRedo(), SwPaM::GetPoint(), SwPaM::HasMark(), Headline, SwDoc::InsertTable(), lcl_FormatTable(), m_pImpl, nIndex, pName, setName(), SwDoc::SetTableName(), SplitLayout, IDocumentContentOperations::SplitNode(), SwPaM::Start(), and sw::XTextRangeToSwPaM().
|
overridevirtual |
Definition at line 2403 of file unotbl.cxx.
References SwTable::FindTable(), SwFormat::GetDoc(), GetFrameFormat(), GetName(), SwTable::GetTabSortBoxes(), i, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), SwTableAutoFormatTable::Load(), n, SwDoc::SetTableAutoFormat(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), and SwTableAutoFormatTable::size().
|
overridevirtual |
Definition at line 2043 of file unotbl.cxx.
References SwTable::FindTable(), GetFrameFormat(), SwTableBox::getRowSpan(), and SwTable::GetTableBox().
|
overridevirtual |
Definition at line 2375 of file unotbl.cxx.
References SwUnoCursorHelper::CreateSortDescriptor().
|
static |
Definition at line 1964 of file unotbl.cxx.
References SwFrameFormat::GetXObject(), SwFrameFormat::SetXObject(), and SwXTextTable().
Referenced by SwXText::convertToTable(), SwXTextTables::GetObject(), SwXServiceProvider::MakeInstance(), and UnfloatTableButton::MouseButtonDown().
|
overridevirtual |
Definition at line 2128 of file unotbl.cxx.
References SwDoc::DeleteProtected, SwDoc::DeleteRowCol(), SwTable::FindTable(), SwFormat::GetDoc(), GetFrameFormat(), SwTable::GetTabSortBoxes(), and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert().
|
overridevirtual |
Definition at line 2120 of file unotbl.cxx.
References GetFrameFormat().
|
overridevirtual |
Definition at line 2018 of file unotbl.cxx.
References SwXCell::CreateXCell(), SwTable::FindTable(), GetFrameFormat(), and SwTable::GetTableBox().
|
overridevirtual |
Definition at line 2155 of file unotbl.cxx.
References GetFrameFormat(), and lcl_CreateXCell().
|
overridevirtual |
Definition at line 2029 of file unotbl.cxx.
References comphelper::containerToSequence(), SwTable::FindTable(), GetFrameFormat(), SwTable::GetTabLines(), and lcl_InspectLines().
|
static |
get position of a cell with a given name
If everything was OK, the indices for column and row are changed (both >= 0). In case of errors, at least one of them is < 0.
Also since the implementations of tables does not really have columns using this function is appropriate only for tables that are not complex (i.e. where IsTableComplex() returns false).
rCellName | e.g. A1..Z1, a1..z1, AA1..AZ1, Aa1..Az1, BA1..BZ1, Ba1..Bz1, ... |
[IN,OUT] | o_rColumn (0-based) |
[IN,OUT] | o_rRow (0-based) |
Definition at line 352 of file unotbl.cxx.
References i, SAL_WARN, and o3tl::toInt32().
Referenced by SwChartDataProvider::AddRowCols(), SwChartDataProvider::convertRangeToXML(), SwChartDataSequence::DeleteBox(), SwChartDataProvider::detectArguments(), FillRangeDescriptor(), SwChartDataProvider::GetBrokenCellRangeForExport(), getCellRangeByName(), SwXCellRange::getCellRangeByName(), SwChartDataProvider::Impl_createDataSource(), sw_CompareCellsByColFirst(), sw_CompareCellsByRowFirst(), and sw_NormalizeRange().
|
overridevirtual |
Definition at line 2227 of file unotbl.cxx.
References SwTable::FindTable(), GetCellPosition(), GetFrameFormat(), SwRangeDescriptor::nBottom, SwRangeDescriptor::nLeft, SwRangeDescriptor::Normalize(), nPos, SwRangeDescriptor::nRight, and SwRangeDescriptor::nTop.
|
overridevirtual |
Definition at line 2201 of file unotbl.cxx.
References SwTable::FindTable(), GetFrameFormat(), SwTable::IsTableComplex(), SwRangeDescriptor::nBottom, SwRangeDescriptor::nLeft, SwRangeDescriptor::nRight, SwRangeDescriptor::nTop, and sw_GetCellName().
Referenced by getColumnDescriptions(), getData(), getDataArray(), getRowDescriptions(), setColumnDescriptions(), setData(), setDataArray(), and setRowDescriptions().
|
overridevirtual |
Definition at line 2321 of file unotbl.cxx.
References getCellRangeByPosition(), SwXCellRange::getColumnDescriptions(), m_pImpl, and SwXTextTable::Impl::ThrowIfComplex().
|
overridevirtual |
Definition at line 2005 of file unotbl.cxx.
References GetFrameFormat(), and m_pImpl.
|
overridevirtual |
Definition at line 2270 of file unotbl.cxx.
References getCellRangeByPosition(), SwXCellRange::getData(), m_pImpl, and SwXTextTable::Impl::ThrowIfComplex().
|
overridevirtual |
Definition at line 2250 of file unotbl.cxx.
References getCellRangeByPosition(), and SwXTextTable::Impl::ThrowIfComplex().
SwFrameFormat * SwXTextTable::GetFrameFormat | ( | ) |
Definition at line 1979 of file unotbl.cxx.
References m_pImpl.
Referenced by autoFormat(), SwXText::convertToTable(), createCursorByCellName(), dispose(), SwXMLTextParagraphExport::exportTable(), getAnchor(), getCellByName(), getCellByPosition(), getCellNames(), getCellRangeByName(), getCellRangeByPosition(), SwXTextTable::Impl::GetColumnCount(), getColumns(), getName(), getPropertyValue(), getRows(), SwUnoCursorHelper::GetSelectableFromAny(), SwVbaTableHelper::GetSwTable(), SwXText::insertTextContentAfter(), SwXText::insertTextContentBefore(), SwXText::removeTextContentAfter(), SwXText::removeTextContentBefore(), setName(), setPropertyValue(), and sort().
|
overridevirtual |
Definition at line 3069 of file unotbl.cxx.
|
overridevirtual |
Definition at line 2948 of file unotbl.cxx.
References GetFrameFormat(), SwFormat::GetName(), and m_pImpl.
Referenced by getPropertyValue().
|
overridevirtual |
Definition at line 2368 of file unotbl.cxx.
|
overridevirtual |
Definition at line 2426 of file unotbl.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 2690 of file unotbl.cxx.
References convertTwipToMm100(), SwDoc::CreateUnoCursor(), SwStyleNameMapper::FillProgName(), SwNode::FindSectionNode(), SwTable::FindTable(), FN_UNO_ANCHOR_TYPE, FN_UNO_ANCHOR_TYPES, FN_UNO_RANGE_COL_LABEL, FN_UNO_RANGE_ROW_LABEL, FN_UNO_TABLE_BORDER, FN_UNO_TABLE_BORDER2, FN_UNO_TABLE_BORDER_DISTANCES, FN_UNO_TABLE_COLUMN_RELATIVE_SUM, FN_UNO_TABLE_COLUMN_SEPARATORS, FN_UNO_TABLE_NAME, FN_UNO_TABLE_TEMPLATE_NAME, FN_UNO_TEXT_SECTION, FN_UNO_TEXT_WRAP, fnMoveForward, SwDoc::GetAttrPool(), SwFormat::GetAttrSet(), SvxBoxItem::GetBottom(), SwFormat::GetBox(), sw::GetDefaultTextContentValue(), SvxBoxItem::GetDistance(), SwFormat::GetDoc(), SwSection::GetFormat(), SwTableBox::GetFrameFormat(), GetFrameFormat(), SvxBoxInfoItem::GetHori(), SvxBoxItem::GetLeft(), getName(), SwXTextSections::GetObject(), SvxBoxItem::GetRight(), SwSectionNode::GetSection(), SvxBoxItem::GetSmallestDistance(), SwTableBox::GetSttNd(), SwDoc::GetTabBorders(), SwTableLine::GetTabBoxes(), SwTable::GetTableNode(), SwTable::GetTableStyleName(), SwTable::GetTabLines(), SvxBoxItem::GetTop(), SvxBoxInfoItem::GetVert(), GoInNode(), i, SvxBoxInfoItem::IsValid(), lcl_FindCornerTableBox(), lcl_FormatTable(), lcl_GetSpecialProperty(), lcl_GetTableSeparators(), m_pImpl, SwUnoTableCursor::MakeBoxSels(), SfxItemPropertyMapEntry::nMemberId, SfxItemPropertyMapEntry::nWID, rBoxInfoItem, RES_ANCHOR(), RES_BOX(), rSet, SwTableLines::size(), sName, SvxBoxItem::SvxLineToLine(), TabStyle, u, and UNO_TABLE_COLUMN_SUM.
|
overridevirtual |
Definition at line 2297 of file unotbl.cxx.
References getCellRangeByPosition(), SwXCellRange::getRowDescriptions(), m_pImpl, and SwXTextTable::Impl::ThrowIfComplex().
|
overridevirtual |
Definition at line 1992 of file unotbl.cxx.
References GetFrameFormat(), and m_pImpl.
|
overridevirtual |
Definition at line 3075 of file unotbl.cxx.
|
overridevirtual |
Definition at line 1984 of file unotbl.cxx.
References m_pImpl, and SAL_MAX_UINT16.
|
overridevirtual |
Definition at line 2361 of file unotbl.cxx.
|
overridevirtual |
Definition at line 2353 of file unotbl.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 2147 of file unotbl.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 2939 of file unotbl.cxx.
|
overridevirtual |
Definition at line 2945 of file unotbl.cxx.
|
overridevirtual |
Definition at line 2333 of file unotbl.cxx.
References getCellRangeByPosition(), m_pImpl, SwXCellRange::setColumnDescriptions(), and SwXTextTable::Impl::ThrowIfComplex().
|
overridevirtual |
Definition at line 2282 of file unotbl.cxx.
References getCellRangeByPosition(), m_pImpl, SwXCellRange::setData(), and SwXTextTable::Impl::ThrowIfComplex().
|
overridevirtual |
Definition at line 2260 of file unotbl.cxx.
References getCellRangeByPosition(), and SwXTextTable::Impl::ThrowIfComplex().
|
overridevirtual |
Definition at line 2961 of file unotbl.cxx.
References SwNodeIndex::Assign(), SwNode::EndOfSectionNode(), SwTable::FindTable(), SwOLENode::GetChartTableName(), SwFormat::GetDoc(), SwNodes::GetEndOfAutotext(), SwTable::GetFrameFormat(), GetFrameFormat(), SwDoc::getIDocumentState(), SwFormat::GetName(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwNode::GetStartNode(), SwDoc::GetTableFrameFormats(), i, SwFormat::IsDefault(), SwNode::IsOLENode(), SwDoc::IsUsed(), m_pImpl, SwFrameFormat::SetFormatName(), IDocumentState::SetModified(), SwFrameFormats::size(), SwNode::StartOfSectionNode(), and SwDoc::UpdateCharts().
Referenced by attach(), and setPropertyValue().
|
overridevirtual |
Definition at line 2432 of file unotbl.cxx.
References SwTableBox::ClaimFrameFormat(), SwDoc::CreateUnoCursor(), END, SwStyleNameMapper::FillUIName(), SwTable::FindTable(), FN_UNO_RANGE_COL_LABEL, FN_UNO_RANGE_ROW_LABEL, FN_UNO_TABLE_BORDER, FN_UNO_TABLE_BORDER2, FN_UNO_TABLE_BORDER_DISTANCES, FN_UNO_TABLE_COLUMN_RELATIVE_SUM, FN_UNO_TABLE_COLUMN_SEPARATORS, FN_UNO_TABLE_NAME, FN_UNO_TABLE_TEMPLATE_NAME, fnMoveForward, SwDoc::GetAttrPool(), SwFormat::GetAttrSet(), SwFormat::GetBox(), SvxBoxItem::GetDistance(), SwFormat::GetDoc(), SwDoc::GetDocShell(), SwDocShell::GetFEShell(), SwTableBox::GetFrameFormat(), GetFrameFormat(), SwDoc::GetIDocumentUndoRedo(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), SwTable::GetTableNode(), SwTable::GetTabLines(), GoInNode(), uno::Any::hasValue(), i, lcl_FindCornerTableBox(), lcl_FormatTable(), lcl_LineToSvxLine(), lcl_SetSpecialProperty(), lcl_SetTableSeparators(), SvxBoxItem::LineToSvxLine(), m_pImpl, SwUnoTableCursor::MakeBoxSels(), o3tl::mm100, SfxItemPropertyMapEntry::nFlags, SfxItemPropertyMapEntry::nMemberId, SfxItemPropertyMapEntry::nWID, RES_BOX(), SvxBoxItem::SetAllDistances(), SwDoc::SetAttr(), SvxBoxItem::SetDistance(), SvxBoxInfoItem::SetLine(), SvxBoxItem::SetLine(), setName(), SwDoc::SetTabBorders(), SwTable::SetTableStyleName(), SvxBoxInfoItem::SetValid(), SwTableLines::size(), sName, START, TabStyle, and o3tl::toTwips().
|
overridevirtual |
Definition at line 2309 of file unotbl.cxx.
References getCellRangeByPosition(), m_pImpl, SwXCellRange::setRowDescriptions(), and SwXTextTable::Impl::ThrowIfComplex().
|
overridevirtual |
Definition at line 2382 of file unotbl.cxx.
References SwUnoCursorHelper::ConvertSortProperties(), SwTable::FindTable(), SwFormat::GetDoc(), GetFrameFormat(), SwTable::GetTabSortBoxes(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), n, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), and SwDoc::SortTable().
|
overridevirtual |
Definition at line 3072 of file unotbl.cxx.
References cppu::supportsService().
|
private |
Definition at line 264 of file unotbl.hxx.
Referenced by addChartDataChangeEventListener(), addEventListener(), attach(), getColumnDescriptions(), getColumns(), getData(), GetFrameFormat(), getName(), getPropertySetInfo(), getPropertyValue(), getRowDescriptions(), getRows(), initialize(), removeChartDataChangeEventListener(), removeEventListener(), setColumnDescriptions(), setData(), setName(), setPropertyValue(), setRowDescriptions(), and SwXTextTable::Impl::ThrowIfComplex().