LibreOffice Module sc (master) 1
|
#include <dataprovider.hxx>
Public Member Functions | |
CSVDataProvider (ScDocument *pDoc, sc::ExternalDataSource &rDataSource) | |
virtual | ~CSVDataProvider () override |
virtual void | Import () override |
const OUString & | GetURL () const override |
void | ImportFinished () |
Public Member Functions inherited from sc::DataProvider | |
DataProvider (sc::ExternalDataSource &rDataSource) | |
virtual | ~DataProvider () |
virtual void | Import ()=0 |
virtual const OUString & | GetURL () const =0 |
void | setDeterministic () |
Private Member Functions | |
void | Refresh () |
Private Attributes | |
rtl::Reference< CSVFetchThread > | mxCSVFetchThread |
ScDocument * | mpDocument |
ScDocumentUniquePtr | mpDoc |
Additional Inherited Members | |
Static Public Member Functions inherited from sc::DataProvider | |
static std::unique_ptr< SvStream > | FetchStreamFromURL (const OUString &, OStringBuffer &rBuffer) |
Protected Attributes inherited from sc::DataProvider | |
bool | mbDeterministic |
If true make the threaded import deterministic for the tests. More... | |
sc::ExternalDataSource & | mrDataSource |
Definition at line 90 of file dataprovider.hxx.
sc::CSVDataProvider::CSVDataProvider | ( | ScDocument * | pDoc, |
sc::ExternalDataSource & | rDataSource | ||
) |
Definition at line 119 of file csvdataprovider.cxx.
|
overridevirtual |
Definition at line 125 of file csvdataprovider.cxx.
References mxCSVFetchThread.
|
overridevirtual |
Implements sc::DataProvider.
Definition at line 166 of file csvdataprovider.cxx.
References sc::ExternalDataSource::getURL(), and sc::DataProvider::mrDataSource.
|
overridevirtual |
Implements sc::DataProvider.
Definition at line 134 of file csvdataprovider.cxx.
References sc::ExternalDataSource::getDataTransformation(), sc::ExternalDataSource::getURL(), ImportFinished(), sc::DataProvider::mbDeterministic, mpDoc, mpDocument, sc::DataProvider::mrDataSource, mxCSVFetchThread, and SCDOCMODE_CLIP.
void sc::CSVDataProvider::ImportFinished | ( | ) |
Definition at line 152 of file csvdataprovider.cxx.
References sc::ExternalDataSource::getDBManager(), mpDoc, sc::DataProvider::mrDataSource, Refresh(), and sc::ScDBDataManager::WriteToDoc().
Referenced by Import().
|
private |
Definition at line 159 of file csvdataprovider.cxx.
References ScDocument::GetDocumentShell(), mpDocument, and ScDocShell::SetDocumentModified().
Referenced by ImportFinished().
|
private |
Definition at line 94 of file dataprovider.hxx.
Referenced by Import(), and ImportFinished().
|
private |
Definition at line 93 of file dataprovider.hxx.
|
private |
Definition at line 92 of file dataprovider.hxx.
Referenced by Import(), and ~CSVDataProvider().