main/sfx2/source/doc/DocumentMetadataAccess.cxx
/** remove a file from the manifest */
remove a file from the manifest
remove a file from the manifest
static void
removeFile(struct DocumentMetadataAccess_Impl & i_rImpl,
    uno::Reference<rdf::XURI> const& i_xPart)
{
    if (!i_xPart.is()) throw uno::RuntimeException();
    try {
        i_rImpl.m_xManifest->removeStatements(i_rImpl.m_xBaseURI.get(),
            getURI<rdf::URIs::PKG_HASPART>(i_rImpl.m_xContext),
            i_xPart.get());
        i_rImpl.m_xManifest->removeStatements(i_xPart.get(),
            getURI<rdf::URIs::RDF_TYPE>(i_rImpl.m_xContext), 0);
    } catch (uno::RuntimeException &) {
        throw;
    } catch (uno::Exception & e) {
        throw lang::WrappedTargetRuntimeException(
            ::rtl::OUString::createFromAscii("removeFile: exception"),
            0, uno::makeAny(e));
    }
}
static void removeFile ( struct DocumentMetadataAccess_Impl & i_rImpl , uno :: Reference < rdf :: XURI > const & i_xPart ) { if ( ! i_xPart . is ( ) ) throw uno :: RuntimeException ( ) ; try { i_rImpl . m_xManifest -> removeStatements ( i_rImpl . m_xBaseURI . get ( ) , getURI < rdf :: URIs :: PKG_HASPART > ( i_rImpl . m_xContext ) , i_xPart . get ( ) ) ; i_rImpl . m_xManifest -> removeStatements ( i_xPart . get ( ) , getURI < rdf :: URIs :: RDF_TYPE > ( i_rImpl . m_xContext ) , 0 ) ; } catch ( uno :: RuntimeException & ) { throw ; } catch ( uno :: Exception & e ) { throw lang :: WrappedTargetRuntimeException ( :: rtl :: OUString :: createFromAscii ( " " ) , 0 , uno :: makeAny ( e ) ) ; } }
remove a file from the manifest
remove a file from the manifest