 | OO-Snippets: Hide AnnotationsCommons| Keywords | annotation, hide annotation, annotations |
|---|
| Language | ooRexx |
|---|
| Application | Writer |
|---|
| Authors | Matthias Prem (initial)
|
|---|
| Supported Versions | |
|---|
| Supported OS | All |
|---|
| Question | How can I hide existing annotations?
|
|---|
| Answer | |
|---|
xScriptContext=uno.getScriptContext()
xDesktop=xScriptContext~getDesktop
xComponent = xDesktop~getCurrentComponent()
xModel = xComponent~xModel
xController = xModel~getCurrentController()
xSelectionSupplier = xController~XSelectionSupplier
xViewSettingsSupplier = xSelectionSupplier~XViewSettingsSupplier
xViewSettings=xViewSettingsSupplier~ViewSettings
xViewProperties = xViewSettings~XPropertySet
xViewProperties~setPropertyValue("ShowAnnotations", box("boolean", .false))
::requires UNO.CLS
|
Changelog| Date | User | Modification |
|---|
| 2006-07-10 | matthiasprem | Initial version |
|