diff options
author | Frank Schönheit <fs@openoffice.org> | 2001-08-07 07:57:14 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2001-08-07 07:57:14 +0000 |
commit | b383b6abe9143f49c15bbdec149b77c53af74f66 (patch) | |
tree | 8016a7e7adda46f65aca7db0f1d81e80839964e0 /svx | |
parent | 4c7617a4caf693fea0ed15997f0e35f5bb0b233c (diff) |
#90660# +addDataToContainer
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/fmcomp/dbaexchange.cxx | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/svx/source/fmcomp/dbaexchange.cxx b/svx/source/fmcomp/dbaexchange.cxx index e6719760e7b5..8d1bfd4c4967 100644 --- a/svx/source/fmcomp/dbaexchange.cxx +++ b/svx/source/fmcomp/dbaexchange.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dbaexchange.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: fs $ $Date: 2001-08-02 15:23:27 $ + * last change: $Author: fs $ $Date: 2001-08-07 08:57:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -382,6 +382,26 @@ namespace svx return sal_True; } + //-------------------------------------------------------------------- + void OColumnTransferable::addDataToContainer( TransferDataContainer* _pContainer ) + { + OSL_ENSURE( _pContainer, "OColumnTransferable::addDataToContainer: invalid container!" ); + if ( _pContainer ) + { + if ( m_nFormatFlags & CTF_FIELD_DESCRIPTOR ) + _pContainer->CopyAny( SOT_FORMATSTR_ID_SBA_FIELDDATAEXCHANGE, makeAny( m_sCompatibleFormat ) ); + + if ( m_nFormatFlags & CTF_CONTROL_EXCHANGE ) + _pContainer->CopyAny( SOT_FORMATSTR_ID_SBA_CTRLDATAEXCHANGE, makeAny( m_sCompatibleFormat ) ); + + if ( m_nFormatFlags & CTF_COLUMN_DESCRIPTOR ) + { + Any aContent = makeAny( m_aDescriptor.createPropertyValueSequence() ); + _pContainer->CopyAny( getDescriptorFormatId(), aContent ); + } + } + } + //==================================================================== //= ODataAccessObjectTransferable //==================================================================== @@ -660,6 +680,9 @@ namespace svx /************************************************************************* * history: * $Log: not supported by cvs2svn $ + * Revision 1.6 2001/08/02 15:23:27 fs + * #90525# +ODataAccessObjectTransferable + * * Revision 1.5 2001/04/27 09:22:38 fs * #86303# use another content type for the own clipboard format * |