fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / core / tool / bulkdatahint.cxx
blob78c238444c1f23921768e4ac4999c9a0966357ce
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 #include <bulkdatahint.hxx>
12 namespace sc {
14 struct BulkDataHint::Impl
16 ScDocument& mrDoc;
17 const ColumnSpanSet* mpSpans;
19 Impl( ScDocument& rDoc, const ColumnSpanSet* pSpans ) :
20 mrDoc(rDoc),
21 mpSpans(pSpans) {}
24 BulkDataHint::BulkDataHint( ScDocument& rDoc, const ColumnSpanSet* pSpans ) :
25 SfxSimpleHint(SC_HINT_BULK_DATACHANGED), mpImpl(new Impl(rDoc, pSpans)) {}
27 BulkDataHint::~BulkDataHint()
29 delete mpImpl;
32 void BulkDataHint::setSpans( const ColumnSpanSet* pSpans )
34 mpImpl->mpSpans = pSpans;
37 const ColumnSpanSet* BulkDataHint::getSpans() const
39 return mpImpl->mpSpans;
42 ScDocument& BulkDataHint::getDoc()
44 return mpImpl->mrDoc;
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */