/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
*
This interface contains some methods that create connections between
the content and the RDF metadata of an ODF document.
The main idea is to make querying and manipulating the
data in the metadata manifest easier.
Note that this interface inherits from
This convenience method does the following:
rdf:type
property of the requested named graphs
@returns
the names of all metadata graphs that have a rdf:type
property with the given Type as object
@throws com::sun::star::lang::IllegalArgumentException
if the given Type is
rdf:type
properties
for the new graph into the manifest graph
rdf:type
properties for the graph
@returns
the name of the new graph
@throws com::sun::star::lang::IllegalArgumentException
if the FileName is invalid
@throws com::sun::star::container::ElementExistException
if a stream with the given FileName already exists
*/
XURI addMetadataFile([in] string FileName,
[in] sequenceThis convenience method does the following:
rdf:type
properties
for the new graph into the manifest graphrdf:type
properties for the graph
@returns
the name of the new graph
@throws com::sun::star::lang::IllegalArgumentException
if the given stream is This convenience method does the following:
This convenience method adds the required statements declaring a content or styles file to the manifest graph.
odf:ContentFile
is added.odf:StylesFile
is added.This convenience method removes the statements declaring a content or styles file from the manifest graph.
@param FileName the name of the stream in the ODF storage @throws com::sun::star::lang::IllegalArgumentException if the FileName is invalid @throws com::sun::star::container::NoSuchElementException if a graph with the given GraphName does not exist */ void removeContentOrStylesFile([in] string FileName) raises( com::sun::star::lang::IllegalArgumentException, com::sun::star::container::NoSuchElementException ); //------------------------------------------------------------------------- /** initialize document metadata from a storage.This method re-initializes the document metadata, loads the stream named "manifest.rdf" from the storage, and then loads all metadata streams mentioned in the manifest.
Note that it is not an error if the storage does not contain a manifest. In this case, the document metadata will be default initialized.
If an InteractionHandler argument is given, it will be used for error reporting. Otherwise, errors will be reported as exceptions.
@param Storage a storage, representing e.g. an ODF package file, or sub-document @param BaseURI a base URI to resolve relative URI referencesN.B.: when loading from an ODF package, the base URI is not the URI of the package, but the URI of the directory in the package that contains the metadata.rdf
@param InteractionHandler an InteractionHandler, used for error reporting @throws com::sun::star::lang::IllegalArgumentException if any argument isThis method stores all the graphs in the document metadata repository to the given storage.
Note that to be stored correctly, a named graph must have a complete entry in the manifest graph.
@param Storage a storage, representing e.g. an ODF package file, or sub-document @throws com::sun::star::lang::IllegalArgumentException if Storage argument isIf the Medium contains an InteractionHandler, it will be used for error reporting.
@param Medium the