1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __com_sun_star_awt_UnoControlImageControlModel_idl__
20 #define __com_sun_star_awt_UnoControlImageControlModel_idl__
22 #include
<com
/sun
/star
/awt
/UnoControlModel.idl
>
23 #include
<com
/sun
/star
/util
/Color.idl
>
24 #include
<com
/sun
/star
/graphic
/XGraphic.idl
>
28 module com
{ module sun
{ module star
{ module awt
{
31 /** specifies the standard model of an UnoControlImageControl.
33 published service UnoControlImageControlModel
35 service com
::sun
::star
::awt
::UnoControlModel
;
38 /** specifies the background color (RGB) of the control.
40 [property
] com
::sun
::star
::util
::Color BackgroundColor
;
43 /** specifies the border style of the control.
51 [property
] short Border
;
54 /** specifies the color of the border, if present
56 <p>Not every border style (see #Border) may support coloring.
57 For instance, usually a border with 3D effect will ignore the BorderColor setting.</p>
61 [optional, property
] long BorderColor
;
64 /** determines whether the control is enabled or disabled.
66 [property
] boolean Enabled
;
69 /** specifies the help text of the control.
71 [property
] string HelpText
;
74 /** specifies the help URL of the control.
76 [property
] string HelpURL
;
79 /** specifies an URL to an image to use for the control.
82 [property
] string ImageURL
;
85 /** specifies a graphic to be displayed on the control
87 <p>If this property is present, it interacts with the #ImageURL in the
89 <ul><li>If #ImageURL is set, #Graphic will be reset
90 to an object as loaded from the given image URL, or `NULL` if #ImageURL
91 does not point to a valid image file.</li>
92 <li>If #Graphic is set, #ImageURL will be reset
93 to an empty string.</li>
98 [optional, property
, transient
] com
::sun
::star
::graphic
::XGraphic Graphic
;
101 /** specifies that the control will be printed with the document.
103 [property
] boolean Printable
;
106 /** specifies if the image is automatically scaled to the size of the
109 [property
] boolean ScaleImage
;
111 /** defines how to scale the image
113 <p>If this property is present, it supersedes the #ScaleImage property.</p>
115 <p>The value of this property is one of the ImageScaleMode constants.</p>
119 [property
, optional] short ScaleMode
;
122 /** specifies that the control can be reached with the TAB key.
126 [optional, property
] boolean Tabstop
;
135 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */