C# Class AODL.Document.Export.Html.HTMLContentBuilder

HTMLContentBuilder offer public methods to build HTML element string from AODL OpenDocument objects.
Show file Open project: monsterlabs/HumanRightsTracker Class Usage Examples

Public Methods

Method Description
GetCellAsHtml ( Cell cell ) : string

Gets the cell as HTML.

GetDrawAreaAsHtml ( DrawArea drawArea ) : string

Gets the draw rectangle as HTML.

GetDrawFrameAsHtml ( Frame frame ) : string

Gets the draw frame as HTML.

GetDrawTextBoxAsHtml ( DrawTextBox drawTextBox ) : string

Gets the draw text box as HTML.

GetFieldAsHtml ( Field f ) : string

Gets a Field as HTML.

GetFormatedTextAsHtml ( FormatedText formatedText ) : string

Gets the formated text as HTML.

GetGraphicAsHtml ( Graphic graphic ) : string

Gets the graphic as HTML.

GetHeadingAsHtml ( Header heading ) : string

Gets the heading as HTML.

GetIContentCollectionAsHtml ( ContentCollection iContentCollection ) : string

Gets the I content collection as HTML.

GetITextCollectionAsHtml ( AODL.Document.Content.Text.ITextCollection iTextCollection, ParagraphStyle paragraphStyle ) : string

Gets the I text collection as HTML.

GetImageMapAsHtml ( ImageMap imageMap ) : string

Gets the image map as HTML.

GetLineBreakAsHtml ( ) : string

Gets the line break as HTML.

GetListAsHtml ( List list ) : string

Gets the list as HTML.

GetListItemAsHtml ( ListItem listItem ) : string

Gets the list item as HTML.

GetMixedContentAsHTML ( ArrayList mixedContent, ParagraphStyle paragraphStyle ) : string

Gets the mixed content as HTML.

GetODFControlAsHtml ( ODFControlRef reference ) : string

Gets a ODFControlRef as HTML.

GetParagraphAsHtml ( Paragraph paragraph ) : string

Gets the paragraph as HTML.

GetRowAsHtml ( Row row ) : string

Gets the row as HTML.

GetTabStopAsHtml ( AODL.Document.Content.Text.TextControl.TabStop tabStop, int tabStopIndex, string htmlStringBefore, ParagraphStyle paragraphStyle ) : string

Gets the tab stop as HTML. Because of the fact that no tabstop html element exist, AODL will try to simulate this with a the non breaking line entity.

GetTableAsHtml ( Table table ) : string

Gets the table as HTML.

GetTableOfContentsAsHtml ( TableOfContents tableOfContents ) : string

Gets the table of contents as HTML.

GetUnknowContentAsHtml ( UnknownContent unknownContent ) : string

Gets the unknow content as HTML. AODL will try to search inside the node of the UnknownContent object for content this could be displayed.

GetUnknowTextContentAsHtml ( UnknownTextContent unknownTextContent ) : string

Gets the unknow text content as HTML. Maybe it's a bibliographic index or something else. The method will try to find text that could be displayed.

GetWhiteSpacesAsHtml ( WhiteSpace whiteSpace ) : string

Gets the white spaces as HTML.

GetXLinkAsHtml ( XLink xLink ) : string

Gets the X link as HTML.

HTMLContentBuilder ( ) : System

Initializes a new instance of the HTMLContentBuilder class.

HTMLContentBuilder ( string graphicTargetFolder ) : System

Initializes a new instance of the HTMLContentBuilder class.

Private Methods

Method Description
GetAnchorLink ( string outlineLinkTarget, XLink xLink ) : string

Gets the anchor link.

GetOutlineString ( Header header ) : string

Gets the outline string.

ReplaceControlNodes ( string text ) : string

Replaces the control nodes.

Method Details

GetCellAsHtml() public method

Gets the cell as HTML.
public GetCellAsHtml ( Cell cell ) : string
cell AODL.Document.Content.Tables.Cell The cell.
return string

GetDrawAreaAsHtml() public method

Gets the draw rectangle as HTML.
public GetDrawAreaAsHtml ( DrawArea drawArea ) : string
drawArea AODL.Document.Content.Draw.DrawArea The draw area.
return string

GetDrawFrameAsHtml() public method

Gets the draw frame as HTML.
public GetDrawFrameAsHtml ( Frame frame ) : string
frame AODL.Document.Content.Draw.Frame The frame.
return string

GetDrawTextBoxAsHtml() public method

Gets the draw text box as HTML.
public GetDrawTextBoxAsHtml ( DrawTextBox drawTextBox ) : string
drawTextBox AODL.Document.Content.Draw.DrawTextBox The draw text box.
return string

GetFieldAsHtml() public method

Gets a Field as HTML.
public GetFieldAsHtml ( Field f ) : string
f Field
return string

GetFormatedTextAsHtml() public method

Gets the formated text as HTML.
public GetFormatedTextAsHtml ( FormatedText formatedText ) : string
formatedText AODL.Document.Content.Text.FormatedText The formated text.
return string

GetGraphicAsHtml() public method

Gets the graphic as HTML.
public GetGraphicAsHtml ( Graphic graphic ) : string
graphic AODL.Document.Content.Draw.Graphic The graphic.
return string

GetHeadingAsHtml() public method

Gets the heading as HTML.
public GetHeadingAsHtml ( Header heading ) : string
heading AODL.Document.Content.Text.Header The heading.
return string

GetIContentCollectionAsHtml() public method

Gets the I content collection as HTML.
public GetIContentCollectionAsHtml ( ContentCollection iContentCollection ) : string
iContentCollection ContentCollection The i content collection.
return string

GetITextCollectionAsHtml() public method

Gets the I text collection as HTML.
public GetITextCollectionAsHtml ( AODL.Document.Content.Text.ITextCollection iTextCollection, ParagraphStyle paragraphStyle ) : string
iTextCollection AODL.Document.Content.Text.ITextCollection The i text collection.
paragraphStyle AODL.Document.Styles.ParagraphStyle The paragraph style.
return string

GetImageMapAsHtml() public method

Gets the image map as HTML.
public GetImageMapAsHtml ( ImageMap imageMap ) : string
imageMap AODL.Document.Content.Draw.ImageMap The image map.
return string

GetLineBreakAsHtml() public method

Gets the line break as HTML.
public GetLineBreakAsHtml ( ) : string
return string

GetListAsHtml() public method

Gets the list as HTML.
public GetListAsHtml ( List list ) : string
list AODL.Document.Content.Text.List The list.
return string

GetListItemAsHtml() public method

Gets the list item as HTML.
public GetListItemAsHtml ( ListItem listItem ) : string
listItem AODL.Document.Content.Text.ListItem The list item.
return string

GetMixedContentAsHTML() public method

Gets the mixed content as HTML.
public GetMixedContentAsHTML ( ArrayList mixedContent, ParagraphStyle paragraphStyle ) : string
mixedContent System.Collections.ArrayList ArrayList of objects. The objects could be /// IContent or IText.
paragraphStyle AODL.Document.Styles.ParagraphStyle The paragraph style.
return string

GetODFControlAsHtml() public method

Gets a ODFControlRef as HTML.
public GetODFControlAsHtml ( ODFControlRef reference ) : string
reference ODFControlRef
return string

GetParagraphAsHtml() public method

Gets the paragraph as HTML.
public GetParagraphAsHtml ( Paragraph paragraph ) : string
paragraph AODL.Document.Content.Text.Paragraph The paragraph.
return string

GetRowAsHtml() public method

Gets the row as HTML.
public GetRowAsHtml ( Row row ) : string
row AODL.Document.Content.Tables.Row The row.
return string

GetTabStopAsHtml() public method

Gets the tab stop as HTML. Because of the fact that no tabstop html element exist, AODL will try to simulate this with a the non breaking line entity.
public GetTabStopAsHtml ( AODL.Document.Content.Text.TextControl.TabStop tabStop, int tabStopIndex, string htmlStringBefore, ParagraphStyle paragraphStyle ) : string
tabStop AODL.Document.Content.Text.TextControl.TabStop The tab stop.
tabStopIndex int The tab stop position from all tabstops from the textcollectio, /// where this tabstop belongs to.
htmlStringBefore string The complete html string before this tabstop.
paragraphStyle AODL.Document.Styles.ParagraphStyle The paragraph style from the enclosing paragraph.
return string

GetTableAsHtml() public method

Gets the table as HTML.
public GetTableAsHtml ( Table table ) : string
table AODL.Document.Content.Tables.Table The table.
return string

GetTableOfContentsAsHtml() public method

Gets the table of contents as HTML.
public GetTableOfContentsAsHtml ( TableOfContents tableOfContents ) : string
tableOfContents AODL.Document.Content.Text.Indexes.TableOfContents The table of contents.
return string

GetUnknowContentAsHtml() public method

Gets the unknow content as HTML. AODL will try to search inside the node of the UnknownContent object for content this could be displayed.
public GetUnknowContentAsHtml ( UnknownContent unknownContent ) : string
unknownContent AODL.Document.Content.UnknownContent Content of the unknown.
return string

GetUnknowTextContentAsHtml() public method

Gets the unknow text content as HTML. Maybe it's a bibliographic index or something else. The method will try to find text that could be displayed.
public GetUnknowTextContentAsHtml ( UnknownTextContent unknownTextContent ) : string
unknownTextContent AODL.Document.Content.Text.UnknownTextContent Content of the unknown text.
return string

GetWhiteSpacesAsHtml() public method

Gets the white spaces as HTML.
public GetWhiteSpacesAsHtml ( WhiteSpace whiteSpace ) : string
whiteSpace AODL.Document.Content.Text.TextControl.WhiteSpace The white space.
return string

GetXLinkAsHtml() public method

Gets the X link as HTML.
public GetXLinkAsHtml ( XLink xLink ) : string
xLink AODL.Document.Content.Text.XLink The x link.
return string

HTMLContentBuilder() public method

Initializes a new instance of the HTMLContentBuilder class.
public HTMLContentBuilder ( ) : System
return System

HTMLContentBuilder() public method

Initializes a new instance of the HTMLContentBuilder class.
public HTMLContentBuilder ( string graphicTargetFolder ) : System
graphicTargetFolder string The graphic target folder.
return System