C# Класс XWiki.Office.Word.ConversionManager

Manages the bidirectional conversion.(Web to Word and Word to Web)
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

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

Метод Описание
ConversionManager ( XOfficeCommonSettings settings, String serverURL, String localFolder, String docFullName, String localFileName, IXWikiClient client ) : System

Creates a new instance of the ConversionManager class.

ConvertFromWebToWord ( String content ) : String

Converts a html source from a Web form to Word compatible format.

ConvertFromWordToWeb ( String content ) : String

Converts a html source from local Word format to xhtml usable on web.

RegisterForUpload ( String attachmentPath ) : void

Adds an file to the list of files to be attached to the page.

UploadAttachments ( ) : void

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

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

Creates a new instance of the ConversionManager class.
public ConversionManager ( XOfficeCommonSettings settings, String serverURL, String localFolder, String docFullName, String localFileName, IXWikiClient client ) : System
settings XOffice.XOfficeCommonSettings
serverURL String The url of the server.
localFolder String The local folder where documents are saved/
docFullName String The full name of the wiki page.
localFileName String The local file coresponding to the edited wiki page.
client IXWikiClient IXWikiClient implementation, handling Client server communication.
Результат System

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

Converts a html source from a Web form to Word compatible format.
public ConvertFromWebToWord ( String content ) : String
content String The html to be converted.
Результат String

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

Converts a html source from local Word format to xhtml usable on web.
public ConvertFromWordToWeb ( String content ) : String
content String The html to be converted.
Результат String

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

Adds an file to the list of files to be attached to the page.
public RegisterForUpload ( String attachmentPath ) : void
attachmentPath String The path to the attachment to be uploaded.
Результат void

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

public UploadAttachments ( ) : void
Результат void