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_ItemDescriptor_idl__ 29*cdf0e10cSrcweir#define __com_sun_star_ui_ItemDescriptor_idl__ 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir#ifndef __com_sun_star_container_XIndexAccess_idl__ 32*cdf0e10cSrcweir#include <com/sun/star/container/XIndexAccess.idl> 33*cdf0e10cSrcweir#endif 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir//============================================================================= 36*cdf0e10cSrcweir 37*cdf0e10cSrcweirmodule com { module sun { module star { module ui { 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir/** 40*cdf0e10cSrcweir describes a user interface item that is part of a user interface 41*cdf0e10cSrcweir element. 42*cdf0e10cSrcweir <p>Common examples for such elements are: 43*cdf0e10cSrcweir <ul> 44*cdf0e10cSrcweir <li>menus</li> 45*cdf0e10cSrcweir <li>tool bars</li> 46*cdf0e10cSrcweir <li>status bars</li> 47*cdf0e10cSrcweir </ul> 48*cdf0e10cSrcweir No assumption is made about any graphical representation: 49*cdf0e10cSrcweir You could have a menu or a toolbox working with the same item descriptor. 50*cdf0e10cSrcweir </p> 51*cdf0e10cSrcweir 52*cdf0e10cSrcweir @since OOo 2.0 53*cdf0e10cSrcweir*/ 54*cdf0e10cSrcweirservice ItemDescriptor 55*cdf0e10cSrcweir{ 56*cdf0e10cSrcweir /** specifies which type this item descriptor belongs to.<p>See constant definition 57*cdf0e10cSrcweir <type>ItemType</type>.</p> 58*cdf0e10cSrcweir */ 59*cdf0e10cSrcweir [property] short Type; 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir /** the text of the user interface item. 62*cdf0e10cSrcweir */ 63*cdf0e10cSrcweir [property] string Label; 64*cdf0e10cSrcweir 65*cdf0e10cSrcweir /** contains the command URL which specifies which action should be accomplished. 66*cdf0e10cSrcweir */ 67*cdf0e10cSrcweir [property] string CommandURL; 68*cdf0e10cSrcweir 69*cdf0e10cSrcweir /** contains the a URL that points to a help text. 70*cdf0e10cSrcweir */ 71*cdf0e10cSrcweir [property] string HelpURL; 72*cdf0e10cSrcweir 73*cdf0e10cSrcweir /** different styles which influence the appearance of the item and its behavior. 74*cdf0e10cSrcweir <p>This property is only valid if the item describes a toolbar or statusbar 75*cdf0e10cSrcweir item. See <type>ItemStyle</type> for more information about possible styles.</p> 76*cdf0e10cSrcweir */ 77*cdf0e10cSrcweir [optional, property] short Style; 78*cdf0e10cSrcweir 79*cdf0e10cSrcweir /** specifies the pixel distance by which the text of the item is shifted on the x-axis. 80*cdf0e10cSrcweir <p>This property is only valid if the item describes a statusbar item.</p> 81*cdf0e10cSrcweir */ 82*cdf0e10cSrcweir [optional, property] short Offset; 83*cdf0e10cSrcweir 84*cdf0e10cSrcweir /** specifies an optional sub container. 85*cdf0e10cSrcweir <p>This property is valid for menus only. It can be used to define sub menus.</p> 86*cdf0e10cSrcweir */ 87*cdf0e10cSrcweir [optional, property] com::sun::star::container::XIndexAccess ItemDescriptorContainer; 88*cdf0e10cSrcweir 89*cdf0e10cSrcweir /** specifies if this item is visible or not. 90*cdf0e10cSrcweir <p>This property is only valid if the item describes a toolbar or statusbar item.</p> 91*cdf0e10cSrcweir */ 92*cdf0e10cSrcweir [optional, property] boolean IsVisible; 93*cdf0e10cSrcweir 94*cdf0e10cSrcweir /** specifies a pixel width for this item inside the user interface element. 95*cdf0e10cSrcweir <p>This property is only valid if the item describes a toolbar or statusbar item.</p> 96*cdf0e10cSrcweir */ 97*cdf0e10cSrcweir [optional, property] short Width; 98*cdf0e10cSrcweir}; 99*cdf0e10cSrcweir 100*cdf0e10cSrcweir}; }; }; }; 101*cdf0e10cSrcweir 102*cdf0e10cSrcweir#endif 103