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_report_XImageControl_idl__
20 #define __com_sun_star_report_XImageControl_idl__
22 #include
<com
/sun
/star
/report
/XReportControlModel.idl
>
23 #include
<com
/sun
/star
/form
/XImageProducerSupplier.idl
>
26 module com
{ module sun
{ module star
{ module report
{
28 interface XImageControl
30 interface XReportControlModel
;
32 /** supplies the caller with an com::sun::star::awt::XImageProducer.
34 <p>Other components can register as com::sun::star::awt::XImageConsumer
35 at this producer. Then they will be notified of any change in the image to be displayed.</p>
37 <p>Whenever the com::sun::star::awt::UnoControlImageControlModel::ImageURL
38 property is changed, the model loads the specified image, and sets it as image source
39 at its com::sun::star::awt::XImageProducer. Then, all
40 com::sun::star::awt::XImageConsumers are notified and supplied with
41 the binary data of the image.<br/>
42 Usually, controls acting for an ImageControl model are consumers, and use the
43 data stream to display the image</p>
45 interface com
::sun
::star
::form
::XImageProducerSupplier
;
47 /** specifies an URL to an image to use for the control.
49 [attribute
,bound
] string ImageURL
;
51 /** defines how to scale the image
53 <p>If this property is present, it supersedes the ScaleImage property.</p>
55 <p>The value of this property is one of the com::sun::star::awt::ImageScaleMode constants.</p>
59 [attribute
,bound
] short ScaleMode
61 set raises
(com
::sun
::star
::lang
::IllegalArgumentException
);
64 /** Specifies that the IRI given in the data field should be preserved, otherwise the content will be inserted in the resulting report document.
65 If the data field contains something different as string then this attribute will be ignored.
67 [attribute
,bound
] boolean PreserveIRI
;
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */