build fix
[LibreOffice.git] / sc / inc / importfilterdata.hxx
blob38796fc057003ef789f43ee48cde97dbbbf78713
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 #ifndef INCLUDED_SC_INC_IMPORTFILTERDATA_HXX
11 #define INCLUDED_SC_INC_IMPORTFILTERDATA_HXX
13 #include "address.hxx"
15 #include <memory>
17 namespace sc {
19 /**
20 * Stores data imported from the file that need to be processed at the end
21 * of the import process.
23 struct ImportPostProcessData
25 ImportPostProcessData() = default;
26 ImportPostProcessData(const ImportPostProcessData&) = delete;
27 const ImportPostProcessData& operator=(const ImportPostProcessData&) = delete;
28 ~ImportPostProcessData() = default;
29 /**
30 * Data stream data needs to be post-processed because it requires
31 * ScDocShell instance which is not available in the filter code.
33 struct DataStream
35 enum InsertPos { InsertTop, InsertBottom };
37 OUString maURL;
38 ScRange maRange;
39 bool mbRefreshOnEmpty;
40 InsertPos meInsertPos;
42 DataStream();
45 std::unique_ptr<DataStream> mpDataStream;
50 #endif
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */