Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I found a code that worked perfectly....

sub startFullScreen()

dim document as object dim dispatcher as object

document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

dim args(0) as new com.sun.star.beans.PropertyValue args(0).Name = "FullScreen" args(0).Value = True

dispatcher.executeDispatch(document, ".uno:FullScreen", "", 0, args())

end sub

click to hide/show revision 2
No.2 Revision

I found a code that worked perfectly....

sub startFullScreen()

dim document as object dim dispatcher as object

object

document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

createUnoService("com.sun.star.frame.DispatchHelper")

dim args(0) as new com.sun.star.beans.PropertyValue args(0).Name = "FullScreen" args(0).Value = True

True

dispatcher.executeDispatch(document, ".uno:FullScreen", "", 0, args())

args()) end sub

end sub