C# Class AODL.Document.Styles.MasterStyles.MasterPageFactory

Summary for MasterPageFactory.
Show file Open project: monsterlabs/HumanRightsTracker Class Usage Examples

Public Methods

Method Description
FillFromXMLDocument ( TextDocument textDocument ) : void

Fill/read the existing master page styles.

GetContentHeaderFooter ( XmlNode contentNode, TextDocument textDocument ) : ContentCollection

Gets the content for headers and footers.

MasterPageFactory ( DirInfo dirInfo ) : System
MoveMasterStyles ( XmlDocument contentDocument, XmlNode nodeAutomaticStyles, XmlNode nodeMasterPages, XmlNamespaceManager namespaceMng ) : void

Moves the master styles.

We will move the whole master style and master pages stuff from the style document to the text document. This is necessary for avoiding xml document owner errors. Notice: When the document will be saved this nodes have to move back to the styles document. Otherwise they wont work resp. diplayed not correct within OpenOffice.

RenameMasterStyles ( XmlDocument styleDocument, XmlDocument contentDocument, XmlNamespaceManager namespaceMng ) : void

Rename master styles.

Method Details

FillFromXMLDocument() public method

Fill/read the existing master page styles.
public FillFromXMLDocument ( TextDocument textDocument ) : void
textDocument AODL.Document.TextDocuments.TextDocument The owner text document.
return void

GetContentHeaderFooter() public method

Gets the content for headers and footers.
public GetContentHeaderFooter ( XmlNode contentNode, TextDocument textDocument ) : ContentCollection
contentNode System.Xml.XmlNode The content node.
textDocument AODL.Document.TextDocuments.TextDocument The text document.
return ContentCollection

MasterPageFactory() public method

public MasterPageFactory ( DirInfo dirInfo ) : System
dirInfo AODL.Document.Import.OpenDocument.DirInfo
return System

MoveMasterStyles() public static method

Moves the master styles.
We will move the whole master style and master pages stuff from the style document to the text document. This is necessary for avoiding xml document owner errors. Notice: When the document will be saved this nodes have to move back to the styles document. Otherwise they wont work resp. diplayed not correct within OpenOffice.
public static MoveMasterStyles ( XmlDocument contentDocument, XmlNode nodeAutomaticStyles, XmlNode nodeMasterPages, XmlNamespaceManager namespaceMng ) : void
contentDocument System.Xml.XmlDocument The content document.
nodeAutomaticStyles System.Xml.XmlNode The node automatic styles.
nodeMasterPages System.Xml.XmlNode The node master pages.
namespaceMng System.Xml.XmlNamespaceManager The namespace MNG.
return void

RenameMasterStyles() public static method

Rename master styles.
public static RenameMasterStyles ( XmlDocument styleDocument, XmlDocument contentDocument, XmlNamespaceManager namespaceMng ) : void
styleDocument System.Xml.XmlDocument The style document.
contentDocument System.Xml.XmlDocument The content document.
namespaceMng System.Xml.XmlNamespaceManager The namespace MNG.
return void