KoFilterManager Class Reference
The class managing all the filters. More...
#include <koFilterManager.h>
Inheritance diagram for KoFilterManager:


Public Types | |
enum | Direction { Import = 1, Export = 2 } |
Signals | |
void | sigProgress (int) |
Public Member Functions | |
KoFilterManager (KoDocument *document) | |
KoFilterManager (const QString &url, const QCString &mimetypeHint="", KoFilterChain *const parentChain=0) | |
QString | import (const QString &url, KoFilter::ConversionStatus &status) |
KoFilter::ConversionStatus | exp0rt (const QString &url, QCString &mimeType) |
void | setBatchMode (const bool batch) |
bool | getBatchMode (void) const |
Static Public Member Functions | |
static KOFFICECORE_EXPORT QStringList | mimeFilter (const QCString &mimetype, Direction direction, const QStringList &extraNativeMimeTypes=QStringList()) |
static QStringList | mimeFilter () |
static bool | filterAvailable (KoFilterEntry::Ptr entry) |
Friends | |
QString | KoFilterChain::filterManagerImportFile () const |
QString | KoFilterChain::filterManagerExportFile () const |
KoDocument * | KoFilterChain::filterManagerKoDocument () const |
int | KoFilterChain::filterManagerDirection () const |
KoFilterChain *const | KoFilterChain::filterManagerParentChain () const |
Detailed Description
The class managing all the filters.This class manages all filters for a KOffice application. Normally you will not have to use it, since KoMainWindow takes care of loading and saving documents.
- Author:
- Kalle Dalheimer <kalle@kde.org>
Torben Weis <weis@kde.org>
Werner Trobin <trobin@kde.org>
Definition at line 44 of file koFilterManager.h.
Member Enumeration Documentation
|
This enum is used to distinguish the import/export cases.
Definition at line 51 of file koFilterManager.h. |
Constructor & Destructor Documentation
|
Create a filter manager for a document.
Definition at line 116 of file koFilterManager.cc. |
|
Create a filter manager for a filter which wants to embed something. The url it passes is the file to convert, obviously. You cannot use the import() method -- use exp0rt() to convert the file to the destination mimetype you prefer.
Definition at line 127 of file koFilterManager.cc. |
Member Function Documentation
|
Imports the passed URL and returns the resultant filename (most likely some file in /tmp).
The Definition at line 141 of file koFilterManager.cc. References KOffice::Graph::chain(), KoDocument::extraNativeMimeTypes(), KoDocument::isAutoErrorHandlingEnabled(), KOffice::Graph::isValid(), mimeFilter(), KoDocument::nativeFormatMimeType(), and KOffice::Graph::setSourceMimeType(). |
|
Exports the given file/document to the specified URL/mimetype.
If Definition at line 232 of file koFilterManager.cc. References KOffice::Graph::chain(), KOffice::Graph::isValid(), mimeFilter(), KoDocument::nativeFormatMimeType(), and KOffice::Graph::setSourceMimeType(). Referenced by KoEmbeddingFilter::embedPart(). |
|
Suitable for passing to KFileDialog::setMimeFilter.
The default mime gets set by the "users" of this method, as we do not have enough information here. Optionally, Definition at line 456 of file koFilterManager.cc. |
|
The same method as KoFilterManager::mimeFilter but suited for KoShell. We do not need the mimetype, as we will simply use all available KOffice mimetypes. The Direction enum is omitted, as we only call this for importing. When saving from KoShell we already know the KOffice part we are using. Definition at line 469 of file koFilterManager.cc. References KoDocumentEntry::query(). Referenced by exp0rt(), import(), KoMainWindow::saveDocument(), and KoMainWindow::slotFileOpen(). |
|
Method used to check if that filter is available at all.
Definition at line 503 of file koFilterManager.cc. |
|
Set the filter manager is batch mode (no dialog shown) instead of the interactive mode (dialog shown).
Definition at line 554 of file koFilterManager.cc. |
|
Get if the filter manager is batch mode (true) or in interactive mode (true).
Definition at line 559 of file koFilterManager.cc. |
The documentation for this class was generated from the following files: