gtGetText Class Reference
#include <gtgettext.h>

Public Member Functions | |
| gtGetText (ScribusDoc *doc) | |
| ~gtGetText () | |
| ImportSetup | run () |
| void | launchImporter (int importer, const QString &filename, bool textOnly, const QString &encoding, bool append, PageItem *target=0) |
Private Member Functions | |
| void | loadImporterPlugins () |
| void | CallDLL (const ImporterData &idata, const QString &filePath, const QString &encoding, bool textOnly, bool append, PageItem *importItem) |
| bool | DLLName (QString name, QString *ffName, QStringList *fileEndings) |
| void | createMap () |
Private Attributes | |
| std::vector< ImporterData > | importers |
| QMap< QString, ImporterData * > | importerMap |
| gtDialogs * | dias |
| QStringList | ilist |
| ScribusDoc * | m_Doc |
Detailed Description
Definition at line 64 of file gtgettext.h.
Constructor & Destructor Documentation
| gtGetText::gtGetText | ( | ScribusDoc * | doc | ) |
| gtGetText::~gtGetText | ( | ) |
Definition at line 216 of file gtgettext.cpp.
Member Function Documentation
| void gtGetText::loadImporterPlugins | ( | ) | [private] |
Definition at line 77 of file gtgettext.cpp.
References createMap(), DLLName(), ImporterData::fileEndings, ImporterData::fileFormatName, importers, ScPaths::instance(), PluginManager::platformDllExtension(), PluginManager::platformDllSearchFlags(), ScPaths::pluginDir(), and ImporterData::soFilePath.
Referenced by gtGetText().
| void gtGetText::CallDLL | ( | const ImporterData & | idata, | |
| const QString & | filePath, | |||
| const QString & | encoding, | |||
| bool | textOnly, | |||
| bool | append, | |||
| PageItem * | importItem | |||
| ) | [private] |
Definition at line 147 of file gtgettext.cpp.
References ScPaths::instance(), PluginManager::loadDLL(), PluginManager::resolveSym(), ImporterData::soFilePath, and PluginManager::unloadDLL().
Referenced by launchImporter().
| bool gtGetText::DLLName | ( | QString | name, | |
| QString * | ffName, | |||
| QStringList * | fileEndings | |||
| ) | [private] |
Definition at line 173 of file gtgettext.cpp.
References ScPaths::instance(), PluginManager::loadDLL(), PluginManager::resolveSym(), and PluginManager::unloadDLL().
Referenced by loadImporterPlugins().
| void gtGetText::createMap | ( | ) | [private] |
Definition at line 207 of file gtgettext.cpp.
References importerMap, and importers.
Referenced by loadImporterPlugins().
| ImportSetup gtGetText::run | ( | ) |
Definition at line 106 of file gtgettext.cpp.
References dias, ImportSetup::encoding, ImporterData::fileEndings, ImportSetup::filename, gtDialogs::getEncoding(), gtDialogs::getFileName(), gtDialogs::getImporter(), ilist, ImportSetup::importer, importers, gtDialogs::importTextOnly(), ImportSetup::runDialog, gtDialogs::runFileDialog(), ImportSetup::textOnly, and tr().
Referenced by InsertAFrame::locateDocFile(), ScribusMainWindow::slotFileAppend(), and ScribusMainWindow::slotGetContent().
| void gtGetText::launchImporter | ( | int | importer, | |
| const QString & | filename, | |||
| bool | textOnly, | |||
| const QString & | encoding, | |||
| bool | append, | |||
| PageItem * | target = 0 | |||
| ) |
Definition at line 46 of file gtgettext.cpp.
References CallDLL(), dias, gtDialogs::getImporter(), ilist, importerMap, importers, Selection::itemAt(), m_Doc, ScribusDoc::m_Selection, and gtDialogs::runImporterDialog().
Referenced by ScribusDoc::itemAddUserFrame(), ScribusMainWindow::slotFileAppend(), and ScribusMainWindow::slotGetContent().
Member Data Documentation
std::vector<ImporterData> gtGetText::importers [private] |
Definition at line 67 of file gtgettext.h.
Referenced by createMap(), launchImporter(), loadImporterPlugins(), and run().
QMap<QString, ImporterData*> gtGetText::importerMap [private] |
gtDialogs* gtGetText::dias [private] |
QStringList gtGetText::ilist [private] |
ScribusDoc* gtGetText::m_Doc [private] |
The documentation for this class was generated from the following files:
