LibreOffice
LibreOffice 24.2 SDK API Reference
|
special interface to support sub-toolbars in a controller implementation. More...
import"XSubToolbarController.idl";
Public Member Functions | |
boolean | opensSubToolbar () |
if the controller features a sub-toolbar. More... | |
string | getSubToolbarName () |
provides the resource URL of the sub-toolbar this controller opens. More... | |
void | functionSelected ([in] string aCommand) |
gets called to notify a controller that a sub-toolbar function has been selected. More... | |
void | updateImage () |
gets called to notify a controller that it should set an image which represents the current selected function. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
special interface to support sub-toolbars in a controller implementation.
This interface is normally used to implement the toolbar button/sub- toolbar function feature. It exchanges the function of the toolbar button, that opened the sub-toolbar, with the one that has been selected on the sub-toolbar.
void functionSelected | ( | [in] string | aCommand | ) |
gets called to notify a controller that a sub-toolbar function has been selected.
aCommand | a string which identifies the function that has been selected by a user. |
string getSubToolbarName | ( | ) |
provides the resource URL of the sub-toolbar this controller opens.
boolean opensSubToolbar | ( | ) |
if the controller features a sub-toolbar.
TRUE
if the controller offers a sub toolbar, otherwise FALSE
.Enables implementations to dynamically decide to support sub-toolbars or not.
void updateImage | ( | ) |
gets called to notify a controller that it should set an image which represents the current selected function.
Only the controller instance is able to set the correct image for the current function. A toolbar implementation will ask sub-toolbar controllers to update their image whenever it has to update the images of all its buttons.