LibreOffice Module reportdesign (master) 1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
rptui::OReportExchange Class Reference

defines a clipboard format for copying selection elements. More...

#include <dlgedclip.hxx>

Inheritance diagram for rptui::OReportExchange:
[legend]
Collaboration diagram for rptui::OReportExchange:
[legend]

Public Types

typedef css::uno::Sequence< css::beans::NamedValue > TSectionElements
 

Public Member Functions

 OReportExchange (const TSectionElements &_rCopyElements)
 Constructs a new exchange object with section elements. More...
 
- Public Member Functions inherited from TransferableHelper
virtual css::uno::Any SAL_CALL getTransferData (const css::datatransfer::DataFlavor &rFlavor) override
 
virtual css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors () override
 
virtual sal_Bool SAL_CALL isDataFlavorSupported (const css::datatransfer::DataFlavor &rFlavor) override
 
virtual css::uno::Any SAL_CALL getTransferData2 (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override
 
virtual sal_Bool SAL_CALL isComplex () override
 
void PrepareOLE (const TransferableObjectDescriptor &rObjDesc)
 
void CopyToClipboard (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rClipboard) const
 
void CopyToClipboard (vcl::Window *pWindow) const
 
void CopyToPrimarySelection () const
 
void StartDrag (vcl::Window *pWindow, sal_Int8 nDragSourceActions)
 

Static Public Member Functions

static bool canExtract (const DataFlavorExVector &_rFlavors)
 checks whether or not a descriptor can be extracted from the data flavor vector given More...
 
static TSectionElements extractCopies (const TransferableDataHelper &_rData)
 extract the section elements More...
 
static SotClipboardFormatId getDescriptorFormatId ()
 returns the format id. More...
 
- Static Public Member Functions inherited from TransferableHelper
static void ClearPrimarySelection ()
 

Protected Member Functions

virtual void AddSupportedFormats () 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)
 
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 GetData (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc)=0
 
virtual bool WriteObject (tools::SvRef< SotTempStream > &rxOStm, void *pUserObject, sal_uInt32 nUserObjectId, const css::datatransfer::DataFlavor &rFlavor)
 
virtual void DragFinished (sal_Int8 nDropAction)
 
virtual void ObjectReleased ()
 
void CopyToSelection (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rClipboard) const
 

Private Attributes

TSectionElements m_aCopyElements
 

Detailed Description

defines a clipboard format for copying selection elements.

Definition at line 36 of file dlgedclip.hxx.

Member Typedef Documentation

◆ TSectionElements

typedef css::uno::Sequence<css::beans::NamedValue> rptui::OReportExchange::TSectionElements

Definition at line 39 of file dlgedclip.hxx.

Constructor & Destructor Documentation

◆ OReportExchange()

rptui::OReportExchange::OReportExchange ( const TSectionElements _rCopyElements)

Constructs a new exchange object with section elements.

Parameters
_rCopyElementsthe elements to copy. Each section is one entry. The value must be a sequence of elements.
Returns

Definition at line 32 of file dlgedclip.cxx.

Member Function Documentation

◆ AddSupportedFormats()

void rptui::OReportExchange::AddSupportedFormats ( )
overrideprotectedvirtual

Implements TransferableHelper.

Definition at line 48 of file dlgedclip.cxx.

References TransferableHelper::AddFormat(), and getDescriptorFormatId().

◆ canExtract()

bool rptui::OReportExchange::canExtract ( const DataFlavorExVector _rFlavors)
static

checks whether or not a descriptor can be extracted from the data flavor vector given

Parameters
_rFlavorsavailable flavors
Returns

Definition at line 59 of file dlgedclip.cxx.

References getDescriptorFormatId(), and IsFormatSupported().

◆ extractCopies()

OReportExchange::TSectionElements rptui::OReportExchange::extractCopies ( const TransferableDataHelper _rData)
static

extract the section elements

Parameters
_rDatathe clipboard data
Returns
the copied elements

Definition at line 64 of file dlgedclip.cxx.

References TransferableDataHelper::GetAny(), getDescriptorFormatId(), SotExchange::GetFormatDataFlavor(), and TransferableDataHelper::HasFormat().

Referenced by rptui::OViewsWindow::Paste().

◆ GetData()

bool rptui::OReportExchange::GetData ( const css::datatransfer::DataFlavor &  rFlavor,
const OUString &  rDestDoc 
)
overrideprotectedvirtual

◆ getDescriptorFormatId()

SotClipboardFormatId rptui::OReportExchange::getDescriptorFormatId ( )
static

returns the format id.

Returns
the registered format id

Definition at line 37 of file dlgedclip.cxx.

References SotExchange::RegisterFormatName().

Referenced by AddSupportedFormats(), canExtract(), extractCopies(), GetData(), and rptui::OViewsWindow::IsPasteAllowed().

Member Data Documentation

◆ m_aCopyElements

TSectionElements rptui::OReportExchange::m_aCopyElements
private

Definition at line 76 of file dlgedclip.hxx.

Referenced by GetData().


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