[Libreoffice-bugs] [Bug 129655] New: Shape textbox in writer ignores WritingMode.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Dec 27 16:11:19 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=129655

            Bug ID: 129655
           Summary: Shape textbox in writer ignores WritingMode.
           Product: LibreOffice
           Version: 6.5.0.0.alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: marklh9 at gmail.com

Description:
Use macro to change writing mode of a Shape textbox. Comparing the text inside
the shape without a textbox, the results are different.

Steps to Reproduce:
1.Open the attached document. There are two shapes. One has the textbox
attached and the other doesn't.
2.Insert following Basic code as a macro and execute it.




Sub Main
  Dim oDrawPage As Variant
  Dim oObj1 As Variant
  Dim oObj2 As Variant
  Dim oObj3 As Variant
  Dim oObj4 As Variant
  Dim nTextWritingMode As Long

  oDrawPage = ThisComponent.getDrawPage()
  oObj1 = oDrawPage.getByIndex(0)

  oObj1.TextWritingMode = 2
  msgbox  "WritingMode:" & oObj1.TextWritingMode 
    oObj2 = oDrawPage.getByIndex(1)

  oObj2.TextWritingMode = 2
  msgbox  "WritingMode:" & oObj2.TextWritingMode 
End Sub

Actual Results:
The text in the textbox stays left-to-right.

Expected Results:
The text in the textbox should be top-to-down (TB-RL).


Reproducible: Always


User Profile Reset: No



Additional Info:

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191227/186fe8d0/attachment.htm>


More information about the Libreoffice-bugs mailing list