Hi J.

J. Moore wrote (18-01-11 21:55)
Has the ease-of-use for hidden text been improved in the latest
version of LibreOffice Writer?

Specifically: Can the user select text and click a toolbar button to
hide/unhide text? This is how it’s done in MS Word--it's as quick and
easy as formatting text as bold, italic, underline, etc.

These below bugs suggest that others have found the implementation of
hidden text in OO Writer to be clunky and unnecessarily complicated:
http://www.openoffice.org/issues/show_bug.cgi?id=35980
http://www.openoffice.org/issues/show_bug.cgi?id=111233

Thanks for the question and links.

Are you familiar with creating extensions or basic?
The following code is a simple macro that toggles the attribute Hidden of selected text.


Sub ChangeHiddenProp
   Dim oSelection
        
   ' only use first selection in case of multi selection - TODO
oSelection = ThisComponent.getCurrentController.getSelection.getByIndex(0)

   ' does not handle all kinds of selected text perfect ;-)
   If oSelection.getEnd().CharHidden = False Then
      oSelection.CharHidden = True
   Else
      oSelection.CharHidden = False
   End If

End Sub

 = = =

IMO a far better solution is to create a character style that is hidden, and assign that to for example Alt-Shift-H.

HTH,
best,
Cor


Thanks for info!






--
 - giving openoffice.org its foundation :: The Document Foundation -


--
Unsubscribe instructions: E-mail to [email protected]
List archive: http://listarchives.libreoffice.org/www/users/
*** All posts to this list are publicly archived for eternity ***

Reply via email to