summaryrefslogtreecommitdiff
path: root/embedserv/source/embed/ed_idataobj.cxx
diff options
context:
space:
mode:
authorMikhail Voitenko <mav@openoffice.org>2003-03-25 07:21:01 +0000
committerMikhail Voitenko <mav@openoffice.org>2003-03-25 07:21:01 +0000
commit4117d55740abbc3987d486fa1044ffe5dbc0d1a4 (patch)
tree2606fed31e8055fc1703bbff0744f1a87173be3a /embedserv/source/embed/ed_idataobj.cxx
parent7b2cc59dd3f23501c198cc6c8660760bc43c59f8 (diff)
#i2822# support 'Embedded Object' clipboard format
Diffstat (limited to 'embedserv/source/embed/ed_idataobj.cxx')
-rwxr-xr-xembedserv/source/embed/ed_idataobj.cxx19
1 files changed, 13 insertions, 6 deletions
diff --git a/embedserv/source/embed/ed_idataobj.cxx b/embedserv/source/embed/ed_idataobj.cxx
index 3ed8ead5fadd..7920de0950b9 100755
--- a/embedserv/source/embed/ed_idataobj.cxx
+++ b/embedserv/source/embed/ed_idataobj.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ed_idataobj.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: mav $ $Date: 2003-03-12 15:37:57 $
+ * last change: $Author: mav $ $Date: 2003-03-25 08:21:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -176,6 +176,8 @@ STDMETHODIMP EmbedDocument_Impl::GetData( FORMATETC * pFormatetc, STGMEDIUM * pM
pMedium->tymed = TYMED_MFPICT;
pMedium->hMetaFilePict = hMeta;
pMedium->pUnkForRelease = NULL;
+
+ return S_OK;
}
return STG_E_MEDIUMFULL;
@@ -183,7 +185,8 @@ STDMETHODIMP EmbedDocument_Impl::GetData( FORMATETC * pFormatetc, STGMEDIUM * pM
else
{
CLIPFORMAT cf_embSource = RegisterClipboardFormatA( "Embed Source" );
- if ( pFormatetc->cfFormat == cf_embSource )
+ CLIPFORMAT cf_embObj = RegisterClipboardFormatA( "Embedded Object" );
+ if ( pFormatetc->cfFormat == cf_embSource || pFormatetc->cfFormat == cf_embObj )
{
if ( !( pFormatetc->tymed & TYMED_ISTORAGE ) )
return DV_E_TYMED;
@@ -221,7 +224,9 @@ STDMETHODIMP EmbedDocument_Impl::GetDataHere( FORMATETC * pFormatetc, STGMEDIUM
return DV_E_DVASPECT;
CLIPFORMAT cf_embSource = RegisterClipboardFormatA( "Embed Source" );
- if ( pFormatetc->cfFormat == cf_embSource )
+ CLIPFORMAT cf_embObj = RegisterClipboardFormatA( "Embedded Object" );
+
+ if ( pFormatetc->cfFormat == cf_embSource || pFormatetc->cfFormat == cf_embObj )
{
if ( !( pFormatetc->tymed & TYMED_ISTORAGE ) )
return DV_E_TYMED;
@@ -266,7 +271,8 @@ STDMETHODIMP EmbedDocument_Impl::QueryGetData( FORMATETC * pFormatetc )
else
{
CLIPFORMAT cf_embSource = RegisterClipboardFormatA( "Embed Source" );
- if ( pFormatetc->cfFormat == cf_embSource )
+ CLIPFORMAT cf_embObj = RegisterClipboardFormatA( "Embedded Object" );
+ if ( pFormatetc->cfFormat == cf_embSource || pFormatetc->cfFormat == cf_embObj )
{
if ( !( pFormatetc->tymed & TYMED_ISTORAGE ) )
return DV_E_TYMED;
@@ -302,7 +308,8 @@ STDMETHODIMP EmbedDocument_Impl::GetCanonicalFormatEtc( FORMATETC * pFormatetcIn
else
{
CLIPFORMAT cf_embSource = RegisterClipboardFormatA( "Embed Source" );
- if ( pFormatetcIn->cfFormat == cf_embSource )
+ CLIPFORMAT cf_embObj = RegisterClipboardFormatA( "Embedded Object" );
+ if ( pFormatetcIn->cfFormat == cf_embSource || pFormatetcIn->cfFormat == cf_embObj )
{
pFormatetcOut->tymed = TYMED_ISTORAGE;
return S_OK;