Hello,
Is it possible to call this dialogbox by macro?
Call "Cell style" dialogbox
Call "Cell style" dialogbox
OpenOffice 4.1.12 - Windows 10
Re: Call "Cell style" dialogbox
I think only as individual items in com.sun.star.style.CharacterProperties , ...ParagraphProperties and ...CellProperties
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: Call "Cell style" dialogbox
https://www.openoffice.org/api/docs/com ... Style.html
Search for "OpenOffice API cellstyle".
You'll have to select what is relevant to you.
Search for "OpenOffice API cellstyle".
You'll have to select what is relevant to you.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
-
- Volunteer
- Posts: 1160
- Joined: Mon Oct 08, 2007 1:26 am
- Location: France, Paris area
Re: Call "Cell style" dialogbox
Hi,
You can open the Styles and Formatting dialog with the dispatcher:
The highlighted style is the style of the current cell.
You can open the Styles and Formatting dialog with the dispatcher:
Code: Select all
dim document as object, dispatcher as object
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dispatcher.executeDispatch(document, ".uno:StyleNewByExample", "", 0, Array())
Bernard
OpenOffice.org 1.1.5 / Apache OpenOffice 4.1.1 / LibreOffice 5.0.5
MS-Windows 7 Home SP1
OpenOffice.org 1.1.5 / Apache OpenOffice 4.1.1 / LibreOffice 5.0.5
MS-Windows 7 Home SP1
Re: Call "Cell style" dialogbox
Second best solutionB Marcelly wrote:You can open the Styles and Formatting dialog with the dispatcher:
I wanted to avoid having to build my own dialog
Thanks
OpenOffice 4.1.12 - Windows 10