Référence de la classe KoDocumentEntry

#include <KoQueryTrader.h>

Liste de tous les membres

Fonctions membres publiques

 KoDocumentEntry ()
 KoDocumentEntry (KService::Ptr service)
 ~KoDocumentEntry ()
KService::Ptr service () const
bool isEmpty () const
QString name () const
QStringList mimeTypes () const
bool supportsMimeType (const QString &_mimetype) const
KoDocumentcreateDoc (QString *errorMsg=0, KoDocument *parent=0) const

Fonctions membres publiques statiques

static Q3ValueList< KoDocumentEntryquery (const QString &_constr=QString::null)
static Q3ValueList< KoDocumentEntryquery (bool _onlyDocEmb, const QString &_constr)
static KoDocumentEntry queryByMimeType (const QString &mimetype)

Attributs privés

KService::Ptr m_service


Description détaillée

Represents an available KOffice component that supports the document interface.

Définition à la ligne 38 du fichier KoQueryTrader.h.


Documentation des contructeurs et destructeur

KoDocumentEntry::KoDocumentEntry (  )  [inline]

Définition à la ligne 42 du fichier KoQueryTrader.h.

Référencé par queryByMimeType().

Voici le graphe d'appel pour cette fonction :

KoDocumentEntry::KoDocumentEntry ( KService::Ptr  service  )  [explicit]

Port from KOffice Trader to KTrader/KActivator (kded) by Simon Hausmann (c) 1999 Simon Hausmann <hausmann@kde.org> Port to KService and simplifications by David Faure <faure@kde.org>

Définition à la ligne 47 du fichier KoQueryTrader.cpp.

KoDocumentEntry::~KoDocumentEntry (  )  [inline]

Définition à la ligne 44 du fichier KoQueryTrader.h.


Documentation des fonctions membres

KService::Ptr KoDocumentEntry::service (  )  const [inline]

Définition à la ligne 46 du fichier KoQueryTrader.h.

Référencé par KoDocumentChild::createAndLoadDocument().

Voici le graphe d'appel pour cette fonction :

bool KoDocumentEntry::isEmpty (  )  const [inline]

Renvoie:
TRUE if the service pointer is null

Définition à la ligne 51 du fichier KoQueryTrader.h.

Référencé par KoDocumentChild::createAndLoadDocument(), KoFilterChain::createDocument(), KoApplicationAdaptor::createDocument(), KoDocumentChild::createUnavailDocument(), et KoApplication::start().

Voici le graphe d'appel pour cette fonction :

QString KoDocumentEntry::name (  )  const [inline]

Renvoie:
name of the associated service

Définition à la ligne 56 du fichier KoQueryTrader.h.

QStringList KoDocumentEntry::mimeTypes (  )  const [inline]

Mimetypes (and other service types) which this document can handle.

Définition à la ligne 61 du fichier KoQueryTrader.h.

bool KoDocumentEntry::supportsMimeType ( const QString &  _mimetype  )  const [inline]

Renvoie:
TRUE if the document can handle the requested mimetype.

Définition à la ligne 66 du fichier KoQueryTrader.h.

KoDocument * KoDocumentEntry::createDoc ( QString *  errorMsg = 0,
KoDocument parent = 0 
) const

Uses the factory of the component to create a document. If that is not possible, 0 is returned.

Définition à la ligne 52 du fichier KoQueryTrader.cpp.

Références m_service.

Référencé par KoDocumentChild::createAndLoadDocument(), KoMainWindow::createDoc(), KoFilterChain::createDocument(), KoApplicationAdaptor::createDocument(), KoDocumentChild::createUnavailDocument(), et KoApplication::start().

Voici le graphe d'appel pour cette fonction :

Q3ValueList< KoDocumentEntry > KoDocumentEntry::query ( const QString &  _constr = QString::null  )  [static]

This function will query ksycoca to find all available components. The result will only contain parts, which are embeddable into a document

Paramètres:
_constr is a constraint expression as used by KTrader. You can use it to set additional restrictions on the available components.

Définition à la ligne 116 du fichier KoQueryTrader.cpp.

Référencé par buildGraph(), KOffice::Graph::buildGraph(), KOffice::Graph::findKOfficePart(), KoPartSelectAction::init(), KoPartSelectDia::KoPartSelectDia(), main(), KoFilterManager::mimeFilter(), et queryByMimeType().

Voici le graphe d'appel pour cette fonction :

Q3ValueList< KoDocumentEntry > KoDocumentEntry::query ( bool  _onlyDocEmb,
const QString &  _constr 
) [static]

This function will query the system to find all available filters.

Paramètres:
_onlyDocEmb specifies if only KOffice Parts should be listed which are embeddable into other koDocuments, or all (if false) (eg.: it makes no sense to embed Kexi into KWord, but it makes sense to embed it into KoShell)
_constr is a constraint expression as used by KDEDs trader interface. You can use it to set additional restrictions on the available components.

Définition à la ligne 121 du fichier KoQueryTrader.cpp.

Références KoProperty::List.

KoDocumentEntry KoDocumentEntry::queryByMimeType ( const QString &  mimetype  )  [static]

This is a convenience function.

Renvoie:
a document entry for the KOffice component that supports the requested mimetype and fits the user best.

Définition à la ligne 85 du fichier KoQueryTrader.cpp.

Références KoDocumentEntry(), et query().

Référencé par KoDocumentChild::createAndLoadDocument(), KoFilterChain::createDocument(), et KoApplicationAdaptor::createDocument().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :


Documentation des données membres

KService::Ptr KoDocumentEntry::m_service [private]

Définition à la ligne 113 du fichier KoQueryTrader.h.

Référencé par createDoc().


La documentation de cette classe a été générée à partir des fichiers suivants :
Généré le Wed Nov 22 23:45:06 2006 pour KPlato par  doxygen 1.5.1-p1