1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
19 #ifndef INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_REPORTUNDOFACTORY_HXX
20 #define INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_REPORTUNDOFACTORY_HXX
22 #include <svx/svdundo.hxx>
27 class OReportUndoFactory
: public SdrUndoFactory
29 ::std::unique_ptr
<SdrUndoFactory
> m_pUndoFactory
;
31 OReportUndoFactory(const OReportUndoFactory
&) = delete;
32 OReportUndoFactory
& operator=(const OReportUndoFactory
&) = delete;
35 virtual ~OReportUndoFactory() override
;
38 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoMoveObject( SdrObject
& rObject
, const Size
& rDist
) override
;
39 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoGeoObject( SdrObject
& rObject
) override
;
40 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoAttrObject( SdrObject
& rObject
, bool bStyleSheet1
= false, bool bSaveText
= false ) override
;
41 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoRemoveObject( SdrObject
& rObject
, bool bOrdNumDirect
= false) override
;
42 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoInsertObject( SdrObject
& rObject
, bool bOrdNumDirect
= false) override
;
43 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoDeleteObject( SdrObject
& rObject
, bool bOrdNumDirect
= false) override
;
44 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoNewObject( SdrObject
& rObject
, bool bOrdNumDirect
= false) override
;
45 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoCopyObject( SdrObject
& rObject
, bool bOrdNumDirect
= false) override
;
47 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoObjectOrdNum( SdrObject
& rObject
, sal_uInt32 nOldOrdNum1
, sal_uInt32 nNewOrdNum1
) override
;
49 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoReplaceObject( SdrObject
& rOldObject
, SdrObject
& rNewObject
, bool bOrdNumDirect
= false ) override
;
50 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoObjectLayerChange( SdrObject
& rObject
, SdrLayerID aOldLayer
, SdrLayerID aNewLayer
) override
;
51 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoObjectSetText( SdrObject
& rNewObj
, sal_Int32 nText
) override
;
54 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoNewLayer(sal_uInt16 nLayerNum
, SdrLayerAdmin
& rNewLayerAdmin
, SdrModel
& rNewModel
) override
;
55 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoDeleteLayer(sal_uInt16 nLayerNum
, SdrLayerAdmin
& rNewLayerAdmin
, SdrModel
& rNewModel
) override
;
58 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoDeletePage(SdrPage
& rPage
) override
;
59 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoNewPage(SdrPage
& rPage
) override
;
60 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoCopyPage(SdrPage
& rPage
) override
;
61 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoSetPageNum(SdrPage
& rNewPg
, sal_uInt16 nOldPageNum1
, sal_uInt16 nNewPageNum1
) override
;
64 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoPageRemoveMasterPage(SdrPage
& rChangedPage
) override
;
65 virtual std::unique_ptr
<SdrUndoAction
> CreateUndoPageChangeMasterPage(SdrPage
& rChangedPage
) override
;
72 #endif // INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_REPORTUNDOFACTORY_HXX
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */