[Solved]Layer Mgmt in CorelDraw vs. OpenOffice Draw

Discuss the drawing application
Post Reply
skuddle
Posts: 43
Joined: Thu Oct 19, 2017 1:39 am

[Solved]Layer Mgmt in CorelDraw vs. OpenOffice Draw

Post by skuddle »

Does LibreOffice Draw support layer views in a sidebar like CorelDraw 12? Attached is an image taken from CD:
coreldraw image.jpg
I'm trying to make CD labels. The label outlines are the same for all pages and I think the outlines will constitute a Master in OOD. The text on each page will be different. I am not going to print the label outlines but the must be visible as guides. Perhaps somebody could put me on the right path?
Last edited by skuddle on Thu Nov 08, 2018 7:47 pm, edited 1 time in total.
* HP Pavilion Desktop 510-p114
* Windows 10 Home 22H2 19045.3996
* Firefox 122; Thunderbird 115.6.1
* LibreOffice 7.2.4.1
User avatar
Zizi64
Volunteer
Posts: 11419
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Layer Mgmt in CorelDraw vs. OpenOffice Draw

Post by Zizi64 »

I never used the CorelDraw, I do not know anything about its functions...

There is not Layer control function on the Sidebar, and you can not customize it (yet).

What do you want achieve really?
Do you want make easy visible/unvisible (switch on/off) the layers from a toolbar/menu?

I suppose, to do it from the Layers TABs seems a littlebit cumbersome for you:
Right click on the TAB - modify Layer - uncheck/check the Visible option - hit OK...
You can write (WRITE, but not RECORD!) a macro for this task based on the API (Application Programming Interface) functions.


Here is a short sample code snippet (I just reduced from my larger code):

Code: Select all

Sub ToggleCurrentLayerVisibility()
 Dim oDoc, oLayerManager as object
 Dim ActivValue as Boolean
 Dim oValtozo as Variant
 Dim oCurrentController as Object
 Dim oLayer as object
 Dim sLname as string
 
  	oDoc = Thiscomponent

	If oDoc.supportsService("com.sun.star.drawing.DrawingDocument") Then
	    oLayerManager = oDoc.getLayerManager()
		oCurrentController = oDoc.getCurrentController()
	   	oLayer = oCurrentController.ActiveLayer
		sLname = oLayer.name
		oLayer = oLayerManager.getByName(sLname)
		oLayer.IsVisible = not(oLayer.IsVisible)
	Else
		MsgBox("This is not a Draw document!")
	End If
End Sub  
Last edited by Zizi64 on Mon Nov 06, 2017 8:17 am, edited 1 time in total.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
keme
Volunteer
Posts: 3738
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

Re: Layer Mgmt in CorelDraw vs. OpenOffice Draw

Post by keme »

shortcut to show/hide a layer: ctrl+click on the tab (for mac OS-X users: shift+ctrl+click)
Apache OO 4.1.12 and LibreOffice 7.5, mostly on Ms Windows 10
skuddle
Posts: 43
Joined: Thu Oct 19, 2017 1:39 am

Re: Layer Mgmt in CorelDraw vs. OpenOffice Draw

Post by skuddle »

@Zizi64

Thank you for your reply, but I've been a user (since 1986), not a programmer and don't understand coding.
* HP Pavilion Desktop 510-p114
* Windows 10 Home 22H2 19045.3996
* Firefox 122; Thunderbird 115.6.1
* LibreOffice 7.2.4.1
User avatar
keme
Volunteer
Posts: 3738
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

Re: Layer Mgmt in CorelDraw vs. OpenOffice Draw

Post by keme »

keme wrote:shortcut to show/hide a layer: ctrl+click on the tab (for mac OS-X users: shift+ctrl+click)
Oops! Sorry. The actual request slipped my mind while I was reading Zizi64's reply. If you had followed all his guidelines you might have discovered a solution:

In the master page you can select content to be visible but not printable. Right click the layer tab and untick "Printable" (keep "Visible" ticked).

If you need some parts from the master page to print, you can add tabs there just like in the normal view.
Post Reply