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 .
21 module com
{ module sun
{ module star
{ module report
{
23 interface XImageControl
25 interface XReportControlModel
;
27 /** supplies the caller with a com::sun::star::awt::XImageProducer.
29 <p>Other components can register as com::sun::star::awt::XImageConsumer
30 at this producer. Then they will be notified of any change in the image to be displayed.</p>
32 <p>Whenever the com::sun::star::awt::UnoControlImageControlModel::ImageURL
33 property is changed, the model loads the specified image, and sets it as image source
34 at its com::sun::star::awt::XImageProducer. Then, all
35 com::sun::star::awt::XImageConsumers are notified and supplied with
36 the binary data of the image.<br/>
37 Usually, controls acting for an ImageControl model are consumers, and use the
38 data stream to display the image</p>
40 interface com
::sun
::star
::form
::XImageProducerSupplier
;
42 /** specifies a URL to an image to use for the control.
44 [attribute
,bound
] string ImageURL
;
46 /** defines how to scale the image
48 <p>If this property is present, it supersedes the ScaleImage property.</p>
50 <p>The value of this property is one of the com::sun::star::awt::ImageScaleMode constants.</p>
54 [attribute
,bound
] short ScaleMode
56 set raises
(com
::sun
::star
::lang
::IllegalArgumentException
);
59 /** Specifies that the IRI given in the data field should be preserved, otherwise the content will be inserted in the resulting report document.
60 If the data field contains something different as string then this attribute will be ignored.
62 [attribute
,bound
] boolean PreserveIRI
;
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */