/src/libreoffice/sc/inc/bulkdatahint.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 | | #pragma once |
11 | | |
12 | | #include <svl/hint.hxx> |
13 | | |
14 | | class ScDocument; |
15 | | |
16 | | namespace sc |
17 | | { |
18 | | class ColumnSpanSet; |
19 | | |
20 | | class BulkDataHint final : public SfxHint |
21 | | { |
22 | | ScDocument& mrDoc; |
23 | | const ColumnSpanSet* mpSpans; |
24 | | |
25 | | public: |
26 | | BulkDataHint(ScDocument& rDoc) |
27 | 0 | : SfxHint(SfxHintId::ScBulkData) |
28 | 0 | , mrDoc(rDoc) |
29 | 0 | , mpSpans(nullptr) |
30 | 0 | { |
31 | 0 | } |
32 | | |
33 | 0 | void setSpans(const ColumnSpanSet* pSpans) { mpSpans = pSpans; } |
34 | 0 | const ColumnSpanSet* getSpans() const { return mpSpans; } |
35 | | |
36 | 0 | ScDocument& getDoc() { return mrDoc; } |
37 | | }; |
38 | | } |
39 | | |
40 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |