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 #ifndef __com_sun_star_datatransfer_XDataFormatTranslator_idl__
22 #define __com_sun_star_datatransfer_XDataFormatTranslator_idl__
24 #include
<com
/sun
/star
/uno
/XInterface.idl
>
25 #include
<com
/sun
/star
/datatransfer
/DataFlavor.idl
>
27 module com
{ module sun
{ module star
{ module datatransfer
{
29 /** Interface to be implemented by objects used to translate a DataFlavor to
30 a system dependent data transfer type and vice versa.
32 <p>Different platforms use different types to describe data formats available
33 during data exchange operations like clipboard or drag&drop. Windows for instance
34 uses integer values to describe an available clipboard or drag&drop format, Unix
35 X11 uses so called Atoms etc.</p>
38 published
interface XDataFormatTranslator
: com
::sun
::star
::uno
::XInterface
40 /** Converts a DataFlavor to system dependent data type.
43 Describes the format for which a system dependent data types is requested.
46 A system dependent data transfer type for the given DataFlavor
47 if there is one available.
48 <p>If the is no system dependent data type for a given DataFlavor
49 the returned any is empty.</p>
51 any getSystemDataTypeFromDataFlavor
( [in] DataFlavor aDataFlavor
);
53 /** Converts a system dependent data type to a DataFlavor.
56 A system dependent data type. If aSysDataType is empty so is the returned DataFlavor.
59 A DataFlavor for the given system dependent data transfer type.
60 <p>If there is no appropriate mapping for a system dependent data type, the returned DataFlavor will be empty.</p>
62 DataFlavor getDataFlavorFromSystemDataType
( [in] any aSysDataType
);
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */