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

#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 () 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)
 copies a given string to a given clipboard More...
 

Private Attributes

OUString const 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

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

Definition at line 34 of file unohelp2.cxx.

References maText.

Referenced by CopyStringTo().

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

Definition at line 38 of file unohelp2.cxx.

Member Function Documentation

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

Reimplemented from cppu::OWeakObject.

Definition at line 48 of file unohelp2.hxx.

void vcl::unohelper::TextDataObject::CopyStringTo ( const OUString &  rContent,
const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &  rxClipboard 
)
static

copies a given string to a given clipboard

Definition at line 42 of file unohelp2.cxx.

References SAL_WARN_IF, and TextDataObject().

Referenced by Edit::ImplCopy().

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

Definition at line 73 of file unohelp2.cxx.

References SotExchange::GetFormat(), and maText.

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

Definition at line 83 of file unohelp2.cxx.

References SotExchange::GetFormatDataFlavor().

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

Definition at line 90 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 66 of file unohelp2.cxx.

References uno::Any::hasValue().

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

Reimplemented from cppu::OWeakObject.

Definition at line 49 of file unohelp2.hxx.

Member Data Documentation

OUString const 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: