LibreOffice Module sc (master) 1
undotab.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
20#pragma once
21
22#include "undobase.hxx"
23#include <tools/color.hxx>
24#include <tabbgcolor.hxx>
25
26#include <memory>
27#include <vector>
28
29class ScDocShell;
30class SdrUndoAction;
32class SdrObject;
33class ScDocProtection;
35class ScMarkData;
36
38{
39public:
41 ScDocShell* pNewDocShell,
42 SCTAB nTabNum,
43 bool bApp,
44 OUString aNewName);
45 virtual ~ScUndoInsertTab() override;
46
47 virtual void Undo() override;
48 virtual void Redo() override;
49 virtual void Repeat(SfxRepeatTarget& rTarget) override;
50 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
51
52 virtual OUString GetComment() const override;
53
54private:
55 OUString sNewName;
56 std::unique_ptr<SdrUndoAction> pDrawUndo;
59 bool bAppend;
60
61 void SetChangeTrack();
62};
63
65{
66public:
68 ScDocShell* pNewDocShell,
69 SCTAB nTabNum,
70 std::vector<OUString>&& newNameList);
71 virtual ~ScUndoInsertTables() override;
72
73 virtual void Undo() override;
74 virtual void Redo() override;
75 virtual void Repeat(SfxRepeatTarget& rTarget) override;
76 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
77
78 virtual OUString GetComment() const override;
79
80private:
81
82 std::unique_ptr<SdrUndoAction> pDrawUndo;
83 std::vector<OUString> aNameList;
87
88 void SetChangeTrack();
89};
90
92{
93public:
95 ScDocShell* pNewDocShell,
96 const std::vector<SCTAB> &theTabs, //SCTAB nNewTab,
97 ScDocumentUniquePtr pUndoDocument,
98 std::unique_ptr<ScRefUndoData> pRefData );
99 virtual ~ScUndoDeleteTab() override;
100
101 virtual void Undo() override;
102 virtual void Redo() override;
103 virtual void Repeat(SfxRepeatTarget& rTarget) override;
104 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
105
106 virtual OUString GetComment() const override;
107
108private:
109 std::vector<SCTAB> theTabs;
112
113 void SetChangeTrack();
114};
115
117{
118public:
120 ScDocShell* pNewDocShell,
121 SCTAB nT,
122 const OUString& rOldName,
123 const OUString& rNewName);
124 virtual ~ScUndoRenameTab() override;
125
126 virtual void Undo() override;
127 virtual void Redo() override;
128 virtual void Repeat(SfxRepeatTarget& rTarget) override;
129 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
130
131 virtual OUString GetComment() const override;
132
133private:
135 OUString sOldName;
136 OUString sNewName;
137
138 void DoChange( SCTAB nTab, const OUString& rName ) const;
139};
140
142{
143public:
145 ScDocShell* pNewDocShell,
146 std::unique_ptr<std::vector<SCTAB>> pOldTabs,
147 std::unique_ptr<std::vector<SCTAB>> pNewTabs,
148 std::unique_ptr<std::vector< OUString>> pOldNames = nullptr,
149 std::unique_ptr<std::vector< OUString>> pNewNames = nullptr );
150
151 virtual ~ScUndoMoveTab() override;
152
153 virtual void Undo() override;
154 virtual void Redo() override;
155 virtual void Repeat(SfxRepeatTarget& rTarget) override;
156 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
157
158 virtual OUString GetComment() const override;
159
160private:
161 std::unique_ptr< ::std::vector<SCTAB> > mpOldTabs;
162 std::unique_ptr< ::std::vector<SCTAB> > mpNewTabs;
163 std::unique_ptr< ::std::vector< OUString> > mpOldNames;
164 std::unique_ptr< ::std::vector< OUString> > mpNewNames;
165
166 void DoChange( bool bUndo ) const;
167};
168
170{
171public:
173 ScDocShell* pNewDocShell,
174 std::unique_ptr<std::vector<SCTAB>> pOldTabs,
175 std::unique_ptr<std::vector<SCTAB>> pNewTabs,
176 std::unique_ptr<std::vector< OUString>> pNewNames = nullptr );
177
178 virtual ~ScUndoCopyTab() override;
179
180 virtual void Undo() override;
181 virtual void Redo() override;
182 virtual void Repeat(SfxRepeatTarget& rTarget) override;
183 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
184
185 virtual OUString GetComment() const override;
186
187private:
188 std::unique_ptr< ::std::vector<SCTAB> > mpOldTabs;
189 std::unique_ptr< ::std::vector<SCTAB> > mpNewTabs;
190 std::unique_ptr< ::std::vector< OUString> > mpNewNames;
191 std::unique_ptr<SdrUndoAction> pDrawUndo;
192
193 void DoChange() const;
194};
195
197{
198public:
200 ScDocShell* pNewDocShell,
201 SCTAB nT,
202 const Color& aOTabBgColor,
203 const Color& aNTabBgColor);
205 ScDocShell* pNewDocShell,
206 ScUndoTabColorInfo::List&& rUndoTabColorList);
207 virtual ~ScUndoTabColor() override;
208
209 virtual void Undo() override;
210 virtual void Redo() override;
211 virtual void Repeat(SfxRepeatTarget& rTarget) override;
212 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
213
214 virtual OUString GetComment() const override;
215
216private:
218
219 void DoChange(bool bUndoType) const;
220};
221
223{
224public:
226 ScDocShell* pNewDocShell,
227 SCTAB nSrc, SCTAB nDest,
228 OUString aN, OUString aC,
229 const Color& rCol, ScScenarioFlags nF,
230 const ScMarkData& rMark );
231 virtual ~ScUndoMakeScenario() override;
232
233 virtual void Undo() override;
234 virtual void Redo() override;
235 virtual void Repeat(SfxRepeatTarget& rTarget) override;
236 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
237
238 virtual OUString GetComment() const override;
239
240private:
241 std::unique_ptr<ScMarkData> mpMarkData;
244 OUString aName;
245 OUString aComment;
248 std::unique_ptr<SdrUndoAction> pDrawUndo;
249};
250
252{
253public:
255 ScDocShell* pShell,
256 SCTAB nNewTab, SCTAB nNewCount );
257 virtual ~ScUndoImportTab() override;
258
259 virtual void Undo() override;
260 virtual void Redo() override;
261 virtual void Repeat(SfxRepeatTarget& rTarget) override;
262 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
263
264 virtual OUString GetComment() const override;
265
266private:
270 std::unique_ptr<SdrUndoAction> pDrawUndo;
271
272 void DoChange() const;
273};
274
276{
277public:
278 ScUndoRemoveLink( // Call before delete!
279 ScDocShell* pShell,
280 OUString aDoc );
281 virtual ~ScUndoRemoveLink() override;
282
283 virtual void Undo() override;
284 virtual void Redo() override;
285 virtual void Repeat(SfxRepeatTarget& rTarget) override;
286 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
287
288 virtual OUString GetComment() const override;
289
290private:
291 OUString aDocName;
292 OUString aFltName;
293 OUString aOptions;
295 sal_uInt16 nCount;
296 std::unique_ptr<SCTAB[]>
298 std::unique_ptr<ScLinkMode[]>
300 std::unique_ptr<OUString[]>
302
303 void DoChange( bool bLink ) const;
304};
305
307{
308public:
310 ScDocShell* pShell,
311 std::vector<SCTAB>&& newUndoTabs,
312 bool bNewShow );
313 virtual ~ScUndoShowHideTab() override;
314
315 virtual void Undo() override;
316 virtual void Redo() override;
317 virtual void Repeat(SfxRepeatTarget& rTarget) override;
318 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
319
320 virtual OUString GetComment() const override;
321
322private:
323 std::vector<SCTAB> undoTabs;
324 bool bShow;
325
326 void DoChange( bool bShow ) const;
327};
328
332{
333public:
334 ScUndoDocProtect(ScDocShell* pShell, ::std::unique_ptr<ScDocProtection> && pProtectSettings);
335 virtual ~ScUndoDocProtect() override;
336
337 virtual void Undo() override;
338 virtual void Redo() override;
339 virtual void Repeat(SfxRepeatTarget& rTarget) override;
340 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
341
342 virtual OUString GetComment() const override;
343
344private:
345 ::std::unique_ptr<ScDocProtection> mpProtectSettings;
346
347 void DoProtect(bool bProtect);
348};
349
353{
354public:
355 ScUndoTabProtect(ScDocShell* pShell, SCTAB nTab,
356 std::unique_ptr<ScTableProtection> && pProtectSettings);
357 virtual ~ScUndoTabProtect() override;
358
359 virtual void Undo() override;
360 virtual void Redo() override;
361 virtual void Repeat(SfxRepeatTarget& rTarget) override;
362 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
363
364 virtual OUString GetComment() const override;
365
366private:
368 ::std::unique_ptr<ScTableProtection> mpProtectSettings;
369
370 void DoProtect(bool bProtect);
371};
372
374{
375public:
376 ScUndoPrintRange( ScDocShell* pShell, SCTAB nNewTab,
377 std::unique_ptr<ScPrintRangeSaver> pOld,
378 std::unique_ptr<ScPrintRangeSaver> pNew );
379 virtual ~ScUndoPrintRange() override;
380
381 virtual void Undo() override;
382 virtual void Redo() override;
383 virtual void Repeat(SfxRepeatTarget& rTarget) override;
384 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
385
386 virtual OUString GetComment() const override;
387
388private:
390 std::unique_ptr<ScPrintRangeSaver> pOldRanges;
391 std::unique_ptr<ScPrintRangeSaver> pNewRanges;
392
393 void DoChange( bool bUndo );
394};
395
397{
398public:
400 ScDocShell* pNewDocShell, SCTAB nT,
401 OUString aON, OUString aNN,
402 OUString aOC, OUString aNC,
403 const Color& rOCol, const Color& rNCol,
405
406 virtual ~ScUndoScenarioFlags() override;
407
408 virtual void Undo() override;
409 virtual void Redo() override;
410 virtual void Repeat(SfxRepeatTarget& rTarget) override;
411 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
412
413 virtual OUString GetComment() const override;
414
415private:
417 OUString aOldName;
418 OUString aNewName;
419 OUString aOldComment;
420 OUString aNewComment;
425};
426
428{
429public:
431 ScDocShell* pNewDocShell, OUString aPN,
432 OUString aON, OUString aNN );
433
434 virtual ~ScUndoRenameObject() override;
435
436 virtual void Undo() override;
437 virtual void Redo() override;
438 virtual void Repeat(SfxRepeatTarget& rTarget) override;
439 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
440
441 virtual OUString GetComment() const override;
442
443private:
444 OUString aPersistName; // to find object (works only for OLE objects)
445 OUString aOldName;
446 OUString aNewName;
447
449};
450
452{
453public:
454 ScUndoLayoutRTL( ScDocShell* pShell, SCTAB nNewTab, bool bNewRTL );
455 virtual ~ScUndoLayoutRTL() override;
456
457 virtual void Undo() override;
458 virtual void Redo() override;
459 virtual void Repeat(SfxRepeatTarget& rTarget) override;
460 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
461
462 virtual OUString GetComment() const override;
463
464private:
466 bool bRTL;
467
468 void DoChange( bool bNew );
469};
470
471/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
Definition: markdata.hxx:43
sheet protection state container
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undotab.hxx:191
virtual void Undo() override
Definition: undotab.cxx:613
void DoChange() const
Definition: undotab.cxx:597
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:702
ScUndoCopyTab(ScDocShell *pNewDocShell, std::unique_ptr< std::vector< SCTAB > > pOldTabs, std::unique_ptr< std::vector< SCTAB > > pNewTabs, std::unique_ptr< std::vector< OUString > > pNewNames=nullptr)
Definition: undotab.cxx:572
virtual ~ScUndoCopyTab() override
Definition: undotab.cxx:587
std::unique_ptr< ::std::vector< SCTAB > > mpOldTabs
Definition: undotab.hxx:188
std::unique_ptr< ::std::vector< OUString > > mpNewNames
Definition: undotab.hxx:190
virtual OUString GetComment() const override
Definition: undotab.cxx:592
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:707
virtual void Redo() override
Definition: undotab.cxx:646
std::unique_ptr< ::std::vector< SCTAB > > mpNewTabs
Definition: undotab.hxx:189
virtual OUString GetComment() const override
Definition: undotab.cxx:266
virtual ~ScUndoDeleteTab() override
Definition: undotab.cxx:261
ScUndoDeleteTab(ScDocShell *pNewDocShell, const std::vector< SCTAB > &theTabs, ScDocumentUniquePtr pUndoDocument, std::unique_ptr< ScRefUndoData > pRefData)
Definition: undotab.cxx:253
sal_uLong nStartChangeAction
Definition: undotab.hxx:110
virtual void Redo() override
Definition: undotab.cxx:381
virtual void Undo() override
Definition: undotab.cxx:301
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:409
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:400
void SetChangeTrack()
Definition: undotab.cxx:271
std::vector< SCTAB > theTabs
Definition: undotab.hxx:109
sal_uLong nEndChangeAction
Definition: undotab.hxx:111
This class implements undo & redo of document protect & unprotect operations.
Definition: undotab.hxx:332
::std::unique_ptr< ScDocProtection > mpProtectSettings
Definition: undotab.hxx:345
virtual void Undo() override
Definition: undotab.cxx:1197
virtual OUString GetComment() const override
Definition: undotab.cxx:1221
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1211
ScUndoDocProtect(ScDocShell *pShell, ::std::unique_ptr< ScDocProtection > &&pProtectSettings)
Definition: undotab.cxx:1160
void DoProtect(bool bProtect)
Definition: undotab.cxx:1170
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1216
virtual ~ScUndoDocProtect() override
Definition: undotab.cxx:1166
virtual void Redo() override
Definition: undotab.cxx:1204
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1005
ScUndoImportTab(ScDocShell *pShell, SCTAB nNewTab, SCTAB nNewCount)
Definition: undotab.cxx:864
virtual void Undo() override
Definition: undotab.cxx:905
ScDocumentUniquePtr xRedoDoc
Definition: undotab.hxx:269
virtual void Redo() override
Definition: undotab.cxx:957
virtual ~ScUndoImportTab() override
Definition: undotab.cxx:873
virtual OUString GetComment() const override
Definition: undotab.cxx:878
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1012
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undotab.hxx:270
void DoChange() const
Definition: undotab.cxx:883
virtual void Undo() override
Definition: undotab.cxx:105
sal_uLong nEndChangeAction
Definition: undotab.hxx:57
virtual void Redo() override
Definition: undotab.cxx:126
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undotab.hxx:56
void SetChangeTrack()
Definition: undotab.cxx:91
virtual OUString GetComment() const override
Definition: undotab.cxx:83
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:147
ScUndoInsertTab(ScDocShell *pNewDocShell, SCTAB nTabNum, bool bApp, OUString aNewName)
Definition: undotab.cxx:65
virtual ~ScUndoInsertTab() override
Definition: undotab.cxx:78
OUString sNewName
Definition: undotab.hxx:55
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:154
virtual ~ScUndoInsertTables() override
Definition: undotab.cxx:171
sal_uLong nEndChangeAction
Definition: undotab.hxx:85
ScUndoInsertTables(ScDocShell *pNewDocShell, SCTAB nTabNum, std::vector< OUString > &&newNameList)
Definition: undotab.cxx:159
std::vector< OUString > aNameList
Definition: undotab.hxx:83
sal_uLong nStartChangeAction
Definition: undotab.hxx:84
virtual void Undo() override
Definition: undotab.cxx:202
virtual OUString GetComment() const override
Definition: undotab.cxx:176
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:248
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:241
virtual void Redo() override
Definition: undotab.cxx:225
void SetChangeTrack()
Definition: undotab.cxx:181
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undotab.hxx:82
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1553
virtual ~ScUndoLayoutRTL() override
Definition: undotab.cxx:1523
virtual void Undo() override
Definition: undotab.cxx:1543
virtual OUString GetComment() const override
Definition: undotab.cxx:1565
ScUndoLayoutRTL(ScDocShell *pShell, SCTAB nNewTab, bool bNewRTL)
Definition: undotab.cxx:1516
void DoChange(bool bNew)
Definition: undotab.cxx:1527
virtual void Redo() override
Definition: undotab.cxx:1548
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1560
virtual ~ScUndoMakeScenario() override
Definition: undotab.cxx:795
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undotab.hxx:248
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:859
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:851
virtual void Redo() override
Definition: undotab.cxx:830
ScUndoMakeScenario(ScDocShell *pNewDocShell, SCTAB nSrc, SCTAB nDest, OUString aN, OUString aC, const Color &rCol, ScScenarioFlags nF, const ScMarkData &rMark)
Definition: undotab.cxx:778
virtual OUString GetComment() const override
Definition: undotab.cxx:800
std::unique_ptr< ScMarkData > mpMarkData
Definition: undotab.hxx:241
ScScenarioFlags nFlags
Definition: undotab.hxx:247
OUString aComment
Definition: undotab.hxx:245
virtual void Undo() override
Definition: undotab.cxx:805
virtual void Undo() override
Definition: undotab.cxx:552
std::unique_ptr< ::std::vector< SCTAB > > mpNewTabs
Definition: undotab.hxx:162
ScUndoMoveTab(ScDocShell *pNewDocShell, std::unique_ptr< std::vector< SCTAB > > pOldTabs, std::unique_ptr< std::vector< SCTAB > > pNewTabs, std::unique_ptr< std::vector< OUString > > pOldNames=nullptr, std::unique_ptr< std::vector< OUString > > pNewNames=nullptr)
Definition: undotab.cxx:472
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:567
virtual void Redo() override
Definition: undotab.cxx:557
virtual ~ScUndoMoveTab() override
Definition: undotab.cxx:485
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:562
std::unique_ptr< ::std::vector< OUString > > mpOldNames
Definition: undotab.hxx:163
std::unique_ptr< ::std::vector< OUString > > mpNewNames
Definition: undotab.hxx:164
virtual OUString GetComment() const override
Definition: undotab.cxx:489
std::unique_ptr< ::std::vector< SCTAB > > mpOldTabs
Definition: undotab.hxx:161
void DoChange(bool bUndo) const
Definition: undotab.cxx:494
void DoChange(bool bUndo)
Definition: undotab.cxx:1312
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1360
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1355
virtual void Undo() override
Definition: undotab.cxx:1341
virtual void Redo() override
Definition: undotab.cxx:1348
virtual OUString GetComment() const override
Definition: undotab.cxx:1365
std::unique_ptr< ScPrintRangeSaver > pNewRanges
Definition: undotab.hxx:391
ScUndoPrintRange(ScDocShell *pShell, SCTAB nNewTab, std::unique_ptr< ScPrintRangeSaver > pOld, std::unique_ptr< ScPrintRangeSaver > pNew)
Definition: undotab.cxx:1297
virtual ~ScUndoPrintRange() override
Definition: undotab.cxx:1306
std::unique_ptr< ScPrintRangeSaver > pOldRanges
Definition: undotab.hxx:390
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1511
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1507
ScUndoRenameObject(ScDocShell *pNewDocShell, OUString aPN, OUString aON, OUString aNN)
Definition: undotab.cxx:1440
virtual void Undo() override
Definition: undotab.cxx:1489
virtual ~ScUndoRenameObject() override
Definition: undotab.cxx:1449
SdrObject * GetObject()
Definition: undotab.cxx:1459
OUString aPersistName
Definition: undotab.hxx:444
virtual void Redo() override
Definition: undotab.cxx:1498
virtual OUString GetComment() const override
Definition: undotab.cxx:1453
OUString aNewName
Definition: undotab.hxx:446
OUString aOldName
Definition: undotab.hxx:445
void DoChange(SCTAB nTab, const OUString &rName) const
Definition: undotab.cxx:434
OUString sNewName
Definition: undotab.hxx:136
virtual void Redo() override
Definition: undotab.cxx:457
ScUndoRenameTab(ScDocShell *pNewDocShell, SCTAB nT, const OUString &rOldName, const OUString &rNewName)
Definition: undotab.cxx:414
virtual void Undo() override
Definition: undotab.cxx:452
virtual OUString GetComment() const override
Definition: undotab.cxx:429
virtual ~ScUndoRenameTab() override
Definition: undotab.cxx:425
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:462
OUString sOldName
Definition: undotab.hxx:135
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:467
OUString aNewComment
Definition: undotab.hxx:420
OUString aOldComment
Definition: undotab.hxx:419
virtual void Redo() override
Definition: undotab.cxx:1412
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1434
virtual void Undo() override
Definition: undotab.cxx:1395
ScScenarioFlags nOldFlags
Definition: undotab.hxx:423
virtual ~ScUndoScenarioFlags() override
Definition: undotab.cxx:1386
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1429
virtual OUString GetComment() const override
Definition: undotab.cxx:1390
ScUndoScenarioFlags(ScDocShell *pNewDocShell, SCTAB nT, OUString aON, OUString aNN, OUString aOC, OUString aNC, const Color &rOCol, const Color &rNCol, ScScenarioFlags nOF, ScScenarioFlags nNF)
Definition: undotab.cxx:1370
ScScenarioFlags nNewFlags
Definition: undotab.hxx:424
virtual ~ScUndoShowHideTab() override
Definition: undotab.cxx:1102
virtual OUString GetComment() const override
Definition: undotab.cxx:1145
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1132
virtual void Redo() override
Definition: undotab.cxx:1127
ScUndoShowHideTab(ScDocShell *pShell, std::vector< SCTAB > &&newUndoTabs, bool bNewShow)
Definition: undotab.cxx:1095
std::vector< SCTAB > undoTabs
Definition: undotab.hxx:323
virtual void Undo() override
Definition: undotab.cxx:1122
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1140
void DoChange(bool bShow) const
Definition: undotab.cxx:1106
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:768
virtual void Redo() override
Definition: undotab.cxx:763
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:773
virtual OUString GetComment() const override
Definition: undotab.cxx:734
virtual ~ScUndoTabColor() override
Definition: undotab.cxx:730
ScUndoTabColorInfo::List aTabColorList
Definition: undotab.hxx:217
void DoChange(bool bUndoType) const
Definition: undotab.cxx:741
virtual void Undo() override
Definition: undotab.cxx:758
ScUndoTabColor(ScDocShell *pNewDocShell, SCTAB nT, const Color &aOTabBgColor, const Color &aNTabBgColor)
Definition: undotab.cxx:712
This class implements undo & redo of both protect and unprotect of sheet.
Definition: undotab.hxx:353
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1286
virtual void Undo() override
Definition: undotab.cxx:1267
virtual OUString GetComment() const override
Definition: undotab.cxx:1291
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1281
virtual ~ScUndoTabProtect() override
Definition: undotab.cxx:1234
ScUndoTabProtect(ScDocShell *pShell, SCTAB nTab, std::unique_ptr< ScTableProtection > &&pProtectSettings)
Definition: undotab.cxx:1227
::std::unique_ptr< ScTableProtection > mpProtectSettings
Definition: undotab.hxx:368
virtual void Redo() override
Definition: undotab.cxx:1274
void DoProtect(bool bProtect)
Definition: undotab.cxx:1238
std::unique_ptr< ScDocument, o3tl::default_delete< ScDocument > > ScDocumentUniquePtr
Definition: document.hxx:2720
FilterGroup & rTarget
ScScenarioFlags
Definition: global.hxx:226
sal_uIntPtr sal_uLong
::std::vector< ScUndoTabColorInfo > List
Definition: tabbgcolor.hxx:36
sal_Int16 SCTAB
Definition: types.hxx:22