LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / sc / inc / bulkdatahint.hxx
blobd8d51bf96b1c9919293b7db21c30a64639d33349
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 <svl/hint.hxx>
13 #include <memory>
15 class ScDocument;
17 namespace sc
19 class ColumnSpanSet;
21 class BulkDataHint final : public SfxHint
23 ScDocument& mrDoc;
24 const ColumnSpanSet* mpSpans;
26 public:
27 BulkDataHint(ScDocument& rDoc, SfxHintId nHintId)
28 : SfxHint(nHintId)
29 , mrDoc(rDoc)
30 , mpSpans(nullptr)
34 void setSpans(const ColumnSpanSet* pSpans) { mpSpans = pSpans; }
35 const ColumnSpanSet* getSpans() const { return mpSpans; }
37 ScDocument& getDoc() { return mrDoc; }
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */