LibreOffice Module sc (master)  1
Public Member Functions | Private Attributes | List of all members
sc::DocumentStreamAccess Class Reference

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< DocumentStreamAccessImplmpImpl
 

Detailed Description

Provides methods to allow direct shifting of document content without broadcasting or shifting of broadcaster positions.

Definition at line 28 of file documentstreamaccess.hxx.

Constructor & Destructor Documentation

sc::DocumentStreamAccess::DocumentStreamAccess ( ScDocument rDoc)

Definition at line 31 of file documentstreamaccess.cxx.

sc::DocumentStreamAccess::~DocumentStreamAccess ( )

Definition at line 34 of file documentstreamaccess.cxx.

Member Function Documentation

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 
)
void sc::DocumentStreamAccess::setStringCell ( const ScAddress rPos,
const OUString &  rStr 
)
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().

Member Data Documentation

std::unique_ptr<DocumentStreamAccessImpl> sc::DocumentStreamAccess::mpImpl
private

The documentation for this class was generated from the following files: