22#include <osl/diagnose.h>
52 if (nTab < 0 ||
MAXTAB < nTab)
55 TabRangeType::iterator itr =
m_TabRanges.find(nTab);
59 std::pair<TabRangeType::iterator, bool> r =
68 itr->second.push_back(
ScRange(
a.Col(),
a.Row(),
a.Tab()));
77 if (
a.aStart.Tab() !=
a.aEnd.Tab())
82 else if (
a.aStart.Tab() < 0)
85 if (
a.aStart.Col() > rDoc.
MaxCol())
87 else if (
a.aStart.Col() < 0)
90 if (
a.aStart.Row() > rDoc.
MaxRow())
92 else if (
a.aStart.Row() < 0)
95 if (
a.aEnd.Col() > rDoc.
MaxCol())
97 else if (
a.aEnd.Col() < 0)
100 if (
a.aEnd.Row() > rDoc.
MaxRow())
102 else if (
a.aEnd.Row() < 0)
109 nTab =
a.aStart.Tab();
111 if (nTab < 0 ||
MAXTAB < nTab)
114 TabRangeType::iterator itr =
m_TabRanges.find(nTab);
118 std::pair<TabRangeType::iterator, bool> r =
127 itr->second.push_back(a);
132 OSL_ENSURE(
ValidTab(
n),
"-ScRangeListTabs::First(): Good bye!" );
142 return rList.empty() ? nullptr : &(*maItrCur);
bool ValidTab(SCTAB nTab)
ConverterBase(svl::SharedStringPool &rSPool)
ExcelConverterBase(svl::SharedStringPool &rSPool)
virtual ~ExcelConverterBase() override
virtual ~LotusConverterBase() override
LotusConverterBase(SvStream &rStr, svl::SharedStringPool &rSPool)
void Set(SCCOL nCol, SCROW nRow, SCTAB nTab)
SC_DLLPUBLIC SCCOL MaxCol() const
SC_DLLPUBLIC SCROW MaxRow() const
::std::vector< ScRange > RangeListType
void Append(const ScAddress &aSRD, SCTAB nTab)
RangeListType::const_iterator maItrCurEnd
const ScRange * First(SCTAB nTab)
ScRangeListTabs(const XclImpRoot &rRoot)
RangeListType::const_iterator maItrCur
Access to global data from other classes.
const XclImpRoot & GetRoot() const
Returns this root instance - for code readability in derived classes.
ScDocument & GetDoc() const
Returns reference to the destination document (import) or source document (export).