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 Expand viewCollapse view
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