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 (OUString aText)
 
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::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
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 35 of file unohelp2.hxx.

Constructor & Destructor Documentation

◆ TextDataObject()

vcl::unohelper::TextDataObject::TextDataObject ( OUString  aText)

Definition at line 38 of file unohelp2.cxx.

References maText.

Referenced by CopyStringTo().

◆ ~TextDataObject()

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

Definition at line 42 of file unohelp2.cxx.

Member Function Documentation

◆ acquire()

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

Reimplemented from cppu::OWeakObject.

Definition at line 48 of file unohelp2.hxx.

◆ CopyStringTo()

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 46 of file unohelp2.cxx.

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

Referenced by Edit::ImplCopy().

◆ getTransferData()

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

Definition at line 88 of file unohelp2.cxx.

References SotExchange::GetFormat(), and maText.

◆ getTransferDataFlavors()

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

Definition at line 98 of file unohelp2.cxx.

References SotExchange::GetFormatDataFlavor().

◆ isDataFlavorSupported()

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

Definition at line 105 of file unohelp2.cxx.

References SotExchange::GetFormat().

◆ queryInterface()

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

Reimplemented from cppu::OWeakObject.

Definition at line 81 of file unohelp2.cxx.

References uno::Any::hasValue().

◆ release()

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

Reimplemented from cppu::OWeakObject.

Definition at line 49 of file unohelp2.hxx.

Member Data Documentation

◆ maText

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

Definition at line 40 of file unohelp2.hxx.

Referenced by getTransferData().


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