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 69 of file lokclipboard.hxx.

Constructor & Destructor Documentation

◆ LOKTransferable() [1/3]

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() [2/3]

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() [3/3]

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

◆ getTransferData()

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

Definition at line 203 of file lokclipboard.cxx.

References i, m_aContent, m_aFlavors, and SAL_WARN.

◆ getTransferDataFlavors()

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

Definition at line 218 of file lokclipboard.cxx.

References m_aFlavors.

◆ initFlavourFromMime()

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

Definition at line 167 of file lokclipboard.cxx.

References aMimeType, and cppu::UnoType< typename T >::get().

Referenced by LOKTransferable().

◆ isDataFlavorSupported()

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

Definition at line 223 of file lokclipboard.cxx.

References i, and m_aFlavors.

Member Data Documentation

◆ m_aContent

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

Definition at line 72 of file lokclipboard.hxx.

Referenced by getTransferData(), and LOKTransferable().

◆ m_aFlavors

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

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