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

◆ ScDBDataManager()

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

Definition at line 249 of file dataprovider.cxx.

◆ ~ScDBDataManager()

sc::ScDBDataManager::~ScDBDataManager ( )

Definition at line 255 of file dataprovider.cxx.

Member Function Documentation

◆ getDBData()

ScDBData * sc::ScDBDataManager::getDBData ( )

◆ SetDatabase()

void sc::ScDBDataManager::SetDatabase ( const OUString &  rDBName)

Definition at line 259 of file dataprovider.cxx.

References maDBName.

◆ WriteToDoc()

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

Member Data Documentation

◆ maDBName

OUString sc::ScDBDataManager::maDBName
private

Definition at line 120 of file dataprovider.hxx.

Referenced by getDBData(), and SetDatabase().

◆ mpDoc

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: