summaryrefslogtreecommitdiff
path: root/include/sfx2/DocumentMetadataAccess.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/sfx2/DocumentMetadataAccess.hxx')
-rw-r--r--include/sfx2/DocumentMetadataAccess.hxx173
1 files changed, 78 insertions, 95 deletions
diff --git a/include/sfx2/DocumentMetadataAccess.hxx b/include/sfx2/DocumentMetadataAccess.hxx
index 8c180c0072eb..0433e4547a6c 100644
--- a/include/sfx2/DocumentMetadataAccess.hxx
+++ b/include/sfx2/DocumentMetadataAccess.hxx
@@ -59,12 +59,10 @@ namespace sfx2 {
@return a base URI suitable for XDocumentMetadataAccess::loadFromStorage
*/
-::com::sun::star::uno::Reference< ::com::sun::star::rdf::XURI> SFX2_DLLPUBLIC
+css::uno::Reference< css::rdf::XURI> SFX2_DLLPUBLIC
createBaseURI(
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext>
- const & i_xContext,
- ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage>
- const & i_xStorage,
+ css::uno::Reference< css::uno::XComponentContext> const & i_xContext,
+ css::uno::Reference< css::embed::XStorage> const & i_xStorage,
OUString const & i_rPkgURI,
OUString const & i_rSubDocument = OUString());
@@ -75,125 +73,110 @@ struct DocumentMetadataAccess_Impl;
class SFX2_DLLPUBLIC DocumentMetadataAccess :
private boost::noncopyable,
- public ::cppu::WeakImplHelper1<
- ::com::sun::star::rdf::XDocumentMetadataAccess>
+ public ::cppu::WeakImplHelper1< css::rdf::XDocumentMetadataAccess>
{
public:
- explicit DocumentMetadataAccess(::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XComponentContext > const & i_xContext,
+ explicit DocumentMetadataAccess(css::uno::Reference< css::uno::XComponentContext > const & i_xContext,
IXmlIdRegistrySupplier const & i_rRegistrySupplier,
OUString const & i_rBaseURI);
// N.B.: in contrast to previous, this constructor does _not_ initialize!
// caller must immediately call loadFromStorage/Medium!
- explicit DocumentMetadataAccess(::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XComponentContext > const & i_xContext,
+ explicit DocumentMetadataAccess(css::uno::Reference< css::uno::XComponentContext > const & i_xContext,
IXmlIdRegistrySupplier const & i_rRegistrySupplier);
virtual ~DocumentMetadataAccess();
- // ::com::sun::star::rdf::XNode:
+ // css::rdf::XNode:
virtual OUString SAL_CALL getStringValue()
- throw (::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw (css::uno::RuntimeException, std::exception) override;
- // ::com::sun::star::rdf::XURI:
+ // css::rdf::XURI:
virtual OUString SAL_CALL getNamespace()
- throw (::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw (css::uno::RuntimeException, std::exception) override;
virtual OUString SAL_CALL getLocalName()
- throw (::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw (css::uno::RuntimeException, std::exception) override;
- // ::com::sun::star::rdf::XRepositorySupplier:
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::rdf::XRepository > SAL_CALL getRDFRepository()
- throw (::com::sun::star::uno::RuntimeException, std::exception) override;
+ // css::rdf::XRepositorySupplier:
+ virtual css::uno::Reference<
+ css::rdf::XRepository > SAL_CALL getRDFRepository()
+ throw (css::uno::RuntimeException, std::exception) override;
- // ::com::sun::star::rdf::XDocumentMetadataAccess:
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::rdf::XMetadatable > SAL_CALL
+ // css::rdf::XDocumentMetadataAccess:
+ virtual css::uno::Reference<
+ css::rdf::XMetadatable > SAL_CALL
getElementByMetadataReference(
- const ::com::sun::star::beans::StringPair & i_rReference)
- throw (::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::rdf::XMetadatable > SAL_CALL
- getElementByURI(const ::com::sun::star::uno::Reference<
- ::com::sun::star::rdf::XURI > & i_xURI)
- throw (::com::sun::star::uno::RuntimeException,
- ::com::sun::star::lang::IllegalArgumentException, std::exception) override;
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference<
- ::com::sun::star::rdf::XURI > > SAL_CALL getMetadataGraphsWithType(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rdf::XURI > & i_xType)
- throw (::com::sun::star::uno::RuntimeException,
- ::com::sun::star::lang::IllegalArgumentException, std::exception) override;
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::rdf::XURI> SAL_CALL
+ const css::beans::StringPair & i_rReference)
+ throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::rdf::XMetadatable > SAL_CALL
+ getElementByURI(const css::uno::Reference< css::rdf::XURI > & i_xURI)
+ throw (css::uno::RuntimeException,
+ css::lang::IllegalArgumentException, std::exception) override;
+ virtual css::uno::Sequence< css::uno::Reference< css::rdf::XURI > > SAL_CALL getMetadataGraphsWithType(
+ const css::uno::Reference< css::rdf::XURI > & i_xType)
+ throw (css::uno::RuntimeException,
+ css::lang::IllegalArgumentException, std::exception) override;
+ virtual css::uno::Reference< css::rdf::XURI> SAL_CALL
addMetadataFile(const OUString & i_rFileName,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XURI >
- > & i_rTypes)
- throw (::com::sun::star::uno::RuntimeException,
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::container::ElementExistException, std::exception) override;
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::rdf::XURI> SAL_CALL
+ const css::uno::Sequence< css::uno::Reference< css::rdf::XURI > > & i_rTypes)
+ throw (css::uno::RuntimeException,
+ css::lang::IllegalArgumentException,
+ css::container::ElementExistException, std::exception) override;
+ virtual css::uno::Reference< css::rdf::XURI> SAL_CALL
importMetadataFile(::sal_Int16 i_Format,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::io::XInputStream > & i_xInStream,
+ const css::uno::Reference< css::io::XInputStream > & i_xInStream,
const OUString & i_rFileName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rdf::XURI > & i_xBaseURI,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XURI >
- > & i_rTypes)
- throw (::com::sun::star::uno::RuntimeException,
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::datatransfer::UnsupportedFlavorException,
- ::com::sun::star::container::ElementExistException,
- ::com::sun::star::rdf::ParseException,
- ::com::sun::star::io::IOException, std::exception) override;
+ const css::uno::Reference< css::rdf::XURI > & i_xBaseURI,
+ const css::uno::Sequence< css::uno::Reference< css::rdf::XURI > > & i_rTypes)
+ throw (css::uno::RuntimeException,
+ css::lang::IllegalArgumentException,
+ css::datatransfer::UnsupportedFlavorException,
+ css::container::ElementExistException,
+ css::rdf::ParseException,
+ css::io::IOException, std::exception) override;
virtual void SAL_CALL removeMetadataFile(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rdf::XURI > & i_xGraphName)
- throw (::com::sun::star::uno::RuntimeException,
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::container::NoSuchElementException, std::exception) override;
+ const css::uno::Reference<
+ css::rdf::XURI > & i_xGraphName)
+ throw (css::uno::RuntimeException,
+ css::lang::IllegalArgumentException,
+ css::container::NoSuchElementException, std::exception) override;
virtual void SAL_CALL addContentOrStylesFile(
const OUString & i_rFileName)
- throw (::com::sun::star::uno::RuntimeException,
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::container::ElementExistException, std::exception) override;
+ throw (css::uno::RuntimeException,
+ css::lang::IllegalArgumentException,
+ css::container::ElementExistException, std::exception) override;
virtual void SAL_CALL removeContentOrStylesFile(
const OUString & i_rFileName)
- throw (::com::sun::star::uno::RuntimeException,
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::container::NoSuchElementException, std::exception) override;
+ throw (css::uno::RuntimeException,
+ css::lang::IllegalArgumentException,
+ css::container::NoSuchElementException, std::exception) override;
virtual void SAL_CALL loadMetadataFromStorage(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::embed::XStorage > & i_xStorage,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rdf::XURI > & i_xBaseURI,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::task::XInteractionHandler> & i_xHandler)
- throw (::com::sun::star::uno::RuntimeException,
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::lang::WrappedTargetException, std::exception) override;
+ const css::uno::Reference<
+ css::embed::XStorage > & i_xStorage,
+ const css::uno::Reference<
+ css::rdf::XURI > & i_xBaseURI,
+ const css::uno::Reference<
+ css::task::XInteractionHandler> & i_xHandler)
+ throw (css::uno::RuntimeException,
+ css::lang::IllegalArgumentException,
+ css::lang::WrappedTargetException, std::exception) override;
virtual void SAL_CALL storeMetadataToStorage(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::embed::XStorage > & i_xStorage)
- throw (::com::sun::star::uno::RuntimeException,
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::lang::WrappedTargetException, std::exception) override;
+ const css::uno::Reference<
+ css::embed::XStorage > & i_xStorage)
+ throw (css::uno::RuntimeException,
+ css::lang::IllegalArgumentException,
+ css::lang::WrappedTargetException, std::exception) override;
virtual void SAL_CALL loadMetadataFromMedium(
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue > & i_rMedium)
- throw (::com::sun::star::uno::RuntimeException,
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::lang::WrappedTargetException, std::exception) override;
+ const css::uno::Sequence<
+ css::beans::PropertyValue > & i_rMedium)
+ throw (css::uno::RuntimeException,
+ css::lang::IllegalArgumentException,
+ css::lang::WrappedTargetException, std::exception) override;
virtual void SAL_CALL storeMetadataToMedium(
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue > & i_rMedium)
- throw (::com::sun::star::uno::RuntimeException,
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::lang::WrappedTargetException, std::exception) override;
+ const css::uno::Sequence<
+ css::beans::PropertyValue > & i_rMedium)
+ throw (css::uno::RuntimeException,
+ css::lang::IllegalArgumentException,
+ css::lang::WrappedTargetException, std::exception) override;
private:
std::unique_ptr<DocumentMetadataAccess_Impl> m_pImpl;