Issue 123083 - VertOrient not correctly set (or possibly documented)
Summary: VertOrient not correctly set (or possibly documented)
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: 4.0.0
Hardware: All Windows 7
: P3 Minor (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-22 09:53 UTC by ptoye
Modified: 2013-08-22 13:25 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ptoye 2013-08-22 09:53:58 UTC
Using the GUI to set the vertical justification (for some reason referred to as "vertical orientation" in the documentation) to "Top" sets the VertOrient value to zero (described as "None") rather than 1 (described as "Top". The documentation is sdk/docs/common/ref/com/sun/star/text/VertOrientation.html (in whatever directory you have)

To reproduce - create a document with a text table. Use the GUI to set the vertical justification of the top left cell to the top. Run the macro below, and the value will be zero.

Setting it to the centre or bottom give the values 2 & 3 respectively as expected.

REM  *****  BASIC  *****
option explicit

Sub Main
dim DocEnum as Object
dim DocElement as Object

  DocEnum=ThisComponent.text.createEnumeration
     
  do while DocEnum.HasMoreElements 
    DocElement=DocEnum.NextElement
    if DocElement.SupportsService("com.sun.star.text.TextTable") Then
      msgbox ("VertOrient= " & DocElement.GetCellByPosition(0,0).VertOrient)
    end if
  loop

End Sub
Comment 1 Edwin Sharp 2013-08-22 13:25:48 UTC
As given in description.

Rev. 1514603 Win 7