doc/TaskJuggler/RTFReportLink.html in taskjuggler-0.0.6 vs doc/TaskJuggler/RTFReportLink.html in taskjuggler-0.0.7

- old
+ new

@@ -53,11 +53,11 @@ <!-- Parent Class --> <div id="parent-class-section" class="section"> <h3 class="section-header">Parent</h3> - <p class="link"><a href="RichTextFunctionHandler.html">TaskJuggler::RichTextFunctionHandler</a></p> + <p class="link"><a href="RTFWithQuerySupport.html">TaskJuggler::RTFWithQuerySupport</a></p> </div> <!-- Namespace Contents --> @@ -167,10 +167,14 @@ <li><a href="../TaskJuggler/DependencyListAttribute.html">TaskJuggler::DependencyListAttribute</a></li> <li><a href="../TaskJuggler/DurationAttribute.html">TaskJuggler::DurationAttribute</a></li> + <li><a href="../TaskJuggler/FileList.html">TaskJuggler::FileList</a></li> + + <li><a href="../TaskJuggler/FileRecord.html">TaskJuggler::FileRecord</a></li> + <li><a href="../TaskJuggler/FixnumAttribute.html">TaskJuggler::FixnumAttribute</a></li> <li><a href="../TaskJuggler/FlagListAttribute.html">TaskJuggler::FlagListAttribute</a></li> <li><a href="../TaskJuggler/FloatAttribute.html">TaskJuggler::FloatAttribute</a></li> @@ -239,12 +243,10 @@ <li><a href="../TaskJuggler/LogicalOperation.html">TaskJuggler::LogicalOperation</a></li> <li><a href="../TaskJuggler/Macro.html">TaskJuggler::Macro</a></li> - <li><a href="../TaskJuggler/MacroParser.html">TaskJuggler::MacroParser</a></li> - <li><a href="../TaskJuggler/MacroTable.html">TaskJuggler::MacroTable</a></li> <li><a href="../TaskJuggler/ManagerResponsibilities.html">TaskJuggler::ManagerResponsibilities</a></li> <li><a href="../TaskJuggler/ManagerStatusRecord.html">TaskJuggler::ManagerStatusRecord</a></li> @@ -305,10 +307,12 @@ <li><a href="../TaskJuggler/RTFReport.html">TaskJuggler::RTFReport</a></li> <li><a href="../TaskJuggler/RTFReportLink.html">TaskJuggler::RTFReportLink</a></li> + <li><a href="../TaskJuggler/RTFWithQuerySupport.html">TaskJuggler::RTFWithQuerySupport</a></li> + <li><a href="../TaskJuggler/RealFormat.html">TaskJuggler::RealFormat</a></li> <li><a href="../TaskJuggler/RealFormatAttribute.html">TaskJuggler::RealFormatAttribute</a></li> <li><a href="../TaskJuggler/ReferenceAttribute.html">TaskJuggler::ReferenceAttribute</a></li> @@ -351,12 +355,10 @@ <li><a href="../TaskJuggler/RichTextDocument.html">TaskJuggler::RichTextDocument</a></li> <li><a href="../TaskJuggler/RichTextElement.html">TaskJuggler::RichTextElement</a></li> - <li><a href="../TaskJuggler/RichTextException.html">TaskJuggler::RichTextException</a></li> - <li><a href="../TaskJuggler/RichTextFunctionExample.html">TaskJuggler::RichTextFunctionExample</a></li> <li><a href="../TaskJuggler/RichTextFunctionHandler.html">TaskJuggler::RichTextFunctionHandler</a></li> <li><a href="../TaskJuggler/RichTextImage.html">TaskJuggler::RichTextImage</a></li> @@ -393,10 +395,12 @@ <li><a href="../TaskJuggler/ShiftAssignmentsAttribute.html">TaskJuggler::ShiftAssignmentsAttribute</a></li> <li><a href="../TaskJuggler/ShiftScenario.html">TaskJuggler::ShiftScenario</a></li> + <li><a href="../TaskJuggler/SimpleQueryExpander.html">TaskJuggler::SimpleQueryExpander</a></li> + <li><a href="../TaskJuggler/SortListAttribute.html">TaskJuggler::SortListAttribute</a></li> <li><a href="../TaskJuggler/SourceFileInfo.html">TaskJuggler::SourceFileInfo</a></li> <li><a href="../TaskJuggler/StatusSheetReceiver.html">TaskJuggler::StatusSheetReceiver</a></li> @@ -503,10 +507,12 @@ <li><a href="../TaskJuggler/URLParameter.html">TaskJuggler::URLParameter</a></li> <li><a href="../TaskJuggler/UserManual.html">TaskJuggler::UserManual</a></li> + <li><a href="../TaskJuggler/VimSyntax.html">TaskJuggler::VimSyntax</a></li> + <li><a href="../TaskJuggler/WebServer.html">TaskJuggler::WebServer</a></li> <li><a href="../TaskJuggler/WorkingHours.html">TaskJuggler::WorkingHours</a></li> <li><a href="../TaskJuggler/WorkingHoursAttribute.html">TaskJuggler::WorkingHoursAttribute</a></li> @@ -586,15 +592,17 @@ <div class="method-source-code" id="new-source"> <pre> - <span class="ruby-comment cmt"># File lib/RTFReportLink.rb, line 23</span> -23: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">project</span>, <span class="ruby-identifier">sourceFileInfo</span> = <span class="ruby-keyword kw">nil</span>) -24: <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">project</span>, <span class="ruby-value str">'reportlink'</span>, <span class="ruby-identifier">sourceFileInfo</span>) -25: <span class="ruby-ivar">@blockFunction</span> = <span class="ruby-keyword kw">false</span> -26: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/RTFReportLink.rb, line 24</span> +24: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">project</span>, <span class="ruby-identifier">sourceFileInfo</span> = <span class="ruby-keyword kw">nil</span>) +25: <span class="ruby-ivar">@project</span> = <span class="ruby-identifier">project</span> +26: <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">project</span>.<span class="ruby-identifier">messageHandler</span>, <span class="ruby-value str">'reportlink'</span>, <span class="ruby-identifier">sourceFileInfo</span>) +27: <span class="ruby-ivar">@blockFunction</span> = <span class="ruby-keyword kw">false</span> +28: <span class="ruby-ivar">@query</span> = <span class="ruby-keyword kw">nil</span> +29: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -629,39 +637,42 @@ <div class="method-source-code" id="to-html-source"> <pre> - <span class="ruby-comment cmt"># File lib/RTFReportLink.rb, line 34</span> -34: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_html</span>(<span class="ruby-identifier">args</span>) -35: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> (<span class="ruby-identifier">id</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value str">'id'</span>]).<span class="ruby-identifier">nil?</span> -36: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'rtp_report_id'</span>, -37: <span class="ruby-value str">&quot;Argument 'id' missing to specify the report to be used.&quot;</span>) -38: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> -39: <span class="ruby-keyword kw">end</span> -40: <span class="ruby-keyword kw">unless</span> (<span class="ruby-identifier">report</span> = <span class="ruby-ivar">@project</span>.<span class="ruby-identifier">report</span>(<span class="ruby-identifier">id</span>)) -41: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'rtp_report_unknown_id'</span>, <span class="ruby-node">&quot;Unknown report #{id}&quot;</span>) -42: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> -43: <span class="ruby-keyword kw">end</span> -44: -45: <span class="ruby-comment cmt"># The URL for interactive reports is different than for static reports.</span> -46: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">report</span>.<span class="ruby-identifier">interactive?</span> -47: <span class="ruby-comment cmt"># The project and report ID must be provided as query.</span> -48: <span class="ruby-identifier">url</span> = <span class="ruby-node">&quot;taskjuggler?project=#{@project['projectid']};&quot;</span> <span class="ruby-operator">+</span> -49: <span class="ruby-node">&quot;report=#{report.fullId}&quot;</span> -50: -51: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value str">'attributes'</span>] -52: <span class="ruby-identifier">url</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">&quot;;attributes=&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-constant">URLParameter</span>.<span class="ruby-identifier">encode</span>(<span class="ruby-identifier">args</span>[<span class="ruby-value str">'attributes'</span>]) -53: <span class="ruby-keyword kw">end</span> -54: <span class="ruby-keyword kw">else</span> -55: <span class="ruby-comment cmt"># The report name just gets a '.html' extension.</span> -56: <span class="ruby-identifier">url</span> = <span class="ruby-identifier">report</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;.html&quot;</span> -57: <span class="ruby-keyword kw">end</span> -58: <span class="ruby-identifier">a</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'a'</span>, <span class="ruby-value str">'href'</span>=<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>) -59: <span class="ruby-identifier">a</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">report</span>.<span class="ruby-identifier">name</span>) -60: <span class="ruby-identifier">a</span> -61: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/RTFReportLink.rb, line 37</span> +37: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_html</span>(<span class="ruby-identifier">args</span>) +38: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> (<span class="ruby-identifier">id</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value str">'id'</span>]).<span class="ruby-identifier">nil?</span> +39: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'rtp_report_id'</span>, +40: <span class="ruby-value str">&quot;Argument 'id' missing to specify the report to be used.&quot;</span>) +41: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> +42: <span class="ruby-keyword kw">end</span> +43: <span class="ruby-keyword kw">unless</span> (<span class="ruby-identifier">report</span> = <span class="ruby-ivar">@project</span>.<span class="ruby-identifier">report</span>(<span class="ruby-identifier">id</span>)) +44: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'rtp_report_unknown_id'</span>, <span class="ruby-node">&quot;Unknown report #{id}&quot;</span>) +45: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> +46: <span class="ruby-keyword kw">end</span> +47: +48: <span class="ruby-comment cmt"># The URL for interactive reports is different than for static reports.</span> +49: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">report</span>.<span class="ruby-identifier">interactive?</span> +50: <span class="ruby-comment cmt"># The project and report ID must be provided as query.</span> +51: <span class="ruby-identifier">url</span> = <span class="ruby-node">&quot;taskjuggler?project=#{@project['projectid']};&quot;</span> <span class="ruby-operator">+</span> +52: <span class="ruby-node">&quot;report=#{report.fullId}&quot;</span> +53: +54: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value str">'attributes'</span>] +55: <span class="ruby-identifier">qEx</span> = <span class="ruby-constant">SimpleQueryExpander</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">args</span>[<span class="ruby-value str">'attributes'</span>], <span class="ruby-ivar">@query</span>, +56: <span class="ruby-ivar">@project</span>.<span class="ruby-identifier">messageHandler</span>, +57: <span class="ruby-ivar">@sourceFileInfo</span>) +58: <span class="ruby-identifier">url</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">&quot;;attributes=&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-constant">URLParameter</span>.<span class="ruby-identifier">encode</span>(<span class="ruby-identifier">qEx</span>.<span class="ruby-identifier">expand</span>) +59: <span class="ruby-keyword kw">end</span> +60: <span class="ruby-keyword kw">else</span> +61: <span class="ruby-comment cmt"># The report name just gets a '.html' extension.</span> +62: <span class="ruby-identifier">url</span> = <span class="ruby-identifier">report</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;.html&quot;</span> +63: <span class="ruby-keyword kw">end</span> +64: <span class="ruby-identifier">a</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'a'</span>, <span class="ruby-value str">'href'</span>=<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>) +65: <span class="ruby-identifier">a</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">report</span>.<span class="ruby-identifier">name</span>) +66: <span class="ruby-identifier">a</span> +67: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -690,14 +701,14 @@ <div class="method-source-code" id="to-s-source"> <pre> - <span class="ruby-comment cmt"># File lib/RTFReportLink.rb, line 29</span> -29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>(<span class="ruby-identifier">args</span>) -30: <span class="ruby-value str">''</span> -31: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/RTFReportLink.rb, line 32</span> +32: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>(<span class="ruby-identifier">args</span>) +33: <span class="ruby-value str">''</span> +34: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -726,13 +737,13 @@ <div class="method-source-code" id="to-tagged-source"> <pre> - <span class="ruby-comment cmt"># File lib/RTFReportLink.rb, line 64</span> -64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_tagged</span>(<span class="ruby-identifier">args</span>) -65: <span class="ruby-keyword kw">nil</span> -66: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/RTFReportLink.rb, line 70</span> +70: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_tagged</span>(<span class="ruby-identifier">args</span>) +71: <span class="ruby-keyword kw">nil</span> +72: <span class="ruby-keyword kw">end</span></pre> </div> </div>