1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23#ifndef __com_sun_star_awt_XImageProducer_idl__ 24#define __com_sun_star_awt_XImageProducer_idl__ 25 26#ifndef __com_sun_star_uno_XInterface_idl__ 27#include <com/sun/star/uno/XInterface.idl> 28#endif 29 30#ifndef __com_sun_star_awt_XImageConsumer_idl__ 31#include <com/sun/star/awt/XImageConsumer.idl> 32#endif 33 34 35//============================================================================= 36 37 module com { module sun { module star { module awt { 38 39//============================================================================= 40 41/** specifies a source for an image. 42 */ 43published interface XImageProducer: com::sun::star::uno::XInterface 44{ 45 //------------------------------------------------------------------------- 46 47 /** registers an image consumer with the image producer for accessing 48 the image data during a later reconstruction of the image. 49 50 <p>The image producer may, at its discretion, start delivering the 51 image data to the consumer using the <type>XImageConsumer</type> 52 interface immediately, or when the next available image reconstruction 53 is triggered by a call to the startProduction method.</p> 54 */ 55 [oneway] void addConsumer( [in] com::sun::star::awt::XImageConsumer xConsumer ); 56 57 //------------------------------------------------------------------------- 58 59 /** removes the given <type scope="com::sun::star::awt">XImageConsumer</type> 60 callback from the list of consumers currently registered to receive 61 image data. 62 63 <p>It is not considered an error to remove a consumer that is not 64 currently registered. The image producer should stop sending data 65 to this consumer as soon as it is feasible.</p> 66 */ 67 [oneway] void removeConsumer( [in] com::sun::star::awt::XImageConsumer xConsumer ); 68 69 //------------------------------------------------------------------------- 70 71 /** registers the given image consumer as a consumer 72 and starts an immediate reconstruction of the image data. 73 74 <p>The image data will then be delivered to this consumer and any other 75 consumer which may have already been registered with the producer. 76 This method differs from the addConsumer method in that a reproduction of 77 the image data should be triggered as soon as possible.</p> 78 */ 79 [oneway] void startProduction(); 80 81}; 82 83//============================================================================= 84 85}; }; }; }; 86 87#endif 88