Version 7.5.1.1, tag libreoffice-7.5.1.1
[LibreOffice.git] / sc / inc / importfilterdata.hxx
blobfb054c7ccddc8439ddae05a40402b44589ac05b6
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 #pragma once
12 #include "address.hxx"
14 #include <memory>
16 namespace sc {
18 /**
19 * Stores data imported from the file that need to be processed at the end
20 * of the import process.
22 struct ImportPostProcessData
24 ImportPostProcessData() = default;
25 ImportPostProcessData(const ImportPostProcessData&) = delete;
26 const ImportPostProcessData& operator=(const ImportPostProcessData&) = delete;
27 /**
28 * Data stream data needs to be post-processed because it requires
29 * ScDocShell instance which is not available in the filter code.
31 struct DataStream
33 enum InsertPos { InsertTop, InsertBottom };
35 OUString maURL;
36 ScRange maRange;
37 bool mbRefreshOnEmpty;
38 InsertPos meInsertPos;
40 DataStream();
43 std::unique_ptr<DataStream> mpDataStream;
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */