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 12:37:28 UTC

[Issue 127548] New: 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

          Issue ID: 127548
        Issue Type: DEFECT
           Summary: Com.Sun.Star.Style.ParagraphStyle setting paratabstops
                    changes the value, but not visible in program.
           Product: Writer
           Version: 4.1.3
          Hardware: PC
                OS: Windows 10
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P5 (lowest)
         Component: code
          Assignee: issues@openoffice.apache.org
          Reporter: janflikweert@tele2.nl
  Target Milestone: ---

Created attachment 86220
  --> https://bz.apache.org/ooo/attachment.cgi?id=86220&action=edit
File containing Macro in Writer

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.

The Macro:
Using Xray I can see that the properties in
com.sun.star.style.ParagraphStyle.Paratabstops are set correct.

But on my page the Tabs are not changed. They are not active.

The purpose of this test is to check a program in API for the same case.

So, it is not a problem with my prgramming language VFP. 

There are 2 possibilities:

1. I do something wrong

2. There is a bug

In TextCursor and Document the property ParaTabs is also available, but can not
be set.

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

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

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127548

--- Comment #6 from Jan Flikweert <ja...@tele2.nl> ---
(In reply to Peter from comment #4)
> We think that you have a bug in your macro.
> Since dev resources are thin spread, we ask you to verify your makro on
> Forums or users mailing list.
> 
> If supportchannels can not find a solution, please link the conversation and
> we will have a look from dev side.
> 
> Thanks for your effort thought.

https://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=90648#p429060

I have translated the example from Java
The backcolor of the paragraph is blue.
The tabstops I can check with xRay and are set to the correct value
From the printscreen in the post you can see the tabstops are not wet.

So I think it is a bug.

Kind regards,


Jan Flikweert

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

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

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127548

Peter <le...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |leginee@gmail.com

--- Comment #4 from Peter <le...@gmail.com> ---
We think that you have a bug in your macro.
Since dev resources are thin spread, we ask you to verify your makro on Forums
or users mailing list.

If supportchannels can not find a solution, please link the conversation and we
will have a look from dev side.

Thanks for your effort thought.

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

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

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127548

--- Comment #3 from mroe <mr...@gmx.net> ---
(In reply to Jan Flikweert from comment #2)
> It is not my goal to use this service as a helpdesk.
> 
> But I suppose a trained eye can judge weather the macro is not correct.

You've read comment 1 completely?

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

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

Posted by bu...@apache.org.
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.

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

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127548

--- Comment #5 from Jan Flikweert <ja...@tele2.nl> ---
Thanks for your comment.

I will have a closer look at the macro code in comment 1.

The plan is to create a corrrect macro.

Afterwards I can make it in Visual FoxPro.

That is the reason why I do not work with a recorded macro. It works perfect
but it creates a uno code. That should be fine, but in VFP the structure
array(array does not work.

Kind regards,

Jan Flikweert

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

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

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127548

--- Comment #2 from Jan Flikweert <ja...@tele2.nl> ---
It is not my goal to use this service as a helpdesk.

But I suppose a trained eye can judge weather the macro is not correct.

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

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

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127548

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|Windows 10                  |All
           Hardware|PC                          |All
             Status|RESOLVED                    |CLOSED

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