LibreOffice Module sc (master) 1
UndoThemeChange.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 <undobase.hxx>
13
14namespace sc
15{
17{
18private:
19 std::shared_ptr<model::ColorSet> mpOldColorSet;
20 std::shared_ptr<model::ColorSet> mpNewColorSet;
21
22public:
23 UndoThemeChange(ScDocShell& rDocShell, std::shared_ptr<model::ColorSet> const& pOldColorSet,
24 std::shared_ptr<model::ColorSet> const& pNewColorSet);
25 virtual ~UndoThemeChange() override;
26
27 void Undo() override;
28 void Redo() override;
29 bool CanRepeat(SfxRepeatTarget& rTarget) const override;
30 void Repeat(SfxRepeatTarget& rTarget) override;
31 OUString GetComment() const override;
32};
33
34} // namespace sc
35
36/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void Undo() override
std::shared_ptr< model::ColorSet > mpOldColorSet
void Repeat(SfxRepeatTarget &rTarget) override
void Redo() override
virtual ~UndoThemeChange() override
UndoThemeChange(ScDocShell &rDocShell, std::shared_ptr< model::ColorSet > const &pOldColorSet, std::shared_ptr< model::ColorSet > const &pNewColorSet)
std::shared_ptr< model::ColorSet > mpNewColorSet
bool CanRepeat(SfxRepeatTarget &rTarget) const override
OUString GetComment() const override
CAUTION! The following defines must be in the same namespace as the respective type.
Definition: broadcast.cxx:15