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
28#ifndef __com_sun_star_datatransfer_XTransferDataInfo_idl__
29#define __com_sun_star_datatransfer_XTransferDataInfo_idl__
30
31#ifndef __com_sun_star_datatransfer_DataFlavor_idl__
32#include <com/sun/star/datatransfer/DataFlavor.idl>
33#endif
34
35#ifndef __com_sun_star_uno_XInterface_idl__
36#include <com/sun/star/uno/XInterface.idl>
37#endif
38
39//=============================================================================
40
41module com { module sun { module star { module datatransfer {
42
43//=============================================================================
44/** This interface provides direct access to the data in all data flavors. It can
45    be used by the clipboard implementation to optimize data transport on
46	flush operations.
47
48    @see com::sun::star::datatransfer::XTransferable
49*/
50
51published interface XTransferDataAccess: com::sun::star::uno::XInterface
52{
53	//-------------------------------------------------------------------------
54	/** To query for the summarized data size in bytes of a sequence of <type>DataFlavor</type>.
55
56		@param aFlavorList
57		A squence of requested <type>DataFlavor</type>.
58		<p>An unsupported <type>DataFlavor</type> will be ignored.</p>
59
60		@returns
61		The number of bytes of the transfer data in the specified sequence of <type>DataFlavor</type>.
62	*/
63	hyper queryDataSize( [in] sequence < DataFlavor > aFlavorList );
64
65	//-------------------------------------------------------------------------
66	/** To get all the data of a sequence of <type>DataFlavor</type>.
67
68		@param aFlavorList
69		The sequence of requested <type>DataFlavor</type>.
70		<p>An unsupported <type>DataFlavor</type> will be ignored.</p>
71
72		@returns
73		The data in the requested <type>DataFlavor</type>.
74		<p>For unsupported <type>DataFlavor</type> an
75		empty any will be returned.</p>
76 	*/
77	sequence < any > getData( [in] sequence < DataFlavor > aFlavorList );
78};
79
80//=============================================================================
81
82}; }; }; };
83
84#endif
85