nss: upgrade to release 3.73
[LibreOffice.git] / sw / source / core / inc / SwUndoPageDesc.hxx
blobacdaed7cc259c10be9159ab35f098ce290546c35
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SW_SOURCE_CORE_INC_SWUNDOPAGEDESC_HXX
21 #define INCLUDED_SW_SOURCE_CORE_INC_SWUNDOPAGEDESC_HXX
23 #include <undobj.hxx>
24 #include <pagedesc.hxx>
26 class SwDoc;
28 class SwUndoPageDesc : public SwUndo
30 SwPageDescExt m_aOld, m_aNew;
31 SwDoc * m_pDoc;
32 bool m_bExchange;
34 // To avoid duplication of (header/footer)content nodes for simple page desc changes
35 void ExchangeContentNodes( SwPageDesc& rSource, SwPageDesc &rDest );
37 public:
38 SwUndoPageDesc(const SwPageDesc & aOld, const SwPageDesc & aNew,
39 SwDoc * pDoc);
40 virtual ~SwUndoPageDesc() override;
42 virtual void UndoImpl( ::sw::UndoRedoContext & ) override;
43 virtual void RedoImpl( ::sw::UndoRedoContext & ) override;
45 virtual SwRewriter GetRewriter() const override;
48 class SwUndoPageDescCreate : public SwUndo
50 const SwPageDesc * m_pDesc;
51 SwPageDescExt m_aNew;
52 SwDoc * m_pDoc;
54 void DoImpl();
56 public:
57 SwUndoPageDescCreate(const SwPageDesc * pNew, SwDoc * pDoc);
58 virtual ~SwUndoPageDescCreate() override;
60 virtual void UndoImpl( ::sw::UndoRedoContext & ) override;
61 virtual void RedoImpl( ::sw::UndoRedoContext & ) override;
62 virtual void RepeatImpl( ::sw::RepeatContext & ) override;
64 virtual SwRewriter GetRewriter() const override;
67 class SwUndoPageDescDelete : public SwUndo
69 SwPageDescExt m_aOld;
70 SwDoc * m_pDoc;
72 void DoImpl();
74 public:
75 SwUndoPageDescDelete(const SwPageDesc & aOld, SwDoc * pDoc);
76 virtual ~SwUndoPageDescDelete() override;
78 virtual void UndoImpl( ::sw::UndoRedoContext & ) override;
79 virtual void RedoImpl( ::sw::UndoRedoContext & ) override;
80 virtual void RepeatImpl( ::sw::RepeatContext & ) override;
82 virtual SwRewriter GetRewriter() const override;
84 #endif // _SW_UNDO_PAGE_DESC_CHANGE_HXX
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */