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

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

GetDrawAreaAsHtml() public méthode

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

GetDrawFrameAsHtml() public méthode

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

GetDrawTextBoxAsHtml() public méthode

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

GetFieldAsHtml() public méthode

Gets a Field as HTML.
public GetFieldAsHtml ( Field f ) : string
f Field
Résultat string

GetFormatedTextAsHtml() public méthode

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

GetGraphicAsHtml() public méthode

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

GetHeadingAsHtml() public méthode

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

GetIContentCollectionAsHtml() public méthode

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

GetITextCollectionAsHtml() public méthode

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.
Résultat string

GetImageMapAsHtml() public méthode

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

GetLineBreakAsHtml() public méthode

Gets the line break as HTML.
public GetLineBreakAsHtml ( ) : string
Résultat string

GetListAsHtml() public méthode

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

GetListItemAsHtml() public méthode

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

GetMixedContentAsHTML() public méthode

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.
Résultat string

GetODFControlAsHtml() public méthode

Gets a ODFControlRef as HTML.
public GetODFControlAsHtml ( ODFControlRef reference ) : string
reference ODFControlRef
Résultat string

GetParagraphAsHtml() public méthode

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

GetRowAsHtml() public méthode

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

GetTabStopAsHtml() public méthode

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.
Résultat string

GetTableAsHtml() public méthode

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

GetTableOfContentsAsHtml() public méthode

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

GetUnknowContentAsHtml() public méthode

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.
Résultat string

GetUnknowTextContentAsHtml() public méthode

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.
Résultat string

GetWhiteSpacesAsHtml() public méthode

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

GetXLinkAsHtml() public méthode

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

HTMLContentBuilder() public méthode

Initializes a new instance of the HTMLContentBuilder class.
public HTMLContentBuilder ( ) : System
Résultat System

HTMLContentBuilder() public méthode

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