LCOV - code coverage report
Current view: top level - include/svx - e3dundo.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 6 0.0 %
Date: 2014-11-03 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : #ifndef INCLUDED_SVX_E3DUNDO_HXX
      21             : #define INCLUDED_SVX_E3DUNDO_HXX
      22             : 
      23             : #include <svx/svdundo.hxx>
      24             : #include <svx/scene3d.hxx>
      25             : #include <svx/svxdllapi.h>
      26             : 
      27             : /************************************************************************\
      28             : |*
      29             : |* Base class for all 3D undo actions.
      30             : |*
      31             : \************************************************************************/
      32             : class E3dUndoAction : public SdrUndoAction
      33             : {
      34             : 
      35             :     protected :
      36             :         E3dObject *pMy3DObj;
      37             : 
      38             :     public:
      39             :         TYPEINFO_OVERRIDE();
      40           0 :         E3dUndoAction (SdrModel  *pModel,
      41             :                        E3dObject *p3DObj) :
      42             :             SdrUndoAction (*pModel),
      43           0 :             pMy3DObj (p3DObj)
      44             :             {
      45           0 :             }
      46             : 
      47             :         virtual ~E3dUndoAction ();
      48             : 
      49             :         virtual bool CanRepeat(SfxRepeatTarget&) const SAL_OVERRIDE;
      50             : };
      51             : 
      52             : /************************************************************************\
      53             : |*
      54             : |* Undo for 3D rotation through the rotation matrices
      55             : |*
      56             : \************************************************************************/
      57             : class E3dRotateUndoAction : public E3dUndoAction
      58             : {
      59             :         basegfx::B3DHomMatrix aMyOldRotation;
      60             :         basegfx::B3DHomMatrix aMyNewRotation;
      61             : 
      62             :     public:
      63             :         TYPEINFO_OVERRIDE();
      64           0 :         E3dRotateUndoAction (SdrModel       *pModel,
      65             :                              E3dObject      *p3DObj,
      66             :                              const basegfx::B3DHomMatrix &aOldRotation,
      67             :                              const basegfx::B3DHomMatrix &aNewRotation) :
      68             :             E3dUndoAction (pModel, p3DObj),
      69             :             aMyOldRotation (aOldRotation),
      70           0 :             aMyNewRotation (aNewRotation)
      71             :             {
      72           0 :             }
      73             : 
      74             :         virtual ~E3dRotateUndoAction ();
      75             : 
      76             :         virtual void Undo() SAL_OVERRIDE;
      77             :         virtual void Redo() SAL_OVERRIDE;
      78             : 
      79             : };
      80             : 
      81             : /************************************************************************\
      82             : |*
      83             : |* Undo for 3D attributes (implemented using Set3DAttributes())
      84             : |*
      85             : \************************************************************************/
      86             : class SVX_DLLPUBLIC E3dAttributesUndoAction : public SdrUndoAction
      87             : {
      88             :     using SdrUndoAction::Repeat;
      89             : 
      90             :     SdrObject*  pObject;
      91             : 
      92             :     const SfxItemSet aNewSet;
      93             :     const SfxItemSet aOldSet;
      94             : 
      95             :  public:
      96             :         TYPEINFO_OVERRIDE();
      97             :         E3dAttributesUndoAction( SdrModel &rModel,
      98             :             E3dObject* pInObject,
      99             :             const SfxItemSet& rNewSet,
     100             :             const SfxItemSet& rOldSet);
     101             : 
     102             :         virtual ~E3dAttributesUndoAction();
     103             : 
     104             :         virtual bool CanRepeat(SfxRepeatTarget& rView) const SAL_OVERRIDE;
     105             :         virtual void Undo() SAL_OVERRIDE;
     106             :         virtual void Redo() SAL_OVERRIDE;
     107             :         virtual void Repeat();
     108             : };
     109             : 
     110             : #endif // INCLUDED_SVX_E3DUNDO_HXX
     111             : 
     112             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10