main/sfx2/source/doc/DocumentMetadataAccess.cxx
/** add statements declaring i_xResource to be a file of type i_xType with
    path i_rPath to manifest, with optional additional types i_pTypes */
add statements declaring i_xResource to be a file of type i_xType with
path i_rPath to manifest, with optional additional types i_pTypes
add statements declaring i_xResource to be a file of type i_xType with path i_rPath to manifest with optional additional types i_pTypes
static void
addFile(struct DocumentMetadataAccess_Impl & i_rImpl,
    uno::Reference<rdf::XURI> const& i_xType,
    ::rtl::OUString const & i_rPath,
    const uno::Sequence < uno::Reference< rdf::XURI > > * i_pTypes = 0)
{
    try {
        const uno::Reference<rdf::XURI> xURI( getURIForStream(
            i_rImpl, i_rPath) );
        i_rImpl.m_xManifest->addStatement(i_rImpl.m_xBaseURI.get(),
            getURI<rdf::URIs::PKG_HASPART>(i_rImpl.m_xContext),
            xURI.get());
        i_rImpl.m_xManifest->addStatement(xURI.get(),
            getURI<rdf::URIs::RDF_TYPE>(i_rImpl.m_xContext),
            i_xType.get());
        if (i_pTypes) {
            for (sal_Int32 i = 0; i < i_pTypes->getLength(); ++i) {
                i_rImpl.m_xManifest->addStatement(xURI.get(),
                    getURI<rdf::URIs::RDF_TYPE>(i_rImpl.m_xContext),
                    (*i_pTypes)[i].get());
            }
        }
    } catch (uno::RuntimeException &) {
        throw;
    } catch (uno::Exception & e) {
        throw lang::WrappedTargetRuntimeException(
            ::rtl::OUString::createFromAscii(
                "addFile: exception"), 0, uno::makeAny(e));
    }
}
static void addFile ( struct DocumentMetadataAccess_Impl & i_rImpl , uno :: Reference < rdf :: XURI > const & i_xType , :: rtl :: OUString const & i_rPath , const uno :: Sequence < uno :: Reference < rdf :: XURI > > * i_pTypes = 0 ) { try { const uno :: Reference < rdf :: XURI > xURI ( getURIForStream ( i_rImpl , i_rPath ) ) ; i_rImpl . m_xManifest -> addStatement ( i_rImpl . m_xBaseURI . get ( ) , getURI < rdf :: URIs :: PKG_HASPART > ( i_rImpl . m_xContext ) , xURI . get ( ) ) ; i_rImpl . m_xManifest -> addStatement ( xURI . get ( ) , getURI < rdf :: URIs :: RDF_TYPE > ( i_rImpl . m_xContext ) , i_xType . get ( ) ) ; if ( i_pTypes ) { for ( sal_Int32 i = 0 ; i < i_pTypes -> getLength ( ) ; ++ i ) { i_rImpl . m_xManifest -> addStatement ( xURI . get ( ) , getURI < rdf :: URIs :: RDF_TYPE > ( i_rImpl . m_xContext ) , ( * i_pTypes ) [ i ] . get ( ) ) ; } } } catch ( uno :: RuntimeException & ) { throw ; } catch ( uno :: Exception & e ) { throw lang :: WrappedTargetRuntimeException ( :: rtl :: OUString :: createFromAscii ( " " ) , 0 , uno :: makeAny ( e ) ) ; } }
add statements declaring i_xResource to be a file of type i_xType with
path i_rPath to manifest, with optional additional types i_pTypes
add statements declaring i_xResource to be a file of type i_xType with path i_rPath to manifest with optional additional types i_pTypes
/*this*/