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

A clipboard implementation for LibreOfficeKit. More...

#include <lokclipboard.hxx>

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

Public Member Functions

 LOKClipboard ()
 
css::uno::Reference< css::uno::XInterface > getXI ()
 get an XInterface easily. More...
 
OUString SAL_CALL getImplementationName () override
 
sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
css::uno::Reference< css::datatransfer::XTransferable > SAL_CALL getContents () override
 
void SAL_CALL setContents (const css::uno::Reference< css::datatransfer::XTransferable > &xTransferable, const css::uno::Reference< css::datatransfer::clipboard::XClipboardOwner > &xClipboardOwner) override
 
OUString SAL_CALL getName () override
 
sal_Int8 SAL_CALL getRenderingCapabilities () override
 
void SAL_CALL addClipboardListener (const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > &listener) override
 
void SAL_CALL removeClipboardListener (const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > &listener) override
 

Static Public Member Functions

static Sequence< OUString > getSupportedServiceNames_static ()
 

Private Attributes

osl::Mutex m_aMutex
 
css::uno::Reference< css::datatransfer::XTransferable > m_xTransferable
 
css::uno::Reference< css::datatransfer::clipboard::XClipboardOwner > m_aOwner
 
std::vector< css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > > m_aListeners
 

Detailed Description

A clipboard implementation for LibreOfficeKit.

Definition at line 25 of file lokclipboard.hxx.

Constructor & Destructor Documentation

LOKClipboard::LOKClipboard ( )

Definition at line 69 of file lokclipboard.cxx.

References m_aMutex, and setContents().

Member Function Documentation

void LOKClipboard::addClipboardListener ( const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > &  listener)
override

Definition at line 123 of file lokclipboard.cxx.

References m_aListeners, and m_aMutex.

Reference< css::datatransfer::XTransferable > LOKClipboard::getContents ( )
override

Definition at line 96 of file lokclipboard.cxx.

References m_xTransferable.

OUString LOKClipboard::getImplementationName ( )
override

Definition at line 84 of file lokclipboard.cxx.

OUString SAL_CALL LOKClipboard::getName ( )
inlineoverride

Definition at line 55 of file lokclipboard.hxx.

sal_Int8 SAL_CALL LOKClipboard::getRenderingCapabilities ( )
inlineoverride

Definition at line 58 of file lokclipboard.hxx.

Sequence< OUString > LOKClipboard::getSupportedServiceNames ( )
override

Definition at line 86 of file lokclipboard.cxx.

References getSupportedServiceNames_static().

Sequence< OUString > LOKClipboard::getSupportedServiceNames_static ( )
static

Definition at line 78 of file lokclipboard.cxx.

Referenced by getSupportedServiceNames().

css::uno::Reference<css::uno::XInterface> LOKClipboard::getXI ( )
inline

get an XInterface easily.

Definition at line 38 of file lokclipboard.hxx.

void LOKClipboard::removeClipboardListener ( const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > &  listener)
override

Definition at line 130 of file lokclipboard.cxx.

References m_aListeners, and m_aMutex.

void LOKClipboard::setContents ( const css::uno::Reference< css::datatransfer::XTransferable > &  xTransferable,
const css::uno::Reference< css::datatransfer::clipboard::XClipboardOwner > &  xClipboardOwner 
)
override

Definition at line 98 of file lokclipboard.cxx.

References aListeners, m_aListeners, m_aMutex, m_aOwner, m_xTransferable, and SAL_INFO.

Referenced by LOKClipboard().

sal_Bool LOKClipboard::supportsService ( const OUString &  ServiceName)
override

Definition at line 91 of file lokclipboard.cxx.

References cppu::supportsService().

Member Data Documentation

std::vector<css::uno::Reference<css::datatransfer::clipboard::XClipboardListener> > LOKClipboard::m_aListeners
private

Definition at line 32 of file lokclipboard.hxx.

Referenced by addClipboardListener(), removeClipboardListener(), and setContents().

osl::Mutex LOKClipboard::m_aMutex
private

Definition at line 29 of file lokclipboard.hxx.

Referenced by addClipboardListener(), removeClipboardListener(), and setContents().

css::uno::Reference<css::datatransfer::clipboard::XClipboardOwner> LOKClipboard::m_aOwner
private

Definition at line 31 of file lokclipboard.hxx.

Referenced by setContents().

css::uno::Reference<css::datatransfer::XTransferable> LOKClipboard::m_xTransferable
private

Definition at line 30 of file lokclipboard.hxx.

Referenced by getContents(), and setContents().


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