KDocTools

KDocTools Namespace Reference

Functions

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.

Since
5.36

Definition at line 489 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.

Since
5.32

Definition at line 362 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 408 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 385 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 132 of file xslt.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 6 2020 22:44:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.