mlreportgen.report.Title Class
Namespace: mlreportgen.report
Superclasses: mlreportgen.report.Reporter
Fill title hole reporter
Description
Reporter that other reporters, such as Chapter
, FormalImage
,
and BaseTable
, use to fill a title hole in a template.
An instance of this class can be created only by another reporter, which is called the
owner. The instance fills a hole in a template that the owner specifies with a title that the
owner specifies via an instance template and instance properties that it sets. For example,
the BaseTable
reporter (the owner) uses an instance of this class to fill the
Title hole in its template with a hierarchically numbered title.
The title generated by an instance of this class consists of static text and dynamic
content. The static text is specified by the instance template. The dynamic content is
specified by the instance Content
, NumberPrefix
, and
NumberSuffix
properties. If the name of a template hole matches one of
these property names, this reporter fills the hole with the value property. For example, if
the title template contains a Content
hole and a
NumberPrefix
hole, this reporter fills those holes with the values of the
corresponding properties.
The owner specifies the location of the title template via the instance
TemplateSrc
and TemplateName
properties. The
TemplateSrc
property specifies the source of a template file whose
template library contains the title template. The TemplateName
property
specifies the name of the title template. For example, the BaseTable
reporter
template library contains two numbered title templates, one named
BaseTableNumberedTitle
for numbered tables, and one named
BaseTableHierNumberedTitle
for hierarchically numbered tables. The
BaseTable
reporter specifies which template to use by setting this reporter's
TemplateSrc
property to the BaseTable
template and this
reporter's TemplateName
property to the title template name.
The owner can also generate a hyperlink target in front of the title by setting this
reporter's LinkTarget
property to the id of the link target.
The mlreportgen.report.Title
class is a handle
class.
Properties
Version History
Introduced in R2018b