1*d1766043SAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*d1766043SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*d1766043SAndrew Rist * distributed with this work for additional information 6*d1766043SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance 9*d1766043SAndrew Rist * with the License. You may obtain a copy of the License at 10*d1766043SAndrew Rist * 11*d1766043SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*d1766043SAndrew Rist * 13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*d1766043SAndrew Rist * software distributed under the License is distributed on an 15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*d1766043SAndrew Rist * KIND, either express or implied. See the License for the 17*d1766043SAndrew Rist * specific language governing permissions and limitations 18*d1766043SAndrew Rist * under the License. 19*d1766043SAndrew Rist * 20*d1766043SAndrew Rist *************************************************************/ 21*d1766043SAndrew Rist 22*d1766043SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir#ifndef __com_sun_star_ui_ItemStyle_idl__ 25cdf0e10cSrcweir#define __com_sun_star_ui_ItemStyle_idl__ 26cdf0e10cSrcweir 27cdf0e10cSrcweir//============================================================================= 28cdf0e10cSrcweir 29cdf0e10cSrcweirmodule com { module sun { module star { module ui { 30cdf0e10cSrcweir 31cdf0e10cSrcweir/** 32cdf0e10cSrcweir specifies styles which influence the appearance and the behavior of an 33cdf0e10cSrcweir user interface item. 34cdf0e10cSrcweir 35cdf0e10cSrcweir <p> 36cdf0e10cSrcweir These styles are only valid if the item describes a toolbar or statusbar item. 37cdf0e10cSrcweir The style values can be combined with the OR operator. Styles which are not valid 38cdf0e10cSrcweir for an item will be ignored by the implementation.<br/> 39cdf0e10cSrcweir There are two styles where 40cdf0e10cSrcweir only one value is valid: 41cdf0e10cSrcweir Alignment: 42cdf0e10cSrcweir <ul> 43cdf0e10cSrcweir <li>ALIGN_LEFT</li> 44cdf0e10cSrcweir <li>ALIGN_CENTER</li> 45cdf0e10cSrcweir <li>ALIGN_RIGHT</li> 46cdf0e10cSrcweir </ul> 47cdf0e10cSrcweir Drawing: 48cdf0e10cSrcweir <ul> 49cdf0e10cSrcweir <li>DRAW_OUT3D</li> 50cdf0e10cSrcweir <li>DRAW_IN3D</li> 51cdf0e10cSrcweir <li>DRAW_FLAT</li> 52cdf0e10cSrcweir </ul> 53cdf0e10cSrcweir </p> 54cdf0e10cSrcweir 55cdf0e10cSrcweir @since OOo 2.0 56cdf0e10cSrcweir*/ 57cdf0e10cSrcweirconstants ItemStyle 58cdf0e10cSrcweir{ 59cdf0e10cSrcweir //------------------------------------------------------------------------- 60cdf0e10cSrcweir /** specifies how the output of the item is aligned in the bounding box of 61cdf0e10cSrcweir the user interface element. 62cdf0e10cSrcweir <p>This style is only valid for an item which describes a statusbar item. 63cdf0e10cSrcweir Draw item with a left aligned output.</p> 64cdf0e10cSrcweir */ 65cdf0e10cSrcweir const short ALIGN_LEFT = 1; 66cdf0e10cSrcweir 67cdf0e10cSrcweir /** specifies how the output of the item is aligned in the bounding box of 68cdf0e10cSrcweir the user interface element. 69cdf0e10cSrcweir <p>This style is only valid for an item which describes a statusbar item. 70cdf0e10cSrcweir Draw item with a centered aligned output.</p> 71cdf0e10cSrcweir */ 72cdf0e10cSrcweir const short ALIGN_CENTER = 2; 73cdf0e10cSrcweir 74cdf0e10cSrcweir /** specifies how the output of the item is aligned in the bounding box of 75cdf0e10cSrcweir the user interface element. 76cdf0e10cSrcweir <p>This style is only valid for an item which describes a statusbar item. 77cdf0e10cSrcweir Draw item with a right aligned output.</p> 78cdf0e10cSrcweir */ 79cdf0e10cSrcweir const short ALIGN_RIGHT = 3; 80cdf0e10cSrcweir 81cdf0e10cSrcweir //------------------------------------------------------------------------- 82cdf0e10cSrcweir /** specifies how the implementation should draw the item. 83cdf0e10cSrcweir <p>This style is only valid for an item which describes a statusbar item. 84cdf0e10cSrcweir Draw item with an embossed 3D effect.</p> 85cdf0e10cSrcweir */ 86cdf0e10cSrcweir const short DRAW_OUT3D = 4; 87cdf0e10cSrcweir 88cdf0e10cSrcweir /** specifies how the implementation should draw the item. 89cdf0e10cSrcweir <p>This style is only valid for an item which describes a statusbar item. 90cdf0e10cSrcweir Draw item with an impressed 3D effect.</p> 91cdf0e10cSrcweir */ 92cdf0e10cSrcweir const short DRAW_IN3D = 8; 93cdf0e10cSrcweir 94cdf0e10cSrcweir /** specifies how the implementation should draw the item. 95cdf0e10cSrcweir <p>This style is only valid for an item which describes a statusbar item. 96cdf0e10cSrcweir Draw item without an 3D effect.</p> 97cdf0e10cSrcweir */ 98cdf0e10cSrcweir const short DRAW_FLAT = 12; 99cdf0e10cSrcweir 100cdf0e10cSrcweir //------------------------------------------------------------------------- 101cdf0e10cSrcweir /** specifies whether or not a item is displayed using an external function. 102cdf0e10cSrcweir <p>This style is only valid if the item describes a statusbar item.</p> 103cdf0e10cSrcweir */ 104cdf0e10cSrcweir const short OWNER_DRAW = 16; 105cdf0e10cSrcweir 106cdf0e10cSrcweir //------------------------------------------------------------------------- 107cdf0e10cSrcweir /** specifies whether or not the size of the item is set automatically by 108cdf0e10cSrcweir the parent user interface element. 109cdf0e10cSrcweir <p>This style is only valid if the item describes a toolbar or statusbar item.</p> 110cdf0e10cSrcweir */ 111cdf0e10cSrcweir const short AUTO_SIZE = 32; 112cdf0e10cSrcweir 113cdf0e10cSrcweir //------------------------------------------------------------------------- 114cdf0e10cSrcweir /** determines whether the item unchecks neighbor entries which have also this style set. 115cdf0e10cSrcweir <p>This style is only valid if the item describes a toolbar item.</p> 116cdf0e10cSrcweir */ 117cdf0e10cSrcweir const short RADIO_CHECK = 64; 118cdf0e10cSrcweir 119cdf0e10cSrcweir //------------------------------------------------------------------------- 120cdf0e10cSrcweir /** specifies if an icon is placed on left side of the text, like an entry in a taskbar. 121cdf0e10cSrcweir <p>This style is only valid if the item describes a toolbar item and visible if 122cdf0e10cSrcweir style of the toolbar is set to symboltext.</p> 123cdf0e10cSrcweir <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> 124cdf0e10cSrcweir */ 125cdf0e10cSrcweir const short ICON = 128; 126cdf0e10cSrcweir 127cdf0e10cSrcweir //------------------------------------------------------------------------- 128cdf0e10cSrcweir /** specifies that the item supports a dropdown menu or toolbar for additional functions. 129cdf0e10cSrcweir <p>This style is only valid if the item describes a toolbar item.</p> 130cdf0e10cSrcweir */ 131cdf0e10cSrcweir const short DROP_DOWN = 256; 132cdf0e10cSrcweir 133cdf0e10cSrcweir //------------------------------------------------------------------------- 134cdf0e10cSrcweir /** indicates that the item continues to execute the command while you click and hold 135cdf0e10cSrcweir the mouse button. 136cdf0e10cSrcweir <p>This style is only valid if the item describes a toolbar item.</p> 137cdf0e10cSrcweir */ 138cdf0e10cSrcweir const short REPEAT = 512; 139cdf0e10cSrcweir 140cdf0e10cSrcweir //------------------------------------------------------------------------- 141cdf0e10cSrcweir /** indicates that the item only supports a dropdown menu or toolbar for 142cdf0e10cSrcweir additional functions. There is no function on the button itself. 143cdf0e10cSrcweir <p>This style is only valid if the item describes a toolbar item.</p> 144cdf0e10cSrcweir */ 145cdf0e10cSrcweir const short DROPDOWN_ONLY = 1024; 146cdf0e10cSrcweir /** indicates if icon, text or text+icon is displayed for the item. 147cdf0e10cSrcweir <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> 148cdf0e10cSrcweir */ 149cdf0e10cSrcweir const short TEXT = 2048; 150cdf0e10cSrcweir}; 151cdf0e10cSrcweir 152cdf0e10cSrcweir}; }; }; }; 153cdf0e10cSrcweir 154cdf0e10cSrcweir#endif 155