LibreOffice Module sc (master) 1
|
#include <datamapper.hxx>
Public Member Functions | |
ExternalDataSource (OUString aURL, OUString aProvider, ScDocument *pDoc) | |
void | setUpdateFrequency (double nUpdateFrequency) |
void | setID (const OUString &rID) |
void | setURL (const OUString &rURL) |
void | setProvider (const OUString &rProvider) |
void | setXMLImportParam (const ScOrcusImportXMLParam &rParam) |
const OUString & | getURL () const |
const OUString & | getProvider () const |
const OUString & | getID () const |
const ScOrcusImportXMLParam & | getXMLImportParam () const |
OUString | getDBName () const |
void | setDBData (const OUString &rDBName) |
ScDBDataManager * | getDBManager () |
void | refresh (ScDocument *pDoc, bool bDeterministic=false) |
void | AddDataTransformation (const std::shared_ptr< sc::DataTransformation > &mpDataTransformation) |
const std::vector< std::shared_ptr< sc::DataTransformation > > & | getDataTransformation () const |
Static Public Member Functions | |
static double | getUpdateFrequency () |
Private Attributes | |
OUString | maURL |
The URL for the external data provider. More... | |
OUString | maProvider |
The data provider is a unique identifier that will allow to identify and instantiate the required data provider. More... | |
OUString | maID |
The ID allows the same data provider to support different data streams. More... | |
ScOrcusImportXMLParam | maParam |
std::shared_ptr< DataProvider > | mpDataProvider |
std::shared_ptr< ScDBDataManager > | mpDBDataManager |
std::vector< std::shared_ptr< sc::DataTransformation > > | maDataTransformations |
ScDocument * | mpDoc |
Definition at line 28 of file datamapper.hxx.
sc::ExternalDataSource::ExternalDataSource | ( | OUString | aURL, |
OUString | aProvider, | ||
ScDocument * | pDoc | ||
) |
Definition at line 67 of file dataprovider.cxx.
void sc::ExternalDataSource::AddDataTransformation | ( | const std::shared_ptr< sc::DataTransformation > & | mpDataTransformation | ) |
Definition at line 171 of file dataprovider.cxx.
References maDataTransformations.
Referenced by ScDataProviderDlg::import().
const std::vector< std::shared_ptr< sc::DataTransformation > > & sc::ExternalDataSource::getDataTransformation | ( | ) | const |
Definition at line 177 of file dataprovider.cxx.
References maDataTransformations.
Referenced by sc::HTMLDataProvider::Import(), sc::SQLDataProvider::Import(), sc::XMLDataProvider::Import(), and sc::CSVDataProvider::Import().
ScDBDataManager * sc::ExternalDataSource::getDBManager | ( | ) |
Definition at line 146 of file dataprovider.cxx.
References mpDBDataManager.
Referenced by sc::HTMLDataProvider::ImportFinished(), sc::SQLDataProvider::ImportFinished(), sc::XMLDataProvider::ImportFinished(), and sc::CSVDataProvider::ImportFinished().
OUString sc::ExternalDataSource::getDBName | ( | ) | const |
Definition at line 118 of file dataprovider.cxx.
References ScDBData::GetName(), and mpDBDataManager.
Referenced by ScDataProviderDlg::import().
const OUString & sc::ExternalDataSource::getID | ( | ) | const |
Definition at line 108 of file dataprovider.cxx.
References maID.
Referenced by sc::HTMLDataProvider::Import(), sc::SQLDataProvider::Import(), and sc::XMLDataProvider::Import().
const OUString & sc::ExternalDataSource::getProvider | ( | ) | const |
Definition at line 103 of file dataprovider.cxx.
References maProvider.
Referenced by sc::DataProviderFactory::getDataProvider().
|
static |
Definition at line 141 of file dataprovider.cxx.
Referenced by ScXMLExport::WriteExternalDataMapping().
const OUString & sc::ExternalDataSource::getURL | ( | ) | const |
Definition at line 98 of file dataprovider.cxx.
References maURL.
Referenced by sc::HTMLDataProvider::GetURL(), sc::SQLDataProvider::GetURL(), sc::XMLDataProvider::GetURL(), sc::CSVDataProvider::GetURL(), sc::HTMLDataProvider::Import(), sc::XMLDataProvider::Import(), and sc::CSVDataProvider::Import().
const ScOrcusImportXMLParam & sc::ExternalDataSource::getXMLImportParam | ( | ) | const |
Definition at line 113 of file dataprovider.cxx.
References maParam.
Referenced by sc::XMLDataProvider::Import().
void sc::ExternalDataSource::refresh | ( | ScDocument * | pDoc, |
bool | bDeterministic = false |
||
) |
Definition at line 151 of file dataprovider.cxx.
References sc::DataProviderFactory::getDataProvider(), mpDataProvider, and mpDBDataManager.
Referenced by ScDataProviderDlg::import().
void sc::ExternalDataSource::setDBData | ( | const OUString & | rDBName | ) |
Definition at line 129 of file dataprovider.cxx.
References mpDBDataManager, and mpDoc.
Referenced by ScDataProviderDlg::import(), and ScXMLMappingContext::ScXMLMappingContext().
void sc::ExternalDataSource::setID | ( | const OUString & | rID | ) |
Definition at line 75 of file dataprovider.cxx.
References maID.
Referenced by ScDataProviderDlg::getDataSource(), and ScXMLMappingContext::ScXMLMappingContext().
void sc::ExternalDataSource::setProvider | ( | const OUString & | rProvider | ) |
Definition at line 92 of file dataprovider.cxx.
References maProvider, and mpDataProvider.
void sc::ExternalDataSource::setUpdateFrequency | ( | double | nUpdateFrequency | ) |
void sc::ExternalDataSource::setURL | ( | const OUString & | rURL | ) |
Definition at line 87 of file dataprovider.cxx.
References maURL.
void sc::ExternalDataSource::setXMLImportParam | ( | const ScOrcusImportXMLParam & | rParam | ) |
Definition at line 80 of file dataprovider.cxx.
References maParam.
|
private |
Definition at line 68 of file datamapper.hxx.
Referenced by AddDataTransformation(), and getDataTransformation().
|
private |
The ID allows the same data provider to support different data streams.
A data provider may decide to ignore the ID string.
Definition at line 61 of file datamapper.hxx.
|
private |
Definition at line 63 of file datamapper.hxx.
Referenced by getXMLImportParam(), and setXMLImportParam().
|
private |
The data provider is a unique identifier that will allow to identify and instantiate the required data provider.
Examples for the internal data providers are:
org.libreoffice.dataprovider.calc.csv org.libreoffice.dataprovider.calc.json
Only internal data providers should use the: "org.libreoffice.dataprovider prefix".
Definition at line 53 of file datamapper.hxx.
Referenced by getProvider(), and setProvider().
|
private |
The URL for the external data provider.
The URL will be passed to the data provider together with the ID.
A data provider may decide to ignore the URL string.
Definition at line 38 of file datamapper.hxx.
|
private |
Definition at line 65 of file datamapper.hxx.
Referenced by refresh(), and setProvider().
|
private |
Definition at line 66 of file datamapper.hxx.
Referenced by getDBManager(), getDBName(), refresh(), and setDBData().
|
private |
Definition at line 70 of file datamapper.hxx.
Referenced by setDBData().