Bug 61235

Summary: EDITING: Wrap text button
Product: LibreOffice Reporter: Gitsy <gitsythomas>
Component: LibreofficeAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE QA Contact: Jorendc <jorendc>
Severity: enhancement    
Priority: low    
Version: 4.0.0.3 release   
Hardware: Other   
OS: All   
Whiteboard: BSA ProposedEasyHack
i915 platform: i915 features:
Attachments: extension for wrap button

Description Gitsy 2013-02-21 15:08:00 UTC
Is there any button or hotkey for wrap/ unwrap text in a cell?
  
Operating System: All
Version: 4.0.0.3 release
Comment 1 Jorendc 2013-02-23 21:48:51 UTC
As far I can see , there isn't (Tools < Customize...). Therefore I mark this as enhancement. Thanks for reporting! Because there is also a (text) Wrap function in Draw (and Writer?) I mark this bug as component 'LibreOffice'.

Kind regards,
Joren
Comment 2 Gitsy 2013-02-24 05:57:56 UTC

*** This bug has been marked as a duplicate of bug 58506 ***
Comment 3 Gitsy 2013-02-24 17:39:40 UTC
I think adding the following basic macros to the toolbar will do

REM  *****  BASIC  *****


sub Wrap 
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

rem ----------------------------------------------------------------------
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "WrapText"
args1(0).Value = true

dispatcher.executeDispatch(document, ".uno:WrapText", "", 0, args1())


end sub
-------------------------------------------------------------------------

REM  *****  BASIC  *****


sub Unwrap
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

rem ----------------------------------------------------------------------
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "WrapText"
args1(0).Value = false

dispatcher.executeDispatch(document, ".uno:WrapText", "", 0, args1())


end sub
Comment 4 Gitsy 2013-02-28 13:48:14 UTC
Created attachment 75692 [details]
extension for wrap button

Please see the attached extension

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.