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

Constructor & Destructor Documentation

◆ LOKClipboard()

LOKClipboard::LOKClipboard ( )

Definition at line 69 of file lokclipboard.cxx.

References m_aMutex, and setContents().

Member Function Documentation

◆ addClipboardListener()

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.

◆ getContents()

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

Definition at line 96 of file lokclipboard.cxx.

References m_xTransferable.

◆ getImplementationName()

OUString LOKClipboard::getImplementationName ( )
override

Definition at line 84 of file lokclipboard.cxx.

◆ getName()

OUString SAL_CALL LOKClipboard::getName ( )
inlineoverride

Definition at line 54 of file lokclipboard.hxx.

◆ getRenderingCapabilities()

sal_Int8 SAL_CALL LOKClipboard::getRenderingCapabilities ( )
inlineoverride

Definition at line 57 of file lokclipboard.hxx.

◆ getSupportedServiceNames()

Sequence< OUString > LOKClipboard::getSupportedServiceNames ( )
override

Definition at line 86 of file lokclipboard.cxx.

References getSupportedServiceNames_static().

◆ getSupportedServiceNames_static()

Sequence< OUString > LOKClipboard::getSupportedServiceNames_static ( )
static

Definition at line 78 of file lokclipboard.cxx.

Referenced by getSupportedServiceNames().

◆ getXI()

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

get an XInterface easily.

Definition at line 37 of file lokclipboard.hxx.

◆ removeClipboardListener()

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.

◆ setContents()

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().

◆ supportsService()

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

Definition at line 91 of file lokclipboard.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_aListeners

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

Definition at line 31 of file lokclipboard.hxx.

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

◆ m_aMutex

osl::Mutex LOKClipboard::m_aMutex
private

Definition at line 28 of file lokclipboard.hxx.

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

◆ m_aOwner

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

Definition at line 30 of file lokclipboard.hxx.

Referenced by setContents().

◆ m_xTransferable

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

Definition at line 29 of file lokclipboard.hxx.

Referenced by getContents(), and setContents().


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