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

#include <unohelp2.hxx>

Inheritance diagram for vcl::unohelper::TextDataObject:
Collaboration diagram for vcl::unohelper::TextDataObject:

Public Member Functions

 TextDataObject (const OUString &rText)
virtual ~TextDataObject () override
css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
void SAL_CALL acquire () override throw ()
void SAL_CALL release () override throw ()
css::uno::Any SAL_CALL getTransferData (const css::datatransfer::DataFlavor &aFlavor) override
css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors () override
sal_Bool SAL_CALL isDataFlavorSupported (const css::datatransfer::DataFlavor &aFlavor) override
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 OWeakObject (const OWeakObject &)
OWeakObject &SAL_CALL operator= (const OWeakObject &)
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()

Static Public Member Functions

static void CopyStringTo (const OUString &rContent, const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rxClipboard, const vcl::ILibreOfficeKitNotifier *pNotifier=nullptr)
 copies a given string to a given clipboard More...

Private Attributes

OUString maText

Additional Inherited Members

- Protected Member Functions inherited from cppu::OWeakObject
void disposeWeakConnectionPoint ()
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount

Detailed Description

Definition at line 39 of file unohelp2.hxx.

Constructor & Destructor Documentation

vcl::unohelper::TextDataObject::TextDataObject ( const OUString &  rText)

Definition at line 34 of file unohelp2.cxx.

References maText.

Referenced by CopyStringTo().

vcl::unohelper::TextDataObject::~TextDataObject ( )

Definition at line 38 of file unohelp2.cxx.

Member Function Documentation

void SAL_CALL vcl::unohelper::TextDataObject::acquire ( )
throw (

Reimplemented from cppu::OWeakObject.

Definition at line 52 of file unohelp2.hxx.

void vcl::unohelper::TextDataObject::CopyStringTo ( const OUString &  rContent,
const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &  rxClipboard,
const vcl::ILibreOfficeKitNotifier *  pNotifier = nullptr 

copies a given string to a given clipboard

Definition at line 42 of file unohelp2.cxx.

References comphelper::LibreOfficeKit::isActive(), SAL_WARN_IF, and TextDataObject().

Referenced by Edit::ImplCopy().

uno::Any vcl::unohelper::TextDataObject::getTransferData ( const css::datatransfer::DataFlavor &  aFlavor)

Definition at line 84 of file unohelp2.cxx.

References SotExchange::GetFormat(), and maText.

uno::Sequence< datatransfer::DataFlavor > vcl::unohelper::TextDataObject::getTransferDataFlavors ( )

Definition at line 94 of file unohelp2.cxx.

References SotExchange::GetFormatDataFlavor().

sal_Bool vcl::unohelper::TextDataObject::isDataFlavorSupported ( const css::datatransfer::DataFlavor &  aFlavor)

Definition at line 101 of file unohelp2.cxx.

References SotExchange::GetFormat().

uno::Any vcl::unohelper::TextDataObject::queryInterface ( const css::uno::Type &  rType)

Reimplemented from cppu::OWeakObject.

Definition at line 77 of file unohelp2.cxx.

References uno::Any::hasValue().

void SAL_CALL vcl::unohelper::TextDataObject::release ( )
throw (

Reimplemented from cppu::OWeakObject.

Definition at line 53 of file unohelp2.hxx.

Member Data Documentation

OUString vcl::unohelper::TextDataObject::maText

Definition at line 44 of file unohelp2.hxx.

Referenced by getTransferData().

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