C# Класс AODL.Document.Export.Html.HTMLContentBuilder

HTMLContentBuilder offer public methods to build HTML element string from AODL OpenDocument objects.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

GetCellAsHtml() публичный Метод

Gets the cell as HTML.
public GetCellAsHtml ( Cell cell ) : string
cell AODL.Document.Content.Tables.Cell The cell.
Результат string

GetDrawAreaAsHtml() публичный Метод

Gets the draw rectangle as HTML.
public GetDrawAreaAsHtml ( DrawArea drawArea ) : string
drawArea AODL.Document.Content.Draw.DrawArea The draw area.
Результат string

GetDrawFrameAsHtml() публичный Метод

Gets the draw frame as HTML.
public GetDrawFrameAsHtml ( Frame frame ) : string
frame AODL.Document.Content.Draw.Frame The frame.
Результат string

GetDrawTextBoxAsHtml() публичный Метод

Gets the draw text box as HTML.
public GetDrawTextBoxAsHtml ( DrawTextBox drawTextBox ) : string
drawTextBox AODL.Document.Content.Draw.DrawTextBox The draw text box.
Результат string

GetFieldAsHtml() публичный Метод

Gets a Field as HTML.
public GetFieldAsHtml ( Field f ) : string
f Field
Результат string

GetFormatedTextAsHtml() публичный Метод

Gets the formated text as HTML.
public GetFormatedTextAsHtml ( FormatedText formatedText ) : string
formatedText AODL.Document.Content.Text.FormatedText The formated text.
Результат string

GetGraphicAsHtml() публичный Метод

Gets the graphic as HTML.
public GetGraphicAsHtml ( Graphic graphic ) : string
graphic AODL.Document.Content.Draw.Graphic The graphic.
Результат string

GetHeadingAsHtml() публичный Метод

Gets the heading as HTML.
public GetHeadingAsHtml ( Header heading ) : string
heading AODL.Document.Content.Text.Header The heading.
Результат string

GetIContentCollectionAsHtml() публичный Метод

Gets the I content collection as HTML.
public GetIContentCollectionAsHtml ( ContentCollection iContentCollection ) : string
iContentCollection ContentCollection The i content collection.
Результат string

GetITextCollectionAsHtml() публичный Метод

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.
Результат string

GetImageMapAsHtml() публичный Метод

Gets the image map as HTML.
public GetImageMapAsHtml ( ImageMap imageMap ) : string
imageMap AODL.Document.Content.Draw.ImageMap The image map.
Результат string

GetLineBreakAsHtml() публичный Метод

Gets the line break as HTML.
public GetLineBreakAsHtml ( ) : string
Результат string

GetListAsHtml() публичный Метод

Gets the list as HTML.
public GetListAsHtml ( List list ) : string
list AODL.Document.Content.Text.List The list.
Результат string

GetListItemAsHtml() публичный Метод

Gets the list item as HTML.
public GetListItemAsHtml ( ListItem listItem ) : string
listItem AODL.Document.Content.Text.ListItem The list item.
Результат string

GetMixedContentAsHTML() публичный Метод

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.
Результат string

GetODFControlAsHtml() публичный Метод

Gets a ODFControlRef as HTML.
public GetODFControlAsHtml ( ODFControlRef reference ) : string
reference ODFControlRef
Результат string

GetParagraphAsHtml() публичный Метод

Gets the paragraph as HTML.
public GetParagraphAsHtml ( Paragraph paragraph ) : string
paragraph AODL.Document.Content.Text.Paragraph The paragraph.
Результат string

GetRowAsHtml() публичный Метод

Gets the row as HTML.
public GetRowAsHtml ( Row row ) : string
row AODL.Document.Content.Tables.Row The row.
Результат string

GetTabStopAsHtml() публичный Метод

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.
Результат string

GetTableAsHtml() публичный Метод

Gets the table as HTML.
public GetTableAsHtml ( Table table ) : string
table AODL.Document.Content.Tables.Table The table.
Результат string

GetTableOfContentsAsHtml() публичный Метод

Gets the table of contents as HTML.
public GetTableOfContentsAsHtml ( TableOfContents tableOfContents ) : string
tableOfContents AODL.Document.Content.Text.Indexes.TableOfContents The table of contents.
Результат string

GetUnknowContentAsHtml() публичный Метод

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.
Результат string

GetUnknowTextContentAsHtml() публичный Метод

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.
Результат string

GetWhiteSpacesAsHtml() публичный Метод

Gets the white spaces as HTML.
public GetWhiteSpacesAsHtml ( WhiteSpace whiteSpace ) : string
whiteSpace AODL.Document.Content.Text.TextControl.WhiteSpace The white space.
Результат string

GetXLinkAsHtml() публичный Метод

Gets the X link as HTML.
public GetXLinkAsHtml ( XLink xLink ) : string
xLink AODL.Document.Content.Text.XLink The x link.
Результат string

HTMLContentBuilder() публичный Метод

Initializes a new instance of the HTMLContentBuilder class.
public HTMLContentBuilder ( ) : System
Результат System

HTMLContentBuilder() публичный Метод

Initializes a new instance of the HTMLContentBuilder class.
public HTMLContentBuilder ( string graphicTargetFolder ) : System
graphicTargetFolder string The graphic target folder.
Результат System