Hi Paolo,
Actually there's a service com.sun.star.text.ViewSettings,
with boolean property ShowAnnotations, which controls the
visibility of annotations. You can access to ViewSettings
with com.sun.star.view.XViewSettingsSupplier.getViewSettings
(). You can refer to section 7.5 of
Liao Yu wrote:
Hi,
We can hide and show annotations in a text document via OOo
API, but how can we insert or remove one with API?
Regards,
Yu
An annotation is just a text field, you can remove it as any other text
field.
--
Andrew Pitonyak
My Macro Document: