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 #pragma once
21 
22 #include "undobase.hxx"
23 #include "refundo.hxx"
24 #include <dpobject.hxx>
25 #include <olinetab.hxx>
26 #include <rangeutl.hxx>
27 #include <rangelst.hxx>
28 #include <queryparam.hxx>
29 #include <subtotalparam.hxx>
30 
31 #include <memory>
32 
33 class ScDocShell;
34 class SdrUndoAction;
35 
37 {
38 public:
39  ScUndoDoOutline( ScDocShell* pNewDocShell,
40  SCCOLROW nNewStart, SCCOLROW nNewEnd, SCTAB nNewTab,
41  ScDocumentUniquePtr pNewUndoDoc, bool bNewColumns,
42  sal_uInt16 nNewLevel, sal_uInt16 nNewEntry, bool bNewShow );
43  virtual ~ScUndoDoOutline() override;
44 
45  virtual void Undo() override;
46  virtual void Redo() override;
47  virtual void Repeat(SfxRepeatTarget& rTarget) override;
48  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
49 
50  virtual OUString GetComment() const override;
51 
52 private:
58  bool bColumns;
59  sal_uInt16 nLevel;
60  sal_uInt16 nEntry;
61  bool bShow;
62 };
63 
65 {
66 public:
67  ScUndoMakeOutline( ScDocShell* pNewDocShell,
68  SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
69  SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
70  std::unique_ptr<ScOutlineTable> pNewUndoTab,
71  bool bNewColumns, bool bNewMake );
72  virtual ~ScUndoMakeOutline() 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:
84  std::unique_ptr<ScOutlineTable>
86  bool bColumns;
87  bool bMake;
88 };
89 
91 {
92 public:
93  ScUndoOutlineLevel(ScDocShell* pNewDocShell,
94  SCCOLROW nNewStart, SCCOLROW nNewEnd, SCTAB nNewTab,
95  ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr<ScOutlineTable> pNewUndoTab,
96  bool bNewColumns, sal_uInt16 nNewLevel);
97 
98  virtual void Undo() override;
99  virtual void Redo() override;
100  virtual void Repeat(SfxRepeatTarget& rTarget) override;
101  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
102 
103  virtual OUString GetComment() const override;
104 
105 private:
110  std::unique_ptr<ScOutlineTable> xUndoTable;
111  bool bColumns;
112  sal_uInt16 nLevel;
113 };
114 
116 {
117 public:
118  ScUndoOutlineBlock(ScDocShell* pNewDocShell,
119  SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
120  SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
121  ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr<ScOutlineTable> pNewUndoTab,
122  bool bNewShow);
123 
124  virtual void Undo() override;
125  virtual void Redo() override;
126  virtual void Repeat(SfxRepeatTarget& rTarget) override;
127  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
128 
129  virtual OUString GetComment() const override;
130 
131 private:
135  std::unique_ptr<ScOutlineTable> xUndoTable;
136  bool bShow;
137 };
138 
140 {
141 public:
142  ScUndoRemoveAllOutlines(ScDocShell* pNewDocShell,
143  SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
144  SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
145  ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr<ScOutlineTable> pNewUndoTab);
146 
147  virtual void Undo() override;
148  virtual void Redo() override;
149  virtual void Repeat(SfxRepeatTarget& rTarget) override;
150  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
151 
152  virtual OUString GetComment() const override;
153 
154 private:
158  std::unique_ptr<ScOutlineTable> xUndoTable;
159 };
160 
162 {
163 public:
164  ScUndoAutoOutline(ScDocShell* pNewDocShell,
165  SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
166  SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
167  ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr<ScOutlineTable> pNewUndoTab);
168 
169  virtual void Undo() override;
170  virtual void Redo() override;
171  virtual void Repeat(SfxRepeatTarget& rTarget) override;
172  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
173 
174  virtual OUString GetComment() const override;
175 
176 private:
180  std::unique_ptr<ScOutlineTable> xUndoTable;
181 };
182 
184 {
185 public:
186  ScUndoSubTotals(ScDocShell* pNewDocShell, SCTAB nNewTab,
187  const ScSubTotalParam& rNewParam, SCROW nNewEndY,
188  ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr<ScOutlineTable> pNewUndoTab,
189  std::unique_ptr<ScRangeName> pNewUndoRange, std::unique_ptr<ScDBCollection> pNewUndoDB);
190 
191  virtual void Undo() override;
192  virtual void Redo() override;
193  virtual void Repeat(SfxRepeatTarget& rTarget) override;
194  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
195 
196  virtual OUString GetComment() const override;
197 
198 private:
200  ScSubTotalParam aParam; // The original passed parameter
201  SCROW nNewEndRow; // Size of result
203  std::unique_ptr<ScOutlineTable> xUndoTable;
204  std::unique_ptr<ScRangeName> xUndoRange;
205  std::unique_ptr<ScDBCollection> xUndoDB;
206 };
207 
209 {
210 public:
211  ScUndoQuery( ScDocShell* pNewDocShell, SCTAB nNewTab,
212  const ScQueryParam& rParam, ScDocumentUniquePtr pNewUndoDoc,
213  std::unique_ptr<ScDBCollection> pNewUndoDB, const ScRange* pOld,
214  bool bSize, const ScRange* pAdvSrc );
215  virtual ~ScUndoQuery() override;
216 
217  virtual void Undo() override;
218  virtual void Redo() override;
219  virtual void Repeat(SfxRepeatTarget& rTarget) override;
220  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
221 
222  virtual OUString GetComment() const override;
223 
224 private:
225  std::unique_ptr<SdrUndoAction> pDrawUndo;
229  std::unique_ptr<ScDBCollection> xUndoDB; // due to source and target range
233  bool bDestArea;
234  bool bDoSize;
235 };
236 
238 {
239 private:
240  OUString aDBName;
242 
243  void DoChange( bool bUndo );
244 
245 public:
246  ScUndoAutoFilter( ScDocShell* pNewDocShell, const ScRange& rRange,
247  const OUString& rName, bool bSet );
248  virtual ~ScUndoAutoFilter() override;
249 
250  virtual void Undo() override;
251  virtual void Redo() override;
252  virtual void Repeat(SfxRepeatTarget& rTarget) override;
253  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
254 
255  virtual OUString GetComment() const override;
256 };
257 
259 {
260 public:
261  ScUndoDBData( ScDocShell* pNewDocShell,
262  std::unique_ptr<ScDBCollection> pNewUndoColl,
263  std::unique_ptr<ScDBCollection> pNewRedoColl );
264  virtual ~ScUndoDBData() override;
265 
266  virtual void Undo() override;
267  virtual void Redo() override;
268  virtual void Repeat(SfxRepeatTarget& rTarget) override;
269  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
270 
271  virtual OUString GetComment() const override;
272 
273 private:
274  std::unique_ptr<ScDBCollection> pUndoColl;
275  std::unique_ptr<ScDBCollection> pRedoColl;
276 };
277 
279 {
280 public:
281  ScUndoImportData(ScDocShell* pNewDocShell, SCTAB nNewTab,
282  const ScImportParam& rParam, SCCOL nNewEndX, SCROW nNewEndY,
283  SCCOL nNewFormula,
284  ScDocumentUniquePtr pNewUndoDoc, ScDocumentUniquePtr pNewRedoDoc,
285  std::unique_ptr<ScDBData> pNewUndoData, std::unique_ptr<ScDBData> pNewRedoData);
286 
287  virtual void Undo() override;
288  virtual void Redo() override;
289  virtual void Repeat(SfxRepeatTarget& rTarget) override;
290  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
291 
292  virtual OUString GetComment() const override;
293 
294 private:
301  std::unique_ptr<ScDBData> xUndoDBData;
302  std::unique_ptr<ScDBData> xRedoDBData;
305 };
306 
308 {
309 public:
310  ScUndoRepeatDB(ScDocShell* pNewDocShell, SCTAB nNewTab,
311  SCCOL nStartX, SCROW nStartY, SCCOL nEndX, SCROW nEndY,
312  SCROW nResultEndRow, SCCOL nCurX, SCROW nCurY,
313  ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr<ScOutlineTable> pNewUndoTab,
314  std::unique_ptr<ScRangeName> pNewUndoRange, std::unique_ptr<ScDBCollection> pNewUndoDB,
315  const ScRange* pOldQ, const ScRange* pNewQ);
316 
317  virtual void Undo() override;
318  virtual void Redo() override;
319  virtual void Repeat(SfxRepeatTarget& rTarget) override;
320  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
321 
322  virtual OUString GetComment() const override;
323 
324 private:
330  std::unique_ptr<ScOutlineTable> xUndoTable;
331  std::unique_ptr<ScRangeName> xUndoRange;
332  std::unique_ptr<ScDBCollection> xUndoDB;
336 };
337 
339 {
340 public:
341  ScUndoDataPilot(ScDocShell* pNewDocShell,
342  ScDocumentUniquePtr pOldDoc, ScDocumentUniquePtr pNewDoc,
343  const ScDPObject* pOldObj, const ScDPObject* pNewObj,
344  bool bMove);
345 
346  virtual void Undo() override;
347  virtual void Redo() override;
348  virtual void Repeat(SfxRepeatTarget& rTarget) override;
349  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
350 
351  virtual OUString GetComment() const override;
352 
353 private:
356  std::unique_ptr<ScDPObject> xOldDPObject;
357  std::unique_ptr<ScDPObject> xNewDPObject;
359 };
360 
362 {
363 public:
364  ScUndoConsolidate(ScDocShell* pNewDocShell,
365  const ScArea& rArea, const ScConsolidateParam& rPar,
366  ScDocumentUniquePtr pNewUndoDoc, bool bReference,
367  SCROW nInsCount, std::unique_ptr<ScOutlineTable> pTab,
368  std::unique_ptr<ScDBData> pData);
369 
370  virtual void Undo() override;
371  virtual void Redo() override;
372  virtual void Repeat(SfxRepeatTarget& rTarget) override;
373  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
374 
375  virtual OUString GetComment() const override;
376 
377 private:
381  bool bInsRef;
383  std::unique_ptr<ScOutlineTable> xUndoTab;
384  std::unique_ptr<ScDBData> xUndoData;
385 };
386 
388 {
389 public:
390  ScUndoChartData( ScDocShell* pNewDocShell,
391  const OUString& rName, const ScRange& rNew,
392  bool bColHdr, bool bRowHdr, bool bAdd );
393  ScUndoChartData( ScDocShell* pNewDocShell,
394  const OUString& rName, const ScRangeListRef& rNew,
395  bool bColHdr, bool bRowHdr, bool bAdd );
396  virtual ~ScUndoChartData() override;
397 
398  virtual void Undo() override;
399  virtual void Redo() override;
400  virtual void Repeat(SfxRepeatTarget& rTarget) override;
401  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
402 
403  virtual OUString GetComment() const override;
404 
405 private:
406  OUString aChartName;
410 // ScRange aNewRange;
414  bool bAddRange;
415 
416  void Init();
417 };
418 
420 {
421 public:
422  ScUndoDataForm(ScDocShell* pNewDocShell,
423  SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
424  SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
425  const ScMarkData& rMark,
426  ScDocumentUniquePtr pNewUndoDoc, ScDocumentUniquePtr pNewRedoDoc,
427  std::unique_ptr<ScRefUndoData> pRefData);
428  virtual void Undo() override;
429  virtual void Redo() override;
430  virtual void Repeat(SfxRepeatTarget& rTarget) override;
431  virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
432 
433  virtual OUString GetComment() const override;
434 
435 private:
436  std::unique_ptr<ScMarkData> mxMarkData;
439  std::unique_ptr<ScRefUndoData> xRefUndoData;
440  std::unique_ptr<ScRefUndoData> xRefRedoData;
442 
443  void DoChange( const bool bUndo );
444 };
445 
446 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScRange aOldDest
Definition: undodat.hxx:230
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:1234
void DoChange(const bool bUndo)
Definition: undodat.cxx:1812
std::unique_ptr< ScDBCollection > pUndoColl
Definition: undodat.hxx:274
std::unique_ptr< ScOutlineTable > xUndoTable
Definition: undodat.hxx:330
std::unique_ptr< ScDBCollection > xUndoDB
Definition: undodat.hxx:205
std::unique_ptr< ScOutlineTable > xUndoTable
Definition: undodat.hxx:135
virtual OUString GetComment() const override
Definition: undodat.cxx:518
virtual ~ScUndoChartData() override
Definition: undodat.cxx:1716
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
Definition: markdata.hxx:42
ScUndoChartData(ScDocShell *pNewDocShell, const OUString &rName, const ScRange &rNew, bool bColHdr, bool bRowHdr, bool bAdd)
Definition: undodat.cxx:1688
std::unique_ptr< ScMarkData > mxMarkData
Definition: undodat.hxx:436
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:228
std::unique_ptr< ContentProperties > pData
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:1035
ScDocumentUniquePtr pUndoDoc
Definition: undodat.hxx:57
virtual OUString GetComment() const override
Definition: undodat.cxx:1269
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:1542
std::unique_ptr< ScRefUndoData > xRefUndoData
Definition: undodat.hxx:439
virtual void Undo() override
Definition: undodat.cxx:995
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:402
virtual void Undo() override
Definition: undodat.cxx:1725
virtual void Redo() override
Definition: undodat.cxx:477
FilterGroup & rTarget
virtual ~ScUndoQuery() override
Definition: undodat.cxx:744
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:138
virtual OUString GetComment() const override
Definition: undodat.cxx:330
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:1803
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:1675
ScDocumentUniquePtr xRedoDoc
Definition: undodat.hxx:300
virtual ~ScUndoMakeOutline() override
Definition: undodat.cxx:157
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:157
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:1749
virtual void Undo() override
Definition: undodat.cxx:168
sal_uInt16 nLevel
Definition: undodat.hxx:112
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:1807
std::unique_ptr< ScOutlineTable > xUndoTable
Definition: undodat.hxx:180
virtual void Redo() override
Definition: undodat.cxx:1654
virtual void Undo() override
Definition: undodat.cxx:437
virtual OUString GetComment() const override
Definition: undodat.cxx:1060
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undodat.hxx:225
virtual ~ScUndoDoOutline() override
Definition: undodat.cxx:66
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:305
std::unique_ptr< ScDBCollection > xUndoDB
Definition: undodat.hxx:229
SCCOLROW nEnd
Definition: undodat.hxx:54
std::unique_ptr< ScOutlineTable > xUndoTable
Definition: undodat.hxx:110
virtual OUString GetComment() const override
Definition: undodat.cxx:619
ScRange aAdvSource
Definition: undodat.hxx:231
bool bDoSize
Definition: undodat.hxx:234
virtual void Redo() override
Definition: undodat.cxx:1375
ScUndoDataPilot(ScDocShell *pNewDocShell, ScDocumentUniquePtr pOldDoc, ScDocumentUniquePtr pNewDoc, const ScDPObject *pOldObj, const ScDPObject *pNewObj, bool bMove)
Definition: undodat.cxx:1406
ScUndoDoOutline(ScDocShell *pNewDocShell, SCCOLROW nNewStart, SCCOLROW nNewEnd, SCTAB nNewTab, ScDocumentUniquePtr pNewUndoDoc, bool bNewColumns, sal_uInt16 nNewLevel, sal_uInt16 nNewEntry, bool bNewShow)
Definition: undodat.cxx:50
std::unique_ptr< ScOutlineTable > xUndoTable
Definition: undodat.hxx:203
std::unique_ptr< ScDBData > xRedoDBData
Definition: undodat.hxx:302
OUString aDBName
Definition: undodat.hxx:240
ScRangeListRef aNewRangeListRef
Definition: undodat.hxx:411
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:1219
virtual OUString GetComment() const override
Definition: undodat.cxx:161
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:888
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:1537
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:1031
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:44
sal_Int32 SCCOLROW
a type capable of holding either SCCOL or SCROW
Definition: types.hxx:23
ScDocumentUniquePtr xOldUndoDoc
Definition: undodat.hxx:354
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:603
virtual ~ScUndoAutoFilter() override
Definition: undodat.cxx:907
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:1745
std::unique_ptr< ScRangeName > xUndoRange
Definition: undodat.hxx:204
ScConsolidateParam aParam
Definition: undodat.hxx:380
virtual void Undo() override
Definition: undodat.cxx:77
ScAddress aBlockStart
Definition: undodat.hxx:177
std::unique_ptr< ScDPObject > xNewDPObject
Definition: undodat.hxx:357
std::unique_ptr< ScDBCollection > pRedoColl
Definition: undodat.hxx:275
virtual void Undo() override
Definition: undodat.cxx:1783
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:1040
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:329
bool bRedoFilled
Definition: undodat.hxx:441
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:299
std::unique_ptr< ScDBCollection > xUndoDB
Definition: undodat.hxx:332
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:179
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:437
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:215
ScRange aOldQuery
Definition: undodat.hxx:333
virtual void Undo() override
Definition: undodat.cxx:1065
std::unique_ptr< ScOutlineTable > xUndoTable
Definition: undodat.hxx:158
virtual void Undo() override
Definition: undodat.cxx:523
ScAddress aBlockEnd
Definition: undodat.hxx:83
ScAddress aBlockEnd
Definition: undodat.hxx:178
std::unique_ptr< ScOutlineTable > xUndoTab
Definition: undodat.hxx:383
virtual void Redo() override
Definition: undodat.cxx:1792
SCSIZE nInsertCount
Definition: undodat.hxx:382
virtual void Undo() override
Definition: undodat.cxx:624
ScAddress aBlockEnd
Definition: undodat.hxx:133
sal_uInt16 nEntry
Definition: undodat.hxx:60
virtual OUString GetComment() const override
Definition: undodat.cxx:1420
std::unique_ptr< ScDocument, o3tl::default_delete< ScDocument > > ScDocumentUniquePtr
Definition: document.hxx:2622
sal_Int16 SCCOL
Definition: types.hxx:21
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:311
virtual OUString GetComment() const override
Definition: undodat.cxx:749
std::unique_ptr< ScDBData > xUndoDBData
Definition: undodat.hxx:301
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:202
ScRange aNewQuery
Definition: undodat.hxx:334
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:1754
virtual void Redo() override
Definition: undodat.cxx:870
virtual void Redo() override
Definition: undodat.cxx:288
sal_uInt16 nLevel
Definition: undodat.hxx:59
virtual void Redo() override
Definition: undodat.cxx:691
OUString aChartName
Definition: undodat.hxx:406
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:967
ScAddress aBlockStart
Definition: undodat.hxx:325
SCTAB nTab
Definition: undodat.hxx:226
ScQueryParam aQueryParam
Definition: undodat.hxx:227
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:144
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:1671
std::unique_ptr< ScOutlineTable > pUndoTable
Definition: undodat.hxx:85
ScUndoAutoFilter(ScDocShell *pNewDocShell, const ScRange &rRange, const OUString &rName, bool bSet)
Definition: undodat.cxx:899
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:420
virtual void Redo() override
Definition: undodat.cxx:387
virtual OUString GetComment() const override
Definition: undodat.cxx:432
bool bDestArea
Definition: undodat.hxx:233
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:598
virtual OUString GetComment() const override
Definition: undodat.cxx:1778
virtual void Undo() override
Definition: undodat.cxx:337
bool bNewRowHeaders
Definition: undodat.hxx:413
bool bNewColHeaders
Definition: undodat.hxx:412
virtual ~ScUndoDBData() override
Definition: undodat.cxx:986
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:228
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:1401
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:109
ScAddress aBlockStart
Definition: undodat.hxx:82
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:592
ScDocumentUniquePtr xRedoDoc
Definition: undodat.hxx:438
ScAddress aBlockStart
Definition: undodat.hxx:132
std::unique_ptr< ScDBData > xUndoData
Definition: undodat.hxx:384
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:379
std::unique_ptr< ScRefUndoData > xRefRedoData
Definition: undodat.hxx:440
bool bOldColHeaders
Definition: undodat.hxx:408
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:1244
sal_Int32 SCROW
Definition: types.hxx:17
virtual void Undo() override
Definition: undodat.cxx:1274
virtual void Undo() override
Definition: undodat.cxx:953
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:501
ScUndoDBData(ScDocShell *pNewDocShell, std::unique_ptr< ScDBCollection > pNewUndoColl, std::unique_ptr< ScDBCollection > pNewRedoColl)
Definition: undodat.cxx:977
virtual void Undo() override
Definition: undodat.cxx:1568
ScImportParam aImportParam
Definition: undodat.hxx:296
SCROW nNewEndRow
Definition: undodat.hxx:327
ScDocumentUniquePtr xNewUndoDoc
Definition: undodat.hxx:355
std::unique_ptr< ScRangeName > xUndoRange
Definition: undodat.hxx:331
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:892
void DoChange(bool bUndo)
Definition: undodat.cxx:916
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:506
SCROW nNewEndRow
Definition: undodat.hxx:201
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:1548
virtual void Redo() override
Definition: undodat.cxx:1735
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:415
virtual OUString GetComment() const override
Definition: undodat.cxx:248
bool bOldRowHeaders
Definition: undodat.hxx:409
SCCOL nFormulaCols
Definition: undodat.hxx:303
virtual void Redo() override
Definition: undodat.cxx:1150
virtual OUString GetComment() const override
Definition: undodat.cxx:1563
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:708
virtual void Redo() override
Definition: undodat.cxx:960
virtual OUString GetComment() const override
Definition: undodat.cxx:70
virtual void Redo() override
Definition: undodat.cxx:561
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:495
virtual void Redo() override
Definition: undodat.cxx:114
virtual OUString GetComment() const override
Definition: undodat.cxx:1720
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:134
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:712
virtual void Undo() override
Definition: undodat.cxx:1433
virtual OUString GetComment() const override
Definition: undodat.cxx:990
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:317
bool bIsAdvanced
Definition: undodat.hxx:232
virtual void Undo() override
Definition: undodat.cxx:754
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undodat.cxx:971
ScSubTotalParam aParam
Definition: undodat.hxx:200
virtual void Redo() override
Definition: undodat.cxx:196
ScDocumentUniquePtr xUndoDoc
Definition: undodat.hxx:134
ScUndoOutlineLevel(ScDocShell *pNewDocShell, SCCOLROW nNewStart, SCCOLROW nNewEnd, SCTAB nNewTab, ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr< ScOutlineTable > pNewUndoTab, bool bNewColumns, sal_uInt16 nNewLevel)
Definition: undodat.cxx:233
SCCOLROW nStart
Definition: undodat.hxx:53
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:717
virtual OUString GetComment() const override
Definition: undodat.cxx:911
virtual void Undo() override
Definition: undodat.cxx:253
std::unique_ptr< ScDPObject > xOldDPObject
Definition: undodat.hxx:356
sal_Int16 SCTAB
Definition: types.hxx:22
ScAddress aCursorPos
Definition: undodat.hxx:328
ScAddress aBlockEnd
Definition: undodat.hxx:326
virtual void Redo() override
Definition: undodat.cxx:1013
ScRangeListRef aOldRangeListRef
Definition: undodat.hxx:407
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undodat.cxx:1395
virtual void Redo() override
Definition: undodat.cxx:1510