LibreOffice Module sc (master)  1
undodat.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_UNDODAT_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_UNDODAT_HXX
22 
23 #include "undobase.hxx"
24 #include "refundo.hxx"
25 #include <dpobject.hxx>
26 #include <olinetab.hxx>
27 #include <rangeutl.hxx>
28 #include <rangelst.hxx>
29 #include <queryparam.hxx>
30 #include <subtotalparam.hxx>
31 
32 #include <memory>
33 
34 class ScDocShell;
35 class SdrUndoAction;
36 
38 {
39 public:
40  ScUndoDoOutline( ScDocShell* pNewDocShell,
41  SCCOLROW nNewStart, SCCOLROW nNewEnd, SCTAB nNewTab,
42  ScDocumentUniquePtr pNewUndoDoc, bool bNewColumns,
43  sal_uInt16 nNewLevel, sal_uInt16 nNewEntry, bool bNewShow );
44  virtual ~ScUndoDoOutline() override;
45 
46  virtual void Undo() override;
47  virtual void Redo() override;
48  virtual void Repeat(SfxRepeatTarget& rTarget) override;
49  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
50 
51  virtual OUString GetComment() const override;
52 
53 private:
59  bool bColumns;
60  sal_uInt16 nLevel;
61  sal_uInt16 nEntry;
62  bool bShow;
63 };
64 
66 {
67 public:
68  ScUndoMakeOutline( ScDocShell* pNewDocShell,
69  SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
70  SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
71  std::unique_ptr<ScOutlineTable> pNewUndoTab,
72  bool bNewColumns, bool bNewMake );
73  virtual ~ScUndoMakeOutline() override;
74 
75  virtual void Undo() override;
76  virtual void Redo() override;
77  virtual void Repeat(SfxRepeatTarget& rTarget) override;
78  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
79 
80  virtual OUString GetComment() const override;
81 
82 private:
85  std::unique_ptr<ScOutlineTable>
87  bool bColumns;
88  bool bMake;
89 };
90 
92 {
93 public:
94  ScUndoOutlineLevel(ScDocShell* pNewDocShell,
95  SCCOLROW nNewStart, SCCOLROW nNewEnd, SCTAB nNewTab,
96  ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr<ScOutlineTable> pNewUndoTab,
97  bool bNewColumns, sal_uInt16 nNewLevel);
98 
99  virtual void Undo() override;
100  virtual void Redo() override;
101  virtual void Repeat(SfxRepeatTarget& rTarget) override;
102  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
103 
104  virtual OUString GetComment() const override;
105 
106 private:
111  std::unique_ptr<ScOutlineTable> xUndoTable;
112  bool bColumns;
113  sal_uInt16 nLevel;
114 };
115 
117 {
118 public:
119  ScUndoOutlineBlock(ScDocShell* pNewDocShell,
120  SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
121  SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
122  ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr<ScOutlineTable> pNewUndoTab,
123  bool bNewShow);
124 
125  virtual void Undo() override;
126  virtual void Redo() override;
127  virtual void Repeat(SfxRepeatTarget& rTarget) override;
128  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
129 
130  virtual OUString GetComment() const override;
131 
132 private:
136  std::unique_ptr<ScOutlineTable> xUndoTable;
137  bool bShow;
138 };
139 
141 {
142 public:
143  ScUndoRemoveAllOutlines(ScDocShell* pNewDocShell,
144  SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
145  SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
146  ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr<ScOutlineTable> pNewUndoTab);
147 
148  virtual void Undo() override;
149  virtual void Redo() override;
150  virtual void Repeat(SfxRepeatTarget& rTarget) override;
151  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
152 
153  virtual OUString GetComment() const override;
154 
155 private:
159  std::unique_ptr<ScOutlineTable> xUndoTable;
160 };
161 
163 {
164 public:
165  ScUndoAutoOutline(ScDocShell* pNewDocShell,
166  SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
167  SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
168  ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr<ScOutlineTable> pNewUndoTab);
169 
170  virtual void Undo() override;
171  virtual void Redo() override;
172  virtual void Repeat(SfxRepeatTarget& rTarget) override;
173  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
174 
175  virtual OUString GetComment() const override;
176 
177 private:
181  std::unique_ptr<ScOutlineTable> xUndoTable;
182 };
183 
185 {
186 public:
187  ScUndoSubTotals(ScDocShell* pNewDocShell, SCTAB nNewTab,
188  const ScSubTotalParam& rNewParam, SCROW nNewEndY,
189  ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr<ScOutlineTable> pNewUndoTab,
190  std::unique_ptr<ScRangeName> pNewUndoRange, std::unique_ptr<ScDBCollection> pNewUndoDB);
191 
192  virtual void Undo() override;
193  virtual void Redo() override;
194  virtual void Repeat(SfxRepeatTarget& rTarget) override;
195  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
196 
197  virtual OUString GetComment() const override;
198 
199 private:
201  ScSubTotalParam aParam; // The original passed parameter
202  SCROW nNewEndRow; // Size of result
204  std::unique_ptr<ScOutlineTable> xUndoTable;
205  std::unique_ptr<ScRangeName> xUndoRange;
206  std::unique_ptr<ScDBCollection> xUndoDB;
207 };
208 
210 {
211 public:
212  ScUndoQuery( ScDocShell* pNewDocShell, SCTAB nNewTab,
213  const ScQueryParam& rParam, ScDocumentUniquePtr pNewUndoDoc,
214  std::unique_ptr<ScDBCollection> pNewUndoDB, const ScRange* pOld,
215  bool bSize, const ScRange* pAdvSrc );
216  virtual ~ScUndoQuery() override;
217 
218  virtual void Undo() override;
219  virtual void Redo() override;
220  virtual void Repeat(SfxRepeatTarget& rTarget) override;
221  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
222 
223  virtual OUString GetComment() const override;
224 
225 private:
226  std::unique_ptr<SdrUndoAction> pDrawUndo;
230  std::unique_ptr<ScDBCollection> xUndoDB; // due to source and target range
234  bool bDestArea;
235  bool bDoSize;
236 };
237 
239 {
240 private:
241  OUString aDBName;
243 
244  void DoChange( bool bUndo );
245 
246 public:
247  ScUndoAutoFilter( ScDocShell* pNewDocShell, const ScRange& rRange,
248  const OUString& rName, bool bSet );
249  virtual ~ScUndoAutoFilter() override;
250 
251  virtual void Undo() override;
252  virtual void Redo() override;
253  virtual void Repeat(SfxRepeatTarget& rTarget) override;
254  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
255 
256  virtual OUString GetComment() const override;
257 };
258 
260 {
261 public:
262  ScUndoDBData( ScDocShell* pNewDocShell,
263  std::unique_ptr<ScDBCollection> pNewUndoColl,
264  std::unique_ptr<ScDBCollection> pNewRedoColl );
265  virtual ~ScUndoDBData() override;
266 
267  virtual void Undo() override;
268  virtual void Redo() override;
269  virtual void Repeat(SfxRepeatTarget& rTarget) override;
270  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
271 
272  virtual OUString GetComment() const override;
273 
274 private:
275  std::unique_ptr<ScDBCollection> pUndoColl;
276  std::unique_ptr<ScDBCollection> pRedoColl;
277 };
278 
280 {
281 public:
282  ScUndoImportData(ScDocShell* pNewDocShell, SCTAB nNewTab,
283  const ScImportParam& rParam, SCCOL nNewEndX, SCROW nNewEndY,
284  SCCOL nNewFormula,
285  ScDocumentUniquePtr pNewUndoDoc, ScDocumentUniquePtr pNewRedoDoc,
286  std::unique_ptr<ScDBData> pNewUndoData, std::unique_ptr<ScDBData> pNewRedoData);
287 
288  virtual void Undo() override;
289  virtual void Redo() override;
290  virtual void Repeat(SfxRepeatTarget& rTarget) override;
291  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
292 
293  virtual OUString GetComment() const override;
294 
295 private:
302  std::unique_ptr<ScDBData> xUndoDBData;
303  std::unique_ptr<ScDBData> xRedoDBData;
306 };
307 
309 {
310 public:
311  ScUndoRepeatDB(ScDocShell* pNewDocShell, SCTAB nNewTab,
312  SCCOL nStartX, SCROW nStartY, SCCOL nEndX, SCROW nEndY,
313  SCROW nResultEndRow, SCCOL nCurX, SCROW nCurY,
314  ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr<ScOutlineTable> pNewUndoTab,
315  std::unique_ptr<ScRangeName> pNewUndoRange, std::unique_ptr<ScDBCollection> pNewUndoDB,
316  const ScRange* pOldQ, const ScRange* pNewQ);
317 
318  virtual void Undo() override;
319  virtual void Redo() override;
320  virtual void Repeat(SfxRepeatTarget& rTarget) override;
321  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
322 
323  virtual OUString GetComment() const override;
324 
325 private:
331  std::unique_ptr<ScOutlineTable> xUndoTable;
332  std::unique_ptr<ScRangeName> xUndoRange;
333  std::unique_ptr<ScDBCollection> xUndoDB;
337 };
338 
340 {
341 public:
342  ScUndoDataPilot(ScDocShell* pNewDocShell,
343  ScDocumentUniquePtr pOldDoc, ScDocumentUniquePtr pNewDoc,
344  const ScDPObject* pOldObj, const ScDPObject* pNewObj,
345  bool bMove);
346 
347  virtual void Undo() override;
348  virtual void Redo() override;
349  virtual void Repeat(SfxRepeatTarget& rTarget) override;
350  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
351 
352  virtual OUString GetComment() const override;
353 
354 private:
357  std::unique_ptr<ScDPObject> xOldDPObject;
358  std::unique_ptr<ScDPObject> xNewDPObject;
360 };
361 
363 {
364 public:
365  ScUndoConsolidate(ScDocShell* pNewDocShell,
366  const ScArea& rArea, const ScConsolidateParam& rPar,
367  ScDocumentUniquePtr pNewUndoDoc, bool bReference,
368  SCROW nInsCount, std::unique_ptr<ScOutlineTable> pTab,
369  std::unique_ptr<ScDBData> pData);
370 
371  virtual void Undo() override;
372  virtual void Redo() override;
373  virtual void Repeat(SfxRepeatTarget& rTarget) override;
374  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
375 
376  virtual OUString GetComment() const override;
377 
378 private:
382  bool bInsRef;
384  std::unique_ptr<ScOutlineTable> xUndoTab;
385  std::unique_ptr<ScDBData> xUndoData;
386 };
387 
389 {
390 public:
391  ScUndoChartData( ScDocShell* pNewDocShell,
392  const OUString& rName, const ScRange& rNew,
393  bool bColHdr, bool bRowHdr, bool bAdd );
394  ScUndoChartData( ScDocShell* pNewDocShell,
395  const OUString& rName, const ScRangeListRef& rNew,
396  bool bColHdr, bool bRowHdr, bool bAdd );
397  virtual ~ScUndoChartData() override;
398 
399  virtual void Undo() override;
400  virtual void Redo() override;
401  virtual void Repeat(SfxRepeatTarget& rTarget) override;
402  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
403 
404  virtual OUString GetComment() const override;
405 
406 private:
407  OUString aChartName;
411 // ScRange aNewRange;
415  bool bAddRange;
416 
417  void Init();
418 };
419 
421 {
422 public:
423  ScUndoDataForm(ScDocShell* pNewDocShell,
424  SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
425  SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
426  const ScMarkData& rMark,
427  ScDocumentUniquePtr pNewUndoDoc, ScDocumentUniquePtr pNewRedoDoc,
428  std::unique_ptr<ScRefUndoData> pRefData);
429  virtual void Undo() override;
430  virtual void Redo() override;
431  virtual void Repeat(SfxRepeatTarget& rTarget) override;
432  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
433 
434  virtual OUString GetComment() const override;
435 
436 private:
437  std::unique_ptr<ScMarkData> mxMarkData;
440  std::unique_ptr<ScRefUndoData> xRefUndoData;
441  std::unique_ptr<ScRefUndoData> xRefRedoData;
443 
444  void DoChange( const bool bUndo );
445 };
446 
447 #endif
448 
449 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScRange aOldDest
Definition: undodat.hxx:231
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:1233
void DoChange(const bool bUndo)
Definition: undodat.cxx:1811
std::unique_ptr< ScDBCollection > pUndoColl
Definition: undodat.hxx:275
std::unique_ptr< ScOutlineTable > xUndoTable
Definition: undodat.hxx:331
std::unique_ptr< ScDBCollection > xUndoDB
Definition: undodat.hxx:206
std::unique_ptr< ScOutlineTable > xUndoTable
Definition: undodat.hxx:136
virtual OUString GetComment() const override
Definition: undodat.cxx:517
virtual ~ScUndoChartData() override
Definition: undodat.cxx:1715
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
Definition: markdata.hxx:43
ScUndoChartData(ScDocShell *pNewDocShell, const OUString &rName, const ScRange &rNew, bool bColHdr, bool bRowHdr, bool bAdd)
Definition: undodat.cxx:1687
std::unique_ptr< ScMarkData > mxMarkData
Definition: undodat.hxx:437
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:229
std::unique_ptr< ContentProperties > pData
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:1034
ScDocumentUniquePtr pUndoDoc
Definition: undodat.hxx:58
virtual OUString GetComment() const override
Definition: undodat.cxx:1268
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:1541
std::unique_ptr< ScRefUndoData > xRefUndoData
Definition: undodat.hxx:440
virtual void Undo() override
Definition: undodat.cxx:994
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:401
virtual void Undo() override
Definition: undodat.cxx:1724
virtual void Redo() override
Definition: undodat.cxx:476
FilterGroup & rTarget
virtual ~ScUndoQuery() override
Definition: undodat.cxx:743
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:137
virtual OUString GetComment() const override
Definition: undodat.cxx:329
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:1802
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:1674
ScDocumentUniquePtr xRedoDoc
Definition: undodat.hxx:301
virtual ~ScUndoMakeOutline() override
Definition: undodat.cxx:156
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:158
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:1748
virtual void Undo() override
Definition: undodat.cxx:167
sal_uInt16 nLevel
Definition: undodat.hxx:113
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:1806
std::unique_ptr< ScOutlineTable > xUndoTable
Definition: undodat.hxx:181
virtual void Redo() override
Definition: undodat.cxx:1653
virtual void Undo() override
Definition: undodat.cxx:436
virtual OUString GetComment() const override
Definition: undodat.cxx:1059
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undodat.hxx:226
virtual ~ScUndoDoOutline() override
Definition: undodat.cxx:65
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:304
std::unique_ptr< ScDBCollection > xUndoDB
Definition: undodat.hxx:230
SCCOLROW nEnd
Definition: undodat.hxx:55
std::unique_ptr< ScOutlineTable > xUndoTable
Definition: undodat.hxx:111
virtual OUString GetComment() const override
Definition: undodat.cxx:618
ScRange aAdvSource
Definition: undodat.hxx:232
bool bDoSize
Definition: undodat.hxx:235
virtual void Redo() override
Definition: undodat.cxx:1374
ScUndoDataPilot(ScDocShell *pNewDocShell, ScDocumentUniquePtr pOldDoc, ScDocumentUniquePtr pNewDoc, const ScDPObject *pOldObj, const ScDPObject *pNewObj, bool bMove)
Definition: undodat.cxx:1405
ScUndoDoOutline(ScDocShell *pNewDocShell, SCCOLROW nNewStart, SCCOLROW nNewEnd, SCTAB nNewTab, ScDocumentUniquePtr pNewUndoDoc, bool bNewColumns, sal_uInt16 nNewLevel, sal_uInt16 nNewEntry, bool bNewShow)
Definition: undodat.cxx:49
std::unique_ptr< ScOutlineTable > xUndoTable
Definition: undodat.hxx:204
std::unique_ptr< ScDBData > xRedoDBData
Definition: undodat.hxx:303
OUString aDBName
Definition: undodat.hxx:241
ScRangeListRef aNewRangeListRef
Definition: undodat.hxx:412
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:1218
virtual OUString GetComment() const override
Definition: undodat.cxx:160
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:887
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:1536
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:1030
size_t SCSIZE
size_t typedef to be able to find places where code was changed from USHORT to size_t and is used to ...
Definition: address.hxx:45
sal_Int32 SCCOLROW
a type capable of holding either SCCOL or SCROW
Definition: types.hxx:24
ScDocumentUniquePtr xOldUndoDoc
Definition: undodat.hxx:355
ScUndoSubTotals(ScDocShell *pNewDocShell, SCTAB nNewTab, const ScSubTotalParam &rNewParam, SCROW nNewEndY, ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr< ScOutlineTable > pNewUndoTab, std::unique_ptr< ScRangeName > pNewUndoRange, std::unique_ptr< ScDBCollection > pNewUndoDB)
Definition: undodat.cxx:602
virtual ~ScUndoAutoFilter() override
Definition: undodat.cxx:906
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:1744
std::unique_ptr< ScRangeName > xUndoRange
Definition: undodat.hxx:205
ScConsolidateParam aParam
Definition: undodat.hxx:381
virtual void Undo() override
Definition: undodat.cxx:76
ScAddress aBlockStart
Definition: undodat.hxx:178
std::unique_ptr< ScDPObject > xNewDPObject
Definition: undodat.hxx:358
std::unique_ptr< ScDBCollection > pRedoColl
Definition: undodat.hxx:276
virtual void Undo() override
Definition: undodat.cxx:1782
ScUndoImportData(ScDocShell *pNewDocShell, SCTAB nNewTab, const ScImportParam &rParam, SCCOL nNewEndX, SCROW nNewEndY, SCCOL nNewFormula, ScDocumentUniquePtr pNewUndoDoc, ScDocumentUniquePtr pNewRedoDoc, std::unique_ptr< ScDBData > pNewUndoData, std::unique_ptr< ScDBData > pNewRedoData)
Definition: undodat.cxx:1039
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:330
bool bRedoFilled
Definition: undodat.hxx:442
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:300
std::unique_ptr< ScDBCollection > xUndoDB
Definition: undodat.hxx:333
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:180
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:438
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:214
ScRange aOldQuery
Definition: undodat.hxx:334
virtual void Undo() override
Definition: undodat.cxx:1064
std::unique_ptr< ScOutlineTable > xUndoTable
Definition: undodat.hxx:159
virtual void Undo() override
Definition: undodat.cxx:522
ScAddress aBlockEnd
Definition: undodat.hxx:84
ScAddress aBlockEnd
Definition: undodat.hxx:179
std::unique_ptr< ScOutlineTable > xUndoTab
Definition: undodat.hxx:384
virtual void Redo() override
Definition: undodat.cxx:1791
SCSIZE nInsertCount
Definition: undodat.hxx:383
virtual void Undo() override
Definition: undodat.cxx:623
ScAddress aBlockEnd
Definition: undodat.hxx:134
sal_uInt16 nEntry
Definition: undodat.hxx:61
virtual OUString GetComment() const override
Definition: undodat.cxx:1419
std::unique_ptr< ScDocument, o3tl::default_delete< ScDocument > > ScDocumentUniquePtr
Definition: document.hxx:2613
sal_Int16 SCCOL
Definition: types.hxx:22
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:310
virtual OUString GetComment() const override
Definition: undodat.cxx:748
std::unique_ptr< ScDBData > xUndoDBData
Definition: undodat.hxx:302
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:203
ScRange aNewQuery
Definition: undodat.hxx:335
ScUndoDataForm(ScDocShell *pNewDocShell, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, const ScMarkData &rMark, ScDocumentUniquePtr pNewUndoDoc, ScDocumentUniquePtr pNewRedoDoc, std::unique_ptr< ScRefUndoData > pRefData)
Definition: undodat.cxx:1753
virtual void Redo() override
Definition: undodat.cxx:869
virtual void Redo() override
Definition: undodat.cxx:287
sal_uInt16 nLevel
Definition: undodat.hxx:60
virtual void Redo() override
Definition: undodat.cxx:690
OUString aChartName
Definition: undodat.hxx:407
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:966
ScAddress aBlockStart
Definition: undodat.hxx:326
SCTAB nTab
Definition: undodat.hxx:227
ScQueryParam aQueryParam
Definition: undodat.hxx:228
ScUndoMakeOutline(ScDocShell *pNewDocShell, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, std::unique_ptr< ScOutlineTable > pNewUndoTab, bool bNewColumns, bool bNewMake)
Make or delete outline groups.
Definition: undodat.cxx:143
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:1670
std::unique_ptr< ScOutlineTable > pUndoTable
Definition: undodat.hxx:86
ScUndoAutoFilter(ScDocShell *pNewDocShell, const ScRange &rRange, const OUString &rName, bool bSet)
Definition: undodat.cxx:898
ScUndoRemoveAllOutlines(ScDocShell *pNewDocShell, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr< ScOutlineTable > pNewUndoTab)
Definition: undodat.cxx:419
virtual void Redo() override
Definition: undodat.cxx:386
virtual OUString GetComment() const override
Definition: undodat.cxx:431
bool bDestArea
Definition: undodat.hxx:234
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:597
virtual OUString GetComment() const override
Definition: undodat.cxx:1777
virtual void Undo() override
Definition: undodat.cxx:336
bool bNewRowHeaders
Definition: undodat.hxx:414
bool bNewColHeaders
Definition: undodat.hxx:413
virtual ~ScUndoDBData() override
Definition: undodat.cxx:985
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:227
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:1400
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:110
ScAddress aBlockStart
Definition: undodat.hxx:83
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:591
ScDocumentUniquePtr xRedoDoc
Definition: undodat.hxx:439
ScAddress aBlockStart
Definition: undodat.hxx:133
std::unique_ptr< ScDBData > xUndoData
Definition: undodat.hxx:385
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:380
std::unique_ptr< ScRefUndoData > xRefRedoData
Definition: undodat.hxx:441
bool bOldColHeaders
Definition: undodat.hxx:409
ScUndoRepeatDB(ScDocShell *pNewDocShell, SCTAB nNewTab, SCCOL nStartX, SCROW nStartY, SCCOL nEndX, SCROW nEndY, SCROW nResultEndRow, SCCOL nCurX, SCROW nCurY, ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr< ScOutlineTable > pNewUndoTab, std::unique_ptr< ScRangeName > pNewUndoRange, std::unique_ptr< ScDBCollection > pNewUndoDB, const ScRange *pOldQ, const ScRange *pNewQ)
Definition: undodat.cxx:1243
sal_Int32 SCROW
Definition: types.hxx:18
virtual void Undo() override
Definition: undodat.cxx:1273
virtual void Undo() override
Definition: undodat.cxx:952
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:500
ScUndoDBData(ScDocShell *pNewDocShell, std::unique_ptr< ScDBCollection > pNewUndoColl, std::unique_ptr< ScDBCollection > pNewRedoColl)
Definition: undodat.cxx:976
virtual void Undo() override
Definition: undodat.cxx:1567
ScImportParam aImportParam
Definition: undodat.hxx:297
SCROW nNewEndRow
Definition: undodat.hxx:328
ScDocumentUniquePtr xNewUndoDoc
Definition: undodat.hxx:356
std::unique_ptr< ScRangeName > xUndoRange
Definition: undodat.hxx:332
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:891
void DoChange(bool bUndo)
Definition: undodat.cxx:915
ScUndoAutoOutline(ScDocShell *pNewDocShell, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr< ScOutlineTable > pNewUndoTab)
Definition: undodat.cxx:505
SCROW nNewEndRow
Definition: undodat.hxx:202
ScUndoConsolidate(ScDocShell *pNewDocShell, const ScArea &rArea, const ScConsolidateParam &rPar, ScDocumentUniquePtr pNewUndoDoc, bool bReference, SCROW nInsCount, std::unique_ptr< ScOutlineTable > pTab, std::unique_ptr< ScDBData > pData)
Definition: undodat.cxx:1547
virtual void Redo() override
Definition: undodat.cxx:1734
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:414
virtual OUString GetComment() const override
Definition: undodat.cxx:247
bool bOldRowHeaders
Definition: undodat.hxx:410
SCCOL nFormulaCols
Definition: undodat.hxx:304
virtual void Redo() override
Definition: undodat.cxx:1149
virtual OUString GetComment() const override
Definition: undodat.cxx:1562
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:707
virtual void Redo() override
Definition: undodat.cxx:959
virtual OUString GetComment() const override
Definition: undodat.cxx:69
virtual void Redo() override
Definition: undodat.cxx:560
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:494
virtual void Redo() override
Definition: undodat.cxx:113
virtual OUString GetComment() const override
Definition: undodat.cxx:1719
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:133
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:711
virtual void Undo() override
Definition: undodat.cxx:1432
virtual OUString GetComment() const override
Definition: undodat.cxx:989
ScUndoOutlineBlock(ScDocShell *pNewDocShell, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr< ScOutlineTable > pNewUndoTab, bool bNewShow)
show/hide outline over block marks
Definition: undodat.cxx:316
bool bIsAdvanced
Definition: undodat.hxx:233
virtual void Undo() override
Definition: undodat.cxx:753
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:970
ScSubTotalParam aParam
Definition: undodat.hxx:201
virtual void Redo() override
Definition: undodat.cxx:195
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:135
ScUndoOutlineLevel(ScDocShell *pNewDocShell, SCCOLROW nNewStart, SCCOLROW nNewEnd, SCTAB nNewTab, ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr< ScOutlineTable > pNewUndoTab, bool bNewColumns, sal_uInt16 nNewLevel)
Definition: undodat.cxx:232
SCCOLROW nStart
Definition: undodat.hxx:54
ScUndoQuery(ScDocShell *pNewDocShell, SCTAB nNewTab, const ScQueryParam &rParam, ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr< ScDBCollection > pNewUndoDB, const ScRange *pOld, bool bSize, const ScRange *pAdvSrc)
Definition: undodat.cxx:716
virtual OUString GetComment() const override
Definition: undodat.cxx:910
virtual void Undo() override
Definition: undodat.cxx:252
std::unique_ptr< ScDPObject > xOldDPObject
Definition: undodat.hxx:357
sal_Int16 SCTAB
Definition: types.hxx:23
ScAddress aCursorPos
Definition: undodat.hxx:329
ScAddress aBlockEnd
Definition: undodat.hxx:327
virtual void Redo() override
Definition: undodat.cxx:1012
ScRangeListRef aOldRangeListRef
Definition: undodat.hxx:408
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:1394
virtual void Redo() override
Definition: undodat.cxx:1509