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#ifndef __com_sun_star_awt_UnoControlButtonModel_idl__ 28*cdf0e10cSrcweir#define __com_sun_star_awt_UnoControlButtonModel_idl__ 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir#ifndef __com_sun_star_awt_FontDescriptor_idl__ 31*cdf0e10cSrcweir#include <com/sun/star/awt/FontDescriptor.idl> 32*cdf0e10cSrcweir#endif 33*cdf0e10cSrcweir#ifndef __com_sun_star_awt_UnoControlModel_idl__ 34*cdf0e10cSrcweir#include <com/sun/star/awt/UnoControlModel.idl> 35*cdf0e10cSrcweir#endif 36*cdf0e10cSrcweir#ifndef __com_sun_star_style_VerticalAlignment_idl__ 37*cdf0e10cSrcweir#include <com/sun/star/style/VerticalAlignment.idl> 38*cdf0e10cSrcweir#endif 39*cdf0e10cSrcweir#ifndef com_sun_star_graphic_XGraphic_idl 40*cdf0e10cSrcweir#include <com/sun/star/graphic/XGraphic.idl> 41*cdf0e10cSrcweir#endif 42*cdf0e10cSrcweir#ifndef __com_sun_star_util_Color_idl__ 43*cdf0e10cSrcweir#include <com/sun/star/util/Color.idl> 44*cdf0e10cSrcweir#endif 45*cdf0e10cSrcweir 46*cdf0e10cSrcweir 47*cdf0e10cSrcweir//============================================================================= 48*cdf0e10cSrcweir 49*cdf0e10cSrcweir module com { module sun { module star { module awt { 50*cdf0e10cSrcweir 51*cdf0e10cSrcweir//============================================================================= 52*cdf0e10cSrcweir 53*cdf0e10cSrcweir/** specifies the standard model of an <type>UnoControlButton</type>. 54*cdf0e10cSrcweir */ 55*cdf0e10cSrcweirpublished service UnoControlButtonModel 56*cdf0e10cSrcweir{ 57*cdf0e10cSrcweir service com::sun::star::awt::UnoControlModel; 58*cdf0e10cSrcweir 59*cdf0e10cSrcweir //------------------------------------------------------------------------- 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir /** specifies the horizontal alignment of the text in the control. 62*cdf0e10cSrcweir 63*cdf0e10cSrcweir <pre> 64*cdf0e10cSrcweir 0: left 65*cdf0e10cSrcweir 1: center 66*cdf0e10cSrcweir 2: right 67*cdf0e10cSrcweir </pre> 68*cdf0e10cSrcweir */ 69*cdf0e10cSrcweir [optional, property] short Align; 70*cdf0e10cSrcweir 71*cdf0e10cSrcweir //------------------------------------------------------------------------- 72*cdf0e10cSrcweir 73*cdf0e10cSrcweir /** specifies the background color (RGB) of the control. 74*cdf0e10cSrcweir */ 75*cdf0e10cSrcweir [property] com::sun::star::util::Color BackgroundColor; 76*cdf0e10cSrcweir 77*cdf0e10cSrcweir //------------------------------------------------------------------------- 78*cdf0e10cSrcweir 79*cdf0e10cSrcweir /** specifies that the button is the default button on the document. 80*cdf0e10cSrcweir */ 81*cdf0e10cSrcweir [property] boolean DefaultButton; 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir //------------------------------------------------------------------------- 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir /** determines whether the control is enabled or disabled. 86*cdf0e10cSrcweir */ 87*cdf0e10cSrcweir [property] boolean Enabled; 88*cdf0e10cSrcweir 89*cdf0e10cSrcweir //------------------------------------------------------------------------- 90*cdf0e10cSrcweir 91*cdf0e10cSrcweir /** specifies whether the button control should grab the focus when clicked. 92*cdf0e10cSrcweir 93*cdf0e10cSrcweir <p>If set to <TRUE/> (which is the default), the button control automatically grabs the 94*cdf0e10cSrcweir focus when the user clicks onto it with the mouse.<br/> 95*cdf0e10cSrcweir If set to <FALSE/>, the focus is preserved when the user operates the button control with 96*cdf0e10cSrcweir the mouse.</p> 97*cdf0e10cSrcweir 98*cdf0e10cSrcweir @since OOo 2.0 99*cdf0e10cSrcweir */ 100*cdf0e10cSrcweir [optional, property] boolean FocusOnClick; 101*cdf0e10cSrcweir 102*cdf0e10cSrcweir //------------------------------------------------------------------------- 103*cdf0e10cSrcweir 104*cdf0e10cSrcweir /** specifies the font attributes of the text in the control. 105*cdf0e10cSrcweir */ 106*cdf0e10cSrcweir [property] com::sun::star::awt::FontDescriptor FontDescriptor; 107*cdf0e10cSrcweir 108*cdf0e10cSrcweir //------------------------------------------------------------------------- 109*cdf0e10cSrcweir 110*cdf0e10cSrcweir /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> 111*cdf0e10cSrcweir value of the text in the control. 112*cdf0e10cSrcweir */ 113*cdf0e10cSrcweir [property] short FontEmphasisMark; 114*cdf0e10cSrcweir 115*cdf0e10cSrcweir //------------------------------------------------------------------------- 116*cdf0e10cSrcweir 117*cdf0e10cSrcweir /** specifies the <type scope="com::sun::star::text">FontRelief</type> 118*cdf0e10cSrcweir value of the text in the control. 119*cdf0e10cSrcweir */ 120*cdf0e10cSrcweir [property] short FontRelief; 121*cdf0e10cSrcweir 122*cdf0e10cSrcweir //------------------------------------------------------------------------- 123*cdf0e10cSrcweir 124*cdf0e10cSrcweir /** specifies the help text of the control. 125*cdf0e10cSrcweir */ 126*cdf0e10cSrcweir [property] string HelpText; 127*cdf0e10cSrcweir 128*cdf0e10cSrcweir //------------------------------------------------------------------------- 129*cdf0e10cSrcweir 130*cdf0e10cSrcweir /** specifies the help URL of the control. 131*cdf0e10cSrcweir */ 132*cdf0e10cSrcweir [property] string HelpURL; 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir //------------------------------------------------------------------------- 135*cdf0e10cSrcweir 136*cdf0e10cSrcweir /** specifies the alignment of the image inside the button as 137*cdf0e10cSrcweir <type>ImageAlign</type> value. 138*cdf0e10cSrcweir */ 139*cdf0e10cSrcweir [property] short ImageAlign; 140*cdf0e10cSrcweir 141*cdf0e10cSrcweir //------------------------------------------------------------------------- 142*cdf0e10cSrcweir 143*cdf0e10cSrcweir /** specifies the position of the image, if any, relative to the text, if any 144*cdf0e10cSrcweir 145*cdf0e10cSrcweir <p>Valid values of this property are specified with <type>ImagePosition</type>.</p> 146*cdf0e10cSrcweir 147*cdf0e10cSrcweir <p>If this property is present, it supersedes the <member>ImageAlign</member> property - setting 148*cdf0e10cSrcweir one of both properties sets the other one to the best possible match.</p> 149*cdf0e10cSrcweir */ 150*cdf0e10cSrcweir [optional, property] short ImagePosition; 151*cdf0e10cSrcweir 152*cdf0e10cSrcweir //------------------------------------------------------------------------- 153*cdf0e10cSrcweir 154*cdf0e10cSrcweir /** specifies an URL to an image to use for the button. 155*cdf0e10cSrcweir @see Graphic 156*cdf0e10cSrcweir */ 157*cdf0e10cSrcweir [property] string ImageURL; 158*cdf0e10cSrcweir 159*cdf0e10cSrcweir //------------------------------------------------------------------------- 160*cdf0e10cSrcweir 161*cdf0e10cSrcweir /** specifies a graphic to be displayed at the button 162*cdf0e10cSrcweir 163*cdf0e10cSrcweir <p>If this property is present, it interacts with the <member>ImageURL</member>in the 164*cdf0e10cSrcweir following way: 165*cdf0e10cSrcweir <ul><li>If <member>ImageURL</member> is set, <member>Graphic</member> will be reset 166*cdf0e10cSrcweir to an object as loaded from the given image URL, or <NULL/> if <member>ImageURL</member> 167*cdf0e10cSrcweir does not point to a valid image file.</li> 168*cdf0e10cSrcweir <li>If <member>Graphic</member> is set, <member>ImageURL</member> will be reset 169*cdf0e10cSrcweir to an empty string.</li> 170*cdf0e10cSrcweir </ul></p> 171*cdf0e10cSrcweir 172*cdf0e10cSrcweir @since OOo 2.1 173*cdf0e10cSrcweir */ 174*cdf0e10cSrcweir [optional, property, transient] com::sun::star::graphic::XGraphic Graphic; 175*cdf0e10cSrcweir 176*cdf0e10cSrcweir //------------------------------------------------------------------------- 177*cdf0e10cSrcweir 178*cdf0e10cSrcweir /** specifies the label of the control. 179*cdf0e10cSrcweir */ 180*cdf0e10cSrcweir [property] string Label; 181*cdf0e10cSrcweir 182*cdf0e10cSrcweir //------------------------------------------------------------------------- 183*cdf0e10cSrcweir 184*cdf0e10cSrcweir /** specifies that the text may be displayed on more than one line. 185*cdf0e10cSrcweir 186*cdf0e10cSrcweir @since OOo 2.0 187*cdf0e10cSrcweir */ 188*cdf0e10cSrcweir [optional, property] boolean MultiLine; 189*cdf0e10cSrcweir 190*cdf0e10cSrcweir //------------------------------------------------------------------------- 191*cdf0e10cSrcweir 192*cdf0e10cSrcweir /** specifies that the control will be printed with the document. 193*cdf0e10cSrcweir */ 194*cdf0e10cSrcweir [property] boolean Printable; 195*cdf0e10cSrcweir 196*cdf0e10cSrcweir //------------------------------------------------------------------------- 197*cdf0e10cSrcweir 198*cdf0e10cSrcweir /** specifies the default action of the button as <type>PushButtonType</type> value. 199*cdf0e10cSrcweir */ 200*cdf0e10cSrcweir [property] short PushButtonType; 201*cdf0e10cSrcweir 202*cdf0e10cSrcweir //------------------------------------------------------------------------- 203*cdf0e10cSrcweir 204*cdf0e10cSrcweir /** specifies whether the control should show repeating behaviour. 205*cdf0e10cSrcweir 206*cdf0e10cSrcweir <p>Normally, when you click a button with the mouse, you need to 207*cdf0e10cSrcweir release the mouse button, and press it again. With this property 208*cdf0e10cSrcweir set to <TRUE/>, the button is repeatedly pressed while you hold 209*cdf0e10cSrcweir down the mouse button.</p> 210*cdf0e10cSrcweir 211*cdf0e10cSrcweir @since OOo 2.0 212*cdf0e10cSrcweir */ 213*cdf0e10cSrcweir [optional, property] boolean Repeat; 214*cdf0e10cSrcweir 215*cdf0e10cSrcweir //------------------------------------------------------------------------- 216*cdf0e10cSrcweir 217*cdf0e10cSrcweir /** specifies the mouse repeat delay, in milliseconds. 218*cdf0e10cSrcweir 219*cdf0e10cSrcweir <p>When the user presses a mouse in a control area where this triggers 220*cdf0e10cSrcweir an action (such as pressing the button), then usual control implementations 221*cdf0e10cSrcweir allow to repeatedly trigger this action, without the need to release the 222*cdf0e10cSrcweir mouse button and to press it again. The delay between two such triggers 223*cdf0e10cSrcweir is specified with this property.</p> 224*cdf0e10cSrcweir 225*cdf0e10cSrcweir @since OOo 2.0 226*cdf0e10cSrcweir */ 227*cdf0e10cSrcweir [optional, property] long RepeatDelay; 228*cdf0e10cSrcweir 229*cdf0e10cSrcweir //------------------------------------------------------------------------- 230*cdf0e10cSrcweir 231*cdf0e10cSrcweir /** specifies the state of the control. 232*cdf0e10cSrcweir */ 233*cdf0e10cSrcweir [property] short State; 234*cdf0e10cSrcweir 235*cdf0e10cSrcweir //------------------------------------------------------------------------- 236*cdf0e10cSrcweir 237*cdf0e10cSrcweir /** specifies that the control can be reached with the TAB key. 238*cdf0e10cSrcweir */ 239*cdf0e10cSrcweir [property] boolean Tabstop; 240*cdf0e10cSrcweir 241*cdf0e10cSrcweir //------------------------------------------------------------------------- 242*cdf0e10cSrcweir 243*cdf0e10cSrcweir /** specifies the text color (RGB) of the control. 244*cdf0e10cSrcweir */ 245*cdf0e10cSrcweir [property] com::sun::star::util::Color TextColor; 246*cdf0e10cSrcweir 247*cdf0e10cSrcweir //------------------------------------------------------------------------- 248*cdf0e10cSrcweir 249*cdf0e10cSrcweir /** specifies the text line color (RGB) of the control. 250*cdf0e10cSrcweir */ 251*cdf0e10cSrcweir [property] com::sun::star::util::Color TextLineColor; 252*cdf0e10cSrcweir 253*cdf0e10cSrcweir //------------------------------------------------------------------------- 254*cdf0e10cSrcweir 255*cdf0e10cSrcweir /** specifies whether the button should toggle on a single operation. 256*cdf0e10cSrcweir 257*cdf0e10cSrcweir <p>If this property is set to <TRUE/>, a single operation of the button control (pressing space 258*cdf0e10cSrcweir while it is focused, or clicking onto it) toggles it between a <em>pressed</em> and a <em>not 259*cdf0e10cSrcweir pressed</em> state.</p> 260*cdf0e10cSrcweir 261*cdf0e10cSrcweir <p>The default for this property is <FALSE/>, which means the button behaves like a usual 262*cdf0e10cSrcweir push button.</p> 263*cdf0e10cSrcweir 264*cdf0e10cSrcweir @since OOo 2.0 265*cdf0e10cSrcweir */ 266*cdf0e10cSrcweir [optional, property] boolean Toggle; 267*cdf0e10cSrcweir 268*cdf0e10cSrcweir //------------------------------------------------------------------------- 269*cdf0e10cSrcweir 270*cdf0e10cSrcweir /** specifies the vertical alignment of the text in the control. 271*cdf0e10cSrcweir 272*cdf0e10cSrcweir @since OOo 2.0 273*cdf0e10cSrcweir */ 274*cdf0e10cSrcweir [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; 275*cdf0e10cSrcweir 276*cdf0e10cSrcweir}; 277*cdf0e10cSrcweir 278*cdf0e10cSrcweir//============================================================================= 279*cdf0e10cSrcweir 280*cdf0e10cSrcweir}; }; }; }; 281*cdf0e10cSrcweir 282*cdf0e10cSrcweir#endif 283