LibreOffice Module sc (master) 1
bulkdatahint.hxx
Go to the documentation of this file.
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
14class ScDocument;
15
16namespace sc
17{
18class ColumnSpanSet;
19
20class BulkDataHint final : public SfxHint
21{
24
25public:
27 : SfxHint(nHintId)
28 , mrDoc(rDoc)
29 , mpSpans(nullptr)
30 {
31 }
32
33 void setSpans(const ColumnSpanSet* pSpans) { mpSpans = pSpans; }
34 const ColumnSpanSet* getSpans() const { return mpSpans; }
35
36 ScDocument& getDoc() { return mrDoc; }
37};
38}
39
40/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const ColumnSpanSet * getSpans() const
const ColumnSpanSet * mpSpans
ScDocument & getDoc()
BulkDataHint(ScDocument &rDoc, SfxHintId nHintId)
void setSpans(const ColumnSpanSet *pSpans)
ScDocument & mrDoc
Structure that stores segments of boolean flags per column, and perform custom action on those segmen...
SfxHintId
CAUTION! The following defines must be in the same namespace as the respective type.