// ----------------------------------------------------------------------------------------- public void CreatePageHeader(IRecognizableComposite Source) { this.PageWrite("<HEAD>"); this.IncreaseIndent(); var Location = this.GetRelativeLocationOf(this.SourceComposition, STYLE_SHEET_FILE, this.CurrentPage.Source); this.PageWrite("<link rel='stylesheet' href='" + Location + "' type='text/css' />"); if (Source != null) { var Route = Source.GetContainmentNodes(true); var Navigator = Route.GetConcatenationIndexed((item, index) => "<a href=\"" + GetRelativeLocationOf(item, null, Source) + "\">" + item.NameCaption.GetTruncatedWithEllipsis(NAVLINK_TEXT_LIMIT) + "</a>", " / "); // looks ugly ni chrome this.PageWrite("<p class=\"extras\">At: / " + Navigator + "</p>"); } this.PageWrite("<table style='width: " + HTML_STD_PAGE_WIDTH.ToString() + "px;'>"); this.PageWrite("<col style='width: 30%;'/>"); this.PageWrite("<col style='width: 40%;'/>"); this.PageWrite("<col style='width: 30%;'/>"); this.PageWrite("<td class='header-left'>" + InterpretText(this.Configuration.PageHeader_Left) + "</td>"); this.PageWrite("<td class='header-center'>" + InterpretText(this.Configuration.PageHeader_Center) + "</td>"); this.PageWrite("<td class='header-right'>" + InterpretText(this.Configuration.PageHeader_Right) + "</td>"); this.PageWrite("</table>"); this.DecreaseIndent(); this.PageWrite("</HEAD>"); }
public void CreatePageFooter() { this.PageWrite("<FOOTER>"); this.IncreaseIndent(); this.PageWrite("<table style='width: " + HTML_STD_PAGE_WIDTH.ToString() + "px;'>"); this.PageWrite("<col style='width: 30%;'/>"); this.PageWrite("<col style='width: 40%;'/>"); this.PageWrite("<col style='width: 30%;'/>"); this.PageWrite("<td class='footer-left'>" + InterpretText(this.Configuration.PageFooter_Left) + "</td>"); this.PageWrite("<td class='footer-center'>" + InterpretText(this.Configuration.PageFooter_Center) + "</td>"); this.PageWrite("<td class='footer-right'>" + InterpretText(this.Configuration.PageFooter_Right) + "</td>"); this.PageWrite("</table>"); this.DecreaseIndent(); this.PageWrite("</FOOTER>"); }