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

#include <datastream.hxx>

Collaboration diagram for sc::DataStream:
[legend]

Classes

struct  Cell
 
struct  Line
 

Public Types

enum  MoveType {
  NO_MOVE,
  RANGE_DOWN,
  MOVE_DOWN,
  MOVE_UP
}
 
enum  { VALUES_IN_LINE = 2 }
 
typedef std::vector< LineLinesType
 

Public Member Functions

 DataStream (const DataStream &)=delete
 
const DataStreamoperator= (const DataStream &)=delete
 
 DataStream (ScDocShell *pShell, const OUString &rURL, const ScRange &rRange, sal_Int32 nLimit, MoveType eMove, sal_uInt32 nSettings)
 
 ~DataStream ()
 
ScRange GetRange () const
 
const OUString & GetURL () const
 
MoveType GetMove () const
 
bool IsRefreshOnEmptyLine () const
 
void Decode (const OUString &rURL, const ScRange &rRange, sal_Int32 nLimit, MoveType eMove, const sal_uInt32 nSettings)
 
bool ImportData ()
 
void StartImport ()
 
void StopImport ()
 
void SetRefreshOnEmptyLine (bool bVal)
 

Static Public Member Functions

static void MakeToolbarVisible ()
 
static DataStreamSet (ScDocShell *pShell, const OUString &rURL, const ScRange &rRange, sal_Int32 nLimit, MoveType eMove, sal_uInt32 nSettings)
 

Private Member Functions

Line ConsumeLine ()
 
void MoveData ()
 
void Text2Doc ()
 
void Refresh ()
 
 DECL_LINK (ImportTimerHdl, Timer *, void)
 

Private Attributes

ScDocShellmpDocShell
 
DocumentStreamAccess maDocAccess
 
OUString msURL
 
sal_uInt32 mnSettings
 
MoveType meOrigMove
 
MoveType meMove
 
bool mbRunning
 
bool mbValuesInLine
 
bool mbRefreshOnEmptyLine
 
std::unique_ptr< LinesTypempLines
 
size_t mnLinesCount
 
size_t mnLinesSinceRefresh
 
double mfLastRefreshTime
 
SCROW mnCurRow
 
ScRange maStartRange
 
ScRange maEndRange
 
Timer maImportTimer
 
rtl::Reference< datastreams::ReaderThreadmxReaderThread
 
bool mbIsFirst
 
bool mbIsUpdate
 

Detailed Description

Definition at line 32 of file datastream.hxx.

Member Typedef Documentation

typedef std::vector<Line> sc::DataStream::LinesType

Definition at line 63 of file datastream.hxx.

Member Enumeration Documentation

anonymous enum
Enumerator
VALUES_IN_LINE 

Definition at line 66 of file datastream.hxx.

Enumerator
NO_MOVE 
RANGE_DOWN 
MOVE_DOWN 
MOVE_UP 

Definition at line 65 of file datastream.hxx.

Constructor & Destructor Documentation

sc::DataStream::DataStream ( const DataStream )
delete

Referenced by Set().

sc::DataStream::DataStream ( ScDocShell pShell,
const OUString &  rURL,
const ScRange rRange,
sal_Int32  nLimit,
MoveType  eMove,
sal_uInt32  nSettings 
)
sc::DataStream::~DataStream ( )

Definition at line 295 of file datastream.cxx.

References mbRunning, mpLines, mxReaderThread, and StopImport().

Member Function Documentation

DataStream::Line sc::DataStream::ConsumeLine ( )
private

Definition at line 308 of file datastream.cxx.

References mnLinesCount, mpLines, and mxReaderThread.

Referenced by Text2Doc().

sc::DataStream::DECL_LINK ( ImportTimerHdl  ,
Timer ,
void   
)
private
void sc::DataStream::Decode ( const OUString &  rURL,
const ScRange rRange,
sal_Int32  nLimit,
MoveType  eMove,
const sal_uInt32  nSettings 
)
MoveType sc::DataStream::GetMove ( ) const
inline

Definition at line 80 of file datastream.hxx.

References meOrigMove.

Referenced by sc::DataStreamDlg::Init(), and ScXMLExport::WriteDataStream().

ScRange sc::DataStream::GetRange ( ) const
const OUString& sc::DataStream::GetURL ( ) const
inline

Definition at line 79 of file datastream.hxx.

References msURL.

Referenced by sc::DataStreamDlg::Init(), and ScXMLExport::WriteDataStream().

bool sc::DataStream::ImportData ( )

Definition at line 519 of file datastream.cxx.

References ScDocShell::GetViewData(), mbRunning, mbValuesInLine, and Text2Doc().

