LibreOffice Module vcl (master) 1
Signals | Public Member Functions | Static Public Member Functions | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
QtClipboard 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 <QtClipboard.hxx>

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

Signals

void clearClipboard ()
 

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)
 
void handleClearClipboard ()
 

Private Member Functions

 QtClipboard (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
 
bool m_bOwnClipboardChange
 
bool m_bDoClear
 
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 qt5/QtClipboard.hxx.

Constructor & Destructor Documentation

◆ QtClipboard()

QtClipboard::QtClipboard ( OUString  aModeString,
const QClipboard::Mode  aMode 
)
explicitprivate

Member Function Documentation

◆ addClipboardListener()

virtual void SAL_CALL QtClipboard::addClipboardListener ( const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > &  listener)
overridevirtual

◆ clearClipboard

void QtClipboard::clearClipboard ( )
signal

◆ create()

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

◆ flushClipboard()

virtual void SAL_CALL QtClipboard::flushClipboard ( )
overridevirtual

◆ getContents()

virtual css::uno::Reference< css::datatransfer::XTransferable > SAL_CALL QtClipboard::getContents ( )
overridevirtual

◆ getImplementationName()

virtual OUString SAL_CALL QtClipboard::getImplementationName ( )
overridevirtual

◆ getName()

virtual OUString SAL_CALL QtClipboard::getName ( )
overridevirtual

◆ getRenderingCapabilities()

virtual sal_Int8 SAL_CALL QtClipboard::getRenderingCapabilities ( )
overridevirtual

◆ getSupportedServiceNames()

virtual css::uno::Sequence< OUString > SAL_CALL QtClipboard::getSupportedServiceNames ( )
overridevirtual

◆ handleChanged

void QtClipboard::handleChanged ( QClipboard::Mode  mode)
privateslot

◆ handleClearClipboard

void QtClipboard::handleClearClipboard ( )
privateslot

◆ isOwner()

static bool QtClipboard::isOwner ( const QClipboard::Mode  aMode)
staticprivate

◆ isSupported()

static bool QtClipboard::isSupported ( const QClipboard::Mode  aMode)
staticprivate

◆ removeClipboardListener()

virtual void SAL_CALL QtClipboard::removeClipboardListener ( const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > &  listener)
overridevirtual

◆ setContents()

virtual void SAL_CALL QtClipboard::setContents ( const css::uno::Reference< css::datatransfer::XTransferable > &  xTrans,
const css::uno::Reference< css::datatransfer::clipboard::XClipboardOwner > &  xClipboardOwner 
)
overridevirtual

◆ supportsService()

virtual sal_Bool SAL_CALL QtClipboard::supportsService ( const OUString &  ServiceName)
overridevirtual

Member Data Documentation

◆ m_aClipboardMode

const QClipboard::Mode QtClipboard::m_aClipboardMode
private

Definition at line 40 of file qt5/QtClipboard.hxx.

◆ m_aClipboardName

const OUString QtClipboard::m_aClipboardName
private

Definition at line 39 of file qt5/QtClipboard.hxx.

◆ m_aContents

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

Definition at line 48 of file qt5/QtClipboard.hxx.

◆ m_aListeners

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

Definition at line 51 of file qt5/QtClipboard.hxx.

◆ m_aMutex

osl::Mutex QtClipboard::m_aMutex
private

Definition at line 38 of file qt5/QtClipboard.hxx.

◆ m_aOwner

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

Definition at line 50 of file qt5/QtClipboard.hxx.

◆ m_bDoClear

bool QtClipboard::m_bDoClear
private

Definition at line 45 of file qt5/QtClipboard.hxx.

◆ m_bOwnClipboardChange

bool QtClipboard::m_bOwnClipboardChange
private

Definition at line 43 of file qt5/QtClipboard.hxx.


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