LibreOffice Module svx (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
svx::OColumnTransferable Class Referencefinal

#include <dbaexchange.hxx>

Inheritance diagram for svx::OColumnTransferable:
[legend]
Collaboration diagram for svx::OColumnTransferable:
[legend]

Public Member Functions

 OColumnTransferable (const ODataAccessDescriptor &_rDescriptor, ColumnTransferFormatFlags _nFormats)
 construct the transferable from a data access descriptor More...
 
 OColumnTransferable (const css::uno::Reference< css::beans::XPropertySet > &_rxForm, const OUString &_rFieldName, const css::uno::Reference< css::beans::XPropertySet > &_rxColumn, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, ColumnTransferFormatFlags _nFormats)
 construct the transferable from a DatabaseForm component and a field name More...
 
- 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 canExtractColumnDescriptor (const DataFlavorExVector &_rFlavors, ColumnTransferFormatFlags _nFormats)
 checks whether or not a column descriptor can be extracted from the data flavor vector given More...
 
static bool extractColumnDescriptor (const TransferableDataHelper &_rData, OUString &_rDatasource, OUString &_rDatabaseLocation, OUString &_rConnectionResource, sal_Int32 &_nCommandType, OUString &_rCommand, OUString &_rFieldName)
 extracts a column descriptor from the transferable given More...
 
static ODataAccessDescriptor extractColumnDescriptor (const TransferableDataHelper &_rData)
 extracts a column descriptor from the transferable given More...
 
- Static Public Member Functions inherited from TransferableHelper
static void ClearSelection (vcl::Window *pWindow)
 
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

Private Member Functions

virtual void AddSupportedFormats () override
 
virtual bool GetData (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override
 
SVX_DLLPRIVATE void implConstruct (const OUString &_rDatasource, const OUString &_rConnectionResource, const sal_Int32 _nCommandType, const OUString &_rCommand, const OUString &_rFieldName)
 

Static Private Member Functions

static SotClipboardFormatId getDescriptorFormatId ()
 

Private Attributes

ODataAccessDescriptor m_aDescriptor
 
OUString m_sCompatibleFormat
 
ColumnTransferFormatFlags const m_nFormatFlags
 

Additional Inherited Members

- 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 bool WriteObject (tools::SvRef< SotStorageStream > &rxOStm, void *pUserObject, sal_uInt32 nUserObjectId, const css::datatransfer::DataFlavor &rFlavor)
 
virtual void DragFinished (sal_Int8 nDropAction)
 
virtual void ObjectReleased ()
 

Detailed Description

Definition at line 54 of file dbaexchange.hxx.

Constructor & Destructor Documentation

svx::OColumnTransferable::OColumnTransferable ( const ODataAccessDescriptor _rDescriptor,
ColumnTransferFormatFlags  _nFormats 
)

construct the transferable from a data access descriptor

Note that some of the aspects, in particular all which cannot be represented as string, can only be transported via the CTF_COLUMN_DESCRIPTOR format.

Parameters
_rDescriptorThe descriptor for the column. It must contain at least
  • information sufficient to create a connection, that is, either one of DataSource, DatabaseLocation, ConnectionResource, and DataAccessDescriptorProperty::Connection
  • a Command
  • a CommandType
  • a ColumnName or ColumnObject

Definition at line 45 of file dbaexchange.cxx.

References COLUMN_DESCRIPTOR, svx::ColumnName, svx::ColumnObject, svx::Command, svx::CommandType, svx::Connection, svx::ConnectionResource, svx::DatabaseLocation, svx::DataSource, svx::ODataAccessDescriptor::has(), implConstruct(), m_aDescriptor, and m_nFormatFlags.

svx::OColumnTransferable::OColumnTransferable ( const css::uno::Reference< css::beans::XPropertySet > &  _rxForm,
const OUString &  _rFieldName,
const css::uno::Reference< css::beans::XPropertySet > &  _rxColumn,
const css::uno::Reference< css::sdbc::XConnection > &  _rxConnection,
ColumnTransferFormatFlags  _nFormats 
)

construct the transferable from a DatabaseForm component and a field name

Parameters
_rxFormthe form which is bound to the data source which's field is to be dragged
_rFieldNamethe name of the field to be dragged
_rxColumnthe column object. Won't be used if <arg>_nFormats</arg> does not include the CTF_COLUMN_DESCRIPTOR flag.
May be <NULL>.
_rxConnectionthe connection the column belongs to. Won't be used if <arg>_nFormats</arg> does not include the CTF_COLUMN_DESCRIPTOR flag.
May be <NULL>.
_nFormatssupported formats. Must be a combination of the CTF_XXX flags

Member Function Documentation

void svx::OColumnTransferable::AddSupportedFormats ( )
overrideprivatevirtual
bool svx::OColumnTransferable::canExtractColumnDescriptor ( const DataFlavorExVector _rFlavors,
ColumnTransferFormatFlags  _nFormats 
)
static

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

Parameters
_rFlavorsavailable flavors
_nFormatsformats to accept

Definition at line 227 of file dbaexchange.cxx.

References CONTROL_EXCHANGE, FIELD_DESCRIPTOR, and getDescriptorFormatId().

bool svx::OColumnTransferable::extractColumnDescriptor ( const TransferableDataHelper _rData,
OUString &  _rDatasource,
OUString &  _rDatabaseLocation,
OUString &  _rConnectionResource,
sal_Int32 &  _nCommandType,
OUString &  _rCommand,
OUString &  _rFieldName 
)
static
ODataAccessDescriptor svx::OColumnTransferable::extractColumnDescriptor ( const TransferableDataHelper _rData)
static
bool svx::OColumnTransferable::GetData ( const css::datatransfer::DataFlavor &  rFlavor,
const OUString &  rDestDoc 
)
overrideprivatevirtual
SotClipboardFormatId svx::OColumnTransferable::getDescriptorFormatId ( )
staticprivate
void svx::OColumnTransferable::implConstruct ( const OUString &  _rDatasource,
const OUString &  _rConnectionResource,
const sal_Int32  _nCommandType,
const OUString &  _rCommand,
const OUString &  _rFieldName 
)
private

Member Data Documentation

ODataAccessDescriptor svx::OColumnTransferable::m_aDescriptor
private

Definition at line 145 of file dbaexchange.hxx.

Referenced by GetData(), implConstruct(), and OColumnTransferable().

ColumnTransferFormatFlags const svx::OColumnTransferable::m_nFormatFlags
private

Definition at line 147 of file dbaexchange.hxx.

Referenced by AddSupportedFormats(), implConstruct(), and OColumnTransferable().

OUString svx::OColumnTransferable::m_sCompatibleFormat
private

Definition at line 146 of file dbaexchange.hxx.

Referenced by GetData(), and implConstruct().


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