Commented out some debug statements

Unknown formats are now get their data via GetText
This commit is contained in:
rods%netscape.com 1999-04-27 01:03:54 +00:00
parent 4913ab0962
commit e1798ddde6

View File

@ -203,7 +203,8 @@ BOOL nsDataObj::FormatsMatch(const FORMATETC& source, const FORMATETC& target) c
STDMETHODIMP nsDataObj::GetData(LPFORMATETC pFE, LPSTGMEDIUM pSTM)
{
printf("nsDataObj::GetData\n");
//printf("nsDataObj::GetData\n");
//printf(" format: %d Text: %d\n", pFE->cfFormat, CF_TEXT);
if (nsnull == mTransferable) {
return ResultFromScode(DATA_E_FORMATETC);
}
@ -230,6 +231,8 @@ STDMETHODIMP nsDataObj::GetData(LPFORMATETC pFE, LPSTGMEDIUM pSTM)
//case CF_METAFILEPICT:
// return GetMetafilePict(*pFE, *pSTM);
default:
//printf("***** nsDataObj::GetData - Unknown format %d\n", format);
return GetText(df, *pFE, *pSTM);
break;
} //switch
} // if
@ -245,7 +248,7 @@ STDMETHODIMP nsDataObj::GetData(LPFORMATETC pFE, LPSTGMEDIUM pSTM)
STDMETHODIMP nsDataObj::GetDataHere(LPFORMATETC pFE, LPSTGMEDIUM pSTM)
{
printf("nsDataObj::GetDataHere\n");
//printf("nsDataObj::GetDataHere\n");
//if (m_dragDrop) {
// return m_dragDrop->GetDataHere(pFE, pSTM);
//} else {
@ -256,8 +259,8 @@ STDMETHODIMP nsDataObj::GetDataHere(LPFORMATETC pFE, LPSTGMEDIUM pSTM)
STDMETHODIMP nsDataObj::QueryGetData(LPFORMATETC pFE)
{
printf("nsDataObj::QueryGetData ");
printf("format: %d Text: %d\n", pFE->cfFormat, CF_TEXT);
//printf("nsDataObj::QueryGetData ");
//printf("format: %d Text: %d\n", pFE->cfFormat, CF_TEXT);
PRUint32 dfInx = 0;
@ -269,13 +272,14 @@ STDMETHODIMP nsDataObj::QueryGetData(LPFORMATETC pFE)
return S_OK;
}
}
//printf("***** nsDataObj::QueryGetData - Unknown format %d\n", pFE->cfFormat);
return ResultFromScode(E_FAIL);
}
STDMETHODIMP nsDataObj::GetCanonicalFormatEtc
(LPFORMATETC pFEIn, LPFORMATETC pFEOut)
{
printf("nsDataObj::GetCanonicalFormatEtc\n");
//printf("nsDataObj::GetCanonicalFormatEtc\n");
//if (m_dragDrop) {
// return m_dragDrop->GetCanonicalFormatEtc(pFEIn, pFEOut);
//} else {
@ -286,7 +290,7 @@ STDMETHODIMP nsDataObj::GetCanonicalFormatEtc
STDMETHODIMP nsDataObj::SetData(LPFORMATETC pFE, LPSTGMEDIUM pSTM, BOOL fRelease)
{
printf("nsDataObj::SetData\n");
//printf("nsDataObj::SetData\n");
return ResultFromScode(E_FAIL);
//return m_dragDrop->SetData(pFE, pSTM, fRelease);
}
@ -294,7 +298,7 @@ STDMETHODIMP nsDataObj::SetData(LPFORMATETC pFE, LPSTGMEDIUM pSTM, BOOL fRelease
STDMETHODIMP nsDataObj::EnumFormatEtc(DWORD dwDir, LPENUMFORMATETC *ppEnum)
{
printf("nsDataObj::EnumFormatEtc\n");
//printf("nsDataObj::EnumFormatEtc\n");
switch (dwDir) {
case DATADIR_GET: {
@ -319,20 +323,20 @@ STDMETHODIMP nsDataObj::EnumFormatEtc(DWORD dwDir, LPENUMFORMATETC *ppEnum)
STDMETHODIMP nsDataObj::DAdvise(LPFORMATETC pFE, DWORD dwFlags,
LPADVISESINK pIAdviseSink, DWORD* pdwConn)
{
printf("nsDataObj::DAdvise\n");
//printf("nsDataObj::DAdvise\n");
return ResultFromScode(E_FAIL);
}
STDMETHODIMP nsDataObj::DUnadvise(DWORD dwConn)
{
printf("nsDataObj::DUnadvise\n");
//printf("nsDataObj::DUnadvise\n");
return ResultFromScode(E_FAIL);
}
STDMETHODIMP nsDataObj::EnumDAdvise(LPENUMSTATDATA *ppEnum)
{
printf("nsDataObj::EnumDAdvise\n");
//printf("nsDataObj::EnumDAdvise\n");
return ResultFromScode(E_FAIL);
}