LibreOffice Module vcl (master)  1
Public Member Functions | Static Public Member Functions | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
Qt5Clipboard Class Referencefinal

This implementation has two main functions, which handle the clipboard content: the XClipboard::setContent function and the QClipboard::change signal handler. More...

#include <Qt5Clipboard.hxx>

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

Public Member Functions

virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::uno::Reference< css::datatransfer::XTransferable > SAL_CALL getContents () override
 
virtual void SAL_CALL setContents (const css::uno::Reference< css::datatransfer::XTransferable > &xTrans, const css::uno::Reference< css::datatransfer::clipboard::XClipboardOwner > &xClipboardOwner) override
 
virtual OUString SAL_CALL getName () override
 
virtual sal_Int8 SAL_CALL getRenderingCapabilities () override
 
virtual void SAL_CALL flushClipboard () override
 
virtual void SAL_CALL addClipboardListener (const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > &listener) override
 
virtual void SAL_CALL removeClipboardListener (const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > &listener) override
 

Static Public Member Functions

static css::uno::Reference< css::uno::XInterface > create (const OUString &aModeString)
 

Private Slots

void handleChanged (QClipboard::Mode mode)
 

Private Member Functions

 Qt5Clipboard (const OUString &aModeString, const QClipboard::Mode aMode)
 

Static Private Member Functions

static bool isOwner (const QClipboard::Mode aMode)
 
static bool isSupported (const QClipboard::Mode aMode)
 

Private Attributes

osl::Mutex m_aMutex
 
const OUString m_aClipboardName
 
const QClipboard::Mode m_aClipboardMode
 
css::uno::Reference< css::datatransfer::XTransferable > m_aContents
 
css::uno::Reference< css::datatransfer::clipboard::XClipboardOwner > m_aOwner
 
std::vector< css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > > m_aListeners
 

Detailed Description

This implementation has two main functions, which handle the clipboard content: the XClipboard::setContent function and the QClipboard::change signal handler.

The first just sets the respective clipboard to the expected content from LO, the latter will handle any reported changes.

Definition at line 30 of file Qt5Clipboard.hxx.

Constructor & Destructor Documentation

Qt5Clipboard::Qt5Clipboard ( const OUString &  aModeString,
const QClipboard::Mode  aMode 
)
explicitprivate

Member Function Documentation

virtual void SAL_CALL Qt5Clipboard::addClipboardListener ( const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > &  listener)
overridevirtual
static css::uno::Reference<css::uno::XInterface> Qt5Clipboard::create ( const OUString &  aModeString)
static
virtual void SAL_CALL Qt5Clipboard::flushClipboard ( )
overridevirtual
virtual css::uno::Reference<css::datatransfer::XTransferable> SAL_CALL Qt5Clipboard::getContents ( )
overridevirtual
virtual OUString SAL_CALL Qt5Clipboard::getImplementationName ( )
overridevirtual
virtual OUString SAL_CALL Qt5Clipboard::getName ( )
overridevirtual
virtual sal_Int8 SAL_CALL Qt5Clipboard::getRenderingCapabilities ( )
overridevirtual
virtual css::uno::Sequence<OUString> SAL_CALL Qt5Clipboard::getSupportedServiceNames ( )
overridevirtual
void Qt5Clipboard::handleChanged ( QClipboard::Mode  mode)
privateslot
static bool Qt5Clipboard::isOwner ( const QClipboard::Mode  aMode)
staticprivate
static bool Qt5Clipboard::isSupported ( const QClipboard::Mode  aMode)
staticprivate
virtual void SAL_CALL Qt5Clipboard::removeClipboardListener ( const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > &  listener)
overridevirtual
virtual void SAL_CALL Qt5Clipboard::setContents ( const css::uno::Reference< css::datatransfer::XTransferable > &  xTrans,
const css::uno::Reference< css::datatransfer::clipboard::XClipboardOwner > &  xClipboardOwner 
)
overridevirtual
virtual sal_Bool SAL_CALL Qt5Clipboard::supportsService ( const OUString &  ServiceName)
overridevirtual

Member Data Documentation

const QClipboard::Mode Qt5Clipboard::m_aClipboardMode
private

Definition at line 40 of file Qt5Clipboard.hxx.

const OUString Qt5Clipboard::m_aClipboardName
private

Definition at line 39 of file Qt5Clipboard.hxx.

css::uno::Reference<css::datatransfer::XTransferable> Qt5Clipboard::m_aContents
private

Definition at line 43 of file Qt5Clipboard.hxx.

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

Definition at line 46 of file Qt5Clipboard.hxx.

osl::Mutex Qt5Clipboard::m_aMutex
private

Definition at line 38 of file Qt5Clipboard.hxx.

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

Definition at line 45 of file Qt5Clipboard.hxx.


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