/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #include "drawdoc.hxx" #include "unoaprms.hxx" #include "anminfo.hxx" void SdAnimationPrmsUndoAction::Undo() { // no new info created: restore data if (!bInfoCreated) { SdDrawDocument* pDoc = static_cast(pObject->GetModel()); if( pDoc ) { SdAnimationInfo* pInfo = SdDrawDocument::GetAnimationInfo( pObject ); pInfo->mbActive = bOldActive; pInfo->meEffect = eOldEffect; pInfo->meTextEffect = eOldTextEffect; pInfo->meSpeed = eOldSpeed; pInfo->mbDimPrevious = bOldDimPrevious; pInfo->maDimColor = aOldDimColor; pInfo->mbDimHide = bOldDimHide; pInfo->mbSoundOn = bOldSoundOn; pInfo->maSoundFile = aOldSoundFile; pInfo->mbPlayFull = bOldPlayFull; pInfo->meClickAction = eOldClickAction; pInfo->SetBookmark( aOldBookmark ); pInfo->mnVerb = nOldVerb; pInfo->meSecondEffect = eOldSecondEffect; pInfo->meSecondSpeed = eOldSecondSpeed; pInfo->mbSecondSoundOn = bOldSecondSoundOn; pInfo->mbSecondPlayFull = bOldSecondPlayFull; } } // info was created by action: delete info else { pObject->DeleteUserData(0); } // force ModelHasChanged() in order to update effect window (animation order) pObject->SetChanged(); pObject->BroadcastObjectChange(); } void SdAnimationPrmsUndoAction::Redo() { SdAnimationInfo* pInfo = nullptr; pInfo = SdDrawDocument::GetShapeUserData(*pObject,true); pInfo->mbActive = bNewActive; pInfo->meEffect = eNewEffect; pInfo->meTextEffect = eNewTextEffect; pInfo->meSpeed = eNewSpeed; pInfo->mbDimPrevious = bNewDimPrevious; pInfo->maDimColor = aNewDimColor; pInfo->mbDimHide = bNewDimHide; pInfo->mbSoundOn = bNewSoundOn; pInfo->maSoundFile = aNewSoundFile; pInfo->mbPlayFull = bNewPlayFull; pInfo->meClickAction = eNewClickAction; pInfo->SetBookmark( aNewBookmark ); pInfo->mnVerb = nNewVerb; pInfo->meSecondEffect = eNewSecondEffect; pInfo->meSecondSpeed = eNewSecondSpeed; pInfo->mbSecondSoundOn = bNewSecondSoundOn; pInfo->mbSecondPlayFull = bNewSecondPlayFull; // force ModelHasChanged() in order to update effect window (animation order) pObject->SetChanged(); pObject->BroadcastObjectChange(); } SdAnimationPrmsUndoAction::~SdAnimationPrmsUndoAction() { } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /cp-5.3-desktop LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/xmlscript
AgeCommit message (Expand)Author
2014-04-07xmlscript: sal_Bool->boolNoel Grandin
2014-03-27xmlscript: sal_Bool->boolNoel Grandin
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
2014-03-21coverity#708728 Uninitialized scalar fieldCaolán McNamara
2014-03-21coverity#708730 Uninitialized scalar fieldCaolán McNamara
2014-03-21coverity#708732 Uninitialized scalar fieldCaolán McNamara
2014-03-21coverity#708733 Uninitialized scalar fieldCaolán McNamara
2014-03-21coverity#708734 Uninitialized scalar fieldCaolán McNamara
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
2014-02-26Remove visual noise from xmlscriptAlexander Wilms
2014-02-23Remove unneccessary commentsAlexander Wilms
2014-02-18coverity#984352 Uninitialized scalar fieldCaolán McNamara
2014-02-06fdo#54938 Convert oox, sc, vcl, svtools... to cppu::supportsServiceAlexandre Vicenzi
2014-01-28bool improvementsStephan Bergmann
2013-12-17Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann
2013-12-17Remove unnecessary use of OUString constructor in + expressionsNoel Grandin
2013-11-11xmlscript: include <> for external includesNorbert Thiebaud
2013-10-28gbuild: set Package default target to INSTDIRMichael Stahl
2013-10-22fdo#54938: Adapt supportsService implementations..Marcos Paulo de Souza
2013-10-19CID#1103755 unint membersCaolán McNamara
2013-09-25sal_Bool to boolTakeshi Abe
2013-09-23Try to fix cross-compilationTor Lillqvist
2013-09-11Towards a working instdir for Mac OS XStephan Bergmann
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák
2013-08-18Further work on the "Mac-like app structure" optionTor Lillqvist
2013-08-18Use subfolder names from <config_folders.h>Tor Lillqvist
2013-08-16fdo#57950: Remove some chained appends in xmlscriptJelle van der Waa
2013-08-12fdo#62475 removed pointless commentsJelle van der Waa
2013-08-05Adapt Dialog XML import/export codeLionel Elie Mamane
2013-07-22Mark as constTakeshi Abe
2013-07-13use static LanguageTag::convertTo...() for standalone conversionsEike Rathke
2013-07-12write bcp47 format-locale if necessary and read bothEike Rathke