KDocTools Namespace Reference


KDOCTOOLS_EXPORT QStringList documentationDirs ()
KDOCTOOLS_EXPORT QByteArray extractFileToBuffer (const QString &content, const QString &filename)
KDOCTOOLS_EXPORT QString locateFileInDtdResource (const QString &file, const QStandardPaths::LocateOptions option=QStandardPaths::LocateFile)
KDOCTOOLS_EXPORT bool saveToCache (const QString &contents, const QString &filename)
KDOCTOOLS_EXPORT void setupStandardDirs (const QString &srcdir=QString())
KDOCTOOLS_EXPORT QString transform (const QString &file, const QString &stylesheet, const QVector< const char * > &params=QVector< const char * >())

Detailed Description

Utility methods to generate documentation in various format from DocBook files.

Function Documentation

QStringList KDocTools::documentationDirs ( )

Returns the directories which can contain documentation.


Definition at line 484 of file xslt.cpp.

QByteArray KDocTools::extractFileToBuffer ( const QString content,
const QString filename 

Extract the content of a single file from the content string generated by the transformation scripts.


Definition at line 360 of file xslt.cpp.

QString KDocTools::locateFileInDtdResource ( const QString file,
const QStandardPaths::LocateOptions  option = QStandardPaths::LocateFile 

Find a specified file amongst the resource shipped with KDocTools.

Definition at line 406 of file xslt.cpp.

bool KDocTools::saveToCache ( const QString contents,
const QString filename 

Save the content (compressed) in the specified filename.

Definition at line 8 of file xslt_kde.cpp.

void KDocTools::setupStandardDirs ( const QString srcdir = QString())

Initialize the XML catalog used by XSLT functions from the standard directories or from the specified srcdir.

Definition at line 383 of file xslt.cpp.

QString KDocTools::transform ( const QString file,
const QString stylesheet,
const QVector< const char * > &  params = QVector<const char *>() 

Transform and return the content of file with the specified XSLT stylesheet (both already in memory) using the optional parameters.

Definition at line 134 of file xslt.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Apr 22 2021 22:45:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.