LibEngsas
|
Handles CSV im- and export. More...
#include <espreadsheetprovidercsv.h>
Public Member Functions | |
ESpreadsheetProviderCsv (QObject *parent=NULL) | |
QString | name () const |
QString | description () const |
QString | providerId () const |
ESettingsWidget * | settingsWidget () const |
QStringList | filters () const |
bool | sheetsSupported () const |
Return true, if (more than one) sheet is supported. | |
bool | create (QFile *file) |
bool | load (QFile *file) |
bool | writeData () |
void | close () |
Closes the opened file and deletes the spreadsheets. | |
ESpreadsheet * | appendSpreadsheet (QString name) |
EngSaS::Spreadsheets | spreadsheets () |
![]() | |
virtual | ~ESpreadsheetProvider () |
![]() | |
EObject (QObject *parent=0) | |
virtual | ~EObject () |
void | connectByPass (QObject *object) |
Static Public Member Functions | |
static QString | staticProviderId () |
Properties | |
QString | name |
QString | description |
Private Member Functions | |
bool | loadSettings () |
Shows the ESpreadsheetProviderCsvSettingsDialog loads the settings. Returns true on accepted and false on rejected dialog. | |
void | setSpreadsheet (ESpreadsheetCsv *sheet) |
Private Attributes | |
QFile * | file |
QString | separator |
QString | textmarker |
ESpreadsheetCsv * | spreadsheet |
QTextCodec * | encoding |
Additional Inherited Members | |
![]() | |
virtual void | reloadSettings () |
Used to reload the settings. | |
![]() | |
void | error (const QString &message) |
void | warning (const QString &message) |
void | information (const QString &message) |
void | reloadEnableActions () |
Request reloading of enabled actions in EMainWindow. | |
void | addMenu (QMenu *newMenu, const QString &parent, QString before=QString()) |
void | addAction (QAction *newAction, const QString &parent, QString before=QString()) |
void | addToolBar (QToolBar *newToolBar, Qt::ToolBarArea area=Qt::TopToolBarArea) |
void | addNewDockWidget (QDockWidget *widget, const Qt::DockWidgetArea &area) |
void | setCentralWidget (QWidget *centralWidget) |
void | showSettings () |
void | showHelp (const QString &page) |
void | showStatusWidget (QWidget *widget) |
void | reloadSettingsRequest () |
Indicates, that a reload of the settings is needed. | |
void | doReloadSettings () |
Emitted to bring the reload request back to the farest child. | |
![]() | |
virtual void | errorByPass (const QString &message) |
virtual void | warningByPass (const QString &message) |
virtual void | informationByPass (const QString &message) |
virtual void | reloadEnableActionsByPass () |
virtual void | addMenuByPass (QMenu *newMenu, const QString &parent, QString before=QString()) |
virtual void | addActionByPass (QAction *newAction, const QString &parent, QString before=QString()) |
virtual void | addToolBarByPass (QToolBar *newToolBar, Qt::ToolBarArea area=Qt::TopToolBarArea) |
virtual void | addNewDockWidgetByPass (QDockWidget *widget, const Qt::DockWidgetArea &area) |
virtual void | setCentralWidgetByPass (QWidget *centralWidget) |
virtual void | showSettingsByPass () |
virtual void | showHelpByPass (const QString &page) |
virtual void | showStatusWidgetByPass (QWidget *widget) |
virtual void | reloadSettingsRequestByPass () |
![]() | |
void | addManagedDockWidget (QDockWidget *widget, const Qt::DockWidgetArea &area, QString actionLabel=QString(), QString actionParent=QString()) |
Adds an dock widget via addNewDockWidget() and adds widget to the list of managed dock widgets. |
Handles CSV im- and export.
This class should not be used directly. It is designed to be used with help of ESpreadsheetHandler.
ESpreadsheetProviderCsv::ESpreadsheetProviderCsv | ( | QObject * | parent = NULL | ) |
|
virtual |
|
virtual |
Closes the opened file and deletes the spreadsheets.
Implements ESpreadsheetProvider.
|
virtual |
QString ESpreadsheetProviderCsv::description | ( | ) | const |
|
virtual |
Implements ESpreadsheetProvider.
|
virtual |
|
private |
Shows the ESpreadsheetProviderCsvSettingsDialog loads the settings. Returns true on accepted and false on rejected dialog.
|
virtual |
Implements ESpreadsheetProvider.
|
virtual |
Implements ESpreadsheetProvider.
|
private |
|
virtual |
Implements ESpreadsheetProvider.
|
virtual |
Return true, if (more than one) sheet is supported.
E. g. CSV returns false, but XLS or ODS return true.
Implements ESpreadsheetProvider.
|
virtual |
|
static |
|
virtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
read |
|
read |