20#ifndef __koffice_filter_h__
21#define __koffice_filter_h__
25#include <tqptrstack.h>
26#include <koffice_export.h>
49class KOFFICECORE_EXPORT KoFilter : public TQObject
65 StorageCreationError, BadMimeType, BadConversionGraph,
66 EmbeddedDocError, WrongFormat, NotImplemented,
67 ParsingError, InternalError, UnexpectedEOF,
68 UnexpectedOpcode, UserCancelled, OutOfMemory,
70 JustInCaseSomeBrokenCompilerUsesLessThanAByte = 255 };
165 int lruPartIndex() const;
173 static TQString mimeTypeByExtension( const TQString& extension );
203 int embedPart( const TQCString& from, TQCString& to,
205 const TQString& key = TQString() );
217 void startInternalEmbedding( const TQString& key, const TQCString& mimeType );
225 void endInternalEmbedding();
236 int internalPartReference( const TQString& key ) const;
246 TQCString internalPartMimeType( const TQString& key ) const;
256 PartReference( int index = -1, const TQCString& mimeType = "" );
257 bool isValid() const;
260 TQCString m_mimeType;
275 TQMap<TQString, PartReference> m_partReferences;
293 virtual void savePartContents( TQIODevice* file );
300 void filterChainEnterDirectory( const TQString& directory ) const;
306 void filterChainLeaveDirectory() const;
312 TQPtrStack<PartState> m_partStack;
The base class for all import filters embedding other filters.
This class represents a chain of plain KoFilter instances.
Represents an available filter.
The base class for import and export filters.
virtual ConversionStatus convert(const TQCString &from, const TQCString &to)=0 The filter chain calls this method to perform the actual conversion.
void sigProgress(int value) Emit this signal with a value in the range of 1...100 to have some progress feedback for the user in ...
KoFilterChain * m_chain Use this pointer to access all information about input/output during the conversion.
ConversionStatus This enum is used to signal the return state of your filter.
|