bool sc::DataStream::IsRefreshOnEmptyLine ( ) const
inline

Definition at line 81 of file datastream.hxx.

References mbRefreshOnEmptyLine.

Referenced by sc::DataStreamDlg::Init(), and ScXMLExport::WriteDataStream().

void sc::DataStream::MakeToolbarVisible ( )
static
void sc::DataStream::MoveData ( )
private
const DataStream& sc::DataStream::operator= ( const DataStream )
delete
void sc::DataStream::Refresh ( )
private
DataStream * sc::DataStream::Set ( ScDocShell pShell,
const OUString &  rURL,
const ScRange rRange,
sal_Int32  nLimit,
MoveType  eMove,
sal_uInt32  nSettings 
)
static
void sc::DataStream::SetRefreshOnEmptyLine ( bool  bVal)

Definition at line 403 of file datastream.cxx.

References mbRefreshOnEmptyLine.

Referenced by sc::DataStreamDlg::StartStream().

void sc::DataStream::StartImport ( )
void sc::DataStream::StopImport ( )

Definition at line 393 of file datastream.cxx.

References maImportTimer, mbRunning, Refresh(), and Task::Stop().

Referenced by ScCellShell::ExecuteDB(), and ~DataStream().

void sc::DataStream::Text2Doc ( )
private

Member Data Documentation

DocumentStreamAccess sc::DataStream::maDocAccess
private

Definition at line 103 of file datastream.hxx.

Referenced by MoveData(), StartImport(), and Text2Doc().

ScRange sc::DataStream::maEndRange
private

Definition at line 117 of file datastream.hxx.

Referenced by Decode(), GetRange(), and MoveData().

Timer sc::DataStream::maImportTimer
private

Definition at line 119 of file datastream.hxx.

Referenced by DataStream(), MoveData(), StartImport(), and StopImport().

ScRange sc::DataStream::maStartRange
private

Definition at line 116 of file datastream.hxx.

Referenced by Decode(), GetRange(), MoveData(), StartImport(), and Text2Doc().

bool sc::DataStream::mbIsFirst
private

Definition at line 122 of file datastream.hxx.

Referenced by MoveData().

bool sc::DataStream::mbIsUpdate
private

Definition at line 123 of file datastream.hxx.

Referenced by MoveData().

bool sc::DataStream::mbRefreshOnEmptyLine
private

Definition at line 110 of file datastream.hxx.

Referenced by IsRefreshOnEmptyLine(), SetRefreshOnEmptyLine(), and Text2Doc().

bool sc::DataStream::mbRunning
private

Definition at line 108 of file datastream.hxx.

Referenced by ImportData(), StartImport(), StopImport(), and ~DataStream().

bool sc::DataStream::mbValuesInLine
private

Definition at line 109 of file datastream.hxx.

Referenced by Decode(), and ImportData().

MoveType sc::DataStream::meMove
private

Definition at line 107 of file datastream.hxx.

Referenced by Decode(), MoveData(), and Text2Doc().

MoveType sc::DataStream::meOrigMove
private

Definition at line 106 of file datastream.hxx.

Referenced by Decode(), and GetMove().

double sc::DataStream::mfLastRefreshTime
private

Definition at line 114 of file datastream.hxx.

Referenced by Refresh(), and Text2Doc().

SCROW sc::DataStream::mnCurRow
private

Definition at line 115 of file datastream.hxx.

Referenced by Decode(), MoveData(), and Text2Doc().

size_t sc::DataStream::mnLinesCount
private

Definition at line 112 of file datastream.hxx.

Referenced by ConsumeLine().

size_t sc::DataStream::mnLinesSinceRefresh
private

Definition at line 113 of file datastream.hxx.

Referenced by Refresh(), and Text2Doc().

sal_uInt32 sc::DataStream::mnSettings
private

Definition at line 105 of file datastream.hxx.

Referenced by Decode().

ScDocShell* sc::DataStream::mpDocShell
private

Definition at line 102 of file datastream.hxx.

Referenced by Decode(), and Refresh().

std::unique_ptr<LinesType> sc::DataStream::mpLines
private

Definition at line 111 of file datastream.hxx.

Referenced by ConsumeLine(), and ~DataStream().

OUString sc::DataStream::msURL
private

Definition at line 104 of file datastream.hxx.

Referenced by Decode(), GetURL(), and StartImport().

rtl::Reference<datastreams::ReaderThread> sc::DataStream::mxReaderThread
private

Definition at line 121 of file datastream.hxx.

Referenced by ConsumeLine(), StartImport(), and ~DataStream().


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