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:
[legend]
Collaboration diagram for vcl::unohelper::TextDataObject:
[legend]

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 () noexcept override
 
void SAL_CALL release () noexcept override
 
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
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Definition at line 36 of file unohelp2.hxx.

Constructor & Destructor Documentation

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

Definition at line 37 of file unohelp2.cxx.

References maText.

Referenced by CopyStringTo().

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

Definition at line 41 of file unohelp2.cxx.

Member Function Documentation

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

Reimplemented from cppu::OWeakObject.

Definition at line 49 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 
)
static

copies a given string to a given clipboard

Definition at line 45 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)
override

Definition at line 87 of file unohelp2.cxx.

References SotExchange::GetFormat(), and maText.

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

Definition at line 97 of file unohelp2.cxx.

References SotExchange::GetFormatDataFlavor().

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

Definition at line 104 of file unohelp2.cxx.

References SotExchange::GetFormat().

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

Reimplemented from cppu::OWeakObject.

Definition at line 80 of file unohelp2.cxx.

References uno::Any::hasValue().

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

Reimplemented from cppu::OWeakObject.

Definition at line 50 of file unohelp2.hxx.

Member Data Documentation

OUString vcl::unohelper::TextDataObject::maText
private

Definition at line 41 of file unohelp2.hxx.

Referenced by getTransferData().


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