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
Source
# File lib/taskjuggler/RichText/RTFNavigator.rb, line 26 def initialize(project, sourceFileInfo = nil) @project = project super('navigator', sourceFileInfo) @blockFunction = true end
Calls superclass method
TaskJuggler::RichTextFunctionHandler::new
Public Instance Methods
Source
# File lib/taskjuggler/RichText/RTFNavigator.rb, line 38 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
Return a XMLElement
tree that represents the navigator in HTML code.
Source
# File lib/taskjuggler/RichText/RTFNavigator.rb, line 33 def to_s(args) '' end
Not supported for this function
Source
# File lib/taskjuggler/RichText/RTFNavigator.rb, line 50 def to_tagged(args) nil end
Not supported for this function.