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 .
20 #ifndef __com_sun_star_datatransfer_XTransferable_idl__
21 #define __com_sun_star_datatransfer_XTransferable_idl__
23 #include
<com
/sun
/star
/datatransfer
/UnsupportedFlavorException.idl
>
24 #include
<com
/sun
/star
/datatransfer
/DataFlavor.idl
>
25 #include
<com
/sun
/star
/io
/IOException.idl
>
26 #include
<com
/sun
/star
/uno
/XInterface.idl
>
29 module com
{ module sun
{ module star
{ module datatransfer
{
31 /** Interface to be implemented by objects used to provide data for a data
34 @see com::sun::star::datatransfer::DataFlavor
37 published
interface XTransferable
: com
::sun
::star
::uno
::XInterface
39 /** Called by a data consumer to obtain data from the source in a specified
43 Describes the requested data format
46 The data in the specified DataFlavor.
48 @throws com::sun::star::io::IOException
49 if the data is no longer available in the requested flavor.
51 @throws com::sun::star::datatransfer::UnsupportedFlavorException
52 if the requested DataFlavor is not supported.
54 any getTransferData
( [in] DataFlavor aFlavor
)
55 raises
( UnsupportedFlavorException
, com
::sun
::star
::io
::IOException
);
57 /** Returns a sequence of supported DataFlavor.
60 The sequence of supported DataFlavor.
62 @see com::sun::star::datatransfer::DataFlavor
64 sequence
< DataFlavor
> getTransferDataFlavors
();
66 /** Checks if the data object supports the specified data flavor.
69 Describes the format that should be checked
72 A value of `TRUE` if the DataFlavor is supported by the transfer source.
73 <p>A value of `FALSE` if the DataFlavor is unsupported by the transfer source.</p>
75 <br/><br/><p><strong>Note: </strong>This method is only for analogy with the JAVA Clipboard interface. To
76 avoid many calls, the caller should instead use
77 com::sun::star::datatransfer::XTransferable::getTransferDataFlavors().
79 boolean isDataFlavorSupported
( [in] DataFlavor aFlavor
);
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */