KTextTemplate
templateloader.h
Interface for implementing an internationalization system.
Definition abstractlocalizer.h:35
An retrieval interface to a storage location for Template objects.
Definition templateloader.h:38
virtual ~AbstractTemplateLoader()
Destructor.
virtual bool canLoadTemplate(const QString &name) const =0
Return true if a Template identified by name exists and can be loaded.
virtual std::pair< QString, QString > getMediaUri(const QString &fileName) const =0
Return a complete URI for media identified by fileName.
virtual Template loadByName(const QString &name, Engine const *engine) const =0
Load a Template called name.
KTextTemplate::Engine is the main entry point for creating KTextTemplate Templates.
Definition engine.h:110
Template loadByName(const QString &name, Engine const *engine) const override
Load a Template called name.
Definition templateloader.cpp:116
FileSystemTemplateLoader(const QSharedPointer< AbstractLocalizer > localizer={})
Constructor.
Definition templateloader.cpp:42
void setTheme(const QString &themeName)
Sets the theme of this loader to themeName.
Definition templateloader.cpp:62
bool canLoadTemplate(const QString &name) const override
Return true if a Template identified by name exists and can be loaded.
Definition templateloader.cpp:95
QStringList templateDirs() const
The directories this TemplateLoader looks in for template files.
Definition templateloader.cpp:89
void setTemplateDirs(const QStringList &dirs)
Sets the directories to look for template files to dirs.
Definition templateloader.cpp:78
std::pair< QString, QString > getMediaUri(const QString &fileName) const override
Return a complete URI for media identified by fileName.
Definition templateloader.cpp:145
bool canLoadTemplate(const QString &name) const override
Return true if a Template identified by name exists and can be loaded.
Definition templateloader.cpp:177
void setTemplate(const QString &name, const QString &content)
Add a template content to this Loader.
Definition templateloader.cpp:172
std::pair< QString, QString > getMediaUri(const QString &fileName) const override
Return a complete URI for media identified by fileName.
Definition templateloader.cpp:191
Template loadByName(const QString &name, Engine const *engine) const override
Load a Template called name.
Definition templateloader.cpp:182
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
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.