How to hide/show Calc sheet tabs from a macro?

Currently I am able to hide row/column headers, menubar, statusbar, formatting, etc. (basically everything except the cells) from a macro. However, I cannot figure out how to hide the sheet tabs in Calc from a macro without manually doing from Tools->Options->LO Calc->View. Trying to do this from a macro because I would like to toggle it from a keyboard event.

Using LibreOffice 6.1 on Linux

Any help would be greatly appreciated. Thank you

Hello,

  oCurrentController = ThisComponent.getCurrentController()
REM Hide tabs
  oCurrentController.SheetTabs = False
REM Reveal tabs
  oCurrentController.SheetTabs = True
1 Like

Can’t believe I missed this. Works great, thank you!