LibreOffice Module sc (master) 1
|
Provides methods to allow direct shifting of document content without broadcasting or shifting of broadcaster positions. More...
#include <documentstreamaccess.hxx>
Public Member Functions | |
DocumentStreamAccess (ScDocument &rDoc) | |
~DocumentStreamAccess () | |
void | setNumericCell (const ScAddress &rPos, double fVal) |
void | setStringCell (const ScAddress &rPos, const OUString &rStr) |
void | reset () |
Clear its internal state, and more importantly all the block position hints currently held. More... | |
void | shiftRangeUp (const ScRange &rRange) |
Pop the top row inside specified range, shift all the other rows up by one, then set the bottom row empty. More... | |
void | shiftRangeDown (const ScRange &rRange) |
Top the bottom row inside specified range, shift all the other rows above downward by one by inserting an empty row at the top. More... | |
Private Attributes | |
std::unique_ptr< DocumentStreamAccessImpl > | mpImpl |
Provides methods to allow direct shifting of document content without broadcasting or shifting of broadcaster positions.
Definition at line 27 of file documentstreamaccess.hxx.
sc::DocumentStreamAccess::DocumentStreamAccess | ( | ScDocument & | rDoc | ) |
Definition at line 31 of file documentstreamaccess.cxx.
sc::DocumentStreamAccess::~DocumentStreamAccess | ( | ) |
Definition at line 34 of file documentstreamaccess.cxx.
void sc::DocumentStreamAccess::reset | ( | ) |
Clear its internal state, and more importantly all the block position hints currently held.
Definition at line 84 of file documentstreamaccess.cxx.
References mpImpl.
Referenced by sc::DataStream::StartImport().
void sc::DocumentStreamAccess::setNumericCell | ( | const ScAddress & | rPos, |
double | fVal | ||
) |
Definition at line 38 of file documentstreamaccess.cxx.
References ScTable::aCol, ScAddress::Col(), sc::ColumnBlockPosition::miCellPos, sc::ColumnBlockPosition::miCellTextAttrPos, mpImpl, ScAddress::Row(), and ScAddress::Tab().
Referenced by sc::DataStream::Text2Doc().
void sc::DocumentStreamAccess::setStringCell | ( | const ScAddress & | rPos, |
const OUString & | rStr | ||
) |
Definition at line 59 of file documentstreamaccess.cxx.
References ScTable::aCol, ScAddress::Col(), svl::SharedString::getData(), sc::ColumnBlockPosition::miCellPos, sc::ColumnBlockPosition::miCellTextAttrPos, mpImpl, ScAddress::Row(), and ScAddress::Tab().
Referenced by sc::DataStream::Text2Doc().
void sc::DocumentStreamAccess::shiftRangeDown | ( | const ScRange & | rRange | ) |
Top the bottom row inside specified range, shift all the other rows above downward by one by inserting an empty row at the top.
Definition at line 117 of file documentstreamaccess.cxx.
References ScTable::aCol, ScRange::aEnd, ScRange::aStart, ScAddress::Col(), sc::ColumnBlockPosition::miCellPos, sc::ColumnBlockPosition::miCellTextAttrPos, mpImpl, ScAddress::Row(), and ScAddress::Tab().
Referenced by sc::DataStream::MoveData().
void sc::DocumentStreamAccess::shiftRangeUp | ( | const ScRange & | rRange | ) |
Pop the top row inside specified range, shift all the other rows up by one, then set the bottom row empty.
Definition at line 89 of file documentstreamaccess.cxx.
References ScTable::aCol, ScRange::aEnd, ScRange::aStart, ScAddress::Col(), sc::ColumnBlockPosition::miCellPos, sc::ColumnBlockPosition::miCellTextAttrPos, mpImpl, ScAddress::Row(), and ScAddress::Tab().
Referenced by sc::DataStream::MoveData().
|
private |
Definition at line 29 of file documentstreamaccess.hxx.
Referenced by reset(), setNumericCell(), setStringCell(), shiftRangeDown(), and shiftRangeUp().