summaryrefslogtreecommitdiff
path: root/src/frontend/cexportmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/cexportmanager.h')
-rw-r--r--src/frontend/cexportmanager.h112
1 files changed, 56 insertions, 56 deletions
diff --git a/src/frontend/cexportmanager.h b/src/frontend/cexportmanager.h
index 210bb2b..013cd88 100644
--- a/src/frontend/cexportmanager.h
+++ b/src/frontend/cexportmanager.h
@@ -26,70 +26,70 @@ class QProgressDialog;
* @author The BibleTime team
*/
class CExportManager : CPointers {
-public:
- /** The format the export actions should have
- */
- enum Format {
- HTML,
- Text
- };
+ public:
+ /** The format the export actions should have
+ */
+ enum Format {
+ HTML,
+ Text
+ };
- CExportManager(const QString& caption, const bool showProgress = true, const QString& progressLabel = QString::null, const CSwordBackend::FilterOptions filterOptions = CBTConfig::getFilterOptionDefaults(), const CSwordBackend::DisplayOptions displayOptions = CBTConfig::getDisplayOptionDefaults());
+ CExportManager(const QString& caption, const bool showProgress = true, const QString& progressLabel = QString::null, const CSwordBackend::FilterOptions filterOptions = CBTConfig::getFilterOptionDefaults(), const CSwordBackend::DisplayOptions displayOptions = CBTConfig::getDisplayOptionDefaults());
- bool saveKey(CSwordKey* key, const Format format, const bool addText);
- bool saveKeyList(sword::ListKey* list, CSwordModuleInfo* module, const Format format, const bool addText);
- bool saveKeyList(QList<CSwordKey*>& list, const Format format, const bool addText );
+ bool saveKey(CSwordKey* key, const Format format, const bool addText);
+ bool saveKeyList(sword::ListKey* list, CSwordModuleInfo* module, const Format format, const bool addText);
+ bool saveKeyList(QList<CSwordKey*>& list, const Format format, const bool addText );
- bool copyKey(CSwordKey* key, const Format format, const bool addText);
- bool copyKeyList(sword::ListKey* list, CSwordModuleInfo* module, const Format format, const bool addText);
- bool copyKeyList(QList<CSwordKey*>& list, const Format format, const bool addText );
+ bool copyKey(CSwordKey* key, const Format format, const bool addText);
+ bool copyKeyList(sword::ListKey* list, CSwordModuleInfo* module, const Format format, const bool addText);
+ bool copyKeyList(QList<CSwordKey*>& list, const Format format, const bool addText );
- bool printKey(CSwordKey* key, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions);
- bool printKey( CSwordModuleInfo* module, const QString& startKey, const QString& stopKey, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions );
- bool printByHyperlink(const QString& hyperlink, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions);
- bool printKeyList(sword::ListKey* list, CSwordModuleInfo* module, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions);
- bool printKeyList(const QStringList& list,CSwordModuleInfo* module, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions);
+ bool printKey(CSwordKey* key, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions);
+ bool printKey( CSwordModuleInfo* module, const QString& startKey, const QString& stopKey, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions );
+ bool printByHyperlink(const QString& hyperlink, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions);
+ bool printKeyList(sword::ListKey* list, CSwordModuleInfo* module, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions);
+ bool printKeyList(const QStringList& list, CSwordModuleInfo* module, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions);
-protected: // Protected methods
- /**
- * Returns the string for the filedialogs to show the correct files.
- */
- const QString filterString( const Format format );
- /**
- * Returns a filename to save a file.
- */
- const QString getSaveFileName(const Format format);
- /**
- * Returns a string containing the linebreak for the current format.
- */
- const QString lineBreak( const Format format );
+ protected: // Protected methods
+ /**
+ * Returns the string for the filedialogs to show the correct files.
+ */
+ const QString filterString( const Format format );
+ /**
+ * Returns a filename to save a file.
+ */
+ const QString getSaveFileName(const Format format);
+ /**
+ * Returns a string containing the linebreak for the current format.
+ */
+ const QString lineBreak( const Format format );
-private:
- QString m_caption;
- QString m_progressLabel;
- bool m_showProgress;
- CSwordBackend::FilterOptions m_filterOptions;
- CSwordBackend::DisplayOptions m_displayOptions;
+ private:
+ QString m_caption;
+ QString m_progressLabel;
+ bool m_showProgress;
+ CSwordBackend::FilterOptions m_filterOptions;
+ CSwordBackend::DisplayOptions m_displayOptions;
- QProgressDialog* m_progressDialog;
+ QProgressDialog* m_progressDialog;
- /**
- * Creates the progress dialog with the correct settings.
- */
- QProgressDialog* progressDialog();
- /**
- * Returns the CSS string used in HTML pages.
- */
- void setProgressRange( const int item );
- /**
- * Increments the progress by one item.
- */
- inline void incProgress();
- bool progressWasCancelled();
- /**
- * Closes the progress dialog immediately.
- */
- void closeProgressDialog();
+ /**
+ * Creates the progress dialog with the correct settings.
+ */
+ QProgressDialog* progressDialog();
+ /**
+ * Returns the CSS string used in HTML pages.
+ */
+ void setProgressRange( const int item );
+ /**
+ * Increments the progress by one item.
+ */
+ inline void incProgress();
+ bool progressWasCancelled();
+ /**
+ * Closes the progress dialog immediately.
+ */
+ void closeProgressDialog();
};
#endif