lib
KoFilterChain Class Reference
#include <KoFilterChain.h>
Detailed Description
This class represents a chain of plain KoFilter instances.Instances of this class are shared, so please just hold KoFilterChain::Ptr pointers to it.
- Author:
- Werner Trobin <trobin@kde.org>
- Todo:
- the class has no constructor and therefore cannot initialize its private class
Definition at line 50 of file KoFilterChain.h.
Public Types | |
typedef KSharedPtr< KoFilterChain > | Ptr |
Public Member Functions | |
virtual | ~KoFilterChain () |
const KoFilterManager * | manager () const |
KoFilter::ConversionStatus | invokeChain () |
QString | chainOutput () const |
QString | inputFile () |
QString | outputFile () |
KoStoreDevice * | storageFile (const QString &name="root", KoStore::Mode mode=KoStore::Read) |
KoDocument * | inputDocument () |
KoDocument * | outputDocument () |
void | dump () const |
Friends | |
class | KOffice::Graph |
class | KoFilterManager |
void | KoEmbeddingFilter::filterChainEnterDirectory (const QString &directory) const |
void | KoEmbeddingFilter::filterChainLeaveDirectory () const |
Member Function Documentation
QString KoFilterChain::chainOutput | ( | ) | const |
Tells the KoFilterManager the output file of the filter chain in case of an import operation.
If it's QString::null we directly manipulated the document.
Definition at line 175 of file KoFilterChain.cpp.
KoDocument * KoFilterChain::inputDocument | ( | ) |
This method allows your filter to work directly on the KoDocument of the application.
This part of the API is for the filters in our chain.
- Returns:
- The document containing the data. May return 0 on error.
Definition at line 261 of file KoFilterChain.cpp.
QString KoFilterChain::inputFile | ( | ) |
Get the current file to read from.
This part of the API is for the filters in our chain.
Definition at line 182 of file KoFilterChain.cpp.
KoFilter::ConversionStatus KoFilterChain::invokeChain | ( | ) |
Starts the filtering process.
- Returns:
- The return status of the conversion. KoFilter::OK if everything is alright.
Definition at line 134 of file KoFilterChain.cpp.
const KoFilterManager* KoFilterChain::manager | ( | ) | const [inline] |
KoDocument * KoFilterChain::outputDocument | ( | ) |
This method allows your filter to work directly on the KoDocument of the application.
This part of the API is for the filters in our chain.
- Returns:
- The document you have to write to. May return 0 on error.
Definition at line 281 of file KoFilterChain.cpp.
QString KoFilterChain::outputFile | ( | ) |
Get the current file to write to.
This part of the API is for the filters in our chain.
Definition at line 206 of file KoFilterChain.cpp.
KoStoreDevice * KoFilterChain::storageFile | ( | const QString & | name = "root" , |
|
KoStore::Mode | mode = KoStore::Read | |||
) |
Get a file from a storage.
May return 0! This part of the API is for the filters in our chain. If you call it multiple times with the same stream name the stream will be closed and re-opened. Note: Don't delete that KoStoreDevice we return.
- Parameters:
-
name The name of the stream inside the storage mode Whether we want to read or write from/to the stream
- Returns:
- The storage device to access the stream. May be 0!
Definition at line 234 of file KoFilterChain.cpp.
The documentation for this class was generated from the following files: