LOK: tilebench improvements
[LibreOffice.git] / sc / inc / importfilterdata.hxx
blob36b65fdd19e4ee1a88ee9e6c6e03380dec46945a
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 /**
29 * Data stream data needs to be post-processed because it requires
30 * ScDocShell instance which is not available in the filter code.
32 struct DataStream
34 enum InsertPos { InsertTop, InsertBottom };
36 OUString maURL;
37 ScRange maRange;
38 bool mbRefreshOnEmpty;
39 InsertPos meInsertPos;
41 DataStream();
44 std::unique_ptr<DataStream> mpDataStream;
49 #endif
51 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */