1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 // Simple interface to allow serialization of document settings
12 #ifndef INCLUDED_XMLOFF_SETTINGSSTORE_HXX
13 #define INCLUDED_XMLOFF_SETTINGSSTORE_HXX
16 #include <com/sun/star/beans/PropertyValue.hpp>
17 #include <com/sun/star/embed/XStorage.hpp>
19 // Scans list of properties for certain URL properties that could refer
20 // to internal objects, and initializes from these.
21 class DocumentSettingsSerializer
{
23 // Import objects and update properties (eliding URLs)
24 virtual com::sun::star::uno::Sequence
<com::sun::star::beans::PropertyValue
>
25 filterStreamsFromStorage(
26 OUString
const & referer
,
27 const com::sun::star::uno::Reference
< com::sun::star::embed::XStorage
> &xStorage
,
28 const com::sun::star::uno::Sequence
<com::sun::star::beans::PropertyValue
>& aConfigProps
) = 0;
29 // Export objects and update properties with relative URLs into this storage
30 virtual com::sun::star::uno::Sequence
<com::sun::star::beans::PropertyValue
>
31 filterStreamsToStorage(
32 const com::sun::star::uno::Reference
< com::sun::star::embed::XStorage
> &xStorage
,
33 const com::sun::star::uno::Sequence
<com::sun::star::beans::PropertyValue
>& aConfigProps
) = 0;
36 ~DocumentSettingsSerializer() {}
39 #endif // INCLUDED_XMLOFF_SETTINGSSTORE_HXX
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */