C# Класс AODL.Document.Styles.MasterStyles.MasterPageFactory

Summary for MasterPageFactory.
Показать файл Открыть проект Примеры использования класса

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

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

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

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

Fill/read the existing master page styles.
public FillFromXMLDocument ( TextDocument textDocument ) : void
textDocument AODL.Document.TextDocuments.TextDocument The owner text document.
Результат void

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

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

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

public MasterPageFactory ( DirInfo dirInfo ) : System
dirInfo AODL.Document.Import.OpenDocument.DirInfo
Результат System

MoveMasterStyles() публичный статический Метод

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

RenameMasterStyles() публичный статический Метод

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