LibreOffice Module sd (master) 1
undopage.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 <undopage.hxx>
21#include <sdpage.hxx>
22
23
25{
26}
27
29{
31 mpPage->ScaleObjects(maOldSize, aOldBorderRect, mbNewScale);
39
41 if( !mpPage->IsMasterPage() )
42 static_cast<SdPage&>( mpPage->TRG_GetMasterPage() ).SetBackgroundFullSize( mbOldFullSize );
43
44}
45
47{
49 mpPage->ScaleObjects(maNewSize, aNewBorderRect, mbNewScale);
57
59 if( !mpPage->IsMasterPage() )
60 static_cast<SdPage&>( mpPage->TRG_GetMasterPage() ).SetBackgroundFullSize( mbNewFullSize );
61
62}
63
65{
66}
67
69{
72}
73
75{
78}
79
81{
82}
83
85{
88}
89
94{
97}
98
99/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void Undo() override
Definition: undopage.cxx:28
virtual ~SdPageFormatUndoAction() override
Definition: undopage.cxx:24
Orientation meNewOrientation
Definition: undopage.hxx:51
virtual void Redo() override
Definition: undopage.cxx:46
Orientation meOldOrientation
Definition: undopage.hxx:41
sal_uInt16 mnOldPaperBin
Definition: undopage.hxx:42
sal_uInt16 mnNewPaperBin
Definition: undopage.hxx:52
sal_Int32 mnOldRight
Definition: undopage.hxx:112
sal_Int32 mnNewLeft
Definition: undopage.hxx:113
virtual void Redo() override
Definition: undopage.cxx:74
virtual void Undo() override
Definition: undopage.cxx:68
sal_Int32 mnOldLeft
Definition: undopage.hxx:111
virtual ~SdPageLRUndoAction() override
Definition: undopage.cxx:64
sal_Int32 mnNewRight
Definition: undopage.hxx:114
sal_Int32 mnOldLower
Definition: undopage.hxx:140
virtual void Redo() override
UL-Redo()
Definition: undopage.cxx:93
sal_Int32 mnNewLower
Definition: undopage.hxx:142
sal_Int32 mnOldUpper
Definition: undopage.hxx:139
virtual ~SdPageULUndoAction() override
Definition: undopage.cxx:80
sal_Int32 mnNewUpper
Definition: undopage.hxx:141
virtual void Undo() override
Definition: undopage.cxx:84
virtual void SetOrientation(Orientation eOrient) override
Definition: sdpage.cxx:2557
virtual void SetUpperBorder(sal_Int32 nBorder) override
Definition: sdpage.cxx:1781
void SetPaperBin(sal_uInt16 nBin)
Definition: sdpage.hxx:277
void ScaleObjects(const Size &rNewPageSize, const ::tools::Rectangle &rNewBorderRect, bool bScaleAllObj)
Definition: sdpage.cxx:1807
virtual void SetRightBorder(sal_Int32 nBorder) override
Definition: sdpage.cxx:1773
virtual void SetLowerBorder(sal_Int32 nBorder) override
Definition: sdpage.cxx:1789
virtual void SetLeftBorder(sal_Int32 nBorder) override
Definition: sdpage.cxx:1765
virtual void SetSize(const Size &aSize) override
Definition: sdpage.cxx:1746
SdrPage & TRG_GetMasterPage() const
bool IsMasterPage() const
void SetBackgroundFullSize(bool bIn)