LibreOffice Module desktop (master)  1
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
LOKTransferable Class Reference

Represents the contents of LOKClipboard. More...

#include <lokclipboard.hxx>

Inheritance diagram for LOKTransferable:
[legend]
Collaboration diagram for LOKTransferable:
[legend]

Public Member Functions

 LOKTransferable ()
 Use to ensure we have some dummy content on the clipboard to allow a 1st 'paste'. More...
 
 LOKTransferable (size_t nInCount, const char **pInMimeTypes, const size_t *pInSizes, const char **pInStreams)
 
 LOKTransferable (const OUString &sMimeType, const css::uno::Sequence< sal_Int8 > &aSequence)
 
css::uno::Any SAL_CALL getTransferData (const css::datatransfer::DataFlavor &rFlavor) override
 
css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors () override
 
sal_Bool SAL_CALL isDataFlavorSupported (const css::datatransfer::DataFlavor &rFlavor) override
 

Static Private Member Functions

static void initFlavourFromMime (css::datatransfer::DataFlavor &rFlavor, OUString aMimeType)
 

Private Attributes

css::uno::Sequence< css::datatransfer::DataFlavor > m_aFlavors
 
std::vector< css::uno::Any > m_aContent
 

Detailed Description

Represents the contents of LOKClipboard.

Definition at line 70 of file lokclipboard.hxx.

Constructor & Destructor Documentation

LOKTransferable::LOKTransferable ( )

Use to ensure we have some dummy content on the clipboard to allow a 1st 'paste'.

Definition at line 156 of file lokclipboard.cxx.

References initFlavourFromMime(), m_aContent, and m_aFlavors.

LOKTransferable::LOKTransferable ( size_t  nInCount,
const char **  pInMimeTypes,
const size_t *  pInSizes,
const char **  pInStreams 
)

Definition at line 183 of file lokclipboard.cxx.

References i, initFlavourFromMime(), m_aContent, and m_aFlavors.

LOKTransferable::LOKTransferable ( const OUString &  sMimeType,
const css::uno::Sequence< sal_Int8 > &  aSequence 
)

Definition at line 137 of file lokclipboard.cxx.

References initFlavourFromMime(), m_aContent, and m_aFlavors.

Member Function Documentation

uno::Any SAL_CALL LOKTransferable::getTransferData ( const css::datatransfer::DataFlavor &  rFlavor)
override

Definition at line 202 of file lokclipboard.cxx.

References i, m_aContent, m_aFlavors, and SAL_WARN.

uno::Sequence< datatransfer::DataFlavor > SAL_CALL LOKTransferable::getTransferDataFlavors ( )
override

Definition at line 217 of file lokclipboard.cxx.

References m_aFlavors.

void LOKTransferable::initFlavourFromMime ( css::datatransfer::DataFlavor &  rFlavor,
OUString  aMimeType 
)
staticprivate

Definition at line 167 of file lokclipboard.cxx.

References cppu::UnoType< class >::get().

Referenced by LOKTransferable().

sal_Bool SAL_CALL LOKTransferable::isDataFlavorSupported ( const css::datatransfer::DataFlavor &  rFlavor)
override

Definition at line 222 of file lokclipboard.cxx.

References i, and m_aFlavors.

Member Data Documentation

std::vector<css::uno::Any> LOKTransferable::m_aContent
private

Definition at line 73 of file lokclipboard.hxx.

Referenced by getTransferData(), and LOKTransferable().

css::uno::Sequence<css::datatransfer::DataFlavor> LOKTransferable::m_aFlavors
private

The documentation for this class was generated from the following files: