1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#ifndef __com_sun_star_report_XImageControl_idl__
28#define __com_sun_star_report_XImageControl_idl__
29
30#ifndef __com_sun_star_report_XReportControlModel_idl__
31#include <com/sun/star/report/XReportControlModel.idl>
32#endif
33#ifndef __com_sun_star_form_XImageProducerSupplier_idl__
34#include <com/sun/star/form/XImageProducerSupplier.idl>
35#endif
36
37//=============================================================================
38
39 module com {  module sun {  module star {  module report {
40
41//=============================================================================
42published interface XImageControl
43{
44    interface XReportControlModel;
45
46    /** supplies the caller with an <type scope="com::sun::star::awt">XImageProducer</type>.
47
48        <p>Other components can register as <type scope="com::sun::star::awt">XImageConsumer</type>
49        at this producer. Then they will be notified of any change in the image to be displayed.</p>
50
51        <p>Whenever the <member scope="com::sun::star::awt">UnoControlImageControlModel::ImageURL</member>
52        property is changed, the model loads the specified image, and sets it as image source
53        at its <type scope="com::sun::star::awt">XImageProducer</type>. Then, all
54        <type scope="com::sun::star::awt">XImageConsumer</type>s are notified and supplied with
55        the binary data of the image.<br/>
56        Usually, controls acting for an <type>ImageControl</type> model are consumers, and use the
57        data stream to display the image</p>
58     */
59    interface com::sun::star::form::XImageProducerSupplier;
60
61    /** specifies an URL to an image to use for the control.
62     */
63    [attribute,bound] string ImageURL;
64
65    /** defines how to scale the image
66
67        <p>If this property is present, it supersedes the <member>ScaleImage</member> property.</p>
68
69        <p>The value of this property is one of the <type scope="com::sun::star::awt">ImageScaleMode</type> constants.</p>
70
71        @since OOo 3.2
72    */
73    [attribute,bound] short ScaleMode
74    {
75        set raises (com::sun::star::lang::IllegalArgumentException);
76    };
77
78    /** Specifies that the IRI given in the data field should be preserved, otherwise the content will be inserted in the resulting report document.
79        If the data field contains something different as string then this attribute will be ignored.
80    */
81    [attribute,bound] boolean PreserveIRI;
82};
83
84published service ImageControl : XImageControl;
85//=============================================================================
86
87}; }; }; };
88
89/*=============================================================================
90
91=============================================================================*/
92#endif
93