20#ifndef INCLUDED_SVX_DBAEXCHANGE_HXX
21#define INCLUDED_SVX_DBAEXCHANGE_HXX
27#include <com/sun/star/beans/PropertyValue.hpp>
29#include <com/sun/star/uno/Sequence.hxx>
98 const css::uno::Reference< css::beans::XPropertySet >& _rxForm,
99 const OUString& _rFieldName,
100 const css::uno::Reference< css::beans::XPropertySet >& _rxColumn,
101 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection,
115 static bool extractColumnDescriptor(
117 ,OUString& _rDatasource
118 ,OUString& _rDatabaseLocation
119 ,OUString& _rConnectionResource
120 ,sal_Int32& _nCommandType
122 ,OUString& _rFieldName
132 virtual void AddSupportedFormats()
override;
133 virtual bool GetData(
const css::datatransfer::DataFlavor& rFlavor,
const OUString& rDestDoc )
override;
138 const OUString& _rDatasource
139 ,
const OUString& _rConnectionResource
140 ,
const sal_Int32 _nCommandType
141 ,
const OUString& _rCommand
142 ,
const OUString& _rFieldName
171 const OUString& _rDatasource,
172 const sal_Int32 _nCommandType,
173 const OUString& _rCommand,
174 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection
186 const OUString& _rDatasource,
187 const sal_Int32 _nCommandType,
188 const OUString& _rCommand
194 const css::uno::Reference< css::beans::XPropertySet >& _rxLivingForm
213 virtual void AddSupportedFormats()
override;
214 virtual bool GetData(
const css::datatransfer::DataFlavor& rFlavor,
const OUString& rDestDoc )
override;
215 virtual void ObjectReleased()
override;
221 void addCompatibleSelectionDescription(
222 const css::uno::Sequence< css::uno::Any >& _rSelRows
229 SVX_DLLPRIVATE void construct(
const OUString& _rDatasourceOrLocation
230 ,
const OUString& _rConnectionResource
231 ,
const sal_Int32 _nCommandType
232 ,
const OUString& _rCommand
233 ,
const css::uno::Reference< css::sdbc::XConnection >& _rxConnection
235 ,
const OUString& _sActiveCommand);
248 void setDescriptors(
const css::uno::Sequence< css::beans::PropertyValue >& rDescriptors);
260 static css::uno::Sequence< css::beans::PropertyValue > extractDescriptor(
const TransferableDataHelper& _rData);
263 virtual void AddSupportedFormats()
override;
264 virtual bool GetData(
const css::datatransfer::DataFlavor& rFlavor,
const OUString& rDestDoc )
override;
265 virtual void ObjectReleased()
override;
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
OUString m_sCompatibleFormat
ODataAccessDescriptor m_aDescriptor
ColumnTransferFormatFlags m_nFormatFlags
class encapsulating the css::sdb::DataAccessDescriptor service.
class for transferring data access objects (tables, queries, statements ...)
void Update(const OUString &_rDatasource, const sal_Int32 _nCommandType, const OUString &_rCommand, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection)
should be used copying and the connection is needed.
OUString m_sCompatibleObjectDescription
ODataAccessObjectTransferable(const css::uno::Reference< css::beans::XPropertySet > &_rxLivingForm)
with this ctor, only the object descriptor format will be provided
ODataAccessDescriptor & getDescriptor()
const ODataAccessDescriptor & getDescriptor() const
ODataAccessDescriptor m_aDescriptor
class for transferring multiple columns
css::uno::Sequence< css::beans::PropertyValue > m_aDescriptors
ColumnTransferFormatFlags
::std::vector< DataFlavorEx > DataFlavorExVector
class SAL_NO_VTABLE XPropertySet
#define SVXCORE_DLLPUBLIC