LibreOffice Module sc (master) 1
|
#include <datastream.hxx>
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< Line > | LinesType |
Public Member Functions | |
DataStream (const DataStream &)=delete | |
const DataStream & | operator= (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 DataStream * | Set (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 | |
ScDocShell * | mpDocShell |
DocumentStreamAccess | maDocAccess |
OUString | msURL |
sal_uInt32 | mnSettings |
MoveType | meOrigMove |
MoveType | meMove |
bool | mbRunning |
bool | mbValuesInLine |
bool | mbRefreshOnEmptyLine |
std::optional< LinesType > | moLines |
size_t | mnLinesCount |
size_t | mnLinesSinceRefresh |
double | mfLastRefreshTime |
SCROW | mnCurRow |
ScRange | maStartRange |
ScRange | maEndRange |
Timer | maImportTimer |
rtl::Reference< datastreams::ReaderThread > | mxReaderThread |
bool | mbIsFirst |
bool | mbIsUpdate |
Definition at line 31 of file datastream.hxx.
typedef std::vector<Line> sc::DataStream::LinesType |
Definition at line 62 of file datastream.hxx.
anonymous enum |
Enumerator | |
---|---|
VALUES_IN_LINE |
Definition at line 65 of file datastream.hxx.
Enumerator | |
---|---|
NO_MOVE | |
RANGE_DOWN | |
MOVE_DOWN | |
MOVE_UP |
Definition at line 64 of file datastream.hxx.
|
delete |
Referenced by Set().
sc::DataStream::DataStream | ( | ScDocShell * | pShell, |
const OUString & | rURL, | ||
const ScRange & | rRange, | ||
sal_Int32 | nLimit, | ||
MoveType | eMove, | ||
sal_uInt32 | nSettings | ||
) |
Definition at line 275 of file datastream.cxx.
References Decode(), LINK, maImportTimer, Timer::SetInvokeHandler(), and Timer::SetTimeout().
sc::DataStream::~DataStream | ( | ) |
Definition at line 298 of file datastream.cxx.
References mbRunning, moLines, mxReaderThread, and StopImport().
|
private |
Definition at line 311 of file datastream.cxx.
References mnLinesCount, moLines, and mxReaderThread.
Referenced by Text2Doc().
|
private |
void sc::DataStream::Decode | ( | const OUString & | rURL, |
const ScRange & | rRange, | ||
sal_Int32 | nLimit, | ||
MoveType | eMove, | ||
const sal_uInt32 | nSettings | ||
) |
Definition at line 346 of file datastream.cxx.
References ScRange::aEnd, ScRange::aStart, ScDocShell::GetDocument(), ScAddress::IncRow(), maEndRange, maStartRange, mbValuesInLine, meMove, meOrigMove, mnCurRow, mnSettings, mpDocShell, msURL, ScAddress::Row(), and ScAddress::SetRow().
Referenced by DataStream().
|
inline |
Definition at line 79 of file datastream.hxx.
References meOrigMove.
Referenced by ScXMLExport::WriteDataStream().
ScRange sc::DataStream::GetRange | ( | ) | const |
Definition at line 339 of file datastream.cxx.
References ScRange::aEnd, maEndRange, and maStartRange.
Referenced by ScXMLExport::WriteDataStream(), and ScXMLExport::WriteExternalDataTransformations().
|
inline |
Definition at line 78 of file datastream.hxx.
References msURL.
Referenced by ScXMLExport::WriteDataStream().
bool sc::DataStream::ImportData | ( | ) |
Definition at line 525 of file datastream.cxx.
References ScDocShell::GetViewData(), ScViewData::GetViewShell(), mbRunning, mbValuesInLine, ScTabView::NeedsRepaint(), and Text2Doc().
|
inline |
Definition at line 80 of file datastream.hxx.
References mbRefreshOnEmptyLine.
Referenced by ScXMLExport::WriteDataStream().
|
static |
Definition at line 236 of file datastream.cxx.
References SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), ScDocShell::GetViewData(), SfxViewShell::GetViewFrame(), ScViewData::GetViewShell(), u, and xFrame.
Referenced by sc::DataStreamDlg::StartStream().
|
private |
Definition at line 430 of file datastream.cxx.
References ScRange::aEnd, ScRange::aStart, maDocAccess, maEndRange, maImportTimer, maStartRange, mbIsFirst, mbIsUpdate, meMove, mnCurRow, MOVE_DOWN, MOVE_UP, NO_MOVE, RANGE_DOWN, ScAddress::Row(), Timer::SetTimeout(), sc::DocumentStreamAccess::shiftRangeDown(), and sc::DocumentStreamAccess::shiftRangeUp().
Referenced by Text2Doc().
|
delete |
|
private |
Definition at line 414 of file datastream.cxx.
References ScDocShell::DoHardRecalc(), sc::fTimes, mfLastRefreshTime, mnLinesSinceRefresh, mpDocShell, sc::Recalc, ScDocShell::SetDocumentModified(), and Application::Yield().
Referenced by StopImport(), and Text2Doc().
|
static |
Definition at line 265 of file datastream.cxx.
References DataStream(), ScDocument::GetDocLinkManager(), ScDocShell::GetDocument(), pLink, and sc::DocumentLinkManager::setDataStream().
Referenced by sc::DataStreamDlg::StartStream().
void sc::DataStream::SetRefreshOnEmptyLine | ( | bool | bVal | ) |
Definition at line 409 of file datastream.cxx.
References mbRefreshOnEmptyLine.
Referenced by sc::DataStreamDlg::StartStream().
void sc::DataStream::StartImport | ( | ) |
Definition at line 382 of file datastream.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), maDocAccess, maImportTimer, maStartRange, mbRunning, msURL, mxReaderThread, sc::DocumentStreamAccess::reset(), and Timer::Start().
Referenced by ScCellShell::ExecuteDB(), and sc::DataStreamDlg::StartStream().
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().
|
private |
Definition at line 472 of file datastream.cxx.
References ScRange::aStart, ScAddress::Col(), ConsumeLine(), sc::fTimes, sc::Import, sc::DataStream::Line::maCells, maDocAccess, sc::DataStream::Line::maLine, maStartRange, sc::DataStream::Cell::maStr, mbRefreshOnEmptyLine, sc::DataStream::Cell::mbValue, meMove, mfLastRefreshTime, sc::DataStream::Cell::mfValue, mnCurRow, mnLinesSinceRefresh, MoveData(), NO_MOVE, sc::DataStream::Cell::Str::Pos, RANGE_DOWN, Refresh(), sc::DocumentStreamAccess::setNumericCell(), sc::DocumentStreamAccess::setStringCell(), sc::DataStream::Cell::Str::Size, and ScAddress::Tab().
Referenced by ImportData().
|
private |
Definition at line 102 of file datastream.hxx.
Referenced by MoveData(), StartImport(), and Text2Doc().
|
private |
Definition at line 116 of file datastream.hxx.
Referenced by Decode(), GetRange(), and MoveData().
|
private |
Definition at line 118 of file datastream.hxx.
Referenced by DataStream(), MoveData(), StartImport(), and StopImport().
|
private |
Definition at line 115 of file datastream.hxx.
Referenced by Decode(), GetRange(), MoveData(), StartImport(), and Text2Doc().
|
private |
Definition at line 121 of file datastream.hxx.
Referenced by MoveData().
|
private |
Definition at line 122 of file datastream.hxx.
Referenced by MoveData().
|
private |
Definition at line 109 of file datastream.hxx.
Referenced by IsRefreshOnEmptyLine(), SetRefreshOnEmptyLine(), and Text2Doc().
|
private |
Definition at line 107 of file datastream.hxx.
Referenced by ImportData(), StartImport(), StopImport(), and ~DataStream().
|
private |
Definition at line 108 of file datastream.hxx.
Referenced by Decode(), and ImportData().
|
private |
Definition at line 106 of file datastream.hxx.
Referenced by Decode(), MoveData(), and Text2Doc().
|
private |
Definition at line 105 of file datastream.hxx.
|
private |
Definition at line 113 of file datastream.hxx.
Referenced by Refresh(), and Text2Doc().
|
private |
Definition at line 114 of file datastream.hxx.
Referenced by Decode(), MoveData(), and Text2Doc().
|
private |
Definition at line 111 of file datastream.hxx.
Referenced by ConsumeLine().
|
private |
Definition at line 112 of file datastream.hxx.
Referenced by Refresh(), and Text2Doc().
|
private |
Definition at line 104 of file datastream.hxx.
Referenced by Decode().
|
private |
Definition at line 110 of file datastream.hxx.
Referenced by ConsumeLine(), and ~DataStream().
|
private |
Definition at line 101 of file datastream.hxx.
|
private |
Definition at line 103 of file datastream.hxx.
Referenced by Decode(), GetURL(), and StartImport().
|
private |
Definition at line 120 of file datastream.hxx.
Referenced by ConsumeLine(), StartImport(), and ~DataStream().