/src/libreoffice/include/xmloff/settingsstore.hxx
Line | Count | Source |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 | | /* |
3 | | * This file is part of the LibreOffice project. |
4 | | * |
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 | | */ |
9 | | |
10 | | // Simple interface to allow serialization of document settings |
11 | | |
12 | | #pragma once |
13 | | |
14 | | #include <rtl/ustring.hxx> |
15 | | |
16 | | namespace com::sun::star::beans { struct PropertyValue; } |
17 | | namespace com::sun::star::embed { class XStorage; } |
18 | | namespace com::sun::star::uno { template <typename > class Reference; } |
19 | | namespace com::sun::star::uno { template <typename> class Sequence; } |
20 | | |
21 | | // Scans list of properties for certain URL properties that could refer |
22 | | // to internal objects, and initializes from these. |
23 | | class SAL_DLLPUBLIC_RTTI SAL_LOPLUGIN_ANNOTATE("crosscast") DocumentSettingsSerializer { |
24 | | public: |
25 | | // Import objects and update properties (eliding URLs) |
26 | | virtual css::uno::Sequence<css::beans::PropertyValue> |
27 | | filterStreamsFromStorage( |
28 | | OUString const & referer, |
29 | | const css::uno::Reference< css::embed::XStorage > &xStorage, |
30 | | const css::uno::Sequence<css::beans::PropertyValue>& aConfigProps ) = 0; |
31 | | // Export objects and update properties with relative URLs into this storage |
32 | | virtual css::uno::Sequence<css::beans::PropertyValue> |
33 | | filterStreamsToStorage( |
34 | | const css::uno::Reference< css::embed::XStorage > &xStorage, |
35 | | const css::uno::Sequence<css::beans::PropertyValue>& aConfigProps ) = 0; |
36 | | |
37 | | protected: |
38 | 1.31k | ~DocumentSettingsSerializer() {} |
39 | | }; |
40 | | |
41 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |