LibreOffice Module vcl (master) 1
textund2.hxx
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#pragma once
20
21#include "textundo.hxx"
22#include <vcl/textdata.hxx>
23
25{
26private:
28 sal_uInt32 mnPara;
29 TextNode* mpNode; // points at the valid not-destroyed object
30
31public:
32 TextUndoDelPara( TextEngine* pTextEngine, TextNode* pNode, sal_uInt32 nPara );
33 virtual ~TextUndoDelPara() override;
34
35 virtual void Undo() override;
36 virtual void Redo() override;
37
38 virtual OUString GetComment () const override;
39};
40
42{
43private:
44 sal_uInt32 mnPara;
45 sal_Int32 mnSepPos;
46
47public:
48 TextUndoConnectParas( TextEngine* pTextEngine, sal_uInt32 nPara, sal_Int32 nSepPos );
49 virtual ~TextUndoConnectParas() override;
50
51 virtual void Undo() override;
52 virtual void Redo() override;
53
54 virtual OUString GetComment () const override;
55};
56
58{
59private:
60 sal_uInt32 mnPara;
61 sal_Int32 mnSepPos;
62
63public:
64 TextUndoSplitPara( TextEngine* pTextEngine, sal_uInt32 nPara, sal_Int32 nSepPos );
65 virtual ~TextUndoSplitPara() override;
66
67 virtual void Undo() override;
68 virtual void Redo() override;
69
70 virtual OUString GetComment () const override;
71};
72
74{
75private:
77 OUString maText;
78
79public:
80 TextUndoInsertChars( TextEngine* pTextEngine, const TextPaM& rTextPaM, OUString aStr );
81
82 virtual void Undo() override;
83 virtual void Redo() override;
84
85 virtual bool Merge( SfxUndoAction *pNextAction ) override;
86
87 virtual OUString GetComment () const override;
88};
89
91{
92private:
94 OUString maText;
95
96public:
97 TextUndoRemoveChars( TextEngine* pTextEngine, const TextPaM& rTextPaM, OUString aStr );
98
99 virtual void Undo() override;
100 virtual void Redo() override;
101
102 virtual OUString GetComment () const override;
103};
104
105/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void Undo() override
Definition: textundo.cxx:208
TextUndoConnectParas(TextEngine *pTextEngine, sal_uInt32 nPara, sal_Int32 nSepPos)
Definition: textundo.cxx:197
sal_uInt32 mnPara
Definition: textund2.hxx:44
virtual ~TextUndoConnectParas() override
Definition: textundo.cxx:204
virtual OUString GetComment() const override
Definition: textundo.cxx:220
sal_Int32 mnSepPos
Definition: textund2.hxx:45
virtual void Redo() override
Definition: textundo.cxx:214
TextNode * mpNode
Definition: textund2.hxx:29
sal_uInt32 mnPara
Definition: textund2.hxx:28
virtual void Undo() override
Definition: textundo.cxx:153
virtual OUString GetComment() const override
Definition: textundo.cxx:192
virtual void Redo() override
Definition: textundo.cxx:165
virtual ~TextUndoDelPara() override
Definition: textundo.cxx:147
TextUndoDelPara(TextEngine *pTextEngine, TextNode *pNode, sal_uInt32 nPara)
Definition: textundo.cxx:139
TextUndoInsertChars(TextEngine *pTextEngine, const TextPaM &rTextPaM, OUString aStr)
Definition: textundo.cxx:253
virtual OUString GetComment() const override
Definition: textundo.cxx:293
virtual void Undo() override
Definition: textundo.cxx:259
virtual bool Merge(SfxUndoAction *pNextAction) override
Definition: textundo.cxx:276
virtual void Redo() override
Definition: textundo.cxx:267
virtual OUString GetComment() const override
Definition: textundo.cxx:323
virtual void Undo() override
Definition: textundo.cxx:307
TextUndoRemoveChars(TextEngine *pTextEngine, const TextPaM &rTextPaM, OUString aStr)
Definition: textundo.cxx:301
virtual void Redo() override
Definition: textundo.cxx:315
virtual void Undo() override
Definition: textundo.cxx:236
sal_uInt32 mnPara
Definition: textund2.hxx:60
virtual OUString GetComment() const override
Definition: textundo.cxx:248
virtual void Redo() override
Definition: textundo.cxx:242
sal_Int32 mnSepPos
Definition: textund2.hxx:61
virtual ~TextUndoSplitPara() override
Definition: textundo.cxx:232
TextUndoSplitPara(TextEngine *pTextEngine, sal_uInt32 nPara, sal_Int32 nSepPos)
Definition: textundo.cxx:225