KTextTemplate
context.cpp
The Context class holds the context to render a Template with.
Definition context.h:107
UrlType
The type of urls to external media that should be put in the template.
Definition context.h:229
QString relativeMediaPath() const
The relative path to external media to be used in templates.
Definition context.cpp:202
QSharedPointer< AbstractLocalizer > localizer() const
Returns the localizer currently in use.
Definition context.cpp:224
void setUrlType(UrlType type)
Sets the type of external media URL to be used in the template to type.
Definition context.cpp:184
void setLocalizer(QSharedPointer< AbstractLocalizer > localizer)
Sets the localizer to be used.
Definition context.cpp:214
void insert(const QString &name, QObject *object)
Insert the context object object identified by name into the Context.
Definition context.cpp:140
QVariant lookup(const QString &str) const
Returns the context object identified by the key str.
Definition context.cpp:97
void setRelativeMediaPath(const QString &relativePath)
Sets the relative path to external media to be used in templates to relativePath.
Definition context.cpp:196
QList< std::pair< QString, QString > > externalMedia() const
Returns the external media encountered in the Template while rendering.
Definition context.cpp:172
Provides storage facility for state while rendering a template.
Definition rendercontext.h:36
The KTextTemplate namespace holds all public KTextTemplate API.
Definition Mainpage.dox:8
KTextTemplate::SafeString getSafeString(const QVariant &input)
Retrieves and returns a SafeString from the input.
Definition util.cpp:91
void append(QList< T > &&value)
QVariant fromValue(T &&value)
Q_D(Todo)
Utility functions used throughout KTextTemplate.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.