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 )
105 if (!
rStrm.IsValid())
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 );
129 rStrm.SetSliceSize( bCol16Bit ? 8 : 6 );
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());
bool mbTabTrunc
Flag for "rows truncated" warning box.
void CheckScTab(SCTAB nScTab)
Checks if the passed sheet index is valid.
XclAddressConverterBase(XclTracer &rTracer, const ScAddress &rMaxPos)
virtual ~XclAddressConverterBase()
ScAddress maMaxPos
Tracer for invalid addresses.
This class is used to export Excel record streams.
This class is used to import record oriented streams.
void Write(XclExpStream &rStrm, bool bCol16Bit=true, sal_uInt16 nCountInStream=0) const
void Read(XclImpStream &rStrm, bool bCol16Bit=true, sal_uInt16 nCountInStream=0)
XclRange GetEnclosingRange() const
void WriteSubList(XclExpStream &rStrm, size_t nBegin, size_t nCount, bool bCol16Bit=true, sal_uInt16 nCountInStream=0) const
This class wraps an MSFilterTracer to create trace logs for import/export filters.
void TraceInvalidTab(SCTAB nTab, SCTAB nMaxTab)
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.
void Write(XclExpStream &rStrm) const
void Read(XclImpStream &rStrm)
A 2D cell range address struct with Excel column and row indexes.
bool Contains(const XclAddress &rPos) const
void Write(XclExpStream &rStrm, bool bCol16Bit=true) const
void Read(XclImpStream &rStrm, bool bCol16Bit=true)