Issue 62320 - Layer.IsVisible does not work in macro
Summary: Layer.IsVisible does not work in macro
Status: CONFIRMED
Alias: None
Product: Draw
Classification: Application
Component: programming (show other issues)
Version: OOo 2.0.1
Hardware: All Windows XP
: P3 Trivial with 1 vote (vote)
Target Milestone: AOO Later
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: needmoreinfo
Depends on:
Blocks:
 
Reported: 2006-02-20 12:24 UTC by schmieta
Modified: 2017-05-20 11:31 UTC (History)
2 users (show)

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


Attachments
DrawFile containing a macro that works well in oo.org 1.1.3 but does not work in oo.org 2.0.1 (84.17 KB, application/vnd.sun.xml.draw)
2006-02-28 10:17 UTC, schmieta
no flags Details
flieger2.sxd is a draw-document containing several layers and a macro to export them one by one in separate files and all layers together in on file. (86.53 KB, application/vnd.sun.xml.draw)
2006-03-06 21:22 UTC, schmieta
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description schmieta 2006-02-20 12:24:16 UTC
In an OpenOffice.org Basic macro the following does not seem to give an effect:

myLayer.IsVisible = True 
myLayer.IsPrintable = True
myLayer.IsVisible = False
myLayer.IsPrintable = False

The same macro running with OpenOffice.org 1.1.3 does exactly what you would expect.
Comment 1 wolframgarten 2006-02-27 15:25:38 UTC
Could you please attach a document where the complete macro is included? Thanks.
Comment 2 schmieta 2006-02-28 10:17:29 UTC
Created attachment 34505 [details]
DrawFile containing a macro that works well in oo.org 1.1.3 but does not work in oo.org 2.0.1
Comment 3 wolframgarten 2006-03-06 13:42:53 UTC
Please give a detailed step by step description of what you are doing. Which
script do you execute, what should be the result and what is the result? I
cannot see any difference compared to OOo1.1.5. Thanks.
Comment 4 schmieta 2006-03-06 21:22:12 UTC
Created attachment 34616 [details]
flieger2.sxd is a draw-document containing several layers and a macro to export them one by one in separate files and all layers together in on file.
Comment 5 schmieta 2006-03-06 21:24:46 UTC
Flieger2.sxd is a draw-document containing several layers. 
Each layer contains the outline of a cutthrough of a sculpture.
The macro in the document has two aims:
1. to export all the layers on one single page in one pdf-file (allLayers.pdf)
2. to export each layer one by one in a separate pdf-file (Ebene01.pdf, 
Ebene02.pdf,...)

When running the main macro, you will first get into 'showAll', a macro aimed 
to make all layers visible and to export them all into a single pdf-file.
Secondly you will get into 'singleLayer', a macro aimed to export every single 
layer into a separate pdf-file.

What happens on my machine is that with OpenOffice.org 1.1.3 both macros do 
what they should, I do get 20 files, the biggest one is allLayers.pdf, all 
others are smaller. 
With OpenOffice.org 2.0.1 all the pdf-files exported have the same size and 
they all show the same: all the layers are exported instead of just the one 
they were named after.
I am not using OpenOffice.org 1.1.5 and would like to ask you to compare with 
OpenOffice.org 1.1.3.
Please see the attached file, which has been changed slightly in order to make 
things easier to understand.
Thank you for your attention.
Comment 6 wolframgarten 2006-03-07 08:56:29 UTC
Reproducible with version 1.1.5, too. Starting the main macro you get 20 pdfs
directly on C:/ . One big one (400kb) and a lot of smaller ones (7-47 kb). The
smaller ones really show single layers. Starting the macro in version m157
generates 20 files, too. But they are all 80 - 82 KB big and each file contains
all layers.
Reassigned.
Comment 7 ace_dent 2008-05-15 15:40:24 UTC
This Issue requires more information ('needmoreinfo'), but has not been updated
within the last year. Please re-test with one of the latest versions of OOo -
the problem(s) may have already been addressed. Either use the recent stable
version: http://download.openoffice.org/index.html
or consider trying the new OOo 3 BETA (still in testing):
http://download.openoffice.org/3.0beta/
 
Please report back the outcome so this Issue may be closed or progressed as
necessary - otherwise it may be Resolved as Invalid in the future. You may also
wish to search for (and note) any duplicates of this Issue that may have
advanced further :
http://www.openoffice.org/issues/query.cgi
 
Many thanks,
Andrew
 
Cleaning-up and Closing old Issues as part of:
~ The Grand Bug Squash, pre v3 ~
Comment 8 Marcus 2017-05-20 11:31:29 UTC
Reset assigne to the default "issues@openoffice.apache.org".