To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=57047
------- Additional comments from [EMAIL PROTECTED] Mon Jul 10 03:04:12 -0700
2006 -------
The whole MediaDescriptor should be passed to the InsertFile method.
Inside this method you could do the following:
#include <sfx2/sfxuno.hxx>
pMed = new SfxMedium(rFileName, STREAM_READ, sal_True, 0, 0 );
TransformParameters( SID_OPENDOC, aMedium, *pMedium->GetItemSet() );
SFX_ITEMSET_ARG( pItem, SID_FILTERNAME, .... );
if ( pItem )
{
SfxObjectFactory& rFact = pDocSh->GetFactory();
const SfxFilter* pFilter =
rFact.GetFilterContainer()->GetFilter4FilterName( pItem->GetValue() );
if ( pFilter )
{
pMedium->SetFilter( pFilter );
}
else
DELETEZ(pMed);
}
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]