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