Bug 61235 - EDITING: Wrap text button
Summary: EDITING: Wrap text button
Status: RESOLVED DUPLICATE of bug 58506
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: Other All
: low enhancement
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords: needsDevEval
Depends on:
Blocks:
 
Reported: 2013-02-21 15:08 UTC by Gitsy
Modified: 2015-12-18 10:17 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
extension for wrap button (8.14 KB, application/vnd.openofficeorg.extension)
2013-02-28 13:48 UTC, Gitsy
Details

Note You need to log in before you can comment on or make changes to this bug.
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]