LibreOffice Module svx (master) 1
e3dundo.cxx
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#include <svx/e3dundo.hxx>
22#include <utility>
23
24
26{
27}
28
29// Repeat does not exist
30
31bool E3dUndoAction::CanRepeat(SfxRepeatTarget&) const
32{
33 return false;
34}
35
36
37// Undo destructor for 3D-Rotation
39{
40}
41
42// Undo for 3D-Rotation on the Rotation matrix
44{
47}
48
49// Redo for 3D-Rotation on the Rotation matrix
51{
54}
55
57 E3dObject& rInObject,
58 SfxItemSet aNewSet,
59 SfxItemSet aOldSet)
60: SdrUndoAction(rInObject.getSdrModelFromSdrObject())
61 ,mrObject(rInObject)
62 ,maNewSet(std::move(aNewSet))
63 ,maOldSet(std::move(aOldSet))
64{
65}
66
68{
69}
70
71// Undo() implemented through Set3DAttributes() to only maintain the attributes
72// in one place
73
75{
78}
79
81{
84}
85
86// Multiple Undo is not possible
87bool E3dAttributesUndoAction::CanRepeat(SfxRepeatTarget& /*rView*/) const
88{
89 return false;
90}
91
92/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Helper for 3d object changes affecting 2d geometry.
const SfxItemSet maNewSet
Definition: e3dundo.hxx:90
const SfxItemSet maOldSet
Definition: e3dundo.hxx:91
SdrObject & mrObject
Definition: e3dundo.hxx:89
virtual void Redo() override
Definition: e3dundo.cxx:80
E3dAttributesUndoAction(E3dObject &rInObject, SfxItemSet aNewSet, SfxItemSet aOldSet)
Definition: e3dundo.cxx:56
virtual ~E3dAttributesUndoAction() override
Definition: e3dundo.cxx:67
virtual bool CanRepeat(SfxRepeatTarget &rView) const override
Definition: e3dundo.cxx:87
virtual void Undo() override
Definition: e3dundo.cxx:74
virtual void SetTransform(const basegfx::B3DHomMatrix &rMatrix)
Definition: obj3d.cxx:364
virtual void Redo() override
Definition: e3dundo.cxx:50
basegfx::B3DHomMatrix maMyNewRotation
Definition: e3dundo.hxx:60
virtual ~E3dRotateUndoAction() override
Definition: e3dundo.cxx:38
virtual void Undo() override
Definition: e3dundo.cxx:43
basegfx::B3DHomMatrix maMyOldRotation
Definition: e3dundo.hxx:59
virtual ~E3dUndoAction() override
Definition: e3dundo.cxx:25
E3dObject & mrMy3DObj
Definition: e3dundo.hxx:37
virtual bool CanRepeat(SfxRepeatTarget &) const override
Definition: e3dundo.cxx:31
void SetMergedItemSetAndBroadcast(const SfxItemSet &rSet, bool bClearAllItems=false)
Definition: svdobj.cxx:2014
Abstract base class (ABC) for all UndoActions of DrawingEngine.
Definition: svdundo.hxx:61