LibreOffice Module sd (master) 1
unmodpg.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 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
24
25#include <xmloff/autolayout.hxx>
26
27#include <sdundo.hxx>
28
29class SdDrawDocument;
30class SdPage;
31
33{
35 OUString maOldName;
36 OUString maNewName;
43
44public:
46 SdDrawDocument* pTheDoc,
47 SdPage* pThePage,
48 const OUString& aTheNewName,
49 AutoLayout eTheNewAutoLayout,
50 bool bTheNewBckgrndVisible,
51 bool bTheNewBckgrndObjsVisible);
52
53 virtual ~ModifyPageUndoAction() override;
54 virtual void Undo() override;
55 virtual void Redo() override;
56};
57
59{
60public:
63 const bool bOldStateValue);
64
67 const sd::slidesorter::model::PageDescriptor::State eState, const bool bOldStateValue);
68
69 virtual void Undo() override;
70 virtual void Redo() override;
71
72 virtual OUString GetComment() const override;
73
75
76private:
79 std::vector<sd::slidesorter::model::SharedPageDescriptor> mrpDescriptors;
80 const OUString maComment;
81};
82
84{
85public:
87 SdDrawDocument* pDocument,
88 OUString aOldLayoutName,
89 OUString aNewLayoutName);
90
91 virtual void Undo() override;
92 virtual void Redo() override;
93
94 virtual OUString GetComment() const override;
95
96private:
97 OUString maOldName;
98 OUString maNewName;
99 const OUString maComment;
100};
101
102/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
AutoLayout
void AddPageDescriptor(const sd::slidesorter::model::SharedPageDescriptor &rpDescriptor)
Definition: unmodpg.cxx:198
virtual OUString GetComment() const override
Definition: unmodpg.cxx:238
ChangeSlideExclusionStateUndoAction(SdDrawDocument *pDocument, const sd::slidesorter::model::PageDescriptor::State eState, const bool bOldStateValue)
Definition: unmodpg.cxx:180
virtual void Redo() override
Definition: unmodpg.cxx:221
std::vector< sd::slidesorter::model::SharedPageDescriptor > mrpDescriptors
Definition: unmodpg.hxx:79
sd::slidesorter::model::PageDescriptor::State meState
Definition: unmodpg.hxx:77
virtual void Undo() override
Definition: unmodpg.cxx:204
OUString maOldName
Definition: unmodpg.hxx:35
OUString maNewName
Definition: unmodpg.hxx:36
ModifyPageUndoAction(SdDrawDocument *pTheDoc, SdPage *pThePage, const OUString &aTheNewName, AutoLayout eTheNewAutoLayout, bool bTheNewBckgrndVisible, bool bTheNewBckgrndObjsVisible)
Definition: unmodpg.cxx:46
virtual void Redo() override
Definition: unmodpg.cxx:132
AutoLayout meOldAutoLayout
Definition: unmodpg.hxx:37
virtual ~ModifyPageUndoAction() override
Definition: unmodpg.cxx:176
bool mbNewBckgrndObjsVisible
Definition: unmodpg.hxx:42
bool mbOldBckgrndObjsVisible
Definition: unmodpg.hxx:41
virtual void Undo() override
Definition: unmodpg.cxx:88
AutoLayout meNewAutoLayout
Definition: unmodpg.hxx:38
RenameLayoutTemplateUndoAction(SdDrawDocument *pDocument, OUString aOldLayoutName, OUString aNewLayoutName)
Definition: unmodpg.cxx:243
virtual void Redo() override
Definition: unmodpg.cxx:263
virtual OUString GetComment() const override
Definition: unmodpg.cxx:269
virtual void Undo() override
Definition: unmodpg.cxx:257
std::shared_ptr< PageDescriptor > SharedPageDescriptor