19#include <dlgedclip.hxx>
20#include <osl/diagnose.h>
33: m_aCopyElements(_rCopyElements)
43 OSL_ENSURE(
static_cast<SotClipboardFormatId>(-1) != s_nFormat,
"OReportExchange::getDescriptorFormatId: bad exchange id!");
70 datatransfer::DataFlavor aFlavor;
73 OSL_ENSURE(bSuccess,
"OReportExchange::extractCopies: invalid data format (no flavor)!");
78 bSuccess = aDescriptor >>= aCopies;
79 OSL_ENSURE(bSuccess,
"OReportExchange::extractCopies: invalid clipboard format!");
static bool GetFormatDataFlavor(SotClipboardFormatId nFormat, css::datatransfer::DataFlavor &rFlavor)
static SotClipboardFormatId GetFormat(const css::datatransfer::DataFlavor &rFlavor)
static SotClipboardFormatId RegisterFormatName(const OUString &rName)
css::uno::Any GetAny(SotClipboardFormatId nFormat, const OUString &rDestDoc) const
bool HasFormat(SotClipboardFormatId nFormat) const
bool SetAny(const css::uno::Any &rAny)
void AddFormat(SotClipboardFormatId nFormat)
OReportExchange(const TSectionElements &_rCopyElements)
Constructs a new exchange object with section elements.
virtual void AddSupportedFormats() override
TSectionElements m_aCopyElements
css::uno::Sequence< css::beans::NamedValue > TSectionElements
static SotClipboardFormatId getDescriptorFormatId()
returns the format id.
static bool canExtract(const DataFlavorExVector &_rFlavors)
checks whether or not a descriptor can be extracted from the data flavor vector given
virtual bool GetData(const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override
static TSectionElements extractCopies(const TransferableDataHelper &_rData)
extract the section elements
SOT_DLLPUBLIC bool IsFormatSupported(const DataFlavorExVector &rDataFlavorExVector, SotClipboardFormatId nId)
::std::vector< DataFlavorEx > DataFlavorExVector