20 #ifndef INCLUDED_SC_SOURCE_FILTER_INC_XLADDRESS_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_INC_XLADDRESS_HXX
37 explicit XclAddress( sal_uInt16 nCol, sal_uInt32 nRow ) : mnCol( nCol ), mnRow( nRow ) {}
39 void Set( sal_uInt16 nCol, sal_uInt32 nRow ) { mnCol = nCol; mnRow = nRow; }
47 rXclPos.
Read( rStrm );
53 rXclPos.
Write( rStrm );
66 explicit XclRange( sal_uInt16 nCol1, sal_uInt32 nRow1, sal_uInt16 nCol2, sal_uInt32 nRow2 ) :
67 maFirst( nCol1, nRow1 ), maLast( nCol2, nRow2 ) {}
69 void Set( sal_uInt16 nCol1, sal_uInt32 nRow1, sal_uInt16 nCol2, sal_uInt32 nRow2 )
70 { maFirst.
Set( nCol1, nRow1 ); maLast.
Set( nCol2, nRow2 ); }
88 rXclRange.
Read( rStrm );
94 rXclRange.
Write( rStrm );
109 size_t size()
const {
return mRanges.size(); }
110 bool empty()
const {
return mRanges.empty(); }
111 XclRangeVector::const_iterator
begin()
const {
return mRanges.begin(); }
112 XclRangeVector::const_iterator
end()
const {
return mRanges.end(); }
118 void Read(
XclImpStream& rStrm,
bool bCol16Bit =
true, sal_uInt16 nCountInStream = 0 );
119 void Write(
XclExpStream& rStrm,
bool bCol16Bit =
true, sal_uInt16 nCountInStream = 0 )
const;
121 size_t nBegin,
size_t nCount,
bool bCol16Bit =
true, sal_uInt16 nCountInStream = 0 )
const;
126 rXclRanges.
Read( rStrm );
132 rXclRanges.
Write( rStrm );
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
sal_uInt16 mnMaxCol
Default maximum position.
void push_back(const XclRange &rRange)
bool mbTabTrunc
Flag for "rows truncated" warning box.
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)
sal_uInt32 mnMaxRow
Maximum column index, as 16-bit value.
XclImpStream & operator>>(XclImpStream &rStrm, XclAddress &rXclPos)
bool IsTabTruncated() const
Returns whether the "some sheets have been cut" warning box should be shown.
XclAddress(ScAddress::Uninitialized)
void Set(sal_uInt16 nCol1, sal_uInt32 nRow1, sal_uInt16 nCol2, sal_uInt32 nRow2)
XclRange(sal_uInt16 nCol1, sal_uInt32 nRow1, sal_uInt16 nCol2, sal_uInt32 nRow2)
::std::vector< XclRange > XclRangeVector
XclRangeVector::const_iterator end() const
XclRangeVector::const_iterator begin() const
bool Contains(const XclAddress &rPos) const
void Read(XclImpStream &rStrm, bool bCol16Bit=true)
XclAddress(sal_uInt16 nCol, sal_uInt32 nRow)
bool IsColTruncated() const
Returns whether the "some columns have been cut" warning box should be shown.
bool IsRowTruncated() const
Returns whether the "some rows have been cut" warning box should be shown.
bool mbColTrunc
Maximum row index.
A 2D cell range address list with Excel column and row indexes.
XclRange(ScAddress::Uninitialized e)
A 2D cell address struct with Excel column and row indexes.
void Set(sal_uInt16 nCol, sal_uInt32 nRow)
virtual ~XclAddressConverterBase()
sal_uInt16 GetColCount() const
XclRange(const XclAddress &rPos)
sal_uInt32 GetRowCount() const
XclAddressConverterBase(XclTracer &rTracer, const ScAddress &rMaxPos)
XclRange GetEnclosingRange() const
bool mbRowTrunc
Flag for "columns truncated" warning box.
Base class for import/export address converters.
XclExpStream & operator<<(XclExpStream &rStrm, const XclAddress &rXclPos)
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.