38class KOFFICECORE_EXPORT KoDocumentEntry
42 KoDocumentEntry() { m_service = 0L; }
43 KoDocumentEntry( KService::Ptr service );
44 ~KoDocumentEntry() { }
46 KService::Ptr service()
const {
return m_service; }
51 bool isEmpty()
const {
return m_service == 0L; }
56 TQString
name()
const {
return m_service->name(); }
61 TQStringList
mimeTypes()
const {
return m_service->serviceTypes(); }
67 {
return mimeTypes().contains( _mimetype ); }
83 static TQValueList<KoDocumentEntry> query(
const TQString & _constr = TQString() );
97 static TQValueList<KoDocumentEntry> query(
bool _onlyDocEmb,
const TQString& _constr);
113 KService::Ptr m_service;
119class KOFFICECORE_EXPORT KoFilterEntry :
public TDEShared
123 typedef TDESharedPtr<KoFilterEntry> Ptr;
125 KoFilterEntry() :
weight( 0 ) { m_service = 0L; }
126 KoFilterEntry( KService::Ptr service );
154 bool imports(
const TQString& _mimetype )
const
155 {
return (
import.contains( _mimetype ) ); }
161 {
return (
export_.contains( _m ) ); }
170 static TQValueList<KoFilterEntry::Ptr> query(
const TQString& _constr = TQString() );
172 KService::Ptr service()
const {
return m_service; }
175 KService::Ptr m_service;
Represents an available KOffice component that supports the document interface.
bool supportsMimeType(const TQString &_mimetype) const
TQStringList mimeTypes() const
Mimetypes (and other service types) which this document can handle.
bool imports(const TQString &_mimetype) const
TQString available
Do we have to check during runtime?
bool exports(const TQString &_m) const
unsigned int weight
The "weight" of this filter path.
TQStringList export_
The exported mimetype(s).