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