22#include <com/sun/star/datatransfer/UnsupportedFlavorException.hpp>
44 if ( nT == SotClipboardFormatId::STRING )
48 else if ( ( nT == SotClipboardFormatId::RTF ) || ( nT == SotClipboardFormatId::RICHTEXT ) || ( nT == SotClipboardFormatId::EDITENGINE_ODF_TEXT_FLAT ) )
55 sal_Int32 nLen = pStream->
TellEnd();
56 if (nLen < 0) { abort(); }
58 aAny <<= uno::Sequence< sal_Int8 >(
static_cast< const sal_Int8*
>(pStream->
GetData()), pStream->
TellEnd() );
62 datatransfer::UnsupportedFlavorException aException;
71 uno::Sequence< datatransfer::DataFlavor > aDataFlavors(4);
82 bool bSupported =
false;
85 if ( ( nT == SotClipboardFormatId::STRING ) || ( nT == SotClipboardFormatId::RTF ) || ( nT == SotClipboardFormatId::RICHTEXT )
86 || ( nT == SotClipboardFormatId::EDITENGINE_ODF_TEXT_FLAT ) )
css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors() override
SvMemoryStream & GetODFStream()
SvMemoryStream & GetRTFStream()
virtual ~EditDataObject() override
css::uno::Any SAL_CALL getTransferData(const css::datatransfer::DataFlavor &aFlavor) override
sal_Bool SAL_CALL isDataFlavorSupported(const css::datatransfer::DataFlavor &aFlavor) override
static bool GetFormatDataFlavor(SotClipboardFormatId nFormat, css::datatransfer::DataFlavor &rFlavor)
static SotClipboardFormatId GetFormat(const css::datatransfer::DataFlavor &rFlavor)
virtual sal_uInt64 TellEnd() override