LibreOffice Module sc (master) 1
|
This class handles the copying of the data from the imported temporary document to the actual document. More...
#include <dataprovider.hxx>
Public Member Functions | |
ScDBDataManager (OUString aDBName, ScDocument *pDoc) | |
~ScDBDataManager () | |
void | SetDatabase (const OUString &rDBName) |
ScDBData * | getDBData () |
void | WriteToDoc (ScDocument &rDoc) |
Private Attributes | |
OUString | maDBName |
ScDocument * | mpDoc |
This class handles the copying of the data from the imported temporary document to the actual document.
Additionally, in the future we may decide to store data transformations in this class.
In addition this class also handles how to deal with excess data by for example extending the ScDBData or by only showing the first or last entries.
TODO: move the DataProvider::WriteToDoc here
Definition at line 118 of file dataprovider.hxx.
sc::ScDBDataManager::ScDBDataManager | ( | OUString | aDBName, |
ScDocument * | pDoc | ||
) |
Definition at line 250 of file dataprovider.cxx.
sc::ScDBDataManager::~ScDBDataManager | ( | ) |
Definition at line 256 of file dataprovider.cxx.
ScDBData * sc::ScDBDataManager::getDBData | ( | ) |
Definition at line 265 of file dataprovider.cxx.
References ScDBCollection::NamedDBs::findByUpperName(), ScGlobal::getCharClass(), ScDocument::GetDBCollection(), ScDBCollection::getNamedDBs(), maDBName, and mpDoc.
Referenced by WriteToDoc().
void sc::ScDBDataManager::SetDatabase | ( | const OUString & | rDBName | ) |
Definition at line 260 of file dataprovider.cxx.
References maDBName.
void sc::ScDBDataManager::WriteToDoc | ( | ScDocument & | rDoc | ) |
Definition at line 221 of file dataprovider.cxx.
References ScRange::aEnd, All, ScRange::aStart, ScAddress::Col(), CONTENTS, ScDocument::CopyFromClip(), ScDBData::GetArea(), getDBData(), ScDocument::GetDocumentShell(), ScDocument::GetSheetLimits(), ScDocument::MaxCol(), ScDocument::MaxRow(), mpDoc, ScDocShell::PostPaint(), ScAddress::Row(), ScMarkData::SelectTable(), ScDocument::SetClipArea(), ScAddress::SetCol(), ScAddress::SetRow(), and ScDocument::ShrinkToUsedDataArea().
Referenced by sc::HTMLDataProvider::ImportFinished(), sc::SQLDataProvider::ImportFinished(), sc::XMLDataProvider::ImportFinished(), and sc::CSVDataProvider::ImportFinished().
|
private |
Definition at line 120 of file dataprovider.hxx.
Referenced by getDBData(), and SetDatabase().
|
private |
Definition at line 121 of file dataprovider.hxx.
Referenced by getDBData(), and WriteToDoc().