25#include <com/sun/star/uno/Sequence.h>
28namespace oox {
class SequenceInputStream; }
78 ::std::vector< BinRange >::const_iterator
begin()
const {
return mvRanges.begin(); }
79 ::std::vector< BinRange >::const_iterator
end()
const {
return mvRanges.end(); }
120 sal_Int32& ornColumn, sal_Int32& ornRow,
121 std::u16string_view aString,
122 sal_Int32 nStart = 0,
126 sal_Int32& ornColumn, sal_Int32& ornRow, std::string_view pStr );
146 sal_Int32& ornStartColumn, sal_Int32& ornStartRow,
147 sal_Int32& ornEndColumn, sal_Int32& ornEndRow,
148 std::u16string_view aString,
149 sal_Int32 nStart = 0 );
172 bool checkCol( sal_Int32 nCol,
bool bTrackOverflow );
181 bool checkRow( sal_Int32 nRow,
bool bTrackOverflow );
190 bool checkTab( sal_Int16 nSheet,
bool bTrackOverflow );
201 bool bTrackOverflow );
213 const OUString& rString,
217 ScAddress& orAddress, std::string_view pStr, sal_Int16 nSheet );
230 const OUString& rString,
232 bool bTrackOverflow );
236 std::string_view pStr, sal_Int16 nSheet,
bool bTrackOverflow );
246 const OUString& rString,
248 bool bTrackOverflow );
275 bool bTrackOverflow );
287 bool bTrackOverflow );
306 bool bAllowOverflow,
bool bTrackOverflow );
336 bool bAllowOverflow,
bool bTrackOverflow );
348 std::u16string_view aString,
377 std::u16string_view aString,
379 bool bAllowOverflow,
bool bTrackOverflow );
419 bool bAllowOverflow,
bool bTrackOverflow );
433 bool bTrackOverflow );
451 std::u16string_view aString,
453 bool bTrackOverflow );
473 bool bTrackOverflow );
481 static css::uno::Sequence<css::table::CellRangeAddress>
490 sal_Int16 nMaxXlsTab, sal_Int32 nMaxXlsCol, sal_Int32 nMaxXlsRow );
Converter for cell addresses and cell ranges for OOXML and BIFF filters.
bool mbTabOverflow
Flag for "rows overflow".
ScAddress maMaxXlsPos
Maximum valid cell address in Calc.
bool convertToCellAddress(ScAddress &orAddress, const OUString &rString, sal_Int16 nSheet, bool bTrackOverflow)
Tries to convert the passed string to a single cell address.
bool checkCellAddress(const ScAddress &rAddress, bool bTrackOverflow)
Checks the passed cell address if it fits into the spreadsheet limits.
const ScAddress & getMaxXlsAddress() const
Returns the biggest valid cell address in the imported/exported Excel document.
bool mbColOverflow
Maximum valid cell address in Calc/Excel.
bool checkRow(sal_Int32 nRow, bool bTrackOverflow)
Checks if the passed row index is valid.
static bool parseOoxRange2d(sal_Int32 &ornStartColumn, sal_Int32 &ornStartRow, sal_Int32 &ornEndColumn, sal_Int32 &ornEndRow, std::u16string_view aString, sal_Int32 nStart=0)
Tries to parse the passed string for a 2d cell range in A1 notation.
bool checkCol(sal_Int32 nCol, bool bTrackOverflow)
Checks if the passed column index is valid.
ScAddress maMaxPos
Maximum valid cell address in Excel.
static css::uno::Sequence< css::table::CellRangeAddress > toApiSequence(const ScRangeList &orRanges)
Converts the passed range list to a sequence of cell range addresses.
static bool parseOoxAddress2d(sal_Int32 &ornColumn, sal_Int32 &ornRow, std::u16string_view aString, sal_Int32 nStart=0, sal_Int32 nLength=SAL_MAX_INT32)
Tries to parse the passed string for a 2d cell address in A1 notation.
ScAddress createValidCellAddress(const OUString &rString, sal_Int16 nSheet, bool bTrackOverflow)
Returns a valid cell address by moving it into allowed dimensions.
bool checkCellRange(const ScRange &rRange, bool bAllowOverflow, bool bTrackOverflow)
Checks the passed cell range if it fits into the spreadsheet limits.
bool convertToCellRange(ScRange &orRange, std::u16string_view aString, sal_Int16 nSheet, bool bAllowOverflow, bool bTrackOverflow)
Tries to convert the passed string to a cell range address.
static bool convertToCellRangeUnchecked(ScRange &orRange, std::u16string_view aString, sal_Int16 nSheet)
Converts the passed string to a cell range address, without checking any sheet limits.
AddressConverter(const WorkbookHelper &rHelper)
bool mbRowOverflow
Flag for "columns overflow".
bool isRowOverflow() const
const ScAddress & getMaxApiAddress() const
Returns the biggest valid cell address in the own Calc document.
bool checkTab(sal_Int16 nSheet, bool bTrackOverflow)
Checks if the passed sheet index is valid.
void initializeMaxPos(sal_Int16 nMaxXlsTab, sal_Int32 nMaxXlsCol, sal_Int32 nMaxXlsRow)
void validateCellRangeList(ScRangeList &orRanges, bool bTrackOverflow)
Tries to restrict the passed cell range list to current sheet limits.
bool validateCellRange(ScRange &orRange, bool bAllowOverflow, bool bTrackOverflow)
Checks the passed cell range, may try to fit it to current sheet limits.
const ScAddress & getMaxAddress() const
Returns the biggest valid cell address in both Calc and the imported/exported Excel document.
bool isTabOverflow() const
bool isColOverflow() const
void convertToCellRangeList(ScRangeList &orRanges, std::u16string_view aString, sal_Int16 nSheet, bool bTrackOverflow)
Tries to convert the passed string to a cell range list.
static bool convertToCellAddressUnchecked(ScAddress &orAddress, const OUString &rString, sal_Int16 nSheet)
Converts the passed string to a single cell address, without checking any sheet limits.
A 2D cell range address list for binary filters.
void read(SequenceInputStream &rStrm)
::std::vector< BinRange >::const_iterator begin() const
::std::vector< BinRange > mvRanges
::std::vector< BinRange >::const_iterator end() const
Helper class to provide access to global workbook data.
SequenceInputStream & operator>>(SequenceInputStream &rStrm, BinAddress &orPos)
bool operator<(const BinAddress &rL, const BinAddress &rR)
A 2D cell address struct for binary filters.
BinAddress(const ScAddress &rAddr)
void read(SequenceInputStream &rStrm)
BinAddress(sal_Int32 nCol, sal_Int32 nRow)
A 2D cell range address struct for binary filters.
void read(SequenceInputStream &rStrm)