Class ops.OpAddAnnotation
Defined in: OpAddAnnotation.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<inner> |
Creates an office:annotation-end node with the given annotation name
|
<inner> |
createAnnotationNode(odtDocument, date)
Creates an office:annotation node with a dc:creator, dc:date, and a paragraph wrapped within
a list, inside it; and with the given annotation name
|
execute(document)
|
|
init(data)
|
|
<inner> |
insertNodeAtPosition(odtDocument, node, insertPosition)
Inserts the element at a given position
|
spec()
|
Method Detail
<inner>
{!Element}
createAnnotationEnd()
Creates an office:annotation-end node with the given annotation name
- Returns:
- {!Element}
<inner>
{!odf.AnnotationElement}
createAnnotationNode(odtDocument, date)
Creates an office:annotation node with a dc:creator, dc:date, and a paragraph wrapped within
a list, inside it; and with the given annotation name
- Parameters:
- {!ops.OdtDocument} odtDocument
- {!Date} date
- Returns:
- {!odf.AnnotationElement}
execute(document)
- Parameters:
- {!ops.Document} document
init(data)
- Parameters:
- {!ops.OpAddAnnotation.InitSpec} data
<inner>
{undefined}
insertNodeAtPosition(odtDocument, node, insertPosition)
Inserts the element at a given position
- Parameters:
- {!ops.OdtDocument} odtDocument
- {!Element} node
- {!number} insertPosition
- Returns:
- {undefined}
{!ops.OpAddAnnotation.Spec}
spec()
- Returns:
- {!ops.OpAddAnnotation.Spec}