From ec30d387cbab0e6a48f3bb3f170d9ef20e4e3fa1 Mon Sep 17 00:00:00 2001 From: npower Developer Date: Wed, 18 Nov 2009 11:25:15 +0000 Subject: menuincustomtoolbar: #i105626#: implement menu for custom toolbar ( and some item style override capability ) --- offapi/com/sun/star/ui/ItemStyle.idl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/offapi/com/sun/star/ui/ItemStyle.idl b/offapi/com/sun/star/ui/ItemStyle.idl index 1243c6795..d9874ce9d 100644 --- a/offapi/com/sun/star/ui/ItemStyle.idl +++ b/offapi/com/sun/star/ui/ItemStyle.idl @@ -127,6 +127,7 @@ constants ItemStyle /** specifies if an icon is placed on left side of the text, like an entry in a taskbar.

This style is only valid if the item describes a toolbar item and visible if style of the toolbar is set to symboltext.

+

This style can also be used for custom toolbars and menus, in a custom toolbar an item's Style setting can used to override the toolbar container setting, the style can be bitwise OR-ed with TEXT to define text, text+icon or icon only is to be displayed. Similarly for menu items, an items Style can override the application setting to display either text or icon ( note: for menu an icon only setting interpreted as icon+text )

*/ const short ICON = 128; @@ -149,6 +150,10 @@ constants ItemStyle

This style is only valid if the item describes a toolbar item.

*/ const short DROPDOWN_ONLY = 1024; + /** indicates if icon, text or text+icon is displayed for the item. +

This style can be used for custom toolbars and menus, in a custom toolbar an item's Style setting can used to override the toolbar container setting, the style can be bitwise OR-ed with ICON to define text, text+icon or icon only is to be displayed. Similarly for menu items, an items Style can override the application setting to display either text or icon ( note: for menu an icon only setting interpreted as icon+text )

+ */ + const short TEXT = 2048; }; }; }; }; }; -- cgit v1.2.3