Bug 159539 - Setting paragraph direction is not possible in LibreOffice viewer experimental editor
Summary: Setting paragraph direction is not possible in LibreOffice viewer experimenta...
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Android Viewer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Hossein
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-03 11:00 UTC by Hossein
Modified: 2024-02-08 07:26 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hossein 2024-02-03 11:00:40 UTC
Description:
In LibreOffice Viewer for Android, it is not possible to set a paragraph direction to RTL and/or LTR. This is relevant if you are using experimental editor to create RTL documents.

Steps to Reproduce:
1. Open LibreOffice Viewer for Android
2. Open Settings from "⋮" menu and make sure that "Experimental Mode" and "Developer Mode" are checked
3. Click "+" button and choose "New Text Document" icon
4. Try to make the paragraph right to left

Actual Results:
There is no button or other means to make the paragraph right to left (RTL).

Expected Results:
There should be two buttons available to: 1) make the paragraph right to left (RTL), and 2) make the paragraph left to right (LTR)

These buttons should be placed near text alignment buttons, in paragraph settings.


Reproducible: Always


User Profile Reset: No

Additional Info:
LibreOffice Viewer
Version: 7.6.5.0.0+
Build ID: 2e65401cf50c

The UNO command that makes the paragraph RTL is .uno:ParaRightToLeft. To make the paragraph LTR, one should use .uno:ParaLeftToRight. You can see these UNO commands in below BASIC script:

Sub Main
    oFrame = ThisComponent.CurrentController.Frame
    oDispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
    oDispatcher.executeDispatch(oFrame, ".uno:ParaRightToLeft", "", 0, Array())
End Sub

In LibreOffice Viewer, it is possible to use the same UNO commands to make the paragraph RTL. To do that, one can open "⋮" menu and choose "Send UNO Cmd" when "Experimental Mode" and "Developer Mode" are both enabled.

One should only type "ParaRightToLeft" or "ParaLeftToRight" (without ".uno") to change the paragraph direction to RTL and LTR respectively.

After pressing check mark "✓" button on the top, paragraph direction changes.
Comment 1 Michael Weghorn 2024-02-08 07:26:20 UTC
Changing component back to "Android Viewer", since "Android Editor" is for the LibreOffice Online based app (repo frozen at the moment).