1*cdf0e10cSrcweir/************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir#ifndef __com_sun_star_ui_ItemStyle_idl__ 29*cdf0e10cSrcweir#define __com_sun_star_ui_ItemStyle_idl__ 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir//============================================================================= 32*cdf0e10cSrcweir 33*cdf0e10cSrcweirmodule com { module sun { module star { module ui { 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir/** 36*cdf0e10cSrcweir specifies styles which influence the appearance and the behavior of an 37*cdf0e10cSrcweir user interface item. 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir <p> 40*cdf0e10cSrcweir These styles are only valid if the item describes a toolbar or statusbar item. 41*cdf0e10cSrcweir The style values can be combined with the OR operator. Styles which are not valid 42*cdf0e10cSrcweir for an item will be ignored by the implementation.<br/> 43*cdf0e10cSrcweir There are two styles where 44*cdf0e10cSrcweir only one value is valid: 45*cdf0e10cSrcweir Alignment: 46*cdf0e10cSrcweir <ul> 47*cdf0e10cSrcweir <li>ALIGN_LEFT</li> 48*cdf0e10cSrcweir <li>ALIGN_CENTER</li> 49*cdf0e10cSrcweir <li>ALIGN_RIGHT</li> 50*cdf0e10cSrcweir </ul> 51*cdf0e10cSrcweir Drawing: 52*cdf0e10cSrcweir <ul> 53*cdf0e10cSrcweir <li>DRAW_OUT3D</li> 54*cdf0e10cSrcweir <li>DRAW_IN3D</li> 55*cdf0e10cSrcweir <li>DRAW_FLAT</li> 56*cdf0e10cSrcweir </ul> 57*cdf0e10cSrcweir </p> 58*cdf0e10cSrcweir 59*cdf0e10cSrcweir @since OOo 2.0 60*cdf0e10cSrcweir*/ 61*cdf0e10cSrcweirconstants ItemStyle 62*cdf0e10cSrcweir{ 63*cdf0e10cSrcweir //------------------------------------------------------------------------- 64*cdf0e10cSrcweir /** specifies how the output of the item is aligned in the bounding box of 65*cdf0e10cSrcweir the user interface element. 66*cdf0e10cSrcweir <p>This style is only valid for an item which describes a statusbar item. 67*cdf0e10cSrcweir Draw item with a left aligned output.</p> 68*cdf0e10cSrcweir */ 69*cdf0e10cSrcweir const short ALIGN_LEFT = 1; 70*cdf0e10cSrcweir 71*cdf0e10cSrcweir /** specifies how the output of the item is aligned in the bounding box of 72*cdf0e10cSrcweir the user interface element. 73*cdf0e10cSrcweir <p>This style is only valid for an item which describes a statusbar item. 74*cdf0e10cSrcweir Draw item with a centered aligned output.</p> 75*cdf0e10cSrcweir */ 76*cdf0e10cSrcweir const short ALIGN_CENTER = 2; 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir /** specifies how the output of the item is aligned in the bounding box of 79*cdf0e10cSrcweir the user interface element. 80*cdf0e10cSrcweir <p>This style is only valid for an item which describes a statusbar item. 81*cdf0e10cSrcweir Draw item with a right aligned output.</p> 82*cdf0e10cSrcweir */ 83*cdf0e10cSrcweir const short ALIGN_RIGHT = 3; 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir //------------------------------------------------------------------------- 86*cdf0e10cSrcweir /** specifies how the implementation should draw the item. 87*cdf0e10cSrcweir <p>This style is only valid for an item which describes a statusbar item. 88*cdf0e10cSrcweir Draw item with an embossed 3D effect.</p> 89*cdf0e10cSrcweir */ 90*cdf0e10cSrcweir const short DRAW_OUT3D = 4; 91*cdf0e10cSrcweir 92*cdf0e10cSrcweir /** specifies how the implementation should draw the item. 93*cdf0e10cSrcweir <p>This style is only valid for an item which describes a statusbar item. 94*cdf0e10cSrcweir Draw item with an impressed 3D effect.</p> 95*cdf0e10cSrcweir */ 96*cdf0e10cSrcweir const short DRAW_IN3D = 8; 97*cdf0e10cSrcweir 98*cdf0e10cSrcweir /** specifies how the implementation should draw the item. 99*cdf0e10cSrcweir <p>This style is only valid for an item which describes a statusbar item. 100*cdf0e10cSrcweir Draw item without an 3D effect.</p> 101*cdf0e10cSrcweir */ 102*cdf0e10cSrcweir const short DRAW_FLAT = 12; 103*cdf0e10cSrcweir 104*cdf0e10cSrcweir //------------------------------------------------------------------------- 105*cdf0e10cSrcweir /** specifies whether or not a item is displayed using an external function. 106*cdf0e10cSrcweir <p>This style is only valid if the item describes a statusbar item.</p> 107*cdf0e10cSrcweir */ 108*cdf0e10cSrcweir const short OWNER_DRAW = 16; 109*cdf0e10cSrcweir 110*cdf0e10cSrcweir //------------------------------------------------------------------------- 111*cdf0e10cSrcweir /** specifies whether or not the size of the item is set automatically by 112*cdf0e10cSrcweir the parent user interface element. 113*cdf0e10cSrcweir <p>This style is only valid if the item describes a toolbar or statusbar item.</p> 114*cdf0e10cSrcweir */ 115*cdf0e10cSrcweir const short AUTO_SIZE = 32; 116*cdf0e10cSrcweir 117*cdf0e10cSrcweir //------------------------------------------------------------------------- 118*cdf0e10cSrcweir /** determines whether the item unchecks neighbor entries which have also this style set. 119*cdf0e10cSrcweir <p>This style is only valid if the item describes a toolbar item.</p> 120*cdf0e10cSrcweir */ 121*cdf0e10cSrcweir const short RADIO_CHECK = 64; 122*cdf0e10cSrcweir 123*cdf0e10cSrcweir //------------------------------------------------------------------------- 124*cdf0e10cSrcweir /** specifies if an icon is placed on left side of the text, like an entry in a taskbar. 125*cdf0e10cSrcweir <p>This style is only valid if the item describes a toolbar item and visible if 126*cdf0e10cSrcweir style of the toolbar is set to symboltext.</p> 127*cdf0e10cSrcweir <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> 128*cdf0e10cSrcweir */ 129*cdf0e10cSrcweir const short ICON = 128; 130*cdf0e10cSrcweir 131*cdf0e10cSrcweir //------------------------------------------------------------------------- 132*cdf0e10cSrcweir /** specifies that the item supports a dropdown menu or toolbar for additional functions. 133*cdf0e10cSrcweir <p>This style is only valid if the item describes a toolbar item.</p> 134*cdf0e10cSrcweir */ 135*cdf0e10cSrcweir const short DROP_DOWN = 256; 136*cdf0e10cSrcweir 137*cdf0e10cSrcweir //------------------------------------------------------------------------- 138*cdf0e10cSrcweir /** indicates that the item continues to execute the command while you click and hold 139*cdf0e10cSrcweir the mouse button. 140*cdf0e10cSrcweir <p>This style is only valid if the item describes a toolbar item.</p> 141*cdf0e10cSrcweir */ 142*cdf0e10cSrcweir const short REPEAT = 512; 143*cdf0e10cSrcweir 144*cdf0e10cSrcweir //------------------------------------------------------------------------- 145*cdf0e10cSrcweir /** indicates that the item only supports a dropdown menu or toolbar for 146*cdf0e10cSrcweir additional functions. There is no function on the button itself. 147*cdf0e10cSrcweir <p>This style is only valid if the item describes a toolbar item.</p> 148*cdf0e10cSrcweir */ 149*cdf0e10cSrcweir const short DROPDOWN_ONLY = 1024; 150*cdf0e10cSrcweir /** indicates if icon, text or text+icon is displayed for the item. 151*cdf0e10cSrcweir <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> 152*cdf0e10cSrcweir */ 153*cdf0e10cSrcweir const short TEXT = 2048; 154*cdf0e10cSrcweir}; 155*cdf0e10cSrcweir 156*cdf0e10cSrcweir}; }; }; }; 157*cdf0e10cSrcweir 158*cdf0e10cSrcweir#endif 159