|
LibreOffice Module sw (master) 1
|
#include <com/sun/star/lang/XUnoTunnel.hpp>#include <com/sun/star/container/XNamed.hpp>#include <com/sun/star/container/XEnumerationAccess.hpp>#include <com/sun/star/util/XSortable.hpp>#include <com/sun/star/chart/XChartDataArray.hpp>#include <com/sun/star/text/XTextTableCursor.hpp>#include <com/sun/star/text/XTextTable.hpp>#include <com/sun/star/table/XCellRange.hpp>#include <com/sun/star/sheet/XCellRangeData.hpp>#include <com/sun/star/table/XAutoFormattable.hpp>#include <cppuhelper/implbase.hxx>#include <comphelper/uno3.hxx>#include <svl/listener.hxx>#include "TextCursorHelper.hxx"#include "unotext.hxx"#include "frmfmt.hxx"#include "unocrsr.hxx"Go to the source code of this file.
Classes | |
| class | SwXCell |
| class | SwXTextTableRow |
| class | SwXTextTableCursor |
| struct | SwRangeDescriptor |
| class | SwXTextTable |
| class | SwXCellRange |
| class | SwXTableRows |
| UNO API wrapper for SwTableLines. More... | |
| class | SwXTableColumns |
Typedefs | |
| typedef cppu::WeakImplHelper< css::table::XCell, css::lang::XServiceInfo, css::beans::XPropertySet, css::container::XEnumerationAccess > | SwXCellBaseClass |
| typedef cppu::WeakImplHelper< css::text::XTextTableCursor, css::lang::XServiceInfo, css::beans::XPropertySet > | SwXTextTableCursor_Base |
Functions | |
| int | sw_CompareCellRanges (std::u16string_view aRange1StartCell, std::u16string_view aRange1EndCell, std::u16string_view aRange2StartCell, std::u16string_view aRange2EndCell, bool bCmpColsFirst) |
| compare position of two cell ranges More... | |
| void | sw_NormalizeRange (OUString &rCell1, OUString &rCell2) |
| cleanup order in a range More... | |
| OUString | sw_GetCellName (sal_Int32 nColumn, sal_Int32 nRow) |
| get cell name at a specified coordinate More... | |
| int | sw_CompareCellsByColFirst (std::u16string_view aCellName1, std::u16string_view aCellName2) |
| compare position of two cells (check columns first) More... | |
| int | sw_CompareCellsByRowFirst (std::u16string_view aCellName1, std::u16string_view aCellName2) |
| compare position of two cells (check rows first) More... | |
| typedef cppu::WeakImplHelper< css::table::XCell, css::lang::XServiceInfo, css::beans::XPropertySet, css::container::XEnumerationAccess> SwXCellBaseClass |
Definition at line 59 of file unotbl.hxx.
| typedef cppu::WeakImplHelper< css::text::XTextTableCursor, css::lang::XServiceInfo, css::beans::XPropertySet> SwXTextTableCursor_Base |
Definition at line 182 of file unotbl.hxx.
| int sw_CompareCellRanges | ( | std::u16string_view | aRange1StartCell, |
| std::u16string_view | aRange1EndCell, | ||
| std::u16string_view | aRange2StartCell, | ||
| std::u16string_view | aRange2EndCell, | ||
| bool | bCmpColsFirst | ||
| ) |
compare position of two cell ranges
| rRange1StartCell | e.g. "A1" (non-empty string with valid cell name) |
| rRange1EndCell | e.g. "A1" (non-empty string with valid cell name) |
| rRange2StartCell | e.g. "A1" (non-empty string with valid cell name) |
| rRange2EndCell | e.g. "A1" (non-empty string with valid cell name) |
| bCmpColsFirst | if <true> position in columns will be compared first before rows |
Definition at line 454 of file unotbl.cxx.
References sw_CompareCellsByColFirst(), and sw_CompareCellsByRowFirst().
Referenced by SortSubranges().
| int sw_CompareCellsByColFirst | ( | std::u16string_view | aCellName1, |
| std::u16string_view | aCellName2 | ||
| ) |
compare position of two cells (check columns first)
| rCellName1 | e.g. "A1" (non-empty string with valid cell name) |
| rCellName2 | e.g. "A1" (non-empty string with valid cell name) |
Definition at line 427 of file unotbl.cxx.
References SwXTextTable::GetCellPosition(), nCol1, and nCol2.
Referenced by GetTableAndCellsFromRangeRep(), and sw_CompareCellRanges().
| int sw_CompareCellsByRowFirst | ( | std::u16string_view | aCellName1, |
| std::u16string_view | aCellName2 | ||
| ) |
compare position of two cells (check rows first)
| rCellName1 | e.g. "A1" (non-empty string with valid cell name) |
| rCellName2 | e.g. "A1" (non-empty string with valid cell name) |
Definition at line 404 of file unotbl.cxx.
References SwXTextTable::GetCellPosition(), nCol1, and nCol2.
Referenced by sw_CompareCellRanges().
| OUString sw_GetCellName | ( | sal_Int32 | nColumn, |
| sal_Int32 | nRow | ||
| ) |
get cell name at a specified coordinate
| nColumn | column index (0-based) |
| nRow | row index (0-based) |
Definition at line 480 of file unotbl.cxx.
References sw_GetTableBoxColStr().
Referenced by SwChartDataProvider::convertRangeFromXML(), SwChartDataSequence::DeleteBox(), SwChartDataProvider::detectArguments(), SwChartDataSequence::ExtendTo(), SwChartDataSequence::generateLabel(), SwChartDataProvider::GetBrokenCellRangeForExport(), SwXTextTable::getCellRangeByPosition(), SwXCellRange::getCellRangeByPosition(), SwChartDataProvider::Impl_createDataSource(), SwXTableRows::insertByIndex(), SwXTableColumns::insertByIndex(), lcl_CreateXCell(), SwXTableRows::removeByIndex(), SwXTableColumns::removeByIndex(), and sw_NormalizeRange().
| void sw_NormalizeRange | ( | OUString & | rCell1, |
| OUString & | rCell2 | ||
| ) |
cleanup order in a range
Sorts the input to a uniform format. I.e. for the four possible representation A1:C5, C5:A1, A5:C1, C1:A5 the result will be always A1:C5.
| [IN,OUT] | rCell1 cell name (will be modified to upper-left corner), e.g. "A1" (non-empty string with valid cell name) |
| [IN,OUT] | rCell2 cell name (will be modified to lower-right corner), e.g. "A1" (non-empty string with valid cell name) |
Definition at line 525 of file unotbl.cxx.
References SwXTextTable::GetCellPosition(), min(), nCol1, nCol2, and sw_GetCellName().
Referenced by GetSubranges().