C# Class AODL.Document.TextDocuments.DocumentStyles

DocumentStyles global Document Style
Show file Open project: monsterlabs/HumanRightsTracker Class Usage Examples

Public Properties

Property Type Description
FileName string

Public Methods

Method Description
CreateNode ( string name, string prefix, TextDocument document ) : XmlNode

Creates the node.

DocumentStyles ( ) : System

Initializes a new instance of the DocumentStyles class.

GetHtmlFooter ( TextDocument document ) : string

Gets the HTML footer.

GetHtmlHeader ( TextDocument document ) : string

Gets the HTML header.

InsertFooter ( Paragraph content, TextDocument document ) : void

Inserts the footer.

InsertHeader ( Paragraph content, TextDocument document ) : void

Inserts the header.

InsertOfficeAutomaticStylesNode ( XmlNode aOfficeAutomaticStyleNode, XmlNamespaceManager xmlNamespaceMng ) : void

Inserts the office automatic styles node into this XML style document.

InsertOfficeMasterStylesNode ( XmlNode aOfficeMasterStyleNode, XmlNamespaceManager xmlNamespaceMng ) : void

Inserts the office master styles node into this XML style document.

InsertOfficeStylesNode ( XmlNode aStyleNode, IDocument document ) : void

Inserts a office styles node.

InsertOfficeStylesNode ( XmlNode aStyleNode, XmlNamespaceManager xmlNamespaceMng ) : void

Inserts the office styles node into this XML style document.

LoadFromFile ( string file ) : void

Loads from file.

New ( ) : void

Load the style from assmebly resource.

New ( TextDocument ownerTextDocument ) : void

Create new document styles document and set the owner text document.

SetOutlineStyle ( int outlineLevel, string numFormat, TextDocument document ) : void

Sets the outline style.

Private Methods

Method Description
InsertParagraphStyle ( Paragraph content, TextDocument document ) : void

Inserts the paragraph style.

Method Details

CreateNode() public method

Creates the node.
public CreateNode ( string name, string prefix, TextDocument document ) : XmlNode
name string The name.
prefix string The prefix.
document TextDocument The prefix.
return System.Xml.XmlNode

DocumentStyles() public method

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

GetHtmlFooter() public method

Gets the HTML footer.
public GetHtmlFooter ( TextDocument document ) : string
document TextDocument The document.
return string

GetHtmlHeader() public method

Gets the HTML header.
public GetHtmlHeader ( TextDocument document ) : string
document TextDocument The document.
return string

InsertFooter() public method

Inserts the footer.
public InsertFooter ( Paragraph content, TextDocument document ) : void
content AODL.Document.Content.Text.Paragraph The content.
document TextDocument The document.
return void

InsertHeader() public method

Inserts the header.
public InsertHeader ( Paragraph content, TextDocument document ) : void
content AODL.Document.Content.Text.Paragraph The content.
document TextDocument The document.
return void

InsertOfficeAutomaticStylesNode() public method

Inserts the office automatic styles node into this XML style document.
public InsertOfficeAutomaticStylesNode ( XmlNode aOfficeAutomaticStyleNode, XmlNamespaceManager xmlNamespaceMng ) : void
aOfficeAutomaticStyleNode System.Xml.XmlNode A office automatic style node.
xmlNamespaceMng System.Xml.XmlNamespaceManager The XML namespace MNG.
return void

InsertOfficeMasterStylesNode() public method

Inserts the office master styles node into this XML style document.
public InsertOfficeMasterStylesNode ( XmlNode aOfficeMasterStyleNode, XmlNamespaceManager xmlNamespaceMng ) : void
aOfficeMasterStyleNode System.Xml.XmlNode A office master style node.
xmlNamespaceMng System.Xml.XmlNamespaceManager The XML namespace MNG.
return void

InsertOfficeStylesNode() public method

Inserts a office styles node.
public InsertOfficeStylesNode ( XmlNode aStyleNode, IDocument document ) : void
aStyleNode System.Xml.XmlNode A style node.
document IDocument The AODL document.
return void

InsertOfficeStylesNode() public method

Inserts the office styles node into this XML style document.
public InsertOfficeStylesNode ( XmlNode aStyleNode, XmlNamespaceManager xmlNamespaceMng ) : void
aStyleNode System.Xml.XmlNode A style node.
xmlNamespaceMng System.Xml.XmlNamespaceManager The XML namespace MNG.
return void

LoadFromFile() public method

Loads from file.
public LoadFromFile ( string file ) : void
file string The file.
return void

New() public method

Load the style from assmebly resource.
public New ( ) : void
return void

New() public method

Create new document styles document and set the owner text document.
public New ( TextDocument ownerTextDocument ) : void
ownerTextDocument TextDocument The owner text document.
return void

SetOutlineStyle() public method

Sets the outline style.
public SetOutlineStyle ( int outlineLevel, string numFormat, TextDocument document ) : void
outlineLevel int The outline level.
numFormat string The num format.
document TextDocument The text document.
return void

Property Details

FileName public static property

The file name.
public static string FileName
return string