Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / awt / UnoControlImageControlModel.idl
blob764f057f6c8e24f34722ec97157e4998081eb24c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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.
45 <pre>
46 0: No border
47 1: 3D border
48 2: simple border
49 </pre>
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>
59 @since OOo 2.0
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.
80 @see Graphic
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
88 following way:
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>
94 </ul></p>
96 @since OOo 2.1
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
107 control.
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>
117 @since OOo 3.1
119 [property, optional] short ScaleMode;
122 /** specifies that the control can be reached with the TAB key.
124 @since OOo 1.1.2
126 [optional, property] boolean Tabstop;
131 }; }; }; };
133 #endif
135 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */