LibreOffice Module sc (master)  1
Public Member Functions | Private Attributes | List of all members
sc::ScDBDataManager Class Reference

This class handles the copying of the data from the imported temporary document to the actual document. More...

#include <dataprovider.hxx>

Collaboration diagram for sc::ScDBDataManager:
[legend]

Public Member Functions

 ScDBDataManager (const OUString &rDBName, ScDocument *pDoc)
 
 ~ScDBDataManager ()
 
void SetDatabase (const OUString &rDBName)
 
ScDBDatagetDBData ()
 
void WriteToDoc (ScDocument &rDoc)
 

Private Attributes

OUString maDBName
 
ScDocumentmpDoc
 

Detailed Description

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.

Constructor & Destructor Documentation

sc::ScDBDataManager::ScDBDataManager ( const OUString &  rDBName,
ScDocument pDoc 
)

Definition at line 248 of file dataprovider.cxx.

sc::ScDBDataManager::~ScDBDataManager ( )

Definition at line 254 of file dataprovider.cxx.

Member Function Documentation

ScDBData * sc::ScDBDataManager::getDBData ( )
void sc::ScDBDataManager::SetDatabase ( const OUString &  rDBName)

Definition at line 258 of file dataprovider.cxx.

References maDBName.

void sc::ScDBDataManager::WriteToDoc ( ScDocument rDoc)

Member Data Documentation

OUString sc::ScDBDataManager::maDBName
private

Definition at line 120 of file dataprovider.hxx.

Referenced by getDBData(), and SetDatabase().

ScDocument* sc::ScDBDataManager::mpDoc
private

Definition at line 121 of file dataprovider.hxx.

Referenced by getDBData(), and WriteToDoc().


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