Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / inc / importfilterdata.hxx
blob23cef833d2029c1b1b37172ffa66531d12d6b985
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 SC_IMPORTFILTERDATA_HXX
11 #define SC_IMPORTFILTERDATA_HXX
13 #include <address.hxx>
15 #include <boost/noncopyable.hpp>
16 #include <boost/scoped_ptr.hpp>
18 namespace sc {
20 /**
21 * Stores data imported from the file that need to be processed at the end
22 * of the import process.
24 struct ImportPostProcessData : boost::noncopyable
26 /**
27 * Data stream data needs to be post-processed because it requires
28 * ScDocShell instance which is not available in the filter code.
30 struct DataStream
32 enum InsertPos { InsertTop, InsertBottom };
34 OUString maURL;
35 ScRange maRange;
36 bool mbRefreshOnEmpty;
37 InsertPos meInsertPos;
39 DataStream();
42 boost::scoped_ptr<DataStream> mpDataStream;
47 #endif
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */