summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornpower Developer <npower@openoffice.org>2009-11-18 11:25:15 +0000
committernpower Developer <npower@openoffice.org>2009-11-18 11:25:15 +0000
commitabaa6f10a80ce5a8a5f16542cc08ceda130892cc (patch)
tree75f681f54b1c24853d517096560af569ee9b52ab
parent67221cafc8d63b9d69e49ad90cb5bb9320d9651d (diff)
menuincustomtoolbar: #i105626#: implement menu for custom toolbar ( and some item style override capability )
-rw-r--r--offapi/com/sun/star/ui/ItemStyle.idl5
1 files changed, 5 insertions, 0 deletions
diff --git a/offapi/com/sun/star/ui/ItemStyle.idl b/offapi/com/sun/star/ui/ItemStyle.idl
index 6c20d06e9a56..6646c5ec5c72 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.
<p>This style is only valid if the item describes a toolbar item and visible if
style of the toolbar is set to symboltext.</p>
+ <p> 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 <member scope="::com::sun::star::ui::ItemStyle">TEXT</member> 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 ) </p>
*/
const short ICON = 128;
@@ -149,6 +150,10 @@ constants ItemStyle
<p>This style is only valid if the item describes a toolbar item.</p>
*/
const short DROPDOWN_ONLY = 1024;
+ /** indicates if icon, text or text+icon is displayed for the item.
+ <p> 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 <member scope="com::sun::star::ui::ItemStyle">ICON</member> 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 ) </p>
+ */
+ const short TEXT = 2048;
};
}; }; }; };