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

Summary for MasterPageFactory.
Afficher le fichier Open project: monsterlabs/HumanRightsTracker Class Usage Examples

Méthodes publiques

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

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

GetContentHeaderFooter() public méthode

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

MasterPageFactory() public méthode

public MasterPageFactory ( DirInfo dirInfo ) : System
dirInfo AODL.Document.Import.OpenDocument.DirInfo
Résultat System

MoveMasterStyles() public static méthode

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

RenameMasterStyles() public static méthode

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