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::optional< LinesTypemoLines
 
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 31 of file datastream.hxx.

Member Typedef Documentation

◆ LinesType

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

Definition at line 62 of file datastream.hxx.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
VALUES_IN_LINE 

Definition at line 65 of file datastream.hxx.

◆ MoveType

Enumerator
NO_MOVE 
RANGE_DOWN 
MOVE_DOWN 
MOVE_UP 

Definition at line 64 of file datastream.hxx.

Constructor & Destructor Documentation

◆ DataStream() [1/2]

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

Referenced by Set().

◆ DataStream() [2/2]

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

◆ ~DataStream()

sc::DataStream::~DataStream ( )

Definition at line 298 of file datastream.cxx.

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

Member Function Documentation

◆ ConsumeLine()

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

Definition at line 311 of file datastream.cxx.

References mnLinesCount, moLines, and mxReaderThread.

Referenced by Text2Doc().

◆ DECL_LINK()

sc::DataStream::DECL_LINK ( ImportTimerHdl  ,
Timer ,
void   
)
private

◆ Decode()

void sc::DataStream::Decode ( const OUString &  rURL,
const ScRange rRange,
sal_Int32  nLimit,
MoveType  eMove,
const sal_uInt32  nSettings 
)

◆ GetMove()

MoveType sc::DataStream::GetMove ( ) const
inline

Definition at line 79 of file datastream.hxx.

References meOrigMove.

Referenced by ScXMLExport::WriteDataStream().

◆ GetRange()

ScRange sc::DataStream::GetRange ( ) const

◆ GetURL()

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

Definition at line 78 of file datastream.hxx.

References msURL.

Referenced by ScXMLExport::WriteDataStream().

◆ ImportData()

bool sc::DataStream::ImportData ( )

◆ IsRefreshOnEmptyLine()

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

Definition at line 80 of file datastream.hxx.

References mbRefreshOnEmptyLine.

Referenced by ScXMLExport::WriteDataStream().

◆ MakeToolbarVisible()

void sc::DataStream::MakeToolbarVisible ( )
static

◆ MoveData()

void sc::DataStream::MoveData ( )
private

◆ operator=()

const DataStream & sc::DataStream::operator= ( const DataStream )
delete

◆ Refresh()

void sc::DataStream::Refresh ( )
private

◆ Set()

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

◆ SetRefreshOnEmptyLine()

void sc::DataStream::SetRefreshOnEmptyLine ( bool  bVal)

Definition at line 409 of file datastream.cxx.

References mbRefreshOnEmptyLine.

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

◆ StartImport()

void sc::DataStream::StartImport ( )

◆ StopImport()

void sc::DataStream::StopImport ( )

Definition at line 399 of file datastream.cxx.

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

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

◆ Text2Doc()

void sc::DataStream::Text2Doc ( )
private

Member Data Documentation

◆ maDocAccess

DocumentStreamAccess sc::DataStream::maDocAccess
private

Definition at line 102 of file datastream.hxx.

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

◆ maEndRange

ScRange sc::DataStream::maEndRange
private

Definition at line 116 of file datastream.hxx.

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

◆ maImportTimer

Timer sc::DataStream::maImportTimer
private

Definition at line 118 of file datastream.hxx.

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

◆ maStartRange

ScRange sc::DataStream::maStartRange
private

Definition at line 115 of file datastream.hxx.

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

◆ mbIsFirst

bool sc::DataStream::mbIsFirst
private

Definition at line 121 of file datastream.hxx.

Referenced by MoveData().

◆ mbIsUpdate

bool sc::DataStream::mbIsUpdate
private

Definition at line 122 of file datastream.hxx.

Referenced by MoveData().

◆ mbRefreshOnEmptyLine

bool sc::DataStream::mbRefreshOnEmptyLine
private

Definition at line 109 of file datastream.hxx.

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

◆ mbRunning

bool sc::DataStream::mbRunning
private

Definition at line 107 of file datastream.hxx.

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

◆ mbValuesInLine

bool sc::DataStream::mbValuesInLine
private

Definition at line 108 of file datastream.hxx.

Referenced by Decode(), and ImportData().

◆ meMove

MoveType sc::DataStream::meMove
private

Definition at line 106 of file datastream.hxx.

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

◆ meOrigMove

MoveType sc::DataStream::meOrigMove
private

Definition at line 105 of file datastream.hxx.

Referenced by Decode(), and GetMove().

◆ mfLastRefreshTime

double sc::DataStream::mfLastRefreshTime
private

Definition at line 113 of file datastream.hxx.

Referenced by Refresh(), and Text2Doc().

◆ mnCurRow

SCROW sc::DataStream::mnCurRow
private

Definition at line 114 of file datastream.hxx.

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

◆ mnLinesCount

size_t sc::DataStream::mnLinesCount
private

Definition at line 111 of file datastream.hxx.

Referenced by ConsumeLine().

◆ mnLinesSinceRefresh

size_t sc::DataStream::mnLinesSinceRefresh
private

Definition at line 112 of file datastream.hxx.

Referenced by Refresh(), and Text2Doc().

◆ mnSettings

sal_uInt32 sc::DataStream::mnSettings
private

Definition at line 104 of file datastream.hxx.

Referenced by Decode().

◆ moLines

std::optional<LinesType> sc::DataStream::moLines
private

Definition at line 110 of file datastream.hxx.

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

◆ mpDocShell

ScDocShell* sc::DataStream::mpDocShell
private

Definition at line 101 of file datastream.hxx.

Referenced by Decode(), and Refresh().

◆ msURL

OUString sc::DataStream::msURL
private

Definition at line 103 of file datastream.hxx.

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

◆ mxReaderThread

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

Definition at line 120 of file datastream.hxx.

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


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