Doing a bit more code reading; it seems that the likeliest place to add an osl_syncFile - or somesuch UNO call to either the ucb/ or package/ code is the SfxMedium code:
sfx2/source/doc/docfile.cxx (Transfer_Impl)
perhaps this, or hereabouts:
// copy the temporary storage into the disk spanned package GetStorage()->copyToStorage( xStor ); uno::Reference < embed::XTransactedObject > xTrans( pImp->xStorage, uno::UNO_QUERY );
if ( xTrans.is() ) xTrans->commit();
but some stepping through in the debugger is needed there I guess.
Doing a bit more code reading; it seems that the likeliest place to add an osl_syncFile - or somesuch UNO call to either the ucb/ or package/ code is the SfxMedium code:
sfx2/source/ doc/docfile. cxx (Transfer_Impl)
perhaps this, or hereabouts:
// copy the temporary storage into the disk spanned package
GetStorage( )->copyToStorag e( xStor );
uno:: Reference < embed:: XTransactedObje ct > xTrans( pImp->xStorage, uno::UNO_QUERY );
xTrans- >commit( );
if ( xTrans.is() )
but some stepping through in the debugger is needed there I guess.