class TaskJuggler::RTFNavigator
This class is a specialized RichTextFunctionHandler
that generates a navigation bar for all reports that match the specified LogicalExpression
. It currently only supports HTML.
Public Class Methods
new(project, sourceFileInfo = nil)
click to toggle source
Calls superclass method
TaskJuggler::RichTextFunctionHandler::new
# File lib/taskjuggler/RichText/RTFNavigator.rb, line 25 def initialize(project, sourceFileInfo = nil) @project = project super('navigator', sourceFileInfo) @blockFunction = true end
Public Instance Methods
to_html(args)
click to toggle source
Return a XMLElement
tree that represents the navigator in HTML code.
# File lib/taskjuggler/RichText/RTFNavigator.rb, line 37 def to_html(args) if args.nil? || (id = args['id']).nil? error('rtf_nav_id_missing', "Argument 'id' missing to specify the navigator to be used.") end unless (navBar = @project['navigators'][id]) error('rtf_nav_unknown_id', "Unknown navigator #{id}") end navBar.to_html end
to_s(args)
click to toggle source
Not supported for this function
# File lib/taskjuggler/RichText/RTFNavigator.rb, line 32 def to_s(args) '' end
to_tagged(args)
click to toggle source
Not supported for this function.
# File lib/taskjuggler/RichText/RTFNavigator.rb, line 49 def to_tagged(args) nil end