|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--MLA
Defined in MarkLogicWordAddin.js
| Constructor Summary | |
MLA()
The MLA namespace is used for global attribution. |
|
| Method Summary | |
<static> String
|
addCustomXMLPart(customPartXml)
Adds custom part to active Open XML package. |
<static> Object
|
createParagraph(textstring)
Utility function to create a default WordprocessingML paragraph |
<static> Object
|
createXMLDOM(xmlstring)
Utility function for creating Microsoft.XMLDOM object from string |
<static> void
|
deleteCustomXMLPart(customXMLPartId)
Deletes custom part from Active Open XML package identified by id. |
<static> Microsoft.XMLDOM object
|
getActiveDocStylesXml()
Returns the Styles.xml for the ActiveDocument as XMLDOM object. |
<static> Microsoft.XMLDOM object
|
getActiveDocXml()
Returns the document.xml for the ActiveDocument as XMLDOM object. |
<static> Object
|
getConfiguration()
Returns MLA.config. |
<static> Microsoft.XMLDOM object
|
getCustomXMLPart(customXMLPartId)
Returns the custom XML part, identified by customXMLPartId, that is part of the active Open XML package. |
<static> Array
|
getCustomXMLPartIds()
Returns ids for custom parts (not built-in) that are part of the active Open XML package. |
<static> Array
|
getSelection()
Returns the XML that represents what is currently selected (highlighted) by the user in the ActiveDocument as an XMLDOM object. |
<static> Array
|
getSelectionText(delimiter)
Returns the text currently selected (highlighted) by the user in the ActiveDocument. |
<static> Microsoft.XMLDOM object
|
getSentenceAtCursor()
Returns the final XML block that represents the Sentence at the current cursor position. |
<static> String
|
getVersion()
Returns version of MarkLogicWordAddin.js library |
<static> void
|
insertBlockContent(blockContentXml,stylesXml)
Inserts block-level xml into the ActiveDocument in Word at the current cursor position, or over the selected range (if selected). |
<static> void
|
insertText(textToInsert)
Inserts text into the ActiveDocument at current cursor position. |
<static> void
|
setActiveDocXml(documentXml)
Inserts document.xml into the ActiveDocument package in Word. |
| Constructor Detail |
MLA()
| Method Detail |
<static> String addCustomXMLPart(customPartXml)
customPartXML - Either A) an XMLDOM object that is the custom part to be added to the active Open XML package, or B)The string serialization of the XML to be added as a custom part to the active Open XML package. ( The XML must be well-formed. )
<static> Object createParagraph(textstring)
textstring - the string to be converted into a WordprocessingML paragraph
<static> Object createXMLDOM(xmlstring)
xmlString - the string to be loaded into a XMLDOM object. The string must be serialized, well-formed XML.
<static> void deleteCustomXMLPart(customXMLPartId)
customXMLPartId - the id of the custom part to be deleted from the active Open XML package.
<static> Microsoft.XMLDOM object getActiveDocStylesXml()
<static> Microsoft.XMLDOM object getActiveDocXml()
<static> Object getConfiguration()
<static> Microsoft.XMLDOM object getCustomXMLPart(customXMLPartId)
customXMLPartId - the id of the custom part to be fetched from the active package
<static> Array getCustomXMLPartIds()
<static> Array getSelection()
<static> Array getSelectionText(delimiter)
delimiter - (optional) Text from tables will be returned as a single string, with cells delimited by tabs (default). This param may be used to assign a different delimiter. Note: there is no delimiter for text from paragraphs, as each paragraph will be captured in separate array elements.
<static> Microsoft.XMLDOM object getSentenceAtCursor()
<static> String getVersion()
<static> void insertBlockContent(blockContentXml,stylesXml)
stylesXml - (optional) this parameter is either A) an XMLDOM object that contains Styles.xml for the pacakge, or B)a String, which is the serialized, well-formed XML that represents Styles.xml for the ActiveDocument package in Word.
blockXml - this parameter may either be A) and XMLDOM object that is the block-level XML to be inserted,or an array of such objects,or B) a String, that is the serialized, well-formed XML of the block to be inserted, or an Array of such Strings.
<static> void insertText(textToInsert)
textToInsert - the text to be inserted at the current cursor position in the ActiveDocument.
<static> void setActiveDocXml(documentXml)
documentXml - this parameter may either be A) an XMLDOM object that is the XML equivalent of the document.xml to be inserted,or B) a String, that is the serialized, well-formed XML of the document.xml to be inserted.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||