Hello, I need to make a macro that changes the orientation of the current page (only this one!) from landscape to portrait and the other way.
What I know is: - there is only one way to do this: create a custom page style that adds landscape/portrait property (format -> styles and formatting -> page styles) - how to get the cursor of the current page ThisComponent.CurrentController.getViewCursor() - how to apply the setting to the first page via the dispatcher dispatcher.executeDispatch(document, ".uno:StyleApply", "", 0, args()) What I don't know is: - how to specify to the dispatcher the page through args() or a way to link the cursor to the dispatcher - is there another way to do this ? I know how to set all the pages to be landscape/portrait without the dispatcher, with: Printeroptions(0).Value = com.sun.star.view.PaperOrientation.PORTRAIT but this is applied to all the pages. Thanks! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
