Bug 61235

Summary: EDITING: Wrap text button
Product: LibreOffice Reporter: Gitsy <gitsythomas>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: robinson.libreoffice
Priority: low Keywords: needsDevEval
Version: 4.0.0.3 release   
Hardware: Other   
OS: All   
Whiteboard: BSA
Crash report or crash signature: Regression By:
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
Comment 6 Robinson Tryon (qubit) 2015-12-18 10:17:12 UTC
Migrating Whiteboard tags to Keywords: (ProposedEasyHack -> needsDevEval)
[NinjaEdit]