LibreOffice Module sc (master) 1
UndoEditSparkline.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
11#pragma once
12
13#include <undobase.hxx>
14#include <address.hxx>
15#include <rangelst.hxx>
16#include <memory>
17
18namespace sc
19{
20class Sparkline;
21struct SparklineData;
22
25{
26private:
27 std::shared_ptr<sc::Sparkline> mpSparkline;
31
32public:
33 UndoEditSparkline(ScDocShell& rDocShell, std::shared_ptr<sc::Sparkline> pSparkline, SCTAB nTab,
34 ScRangeList rDataRange);
35
36 virtual ~UndoEditSparkline() override;
37
38 void Undo() override;
39 void Redo() override;
40 bool CanRepeat(SfxRepeatTarget& rTarget) const override;
41 void Repeat(SfxRepeatTarget& rTarget) override;
42 OUString GetComment() const override;
43};
44
45} // namespace sc
46
47/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Undo action for editing a Sparkline.
UndoEditSparkline(ScDocShell &rDocShell, std::shared_ptr< sc::Sparkline > pSparkline, SCTAB nTab, ScRangeList rDataRange)
void Repeat(SfxRepeatTarget &rTarget) override
std::shared_ptr< sc::Sparkline > mpSparkline
OUString GetComment() const override
virtual ~UndoEditSparkline() override
bool CanRepeat(SfxRepeatTarget &rTarget) const override
CAUTION! The following defines must be in the same namespace as the respective type.
Definition: broadcast.cxx:15
sal_Int16 SCTAB
Definition: types.hxx:22