tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / inc / undo / UndoThemeChange.hxx
blob6c0558df8a7f8579fe445f59e5b4e90d46d84bbe
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 <undobase.hxx>
14 namespace sc
16 class UndoThemeChange : public ScSimpleUndo
18 private:
19 std::shared_ptr<model::ColorSet> mpOldColorSet;
20 std::shared_ptr<model::ColorSet> mpNewColorSet;
22 public:
23 UndoThemeChange(ScDocShell& rDocShell, std::shared_ptr<model::ColorSet> const& pOldColorSet,
24 std::shared_ptr<model::ColorSet> const& pNewColorSet);
25 virtual ~UndoThemeChange() override;
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;
34 } // namespace sc
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */