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 #ifndef INCLUDED_SC_SOURCE_UI_INC_UNDOTAB_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_UNDOTAB_HXX
22 
23 #include "undobase.hxx"
24 #include <tools/color.hxx>
25 #include <tabbgcolor.hxx>
26 
27 #include <memory>
28 #include <vector>
29 
30 class ScDocShell;
31 class SdrUndoAction;
32 class ScPrintRangeSaver;
33 class SdrObject;
34 class ScDocProtection;
35 class ScTableProtection;
36 class ScMarkData;
37 
39 {
40 public:
42  ScDocShell* pNewDocShell,
43  SCTAB nTabNum,
44  bool bApp,
45  const OUString& rNewName);
46  virtual ~ScUndoInsertTab() override;
47 
48  virtual void Undo() override;
49  virtual void Redo() override;
50  virtual void Repeat(SfxRepeatTarget& rTarget) override;
51  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
52 
53  virtual OUString GetComment() const override;
54 
55 private:
56  OUString sNewName;
57  std::unique_ptr<SdrUndoAction> pDrawUndo;
60  bool bAppend;
61 
62  void SetChangeTrack();
63 };
64 
66 {
67 public:
69  ScDocShell* pNewDocShell,
70  SCTAB nTabNum,
71  const std::vector<OUString>& newNameList);
72  virtual ~ScUndoInsertTables() override;
73 
74  virtual void Undo() override;
75  virtual void Redo() override;
76  virtual void Repeat(SfxRepeatTarget& rTarget) override;
77  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
78 
79  virtual OUString GetComment() const override;
80 
81 private:
82 
83  std::unique_ptr<SdrUndoAction> pDrawUndo;
84  std::vector<OUString> aNameList;
88 
89  void SetChangeTrack();
90 };
91 
93 {
94 public:
96  ScDocShell* pNewDocShell,
97  const std::vector<SCTAB> &theTabs, //SCTAB nNewTab,
98  ScDocumentUniquePtr pUndoDocument,
99  std::unique_ptr<ScRefUndoData> pRefData );
100  virtual ~ScUndoDeleteTab() override;
101 
102  virtual void Undo() override;
103  virtual void Redo() override;
104  virtual void Repeat(SfxRepeatTarget& rTarget) override;
105  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
106 
107  virtual OUString GetComment() const override;
108 
109 private:
110  std::vector<SCTAB> theTabs;
113 
114  void SetChangeTrack();
115 };
116 
118 {
119 public:
121  ScDocShell* pNewDocShell,
122  SCTAB nT,
123  const OUString& rOldName,
124  const OUString& rNewName);
125  virtual ~ScUndoRenameTab() override;
126 
127  virtual void Undo() override;
128  virtual void Redo() override;
129  virtual void Repeat(SfxRepeatTarget& rTarget) override;
130  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
131 
132  virtual OUString GetComment() const override;
133 
134 private:
136  OUString sOldName;
137  OUString sNewName;
138 
139  void DoChange( SCTAB nTab, const OUString& rName ) const;
140 };
141 
143 {
144 public:
146  ScDocShell* pNewDocShell,
147  std::unique_ptr<std::vector<SCTAB>> pOldTabs,
148  std::unique_ptr<std::vector<SCTAB>> pNewTabs,
149  std::unique_ptr<std::vector< OUString>> pOldNames = nullptr,
150  std::unique_ptr<std::vector< OUString>> pNewNames = nullptr );
151 
152  virtual ~ScUndoMoveTab() override;
153 
154  virtual void Undo() override;
155  virtual void Redo() override;
156  virtual void Repeat(SfxRepeatTarget& rTarget) override;
157  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
158 
159  virtual OUString GetComment() const override;
160 
161 private:
162  std::unique_ptr< ::std::vector<SCTAB> > mpOldTabs;
163  std::unique_ptr< ::std::vector<SCTAB> > mpNewTabs;
164  std::unique_ptr< ::std::vector< OUString> > mpOldNames;
165  std::unique_ptr< ::std::vector< OUString> > mpNewNames;
166 
167  void DoChange( bool bUndo ) const;
168 };
169 
171 {
172 public:
174  ScDocShell* pNewDocShell,
175  std::unique_ptr<std::vector<SCTAB>> pOldTabs,
176  std::unique_ptr<std::vector<SCTAB>> pNewTabs,
177  std::unique_ptr<std::vector< OUString>> pNewNames = nullptr );
178 
179  virtual ~ScUndoCopyTab() override;
180 
181  virtual void Undo() override;
182  virtual void Redo() override;
183  virtual void Repeat(SfxRepeatTarget& rTarget) override;
184  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
185 
186  virtual OUString GetComment() const override;
187 
188 private:
189  std::unique_ptr< ::std::vector<SCTAB> > mpOldTabs;
190  std::unique_ptr< ::std::vector<SCTAB> > mpNewTabs;
191  std::unique_ptr< ::std::vector< OUString> > mpNewNames;
192  std::unique_ptr<SdrUndoAction> pDrawUndo;
193 
194  void DoChange() const;
195 };
196 
198 {
199 public:
201  ScDocShell* pNewDocShell,
202  SCTAB nT,
203  const Color& aOTabBgColor,
204  const Color& aNTabBgColor);
206  ScDocShell* pNewDocShell,
207  const ScUndoTabColorInfo::List& rUndoTabColorList);
208  virtual ~ScUndoTabColor() override;
209 
210  virtual void Undo() override;
211  virtual void Redo() override;
212  virtual void Repeat(SfxRepeatTarget& rTarget) override;
213  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
214 
215  virtual OUString GetComment() const override;
216 
217 private:
219 
220  void DoChange(bool bUndoType) const;
221 };
222 
224 {
225 public:
227  ScDocShell* pNewDocShell,
228  SCTAB nSrc, SCTAB nDest,
229  const OUString& rN, const OUString& rC,
230  const Color& rCol, ScScenarioFlags nF,
231  const ScMarkData& rMark );
232  virtual ~ScUndoMakeScenario() override;
233 
234  virtual void Undo() override;
235  virtual void Redo() override;
236  virtual void Repeat(SfxRepeatTarget& rTarget) override;
237  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
238 
239  virtual OUString GetComment() const override;
240 
241 private:
242  std::unique_ptr<ScMarkData> mpMarkData;
245  OUString aName;
246  OUString aComment;
249  std::unique_ptr<SdrUndoAction> pDrawUndo;
250 };
251 
253 {
254 public:
256  ScDocShell* pShell,
257  SCTAB nNewTab, SCTAB nNewCount );
258  virtual ~ScUndoImportTab() override;
259 
260  virtual void Undo() override;
261  virtual void Redo() override;
262  virtual void Repeat(SfxRepeatTarget& rTarget) override;
263  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
264 
265  virtual OUString GetComment() const override;
266 
267 private:
271  std::unique_ptr<SdrUndoAction> pDrawUndo;
272 
273  void DoChange() const;
274 };
275 
277 {
278 public:
279  ScUndoRemoveLink( // Call before delete!
280  ScDocShell* pShell,
281  const OUString& rDoc );
282  virtual ~ScUndoRemoveLink() override;
283 
284  virtual void Undo() override;
285  virtual void Redo() override;
286  virtual void Repeat(SfxRepeatTarget& rTarget) override;
287  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
288 
289  virtual OUString GetComment() const override;
290 
291 private:
292  OUString aDocName;
293  OUString aFltName;
294  OUString aOptions;
296  sal_uInt16 nCount;
297  std::unique_ptr<SCTAB[]>
299  std::unique_ptr<ScLinkMode[]>
301  std::unique_ptr<OUString[]>
303 
304  void DoChange( bool bLink ) const;
305 };
306 
308 {
309 public:
311  ScDocShell* pShell,
312  const std::vector<SCTAB>& newUndoTabs,
313  bool bNewShow );
314  virtual ~ScUndoShowHideTab() override;
315 
316  virtual void Undo() override;
317  virtual void Redo() override;
318  virtual void Repeat(SfxRepeatTarget& rTarget) override;
319  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
320 
321  virtual OUString GetComment() const override;
322 
323 private:
324  std::vector<SCTAB> undoTabs;
325  bool bShow;
326 
327  void DoChange( bool bShow ) const;
328 };
329 
333 {
334 public:
335  ScUndoDocProtect(ScDocShell* pShell, ::std::unique_ptr<ScDocProtection> && pProtectSettings);
336  virtual ~ScUndoDocProtect() override;
337 
338  virtual void Undo() override;
339  virtual void Redo() override;
340  virtual void Repeat(SfxRepeatTarget& rTarget) override;
341  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
342 
343  virtual OUString GetComment() const override;
344 
345 private:
346  ::std::unique_ptr<ScDocProtection> mpProtectSettings;
347 
348  void DoProtect(bool bProtect);
349 };
350 
354 {
355 public:
356  ScUndoTabProtect(ScDocShell* pShell, SCTAB nTab,
357  std::unique_ptr<ScTableProtection> && pProtectSettings);
358  virtual ~ScUndoTabProtect() override;
359 
360  virtual void Undo() override;
361  virtual void Redo() override;
362  virtual void Repeat(SfxRepeatTarget& rTarget) override;
363  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
364 
365  virtual OUString GetComment() const override;
366 
367 private:
369  ::std::unique_ptr<ScTableProtection> mpProtectSettings;
370 
371  void DoProtect(bool bProtect);
372 };
373 
375 {
376 public:
377  ScUndoPrintRange( ScDocShell* pShell, SCTAB nNewTab,
378  std::unique_ptr<ScPrintRangeSaver> pOld,
379  std::unique_ptr<ScPrintRangeSaver> pNew );
380  virtual ~ScUndoPrintRange() override;
381 
382  virtual void Undo() override;
383  virtual void Redo() override;
384  virtual void Repeat(SfxRepeatTarget& rTarget) override;
385  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
386 
387  virtual OUString GetComment() const override;
388 
389 private:
391  std::unique_ptr<ScPrintRangeSaver> pOldRanges;
392  std::unique_ptr<ScPrintRangeSaver> pNewRanges;
393 
394  void DoChange( bool bUndo );
395 };
396 
398 {
399 public:
401  ScDocShell* pNewDocShell, SCTAB nT,
402  const OUString& rON, const OUString& rNN,
403  const OUString& rOC, const OUString& rNC,
404  const Color& rOCol, const Color& rNCol,
406 
407  virtual ~ScUndoScenarioFlags() override;
408 
409  virtual void Undo() override;
410  virtual void Redo() override;
411  virtual void Repeat(SfxRepeatTarget& rTarget) override;
412  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
413 
414  virtual OUString GetComment() const override;
415 
416 private:
418  OUString aOldName;
419  OUString aNewName;
420  OUString aOldComment;
421  OUString aNewComment;
426 };
427 
429 {
430 public:
432  ScDocShell* pNewDocShell, const OUString& rPN,
433  const OUString& rON, const OUString& rNN );
434 
435  virtual ~ScUndoRenameObject() override;
436 
437  virtual void Undo() override;
438  virtual void Redo() override;
439  virtual void Repeat(SfxRepeatTarget& rTarget) override;
440  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
441 
442  virtual OUString GetComment() const override;
443 
444 private:
445  OUString aPersistName; // to find object (works only for OLE objects)
446  OUString aOldName;
447  OUString aNewName;
448 
449  SdrObject* GetObject();
450 };
451 
453 {
454 public:
455  ScUndoLayoutRTL( ScDocShell* pShell, SCTAB nNewTab, bool bNewRTL );
456  virtual ~ScUndoLayoutRTL() override;
457 
458  virtual void Undo() override;
459  virtual void Redo() override;
460  virtual void Repeat(SfxRepeatTarget& rTarget) override;
461  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
462 
463  virtual OUString GetComment() const override;
464 
465 private:
467  bool bRTL;
468 
469  void DoChange( bool bNew );
470 };
471 
472 #endif
473 
474 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScUndoShowHideTab(ScDocShell *pShell, const std::vector< SCTAB > &newUndoTabs, bool bNewShow)
Definition: undotab.cxx:1087
virtual void Undo() override
Definition: undotab.cxx:546
void DoChange(bool bNew)
Definition: undotab.cxx:1507
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1132
virtual void Redo() override
Definition: undotab.cxx:1266
virtual ~ScUndoMoveTab() override
Definition: undotab.cxx:479
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1409
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
Definition: markdata.hxx:43
virtual OUString GetComment() const override
Definition: undotab.cxx:483
virtual void Redo() override
Definition: undotab.cxx:1196
virtual void Undo() override
Definition: undotab.cxx:605
virtual OUString GetComment() const override
Definition: undotab.cxx:870
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:843
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1487
virtual ~ScUndoTabProtect() override
Definition: undotab.cxx:1226
ScUndoMakeScenario(ScDocShell *pNewDocShell, SCTAB nSrc, SCTAB nDest, const OUString &rN, const OUString &rC, const Color &rCol, ScScenarioFlags nF, const ScMarkData &rMark)
Definition: undotab.cxx:770
virtual void Redo() override
Definition: undotab.cxx:1528
virtual OUString GetComment() const override
Definition: undotab.cxx:1545
sal_uLong nStartChangeAction
Definition: undotab.hxx:111
sheet protection state container
virtual ~ScUndoShowHideTab() override
Definition: undotab.cxx:1094
ScScenarioFlags
Definition: global.hxx:237
ScScenarioFlags nOldFlags
Definition: undotab.hxx:424
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:395
sal_uIntPtr sal_uLong
virtual void Undo() override
Definition: undotab.cxx:446
virtual OUString GetComment() const override
Definition: undotab.cxx:1433
FilterGroup & rTarget
void DoProtect(bool bProtect)
Definition: undotab.cxx:1162
ScUndoLayoutRTL(ScDocShell *pShell, SCTAB nNewTab, bool bNewRTL)
Definition: undotab.cxx:1496
SdrObject * GetObject()
Definition: undotab.cxx:1439
virtual ~ScUndoTabColor() override
Definition: undotab.cxx:722
ScUndoDeleteTab(ScDocShell *pNewDocShell, const std::vector< SCTAB > &theTabs, ScDocumentUniquePtr pUndoDocument, std::unique_ptr< ScRefUndoData > pRefData)
Definition: undotab.cxx:249
ScUndoInsertTables(ScDocShell *pNewDocShell, SCTAB nTabNum, const std::vector< OUString > &newNameList)
Definition: undotab.cxx:155
ScDocumentUniquePtr xRedoDoc
Definition: undotab.hxx:270
virtual void Undo() override
Definition: undotab.cxx:1469
virtual OUString GetComment() const override
Definition: undotab.cxx:792
void SetChangeTrack()
Definition: undotab.cxx:267
OUString sNewName
Definition: undotab.hxx:137
ScUndoTabProtect(ScDocShell *pShell, SCTAB nTab, std::unique_ptr< ScTableProtection > &&pProtectSettings)
Definition: undotab.cxx:1219
std::vector< SCTAB > undoTabs
Definition: undotab.hxx:324
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1004
std::unique_ptr< ::std::vector< OUString > > mpNewNames
Definition: undotab.hxx:165
sal_uLong nStartChangeAction
Definition: undotab.hxx:85
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1278
virtual void Redo() override
Definition: undotab.cxx:755
void DoChange() const
Definition: undotab.cxx:875
virtual OUString GetComment() const override
Definition: undotab.cxx:262
ScScenarioFlags nNewFlags
Definition: undotab.hxx:425
virtual void Redo() override
Definition: undotab.cxx:376
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:556
void DoProtect(bool bProtect)
Definition: undotab.cxx:1230
::std::unique_ptr< ScDocProtection > mpProtectSettings
Definition: undotab.hxx:346
std::unique_ptr< ScPrintRangeSaver > pOldRanges
Definition: undotab.hxx:391
OUString sOldName
Definition: undotab.hxx:136
void DoChange(SCTAB nTab, const OUString &rName) const
Definition: undotab.cxx:429
std::unique_ptr< ::std::vector< OUString > > mpNewNames
Definition: undotab.hxx:191
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:143
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1491
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:244
virtual ~ScUndoInsertTables() override
Definition: undotab.cxx:167
ScUndoPrintRange(ScDocShell *pShell, SCTAB nNewTab, std::unique_ptr< ScPrintRangeSaver > pOld, std::unique_ptr< ScPrintRangeSaver > pNew)
Definition: undotab.cxx:1289
virtual ~ScUndoMakeScenario() override
Definition: undotab.cxx:787
virtual void Undo() override
Definition: undotab.cxx:1114
virtual ~ScUndoCopyTab() override
Definition: undotab.cxx:581
virtual ~ScUndoDeleteTab() override
Definition: undotab.cxx:257
std::unique_ptr< ::std::vector< SCTAB > > mpNewTabs
Definition: undotab.hxx:163
virtual ~ScUndoRenameObject() override
Definition: undotab.cxx:1429
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:699
void SetChangeTrack()
Definition: undotab.cxx:177
virtual void Redo() override
Definition: undotab.cxx:451
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1124
virtual void Undo() override
Definition: undotab.cxx:1321
std::vector< SCTAB > theTabs
Definition: undotab.hxx:110
virtual OUString GetComment() const override
Definition: undotab.cxx:1345
ScUndoInsertTab(ScDocShell *pNewDocShell, SCTAB nTabNum, bool bApp, const OUString &rNewName)
Definition: undotab.cxx:61
OUString aOldName
Definition: undotab.hxx:446
virtual OUString GetComment() const override
Definition: undotab.cxx:172
virtual OUString GetComment() const override
Definition: undotab.cxx:1137
std::unique_ptr< ScPrintRangeSaver > pNewRanges
Definition: undotab.hxx:392
virtual void Undo() override
Definition: undotab.cxx:101
virtual void Undo() override
Definition: undotab.cxx:797
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1335
void DoChange(bool bShow) const
Definition: undotab.cxx:1098
OUString aNewComment
Definition: undotab.hxx:421
::std::unique_ptr< ScTableProtection > mpProtectSettings
Definition: undotab.hxx:369
void DoChange(bool bUndo)
Definition: undotab.cxx:1304
sal_uLong nEndChangeAction
Definition: undotab.hxx:58
virtual OUString GetComment() const override
Definition: undotab.cxx:1370
ScUndoTabColorInfo::List aTabColorList
Definition: undotab.hxx:218
std::unique_ptr< ScDocument, o3tl::default_delete< ScDocument > > ScDocumentUniquePtr
Definition: document.hxx:2613
virtual OUString GetComment() const override
Definition: undotab.cxx:424
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:765
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:760
ScUndoDocProtect(ScDocShell *pShell,::std::unique_ptr< ScDocProtection > &&pProtectSettings)
Definition: undotab.cxx:1152
std::unique_ptr< ScMarkData > mpMarkData
Definition: undotab.hxx:242
void SetChangeTrack()
Definition: undotab.cxx:87
virtual void Redo() override
Definition: undotab.cxx:1119
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undotab.hxx:83
virtual void Redo() override
Definition: undotab.cxx:221
virtual void Redo() override
Definition: undotab.cxx:1328
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:404
void DoChange() const
Definition: undotab.cxx:591
sal_uLong nEndChangeAction
Definition: undotab.hxx:112
std::unique_ptr< ::std::vector< OUString > > mpOldNames
Definition: undotab.hxx:164
ScUndoTabColor(ScDocShell *pNewDocShell, SCTAB nT, const Color &aOTabBgColor, const Color &aNTabBgColor)
Definition: undotab.cxx:704
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undotab.hxx:192
virtual void Redo() override
Definition: undotab.cxx:949
void DoChange(bool bUndo) const
Definition: undotab.cxx:488
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1203
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:150
virtual void Redo() override
Definition: undotab.cxx:122
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:561
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:694
ScUndoRenameTab(ScDocShell *pNewDocShell, SCTAB nT, const OUString &rOldName, const OUString &rNewName)
Definition: undotab.cxx:409
virtual void Undo() override
Definition: undotab.cxx:750
This class implements undo & redo of both protect and unprotect of sheet.
Definition: undotab.hxx:353
virtual OUString GetComment() const override
Definition: undotab.cxx:79
std::unique_ptr< ::std::vector< SCTAB > > mpOldTabs
Definition: undotab.hxx:189
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1540
ScUndoRenameObject(ScDocShell *pNewDocShell, const OUString &rPN, const OUString &rON, const OUString &rNN)
Definition: undotab.cxx:1420
virtual void Undo() override
Definition: undotab.cxx:1375
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1273
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1340
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undotab.hxx:271
virtual ~ScUndoInsertTab() override
Definition: undotab.cxx:74
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:461
virtual ~ScUndoLayoutRTL() override
Definition: undotab.cxx:1503
virtual void Undo() override
Definition: undotab.cxx:1259
virtual ~ScUndoPrintRange() override
Definition: undotab.cxx:1298
std::unique_ptr< ::std::vector< SCTAB > > mpOldTabs
Definition: undotab.hxx:162
virtual OUString GetComment() const override
Definition: undotab.cxx:726
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:456
virtual void Redo() override
Definition: undotab.cxx:551
virtual OUString GetComment() const override
Definition: undotab.cxx:586
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:851
virtual void Undo() override
Definition: undotab.cxx:198
virtual ~ScUndoScenarioFlags() override
Definition: undotab.cxx:1366
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:466
virtual void Redo() override
Definition: undotab.cxx:822
sal_uLong nEndChangeAction
Definition: undotab.hxx:86
virtual void Redo() override
Definition: undotab.cxx:638
virtual void Undo() override
Definition: undotab.cxx:1189
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undotab.hxx:57
virtual ~ScUndoRenameTab() override
Definition: undotab.cxx:420
void DoChange(bool bUndoType) const
Definition: undotab.cxx:733
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1208
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:1533
std::unique_ptr< ::std::vector< SCTAB > > mpNewTabs
Definition: undotab.hxx:190
OUString aNewName
Definition: undotab.hxx:447
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:566
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:237
std::vector< OUString > aNameList
Definition: undotab.hxx:84
ScUndoImportTab(ScDocShell *pShell, SCTAB nNewTab, SCTAB nNewCount)
Definition: undotab.cxx:856
OUString sNewName
Definition: undotab.hxx:56
virtual void Redo() override
Definition: undotab.cxx:1392
virtual OUString GetComment() const override
Definition: undotab.cxx:1283
virtual OUString GetComment() const override
Definition: undotab.cxx:1213
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:1350
virtual void Redo() override
Definition: undotab.cxx:1478
virtual ~ScUndoImportTab() override
Definition: undotab.cxx:865
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undotab.hxx:249
virtual ~ScUndoDocProtect() override
Definition: undotab.cxx:1158
virtual void Undo() override
Definition: undotab.cxx:1523
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undotab.cxx:1414
::std::vector< ScUndoTabColorInfo > List
Definition: tabbgcolor.hxx:37
OUString aComment
Definition: undotab.hxx:246
OUString aPersistName
Definition: undotab.hxx:445
OUString aOldComment
Definition: undotab.hxx:420
sal_Int16 SCTAB
Definition: types.hxx:23
virtual void Undo() override
Definition: undotab.cxx:297
ScScenarioFlags nFlags
Definition: undotab.hxx:248
virtual void Undo() override
Definition: undotab.cxx:897
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undotab.cxx:997
This class implements undo & redo of document protect & unprotect operations.
Definition: undotab.hxx:332