Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


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 users+help@libreoffice.org
List archive: http://listarchives.libreoffice.org/www/users/
*** All posts to this list are publicly archived for eternity ***

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.