You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2017/10/05 15:03:38 UTC

[Issue 127548] Com.Sun.Star.Style.ParagraphStyle setting paratabstops changes the value, but not visible in program.

https://bz.apache.org/ooo/show_bug.cgi?id=127548

mroe <mr...@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |NOT_AN_OOO_ISSUE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from mroe <mr...@gmx.net> ---
(In reply to Jan Flikweert from comment #0)
> I have made a macro in OpenOffice to change the Tabstops in the active
> document. This to illustrate an issue i have writing a program in VFP.
> 
> Using Xray I can see that the properties in
> com.sun.star.style.ParagraphStyle.Paratabstops are set correct.

I don't think so …


> There are 2 possibilities:
> 
> 1. I do something wrong

Yes. But bugzilla is not a helpdesk.

> 2. There is a bug

No.


http://www.openoffice.org/api/docs/common/ref/com/sun/star/style/ParagraphProperties.html#ParaTabStops

http://www.openoffice.org/api/docs/common/ref/com/sun/star/style/TabStop.html

Dim loDocument As Object
Dim oStyle As Object
Dim tbstps(2) As New com.sun.star.style.TabStop

loDocument = ThisComponent
oStyle = loDocument.createInstance( "com.sun.star.style.ParagraphStyle" )
oStyle.setName( "My new style")
tbstps(0).Position = 1500
'tbstps(0).Alignment = com.sun.star.style.TabAlign.DEFAULT
tbstps(1).Position = 4500
'tbstps(1).Alignment = com.sun.star.style.TabAlign.DEFAULT
tbstps(2).Position = 7500
'tbstps(2).Alignment = com.sun.star.style.TabAlign.DEFAULT
oStyle.setPropertyValue( "ParaTabStops", tbstps() )

-- 
You are receiving this mail because:
You are the assignee for the issue.