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 
29 class ScDocShell;
30 class SdrUndoAction;
31 class ScPrintRangeSaver;
32 class SdrObject;
33 class ScDocProtection;
34 class ScTableProtection;
35 class ScMarkData;
36 
38 {
39 public:
41  ScDocShell* pNewDocShell,
42  SCTAB nTabNum,
43  bool bApp,
44  const OUString& rNewName);
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 
54 private:
55  OUString sNewName;
56  std::unique_ptr<SdrUndoAction> pDrawUndo;
59  bool bAppend;
60 
61  void SetChangeTrack();
62 };
63 
65 {
66 public:
68  ScDocShell* pNewDocShell,
69  SCTAB nTabNum,
70  const 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 
80 private:
81 
82  std::unique_ptr<SdrUndoAction> pDrawUndo;
83  std::vector<OUString> aNameList;
87 
88  void SetChangeTrack();
89 };
90 
92 {
93 public:
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 
108 private:
109  std::vector<SCTAB> theTabs;
112 
113  void SetChangeTrack();
114 };
115 
117 {
118 public:
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 
133 private:
135  OUString sOldName;
136  OUString sNewName;
137 
138  void DoChange( SCTAB nTab, const OUString& rName ) const;
139 };
140 
142 {
143 public:
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 
160 private:
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 {
171 public:
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 
187 private:
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 {
198 public:
200  ScDocShell* pNewDocShell,
201  SCTAB nT,
202  const Color& aOTabBgColor,
203  const Color& aNTabBgColor);
205  ScDocShell* pNewDocShell,
206  const 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 
216 private:
218 
219  void DoChange(bool bUndoType) const;
220 };
221 
223 {
224 public:
226  ScDocShell* pNewDocShell,
227  SCTAB nSrc, SCTAB nDest,
228  const OUString& rN, const OUString& rC,
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 
240 private:
241  std::unique_ptr<ScMarkData> mpMarkData;
244  OUString aName;
245  OUString aComment;
248  std::unique_ptr<SdrUndoAction> pDrawUndo;
249 };
250 
252 {
253 public:
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 
266 private:
270  std::unique_ptr<SdrUndoAction> pDrawUndo;
271 
272  void DoChange() const;
273 };
274 
276 {
277 public:
278  ScUndoRemoveLink( // Call before delete!
279  ScDocShell* pShell,
280  const OUString& rDoc );
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 
290 private:
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 {
308 public:
310  ScDocShell* pShell,
311  const 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 
322 private:
323  std::vector<SCTAB> undoTabs;
324  bool bShow;
325 
326  void DoChange( bool bShow ) const;
327 };
328 
332 {
333 public:
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 
344 private:
345  ::std::unique_ptr<ScDocProtection> mpProtectSettings;
346 
347  void DoProtect(bool bProtect);
348 };
349 
353 {
354 public:
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 
366 private:
368  ::std::unique_ptr<ScTableProtection> mpProtectSettings;
369 
370  void DoProtect(bool bProtect);
371 };
372 
374 {
375 public:
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 
388 private:
390  std::unique_ptr<ScPrintRangeSaver> pOldRanges;
391  std::unique_ptr<ScPrintRangeSaver> pNewRanges;
392 
393  void DoChange( bool bUndo );
394 };
395 
397 {
398 public:
400  ScDocShell* pNewDocShell, SCTAB nT,
401  const OUString& rON, const OUString& rNN,
402  const OUString& rOC, const OUString& rNC,
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 
415 private:
417  OUString aOldName;
418  OUString aNewName;
419  OUString aOldComment;
420  OUString aNewComment;
425 };
426 
428 {
429 public:
431  ScDocShell* pNewDocShell, const OUString& rPN,
432  const OUString& rON, const OUString& rNN );
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 
443 private:
444  OUString aPersistName; // to find object (works only for OLE objects)
445  OUString aOldName;
446  OUString aNewName;
447 
448  SdrObject* GetObject();
449 };
450 
452 {
453 public:
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 
464 private:
466  bool bRTL;
467 
468  void DoChange( bool bNew );
469 };
470 
471 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScUndoShowHideTab(ScDocShell *pShell, const std::vector< SCTAB > &newUndoTabs, bool bNewShow)
Definition: undotab.cxx:1089
virtual void Undo() override
Definition: undotab.cxx:548
void DoChange(bool bNew)
Definition: undotab.cxx:1509
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1134
virtual void Redo() override
Definition: undotab.cxx:1268
virtual ~ScUndoMoveTab() override
Definition: undotab.cxx:481
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1411
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
Definition: markdata.hxx:42
virtual OUString GetComment() const override
Definition: undotab.cxx:485
virtual void Redo() override
Definition: undotab.cxx:1198
virtual void Undo() override
Definition: undotab.cxx:607
virtual OUString GetComment() const override
Definition: undotab.cxx:872
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:845
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1489
virtual ~ScUndoTabProtect() override
Definition: undotab.cxx:1228
ScUndoMakeScenario(ScDocShell *pNewDocShell, SCTAB nSrc, SCTAB nDest, const OUString &rN, const OUString &rC, const Color &rCol, ScScenarioFlags nF, const ScMarkData &rMark)
Definition: undotab.cxx:772
virtual void Redo() override
Definition: undotab.cxx:1530
virtual OUString GetComment() const override
Definition: undotab.cxx:1547
sal_uLong nStartChangeAction
Definition: undotab.hxx:110
sheet protection state container
virtual ~ScUndoShowHideTab() override
Definition: undotab.cxx:1096
ScScenarioFlags
Definition: global.hxx:235
ScScenarioFlags nOldFlags
Definition: undotab.hxx:423
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:396
sal_uIntPtr sal_uLong
virtual void Undo() override
Definition: undotab.cxx:448
virtual OUString GetComment() const override
Definition: undotab.cxx:1435
FilterGroup & rTarget
void DoProtect(bool bProtect)
Definition: undotab.cxx:1164
ScUndoLayoutRTL(ScDocShell *pShell, SCTAB nNewTab, bool bNewRTL)
Definition: undotab.cxx:1498
SdrObject * GetObject()
Definition: undotab.cxx:1441
virtual ~ScUndoTabColor() override
Definition: undotab.cxx:724
ScUndoDeleteTab(ScDocShell *pNewDocShell, const std::vector< SCTAB > &theTabs, ScDocumentUniquePtr pUndoDocument, std::unique_ptr< ScRefUndoData > pRefData)
Definition: undotab.cxx:250
ScUndoInsertTables(ScDocShell *pNewDocShell, SCTAB nTabNum, const std::vector< OUString > &newNameList)
Definition: undotab.cxx:156
ScDocumentUniquePtr xRedoDoc
Definition: undotab.hxx:269
virtual void Undo() override
Definition: undotab.cxx:1471
virtual OUString GetComment() const override
Definition: undotab.cxx:794
void SetChangeTrack()
Definition: undotab.cxx:268
OUString sNewName
Definition: undotab.hxx:136
ScUndoTabProtect(ScDocShell *pShell, SCTAB nTab, std::unique_ptr< ScTableProtection > &&pProtectSettings)
Definition: undotab.cxx:1221
std::vector< SCTAB > undoTabs
Definition: undotab.hxx:323
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1006
std::unique_ptr< ::std::vector< OUString > > mpNewNames
Definition: undotab.hxx:164
sal_uLong nStartChangeAction
Definition: undotab.hxx:84
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1280
virtual void Redo() override
Definition: undotab.cxx:757
void DoChange() const
Definition: undotab.cxx:877
virtual OUString GetComment() const override
Definition: undotab.cxx:263
ScScenarioFlags nNewFlags
Definition: undotab.hxx:424
virtual void Redo() override
Definition: undotab.cxx:377
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:558
void DoProtect(bool bProtect)
Definition: undotab.cxx:1232
::std::unique_ptr< ScDocProtection > mpProtectSettings
Definition: undotab.hxx:345
std::unique_ptr< ScPrintRangeSaver > pOldRanges
Definition: undotab.hxx:390
OUString sOldName
Definition: undotab.hxx:135
void DoChange(SCTAB nTab, const OUString &rName) const
Definition: undotab.cxx:430
std::unique_ptr< ::std::vector< OUString > > mpNewNames
Definition: undotab.hxx:190
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:144
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1493
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:245
virtual ~ScUndoInsertTables() override
Definition: undotab.cxx:168
ScUndoPrintRange(ScDocShell *pShell, SCTAB nNewTab, std::unique_ptr< ScPrintRangeSaver > pOld, std::unique_ptr< ScPrintRangeSaver > pNew)
Definition: undotab.cxx:1291
virtual ~ScUndoMakeScenario() override
Definition: undotab.cxx:789
virtual void Undo() override
Definition: undotab.cxx:1116
virtual ~ScUndoCopyTab() override
Definition: undotab.cxx:583
virtual ~ScUndoDeleteTab() override
Definition: undotab.cxx:258
std::unique_ptr< ::std::vector< SCTAB > > mpNewTabs
Definition: undotab.hxx:162
virtual ~ScUndoRenameObject() override
Definition: undotab.cxx:1431
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:701
void SetChangeTrack()
Definition: undotab.cxx:178
virtual void Redo() override
Definition: undotab.cxx:453
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1126
virtual void Undo() override
Definition: undotab.cxx:1323
std::vector< SCTAB > theTabs
Definition: undotab.hxx:109
virtual OUString GetComment() const override
Definition: undotab.cxx:1347
ScUndoInsertTab(ScDocShell *pNewDocShell, SCTAB nTabNum, bool bApp, const OUString &rNewName)
Definition: undotab.cxx:62
OUString aOldName
Definition: undotab.hxx:445
virtual OUString GetComment() const override
Definition: undotab.cxx:173
virtual OUString GetComment() const override
Definition: undotab.cxx:1139
std::unique_ptr< ScPrintRangeSaver > pNewRanges
Definition: undotab.hxx:391
virtual void Undo() override
Definition: undotab.cxx:102
virtual void Undo() override
Definition: undotab.cxx:799
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1337
void DoChange(bool bShow) const
Definition: undotab.cxx:1100
OUString aNewComment
Definition: undotab.hxx:420
::std::unique_ptr< ScTableProtection > mpProtectSettings
Definition: undotab.hxx:368
void DoChange(bool bUndo)
Definition: undotab.cxx:1306
sal_uLong nEndChangeAction
Definition: undotab.hxx:57
virtual OUString GetComment() const override
Definition: undotab.cxx:1372
ScUndoTabColorInfo::List aTabColorList
Definition: undotab.hxx:217
std::unique_ptr< ScDocument, o3tl::default_delete< ScDocument > > ScDocumentUniquePtr
Definition: document.hxx:2620
virtual OUString GetComment() const override
Definition: undotab.cxx:425
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:767
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:762
ScUndoDocProtect(ScDocShell *pShell,::std::unique_ptr< ScDocProtection > &&pProtectSettings)
Definition: undotab.cxx:1154
std::unique_ptr< ScMarkData > mpMarkData
Definition: undotab.hxx:241
void SetChangeTrack()
Definition: undotab.cxx:88
virtual void Redo() override
Definition: undotab.cxx:1121
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undotab.hxx:82
virtual void Redo() override
Definition: undotab.cxx:222
virtual void Redo() override
Definition: undotab.cxx:1330
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:405
void DoChange() const
Definition: undotab.cxx:593
sal_uLong nEndChangeAction
Definition: undotab.hxx:111
std::unique_ptr< ::std::vector< OUString > > mpOldNames
Definition: undotab.hxx:163
ScUndoTabColor(ScDocShell *pNewDocShell, SCTAB nT, const Color &aOTabBgColor, const Color &aNTabBgColor)
Definition: undotab.cxx:706
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undotab.hxx:191
virtual void Redo() override
Definition: undotab.cxx:951
void DoChange(bool bUndo) const
Definition: undotab.cxx:490
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1205
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:151
virtual void Redo() override
Definition: undotab.cxx:123
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:563
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:696
ScUndoRenameTab(ScDocShell *pNewDocShell, SCTAB nT, const OUString &rOldName, const OUString &rNewName)
Definition: undotab.cxx:410
virtual void Undo() override
Definition: undotab.cxx:752
This class implements undo & redo of both protect and unprotect of sheet.
Definition: undotab.hxx:352
virtual OUString GetComment() const override
Definition: undotab.cxx:80
std::unique_ptr< ::std::vector< SCTAB > > mpOldTabs
Definition: undotab.hxx:188
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1542
ScUndoRenameObject(ScDocShell *pNewDocShell, const OUString &rPN, const OUString &rON, const OUString &rNN)
Definition: undotab.cxx:1422
virtual void Undo() override
Definition: undotab.cxx:1377
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1275
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1342
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undotab.hxx:270
virtual ~ScUndoInsertTab() override
Definition: undotab.cxx:75
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:463
virtual ~ScUndoLayoutRTL() override
Definition: undotab.cxx:1505
virtual void Undo() override
Definition: undotab.cxx:1261
virtual ~ScUndoPrintRange() override
Definition: undotab.cxx:1300
std::unique_ptr< ::std::vector< SCTAB > > mpOldTabs
Definition: undotab.hxx:161
virtual OUString GetComment() const override
Definition: undotab.cxx:728
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:458
virtual void Redo() override
Definition: undotab.cxx:553
virtual OUString GetComment() const override
Definition: undotab.cxx:588
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:853
virtual void Undo() override
Definition: undotab.cxx:199
virtual ~ScUndoScenarioFlags() override
Definition: undotab.cxx:1368
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:468
virtual void Redo() override
Definition: undotab.cxx:824
sal_uLong nEndChangeAction
Definition: undotab.hxx:85
virtual void Redo() override
Definition: undotab.cxx:640
virtual void Undo() override
Definition: undotab.cxx:1191
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undotab.hxx:56
virtual ~ScUndoRenameTab() override
Definition: undotab.cxx:421
void DoChange(bool bUndoType) const
Definition: undotab.cxx:735
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1210
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1535
std::unique_ptr< ::std::vector< SCTAB > > mpNewTabs
Definition: undotab.hxx:189
OUString aNewName
Definition: undotab.hxx:446
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:568
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:238
std::vector< OUString > aNameList
Definition: undotab.hxx:83
ScUndoImportTab(ScDocShell *pShell, SCTAB nNewTab, SCTAB nNewCount)
Definition: undotab.cxx:858
OUString sNewName
Definition: undotab.hxx:55
virtual void Redo() override
Definition: undotab.cxx:1394
virtual OUString GetComment() const override
Definition: undotab.cxx:1285
virtual OUString GetComment() const override
Definition: undotab.cxx:1215
ScUndoScenarioFlags(ScDocShell *pNewDocShell, SCTAB nT, const OUString &rON, const OUString &rNN, const OUString &rOC, const OUString &rNC, const Color &rOCol, const Color &rNCol, ScScenarioFlags nOF, ScScenarioFlags nNF)
Definition: undotab.cxx:1352
virtual void Redo() override
Definition: undotab.cxx:1480
virtual ~ScUndoImportTab() override
Definition: undotab.cxx:867
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undotab.hxx:248
virtual ~ScUndoDocProtect() override
Definition: undotab.cxx:1160
virtual void Undo() override
Definition: undotab.cxx:1525
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1416
::std::vector< ScUndoTabColorInfo > List
Definition: tabbgcolor.hxx:36
OUString aComment
Definition: undotab.hxx:245
OUString aPersistName
Definition: undotab.hxx:444
OUString aOldComment
Definition: undotab.hxx:419
sal_Int16 SCTAB
Definition: types.hxx:22
virtual void Undo() override
Definition: undotab.cxx:298
ScScenarioFlags nFlags
Definition: undotab.hxx:247
virtual void Undo() override
Definition: undotab.cxx:899
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:999
This class implements undo & redo of document protect & unprotect operations.
Definition: undotab.hxx:331