LibreOffice Module svx (master)  1
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
svxform::OLocalExchange Class Reference

#include <fmexch.hxx>

Inheritance diagram for svxform::OLocalExchange:
[legend]
Collaboration diagram for svxform::OLocalExchange:
[legend]

Classes

class  GrantAccess
 

Public Member Functions

 OLocalExchange ()
 
bool isDragging () const
 
bool isClipboardOwner () const
 
void startDrag (vcl::Window *pWindow, sal_Int8 nDragSourceActions, const GrantAccess &)
 
void copyToClipboard (vcl::Window *_pWindow, const GrantAccess &)
 
void setClipboardListener (const Link< OLocalExchange &, void > &_rListener)
 
void clear ()
 
- Public Member Functions inherited from TransferableHelper
void PrepareOLE (const TransferableObjectDescriptor &rObjDesc)
 
void CopyToClipboard (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rClipboard) const
 
void CopyToSelection (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rClipboard) const
 
void CopyToClipboard (vcl::Window *pWindow) const
 
void CopyToSelection (vcl::Window *pWindow) const
 
void StartDrag (vcl::Window *pWindow, sal_Int8 nDragSourceActions)
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &rId) override
 

Static Public Member Functions

static bool hasFormat (const DataFlavorExVector &_rFormats, SotClipboardFormatId _nFormatId)
 
- Static Public Member Functions inherited from TransferableHelper
static void ClearSelection (vcl::Window *pWindow)
 
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

Protected Member Functions

virtual void SAL_CALL lostOwnership (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &_rxClipboard, const css::uno::Reference< css::datatransfer::XTransferable > &_rxTrans) override
 
virtual void DragFinished (sal_Int8 nDropAction) override
 
virtual bool GetData (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override
 
- Protected Member Functions inherited from TransferableHelper
 ~TransferableHelper ()
 
const css::uno::Reference< css::datatransfer::clipboard::XClipboard > & getOwnClipboard () const
 
void implCallOwnLostOwnership (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &_rxClipboard, const css::uno::Reference< css::datatransfer::XTransferable > &_rxTrans)
 
void AddFormat (SotClipboardFormatId nFormat)
 
void AddFormat (const css::datatransfer::DataFlavor &rFlavor)
 
void RemoveFormat (SotClipboardFormatId nFormat)
 
void RemoveFormat (const css::datatransfer::DataFlavor &rFlavor)
 
bool HasFormat (SotClipboardFormatId nFormat)
 
void ClearFormats ()
 
bool SetAny (const css::uno::Any &rAny)
 
bool SetString (const OUString &rString, const css::datatransfer::DataFlavor &rFlavor)
 
bool SetBitmapEx (const BitmapEx &rBitmap, const css::datatransfer::DataFlavor &rFlavor)
 
bool SetGDIMetaFile (const GDIMetaFile &rMtf)
 
bool SetGraphic (const Graphic &rGraphic)
 
bool SetImageMap (const ImageMap &rIMap)
 
bool SetTransferableObjectDescriptor (const TransferableObjectDescriptor &rDesc)
 
bool SetINetBookmark (const INetBookmark &rBmk, const css::datatransfer::DataFlavor &rFlavor)
 
bool SetINetImage (const INetImage &rINtImg, const css::datatransfer::DataFlavor &rFlavor)
 
bool SetObject (void *pUserObject, sal_uInt32 nUserObjectId, const css::datatransfer::DataFlavor &rFlavor)
 
virtual void AddSupportedFormats ()=0
 
virtual bool WriteObject (tools::SvRef< SotStorageStream > &rxOStm, void *pUserObject, sal_uInt32 nUserObjectId, const css::datatransfer::DataFlavor &rFlavor)
 
virtual void ObjectReleased ()
 

Private Attributes

Link< OLocalExchange &, voidm_aClipboardListener
 
bool m_bDragging: 1
 
bool m_bClipboardOwner: 1
 

Detailed Description

Definition at line 48 of file fmexch.hxx.

Constructor & Destructor Documentation

svxform::OLocalExchange::OLocalExchange ( )

Definition at line 39 of file fmexch.cxx.

Member Function Documentation

void svxform::OLocalExchange::clear ( )
void svxform::OLocalExchange::copyToClipboard ( vcl::Window _pWindow,
const GrantAccess  
)
void svxform::OLocalExchange::DragFinished ( sal_Int8  nDropAction)
overrideprotectedvirtual

Reimplemented from TransferableHelper.

Definition at line 93 of file fmexch.cxx.

References TransferableHelper::DragFinished(), and m_bDragging.

bool svxform::OLocalExchange::GetData ( const css::datatransfer::DataFlavor &  rFlavor,
const OUString &  rDestDoc 
)
overrideprotectedvirtual

Implements TransferableHelper.

Reimplemented in svxform::OControlExchange.

Definition at line 107 of file fmexch.cxx.

Referenced by svxform::OControlExchange::GetData().

bool svxform::OLocalExchange::hasFormat ( const DataFlavorExVector _rFormats,
SotClipboardFormatId  _nFormatId 
)
static
bool svxform::OLocalExchange::isClipboardOwner ( ) const
inline

Definition at line 65 of file fmexch.hxx.

Referenced by clear().

bool svxform::OLocalExchange::isDragging ( ) const
inline

Definition at line 64 of file fmexch.hxx.

void SAL_CALL svxform::OLocalExchange::lostOwnership ( const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &  _rxClipboard,
const css::uno::Reference< css::datatransfer::XTransferable > &  _rxTrans 
)
overrideprotectedvirtual
void svxform::OLocalExchange::setClipboardListener ( const Link< OLocalExchange &, void > &  _rListener)
inline

Definition at line 70 of file fmexch.hxx.

void svxform::OLocalExchange::startDrag ( vcl::Window pWindow,
sal_Int8  nDragSourceActions,
const GrantAccess  
)

Definition at line 86 of file fmexch.cxx.

References m_bDragging, and TransferableHelper::StartDrag().

Member Data Documentation

Link<OLocalExchange&,void> svxform::OLocalExchange::m_aClipboardListener
private

Definition at line 51 of file fmexch.hxx.

Referenced by copyToClipboard(), and lostOwnership().

bool svxform::OLocalExchange::m_bClipboardOwner
private

Definition at line 53 of file fmexch.hxx.

Referenced by clear(), copyToClipboard(), and lostOwnership().

bool svxform::OLocalExchange::m_bDragging
private

Definition at line 52 of file fmexch.hxx.

Referenced by DragFinished(), and startDrag().


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