26 #include <osl/diagnose.h>
36 rStrm << static_cast<sal_uInt16> (
mnRow);
77 XclRangeVector::const_iterator aIt =
mRanges.begin(), aEnd =
mRanges.end();
79 for( ++aIt; aIt != aEnd; ++aIt )
94 nCount = nCountInStream;
104 aRange.
Read(rStrm, bCol16Bit);
120 sal_uInt16 nCountInStream )
const
122 OSL_ENSURE( nBegin <=
mRanges.size(),
"XclRangeList::WriteSubList - invalid start position" );
123 size_t nEnd = ::std::min< size_t >( nBegin + nCount,
mRanges.size() );
126 sal_uInt16 nXclCount =
ulimit_cast< sal_uInt16 >( nEnd - nBegin );
131 [&rStrm, &bCol16Bit](
const XclRange& rRange) { rRange.Write(rStrm, bCol16Bit); });
137 mnMaxCol( static_cast< sal_uInt16 >( rMaxPos.
Col() ) ),
138 mnMaxRow( static_cast< sal_uInt16 >( rMaxPos.
Row() ) ),
153 bool bValid = (0 <= nScTab) && (nScTab <=
maMaxPos.
Tab());
ScAddress maMaxPos
Tracer for invalid addresses.
This class wraps an MSFilterTracer to create trace logs for import/export filters.
This class is used to export Excel record streams.
void Write(XclExpStream &rStrm, bool bCol16Bit=true) const
bool mbTabTrunc
Flag for "rows truncated" warning box.
bool IsValid() const
Returns record reading state: false = record overread.
void Write(XclExpStream &rStrm) const
void CheckScTab(SCTAB nScTab)
Checks if the passed sheet index is valid.
void Read(XclImpStream &rStrm)
void Read(XclImpStream &rStrm, bool bCol16Bit=true, sal_uInt16 nCountInStream=0)
void TraceInvalidTab(SCTAB nTab, SCTAB nMaxTab)
void SetSliceSize(sal_uInt16 nSize)
Sets data slice length.
bool Contains(const XclAddress &rPos) const
void Read(XclImpStream &rStrm, bool bCol16Bit=true)
constexpr std::enable_if_t< std::is_signed_v< T >, std::make_unsigned_t< T > > make_unsigned(T value)
A 2D cell address struct with Excel column and row indexes.
virtual ~XclAddressConverterBase()
XclAddressConverterBase(XclTracer &rTracer, const ScAddress &rMaxPos)
XclRange GetEnclosingRange() const
This class is used to import record oriented streams.
void WriteSubList(XclExpStream &rStrm, size_t nBegin, size_t nCount, bool bCol16Bit=true, sal_uInt16 nCountInStream=0) const
void Write(XclExpStream &rStrm, bool bCol16Bit=true, sal_uInt16 nCountInStream=0) const
A 2D cell range address struct with Excel column and row indexes.
bool m_bDetectedRangeSegmentation false