C# Class XWiki.Office.Word.ConversionManager

Manages the bidirectional conversion.(Web to Word and Word to Web)
Datei anzeigen Open project: xwiki-contrib/xwiki-office Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
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

Method Details

ConversionManager() public method

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.
return System

ConvertFromWebToWord() public method

Converts a html source from a Web form to Word compatible format.
public ConvertFromWebToWord ( String content ) : String
content String The html to be converted.
return String

ConvertFromWordToWeb() public method

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.
return String

RegisterForUpload() public method

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.
return void

UploadAttachments() public method

public UploadAttachments ( ) : void
return void