LibreOffice Module dtrans (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
dtrans::GenericClipboard Class Reference

#include <generic_clipboard.hxx>

Inheritance diagram for dtrans::GenericClipboard:
[legend]
Collaboration diagram for dtrans::GenericClipboard:
[legend]

Public Member Functions

 GenericClipboard ()
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
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 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
 

Private Member Functions

virtual ~GenericClipboard () override
 

Private Attributes

::osl::Mutex m_aMutex
 
OUString m_aName
 
css::uno::Reference< css::datatransfer::XTransferable > m_aContents
 
css::uno::Reference< css::datatransfer::clipboard::XClipboardOwner > m_aOwner
 
bool m_bInitialized
 

Detailed Description

Definition at line 37 of file generic_clipboard.hxx.

Constructor & Destructor Documentation

GenericClipboard::~GenericClipboard ( )
overrideprivatevirtual

Definition at line 40 of file generic_clipboard.cxx.

GenericClipboard::GenericClipboard ( )

Definition at line 34 of file generic_clipboard.cxx.

References m_aMutex.

Member Function Documentation

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

Definition at line 123 of file generic_clipboard.cxx.

Reference< XTransferable > SAL_CALL GenericClipboard::getContents ( )
overridevirtual

Definition at line 72 of file generic_clipboard.cxx.

References m_aContents, and m_aMutex.

OUString SAL_CALL GenericClipboard::getImplementationName ( )
overridevirtual

Definition at line 57 of file generic_clipboard.cxx.

References GENERIC_CLIPBOARD_IMPLEMENTATION_NAME.

OUString SAL_CALL GenericClipboard::getName ( )
overridevirtual

Definition at line 113 of file generic_clipboard.cxx.

References m_aName.

sal_Int8 SAL_CALL GenericClipboard::getRenderingCapabilities ( )
overridevirtual

Definition at line 118 of file generic_clipboard.cxx.

Sequence< OUString > SAL_CALL GenericClipboard::getSupportedServiceNames ( )
overridevirtual

Definition at line 67 of file generic_clipboard.cxx.

References GenericClipboard_getSupportedServiceNames().

void SAL_CALL GenericClipboard::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual

Definition at line 44 of file generic_clipboard.cxx.

References cppu::UnoType< class >::get(), m_aName, m_bInitialized, and n.

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

Definition at line 132 of file generic_clipboard.cxx.

void SAL_CALL GenericClipboard::setContents ( const css::uno::Reference< css::datatransfer::XTransferable > &  xTrans,
const css::uno::Reference< css::datatransfer::clipboard::XClipboardOwner > &  xClipboardOwner 
)
overridevirtual
sal_Bool SAL_CALL GenericClipboard::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 62 of file generic_clipboard.cxx.

References cppu::supportsService().

Member Data Documentation

css::uno::Reference< css::datatransfer::XTransferable > dtrans::GenericClipboard::m_aContents
private

Definition at line 46 of file generic_clipboard.hxx.

Referenced by getContents(), and setContents().

::osl::Mutex dtrans::GenericClipboard::m_aMutex
private

Definition at line 43 of file generic_clipboard.hxx.

Referenced by getContents(), and setContents().

OUString dtrans::GenericClipboard::m_aName
private

Definition at line 44 of file generic_clipboard.hxx.

Referenced by getName(), and initialize().

css::uno::Reference< css::datatransfer::clipboard::XClipboardOwner > dtrans::GenericClipboard::m_aOwner
private

Definition at line 47 of file generic_clipboard.hxx.

Referenced by setContents().

bool dtrans::GenericClipboard::m_bInitialized
private

Definition at line 49 of file generic_clipboard.hxx.

Referenced by initialize().


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