update credits
[LibreOffice.git] / include / xmloff / settingsstore.hxx
blobed26170d4dccbc9f061934555b11f13c1ab1cbac
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 // Simple interface to allow serialization of document settings
12 #ifndef _XMLOFF_SETTINGS_STORE_HXX
13 #define _XMLOFF_SETTINGS_STORE_HXX
15 #include <vector>
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 {
22 public:
23 // Import objects and update properties (eliding URLs)
24 virtual com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>
25 filterStreamsFromStorage(
26 const com::sun::star::uno::Reference< com::sun::star::embed::XStorage > &xStorage,
27 const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aConfigProps ) = 0;
28 // Export objects and update properties with relative URLs into this storage
29 virtual com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>
30 filterStreamsToStorage(
31 const com::sun::star::uno::Reference< com::sun::star::embed::XStorage > &xStorage,
32 const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aConfigProps ) = 0;
34 protected:
35 ~DocumentSettingsSerializer() {}
38 #endif // _XMLOFF_SETTINGS_STORE_HXX
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */