KTextTemplate
engine.h
QStringList pluginPaths() const
Returns the currently configured plugin dirs.
Definition engine.cpp:95
std::pair< QString, QString > mediaUri(const QString &fileName) const
Returns a URI for a media item with the name name.
Definition engine.cpp:61
Template loadByName(const QString &name) const
Load the Template identified by name.
Definition engine.cpp:311
void setPluginPaths(const QStringList &dirs)
Sets the plugin dirs currently configured on the Engine to dirs.
Definition engine.cpp:74
QList< QSharedPointer< AbstractTemplateLoader > > templateLoaders()
Returns the TemplateLoaders currently configured on the Engine.
Definition engine.cpp:49
void addPluginPath(const QString &dir)
Prepend dir to the list of plugin dirs.
Definition engine.cpp:80
void setSmartTrimEnabled(bool enabled)
Sets whether the smart trim feature is enabled for newly loaded templates.
Definition engine.cpp:341
void removeDefaultLibrary(const QString &libName)
Removes the library named libName from the libraries available by default to new Templates.
Definition engine.cpp:113
QStringList defaultLibraries() const
Returns the libraries available by default to new Templates.
Definition engine.cpp:101
Template newTemplate(const QString &content, const QString &name) const
Create a new Template with the content content identified by name.
Definition engine.cpp:332
bool smartTrimEnabled() const
Returns whether the smart trim feature is enabled for newly loaded templates.
Definition engine.cpp:347
void addTemplateLoader(QSharedPointer< AbstractTemplateLoader > loader)
Adds loader to the TemplateLoaders currently configured on the Engine.
Definition engine.cpp:55
void removePluginPath(const QString &dir)
Removes all instances of dir from the list of plugin dirs.
Definition engine.cpp:89
void addDefaultLibrary(const QString &libName)
Adds the library named libName to the libraries available by default to new Templates.
Definition engine.cpp:107
The TagLibraryInterface returns available tags and filters from libraries.
Definition taglibraryinterface.h:68
The Template class is a tree of nodes which may be rendered.
Definition template.h:85
The KTextTemplate namespace holds all public KTextTemplate API.
Definition Mainpage.dox:8
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:59 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:59 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.