LibreOffice Module sc (master) 1
undoblk.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#pragma once
20
21#include "undobase.hxx"
22#include <markdata.hxx>
23#include "spellparam.hxx"
24#include "cellmergeoption.hxx"
25#include <paramisc.hxx>
26#include <editeng/boxitem.hxx>
27
28#include <memory>
29
30class ScDocShell;
31class ScOutlineTable;
32class ScPatternAttr;
33class SvxSearchItem;
34class SdrUndoAction;
35class ScEditDataArray;
36
38{
39public:
40 ScUndoInsertCells( ScDocShell* pNewDocShell,
41 const ScRange& rRange,
42 SCTAB nNewCount, std::unique_ptr<SCTAB[]> pNewTabs, std::unique_ptr<SCTAB[]> pNewScenarios,
43 InsCellCmd eNewCmd, ScDocumentUniquePtr pUndoDocument, std::unique_ptr<ScRefUndoData> pRefData,
44 bool bNewPartOfPaste );
45 virtual ~ScUndoInsertCells() 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 virtual bool Merge( SfxUndoAction *pNextAction ) override;
55
56private:
59 std::unique_ptr<SCTAB[]>
61 std::unique_ptr<SCTAB[]>
66 std::unique_ptr<SfxUndoAction>
68
69 void DoChange ( const bool bUndo );
70 void SetChangeTrack();
71};
72
74{
75public:
76 ScUndoDeleteCells( ScDocShell* pNewDocShell,
77 const ScRange& rRange,
78 SCTAB nNewCount, std::unique_ptr<SCTAB[]> pNewTabs, std::unique_ptr<SCTAB[]> pNewScenarios,
79 DelCellCmd eNewCmd, ScDocumentUniquePtr pUndoDocument, std::unique_ptr<ScRefUndoData> pRefData );
80 virtual ~ScUndoDeleteCells() override;
81
82 virtual void Undo() override;
83 virtual void Redo() override;
84 virtual void Repeat(SfxRepeatTarget& rTarget) override;
85 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
86
87 virtual OUString GetComment() const override;
88
89private:
92 std::unique_ptr<SCTAB[]>
94 std::unique_ptr<SCTAB[]>
99
100 void DoChange ( const bool bUndo );
101 void SetChangeTrack();
102};
103
105{
106public:
107
108 ScUndoDeleteMulti( ScDocShell* pNewDocShell,
109 bool bNewRows, bool bNeedsRefresh, SCTAB nNewTab,
110 std::vector<sc::ColRowSpan>&& rSpans,
111 ScDocumentUniquePtr pUndoDocument, std::unique_ptr<ScRefUndoData> pRefData );
112
113 virtual ~ScUndoDeleteMulti() override;
114
115 virtual void Undo() override;
116 virtual void Redo() override;
117 virtual void Repeat(SfxRepeatTarget& rTarget) override;
118 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
119
120 virtual OUString GetComment() const override;
121
122private:
123 bool mbRows:1;
124 bool mbRefresh:1;
126 std::vector<sc::ColRowSpan> maSpans;
129
130 void DoChange() const;
131 void SetChangeTrack();
132};
133
135{
136public:
137 ScUndoCut(ScDocShell* pNewDocShell,
138 const ScRange& aRange, // adjusted for merged cells
139 const ScAddress& aOldEnd, // end position without adjustment
140 const ScMarkData& rMark, // selected sheets
141 ScDocumentUniquePtr pNewUndoDoc);
142 virtual ~ScUndoCut() override;
143
144 virtual void Undo() override;
145 virtual void Redo() override;
146 virtual void Repeat(SfxRepeatTarget& rTarget) override;
147 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
148
149 virtual OUString GetComment() const override;
150
151private:
158
159 void DoChange( const bool bUndo );
160 void SetChangeTrack();
161};
162
164{
170
173 bSkipEmptyCells( false ),
174 bTranspose( false ),
175 bAsLink( false ),
177 {}
178};
179
181{
182public:
183 ScUndoPaste(ScDocShell* pNewDocShell, const ScRangeList& rRanges,
184 const ScMarkData& rMark,
185 ScDocumentUniquePtr pNewUndoDoc, ScDocumentUniquePtr pNewRedoDoc,
186 InsertDeleteFlags nNewFlags,
187 std::unique_ptr<ScRefUndoData> pRefData,
188 bool bRedoIsFilled = true,
189 const ScUndoPasteOptions* pOptions = nullptr);
190 virtual ~ScUndoPaste() override;
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
199private:
204 std::unique_ptr<ScRefUndoData> pRefUndoData;
205 std::unique_ptr<ScRefUndoData> pRefRedoData;
210
211 void DoChange(bool bUndo);
212 void SetChangeTrack();
213};
214
216{
217public:
218 ScUndoDragDrop( ScDocShell* pNewDocShell,
219 const ScRange& rRange, const ScAddress& aNewDestPos, bool bNewCut,
220 ScDocumentUniquePtr pUndoDocument,
221 bool bScenario );
222 virtual ~ScUndoDragDrop() override;
223
224 virtual void Undo() override;
225 virtual void Redo() override;
226 virtual void Repeat(SfxRepeatTarget& rTarget) override;
227 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
228
229 virtual OUString GetComment() const override;
230
231private:
232 sal_uInt16 mnPaintExtFlags;
234
239 bool bCut;
241
242 void PaintArea( ScRange aRange, sal_uInt16 nExtFlags ) const;
243 void DoUndo( ScRange aRange );
244
245 void SetChangeTrack();
246};
247
249{
250public:
251 ScUndoDeleteContents( ScDocShell* pNewDocShell,
252 const ScMarkData& rMark,
253 const ScRange& rRange,
254 ScDocumentUniquePtr&& pNewUndoDoc, bool bNewMulti,
255 InsertDeleteFlags nNewFlags, bool bObjects );
256 virtual ~ScUndoDeleteContents() override;
257
258 virtual void Undo() override;
259 virtual void Redo() override;
260 virtual void Repeat(SfxRepeatTarget& rTarget) override;
261 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
262
263 virtual OUString GetComment() const override;
264
265 void SetDataSpans( const std::shared_ptr<DataSpansType>& pSpans );
266
267private:
268 std::shared_ptr<DataSpansType> mpDataSpans; // Spans of non-empty cells.
269
272 ScDocumentUniquePtr pUndoDoc; // Block mark and deleted data
273 std::unique_ptr<SdrUndoAction> pDrawUndo; // Deleted objects
277 bool bMulti; // Multi selection
278
279 void DoChange( const bool bUndo );
280 void SetChangeTrack();
281};
282
284{
285public:
286 ScUndoFillTable( ScDocShell* pNewDocShell,
287 const ScMarkData& rMark,
288 SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
289 SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
290 ScDocumentUniquePtr pNewUndoDoc, bool bNewMulti, SCTAB nSrc,
291 InsertDeleteFlags nFlg, ScPasteFunc nFunc, bool bSkip, bool bLink );
292 virtual ~ScUndoFillTable() override;
293
294 virtual void Undo() override;
295 virtual void Redo() override;
296 virtual void Repeat(SfxRepeatTarget& rTarget) override;
297 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
298
299 virtual OUString GetComment() const override;
300
301private:
305 pUndoDoc; // Block mark and deleted data
311 bool bMulti; // Multi selection
314
315 void DoChange( const bool bUndo );
316 void SetChangeTrack();
317};
318
320{
321public:
322 ScUndoSelectionAttr( ScDocShell* pNewDocShell,
323 const ScMarkData& rMark,
324 SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
325 SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
326 ScDocumentUniquePtr pNewUndoDoc, bool bNewMulti,
327 const ScPatternAttr* pNewApply,
328 const SvxBoxItem* pNewOuter = nullptr,
329 const SvxBoxInfoItem* pNewInner = nullptr,
330 const ScRange* pRangeCover = nullptr );
331 virtual ~ScUndoSelectionAttr() override;
332
333 virtual void Undo() override;
334 virtual void Redo() override;
335 virtual void Repeat(SfxRepeatTarget& rTarget) override;
336 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
337
338 virtual OUString GetComment() const override;
339
341private:
345 std::unique_ptr<ScEditDataArray> mpDataArray;
347 bool bMulti;
351
352 void DoChange( const bool bUndo );
353 void ChangeEditData( const bool bUndo );
354};
355
357{
358public:
359 ScUndoWidthOrHeight( ScDocShell* pNewDocShell,
360 const ScMarkData& rMark,
361 SCCOLROW nNewStart, SCTAB nNewStartTab,
362 SCCOLROW nNewEnd, SCTAB nNewEndTab,
363 ScDocumentUniquePtr pNewUndoDoc,
364 std::vector<sc::ColRowSpan>&& rRanges,
365 std::unique_ptr<ScOutlineTable> pNewUndoTab,
366 ScSizeMode eNewMode, sal_uInt16 nNewSizeTwips,
367 bool bNewWidth );
368 virtual ~ScUndoWidthOrHeight() override;
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
377private:
384 std::unique_ptr<ScOutlineTable> pUndoTab;
385 std::vector<sc::ColRowSpan> maRanges;
386 sal_uInt16 nNewSize;
387 bool bWidth;
389 std::unique_ptr<SdrUndoAction> pDrawUndo;
390};
391
393{
394public:
395 ScUndoAutoFill( ScDocShell* pNewDocShell,
396 const ScRange& rRange, const ScRange& rSourceArea,
397 ScDocumentUniquePtr pNewUndoDoc, const ScMarkData& rMark,
398 FillDir eNewFillDir,
399 FillCmd eNewFillCmd, FillDateCmd eNewFillDateCmd,
400 double fNewStartValue, double fNewStepValue, double fNewMaxValue );
401 virtual ~ScUndoAutoFill() override;
402
403 virtual void Undo() override;
404 virtual void Redo() override;
405 virtual void Repeat(SfxRepeatTarget& rTarget) override;
406 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
407
408 virtual OUString GetComment() const override;
409
410private:
420 double fMaxValue;
423
424 void SetChangeTrack();
425};
426
428{
429public:
430 ScUndoMerge( ScDocShell* pNewDocShell, const ScCellMergeOption& rOption,
431 bool bMergeContents, ScDocumentUniquePtr pUndoDoc,
432 std::unique_ptr<SdrUndoAction> pDrawUndo);
433 virtual ~ScUndoMerge() override;
434
435 virtual void Undo() override;
436 virtual void Redo() override;
437 virtual void Repeat(SfxRepeatTarget& rTarget) override;
438 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
439
440 virtual OUString GetComment() const override;
441
442private:
444 bool mbMergeContents; // Merge contents in Redo().
445 ScDocumentUniquePtr mxUndoDoc; // when data is merged
446 std::unique_ptr<SdrUndoAction> mpDrawUndo;
447
448 void DoChange( bool bUndo ) const;
449};
450
452{
453public:
454 ScUndoAutoFormat( ScDocShell* pNewDocShell,
455 const ScRange& rRange, ScDocumentUniquePtr pNewUndoDoc,
456 const ScMarkData& rMark,
457 bool bNewSize, sal_uInt16 nNewFormatNo );
458 virtual ~ScUndoAutoFormat() override;
459
460 virtual void Undo() override;
461 virtual void Redo() override;
462 virtual void Repeat(SfxRepeatTarget& rTarget) override;
463 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
464
465 virtual OUString GetComment() const override;
466
467private:
469 pUndoDoc; // deleted data
471 bool bSize;
472 sal_uInt16 nFormatNo;
473};
474
476{
477public:
478 ScUndoReplace( ScDocShell* pNewDocShell,
479 const ScMarkData& rMark,
480 SCCOL nCurX, SCROW nCurY, SCTAB nCurZ,
481 const OUString& rNewUndoStr, ScDocumentUniquePtr pNewUndoDoc,
482 const SvxSearchItem* pItem );
483 virtual ~ScUndoReplace() override;
484
485 virtual void Undo() override;
486 virtual void Redo() override;
487 virtual void Repeat(SfxRepeatTarget& rTarget) override;
488 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
489
490 virtual OUString GetComment() const override;
491
492private:
495 OUString aUndoStr; // Data at single selection
496 ScDocumentUniquePtr pUndoDoc; // Block mark and deleted data
497 std::unique_ptr<SvxSearchItem> pSearchItem;
500
501 void SetChangeTrack();
502};
503
505{
506public:
507 ScUndoTabOp( ScDocShell* pNewDocShell,
508 SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
509 SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
510 ScDocumentUniquePtr pNewUndoDoc,
511 const ScRefAddress& rFormulaCell,
512 const ScRefAddress& rFormulaEnd,
513 const ScRefAddress& rRowCell,
514 const ScRefAddress& rColCell,
516 virtual ~ScUndoTabOp() override;
517
518 virtual void Undo() override;
519 virtual void Redo() override;
520 virtual void Repeat(SfxRepeatTarget& rTarget) override;
521 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
522
523 virtual OUString GetComment() const override;
524
525private:
528 pUndoDoc; // Deleted data
534};
535
537{
538public:
539
540 ScUndoConversion( ScDocShell* pNewDocShell, const ScMarkData& rMark,
541 SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, ScDocumentUniquePtr pNewUndoDoc,
542 SCCOL nNewX, SCROW nNewY, SCTAB nNewZ, ScDocumentUniquePtr pNewRedoDoc,
543 const ScConversionParam& rConvParam );
544 virtual ~ScUndoConversion() override;
545
546 virtual void Undo() override;
547 virtual void Redo() override;
548 virtual void Repeat(SfxRepeatTarget& rTarget) override;
549 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
550
551 virtual OUString GetComment() const override;
552
553private:
556 ScDocumentUniquePtr pUndoDoc; // Block mark and deleted data
558 ScDocumentUniquePtr pRedoDoc; // Block mark and new data
562
563 void DoChange( ScDocument* pRefDoc, const ScAddress& rCursorPos );
564 void SetChangeTrack();
565};
566
568{
569public:
570 ScUndoRefConversion( ScDocShell* pNewDocShell,
571 const ScRange& aMarkRange, const ScMarkData& rMark,
572 ScDocumentUniquePtr pNewUndoDoc, ScDocumentUniquePtr pNewRedoDoc, bool bNewMulti);
573 virtual ~ScUndoRefConversion() override;
574
575 virtual void Undo() override;
576 virtual void Redo() override;
577 virtual void Repeat(SfxRepeatTarget& rTarget) override;
578 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
579
580 virtual OUString GetComment() const override;
581
582private:
587 bool bMulti;
590
591 void DoChange( ScDocument* pRefDoc);
592 void SetChangeTrack();
593};
594
596{
597public:
598 ScUndoListNames(ScDocShell* pNewDocShell,
599 const ScRange& rRange,
600 ScDocumentUniquePtr pNewUndoDoc, ScDocumentUniquePtr pNewRedoDoc);
601
602 virtual void Undo() override;
603 virtual void Redo() override;
604 virtual void Repeat(SfxRepeatTarget& rTarget) override;
605 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
606
607 virtual OUString GetComment() const override;
608
609private:
612
613 void DoChange( ScDocument* pSrcDoc ) const;
614};
615
617{
618public:
619 ScUndoConditionalFormat( ScDocShell* pNewDocShell,
620 ScDocumentUniquePtr pUndoDoc, ScDocumentUniquePtr pRedoDoc, const ScRange& rRange);
621 virtual ~ScUndoConditionalFormat() override;
622
623 virtual void Undo() override;
624 virtual void Redo() override;
625 virtual void Repeat(SfxRepeatTarget& rTarget) override;
626 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
627
628 virtual OUString GetComment() const override;
629
630private:
631 void DoChange(ScDocument* pDoc);
635};
636
638{
639public:
641 ScDocumentUniquePtr pUndoDoc, ScDocumentUniquePtr pRedoDoc, SCTAB nTab);
642 virtual ~ScUndoConditionalFormatList() override;
643
644 virtual void Undo() override;
645 virtual void Redo() override;
646 virtual void Repeat(SfxRepeatTarget& rTarget) override;
647 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
648
649 virtual OUString GetComment() const override;
650
651private:
652 void DoChange(const ScDocument* pDoc);
656};
657
659{
660public:
661 ScUndoUseScenario( ScDocShell* pNewDocShell,
662 const ScMarkData& rMark,
663 const ScArea& rDestArea, ScDocumentUniquePtr pNewUndoDoc,
664 const OUString& rNewName );
665 virtual ~ScUndoUseScenario() override;
666
667 virtual void Undo() override;
668 virtual void Redo() override;
669 virtual void Repeat(SfxRepeatTarget& rTarget) override;
670 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
671
672 virtual OUString GetComment() const override;
673
674private:
679 OUString aName;
680};
681
683{
684public:
685 ScUndoSelectionStyle( ScDocShell* pNewDocShell,
686 const ScMarkData& rMark,
687 const ScRange& rRange,
688 const OUString& rName,
689 ScDocumentUniquePtr pNewUndoDoc );
690 virtual ~ScUndoSelectionStyle() override;
691
692 virtual void Undo() override;
693 virtual void Redo() override;
694 virtual void Repeat(SfxRepeatTarget& rTarget) override;
695 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
696
697 virtual OUString GetComment() const override;
698
699private:
703 OUString aStyleName;
705
706 void DoChange( const bool bUndo );
707};
708
710{
711public:
712 ScUndoRefreshLink(ScDocShell* pNewDocShell,
713 ScDocumentUniquePtr pNewUndoDoc);
714
715 virtual void Undo() override;
716 virtual void Redo() override;
717 virtual void Repeat(SfxRepeatTarget& rTarget) override;
718 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
719
720 virtual OUString GetComment() const override;
721
722private:
725};
726
728{
729public:
730 ScUndoEnterMatrix( ScDocShell* pNewDocShell,
731 const ScRange& rArea,
732 ScDocumentUniquePtr pNewUndoDoc,
733 const OUString& rForm );
734 virtual ~ScUndoEnterMatrix() override;
735
736 virtual void Undo() override;
737 virtual void Redo() override;
738 virtual void Repeat(SfxRepeatTarget& rTarget) override;
739 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
740
741 virtual OUString GetComment() const override;
742
743private:
746 OUString aFormula;
749
750 void SetChangeTrack();
751};
752
754{
755public:
757 const OUString& rDocName,
758 const OUString& rFltName, const OUString& rOptions,
759 const OUString& rAreaName, const ScRange& rDestRange,
761 virtual ~ScUndoInsertAreaLink() override;
762
763 virtual void Undo() override;
764 virtual void Redo() override;
765 virtual void Repeat(SfxRepeatTarget& rTarget) override;
766 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
767
768 virtual OUString GetComment() const override;
769
770private:
771 OUString aDocName;
772 OUString aFltName;
773 OUString aOptions;
774 OUString aAreaName;
777};
778
780{
781public:
783 const OUString& rDocName,
784 const OUString& rFltName, const OUString& rOptions,
785 const OUString& rAreaName, const ScRange& rDestRange,
787 virtual ~ScUndoRemoveAreaLink() override;
788
789 virtual void Undo() override;
790 virtual void Redo() override;
791 virtual void Repeat(SfxRepeatTarget& rTarget) override;
792 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
793
794 virtual OUString GetComment() const override;
795
796private:
797 OUString aDocName;
798 OUString aFltName;
799 OUString aOptions;
800 OUString aAreaName;
803};
804
806{
807public:
809 const OUString& rOldD,
810 const OUString& rOldF, const OUString& rOldO,
811 const OUString& rOldA, const ScRange& rOldR,
812 sal_uLong nOldRD,
813 const OUString& rNewD,
814 const OUString& rNewF, const OUString& rNewO,
815 const OUString& rNewA, const ScRange& rNewR,
816 sal_uLong nNewRD,
818 bool bDoInsert);
819
820 virtual void Undo() override;
821 virtual void Redo() override;
822 virtual void Repeat(SfxRepeatTarget& rTarget) override;
823 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
824
825 virtual OUString GetComment() const override;
826
827private:
828 OUString aOldDoc;
829 OUString aOldFlt;
830 OUString aOldOpt;
831 OUString aOldArea;
833 OUString aNewDoc;
834 OUString aNewFlt;
835 OUString aNewOpt;
836 OUString aNewArea;
843
844 void DoChange( const bool bUndo ) const;
845};
846
848{
849public:
850 ScUndoIndent( ScDocShell* pNewDocShell, const ScMarkData& rMark,
851 ScDocumentUniquePtr pNewUndoDoc, bool bIncrement );
852 virtual ~ScUndoIndent() override;
853
854 virtual void Undo() override;
855 virtual void Redo() override;
856 virtual void Repeat(SfxRepeatTarget& rTarget) override;
857 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
858
859 virtual OUString GetComment() const override;
860
861private:
866};
867
869{
870public:
871 ScUndoTransliterate( ScDocShell* pNewDocShell, const ScMarkData& rMark,
873 virtual ~ScUndoTransliterate() override;
874
875 virtual void Undo() override;
876 virtual void Redo() override;
877 virtual void Repeat(SfxRepeatTarget& rTarget) override;
878 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
879
880 virtual OUString GetComment() const override;
881
882private:
888};
889
891{
892public:
893 ScUndoClearItems( ScDocShell* pNewDocShell, const ScMarkData& rMark,
894 ScDocumentUniquePtr pNewUndoDoc, const sal_uInt16* pW );
895 virtual ~ScUndoClearItems() override;
896
897 virtual void Undo() override;
898 virtual void Redo() override;
899 virtual void Repeat(SfxRepeatTarget& rTarget) override;
900 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
901
902 virtual OUString GetComment() const override;
903
904private:
908 std::unique_ptr<sal_uInt16[]>
910};
911
913{
914public:
915 ScUndoRemoveBreaks( ScDocShell* pNewDocShell,
916 SCTAB nNewTab, ScDocumentUniquePtr pNewUndoDoc );
917 virtual ~ScUndoRemoveBreaks() override;
918
919 virtual void Undo() override;
920 virtual void Redo() override;
921 virtual void Repeat(SfxRepeatTarget& rTarget) override;
922 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
923
924 virtual OUString GetComment() const override;
925
926private:
930};
931
933{
934public:
935 ScUndoRemoveMerge( ScDocShell* pNewDocShell,
936 const ScCellMergeOption& rOption,
937 ScDocumentUniquePtr pNewUndoDoc );
938 ScUndoRemoveMerge( ScDocShell* pNewDocShell,
939 const ScRange& rRange,
940 ScDocumentUniquePtr pNewUndoDoc );
941 virtual ~ScUndoRemoveMerge() override;
942
943 virtual void Undo() override;
944 virtual void Redo() override;
945 virtual void Repeat(SfxRepeatTarget& rTarget) override;
946 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
947
948 virtual OUString GetComment() const override;
949
951 void AddCellMergeOption( const ScCellMergeOption& rOption );
952
953private:
954 void SetCurTab();
955
956 std::vector<ScCellMergeOption> maOptions;
958};
959
961{
962public:
963 ScUndoBorder(ScDocShell* pNewDocShell,
964 const ScRangeList& rRangeList,
965 ScDocumentUniquePtr pNewUndoDoc,
966 const SvxBoxItem& rNewOuter,
967 const SvxBoxInfoItem& rNewInner);
968
969 virtual void Undo() override;
970 virtual void Redo() override;
971 virtual void Repeat(SfxRepeatTarget& rTarget) override;
972 virtual bool CanRepeat(SfxRepeatTarget& rTarget) const override;
973
974 virtual OUString GetComment() const override;
975
976private:
978 std::unique_ptr<ScRangeList> xRanges;
979 std::unique_ptr<SvxBoxItem> xOuter;
980 std::unique_ptr<SvxBoxInfoItem> xInner;
981};
982
983/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Parameters for conversion.
Definition: spellparam.hxx:33
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
Definition: markdata.hxx:43
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:414
sal_uLong nEndChangeAction
Definition: undoblk.hxx:422
void SetChangeTrack()
Definition: undoblk3.cxx:511
ScUndoAutoFill(ScDocShell *pNewDocShell, const ScRange &rRange, const ScRange &rSourceArea, ScDocumentUniquePtr pNewUndoDoc, const ScMarkData &rMark, FillDir eNewFillDir, FillCmd eNewFillCmd, FillDateCmd eNewFillDateCmd, double fNewStartValue, double fNewStepValue, double fNewMaxValue)
Definition: undoblk3.cxx:483
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk3.cxx:619
virtual void Redo() override
Definition: undoblk3.cxx:562
ScMarkData aMarkData
Definition: undoblk.hxx:412
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk3.cxx:632
virtual OUString GetComment() const override
Definition: undoblk3.cxx:506
FillDateCmd eFillDateCmd
Definition: undoblk.hxx:417
FillCmd eFillCmd
Definition: undoblk.hxx:416
double fStartValue
Definition: undoblk.hxx:418
virtual void Undo() override
Definition: undoblk3.cxx:521
FillDir eFillDir
Definition: undoblk.hxx:415
double fStepValue
Definition: undoblk.hxx:419
virtual ~ScUndoAutoFill() override
Definition: undoblk3.cxx:502
ScRange aSource
Definition: undoblk.hxx:411
double fMaxValue
Definition: undoblk.hxx:420
sal_uLong nStartChangeAction
Definition: undoblk.hxx:421
ScMarkData aMarkData
Definition: undoblk.hxx:470
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk3.cxx:906
virtual OUString GetComment() const override
Definition: undoblk3.cxx:782
virtual void Redo() override
Definition: undoblk3.cxx:825
virtual ~ScUndoAutoFormat() override
Definition: undoblk3.cxx:778
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk3.cxx:912
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:469
virtual void Undo() override
Definition: undoblk3.cxx:787
ScUndoAutoFormat(ScDocShell *pNewDocShell, const ScRange &rRange, ScDocumentUniquePtr pNewUndoDoc, const ScMarkData &rMark, bool bNewSize, sal_uInt16 nNewFormatNo)
Definition: undoblk3.cxx:767
sal_uInt16 nFormatNo
Definition: undoblk.hxx:472
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk.cxx:2427
virtual OUString GetComment() const override
Definition: undoblk.cxx:2386
std::unique_ptr< ScRangeList > xRanges
Definition: undoblk.hxx:978
virtual void Redo() override
Definition: undoblk.cxx:2404
ScUndoBorder(ScDocShell *pNewDocShell, const ScRangeList &rRangeList, ScDocumentUniquePtr pNewUndoDoc, const SvxBoxItem &rNewOuter, const SvxBoxInfoItem &rNewInner)
Definition: undoblk.cxx:2375
std::unique_ptr< SvxBoxInfoItem > xInner
Definition: undoblk.hxx:980
ScDocumentUniquePtr xUndoDoc
Definition: undoblk.hxx:977
virtual void Undo() override
Definition: undoblk.cxx:2391
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk.cxx:2432
std::unique_ptr< SvxBoxItem > xOuter
Definition: undoblk.hxx:979
std::unique_ptr< sal_uInt16[]> pWhich
Definition: undoblk.hxx:909
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk.cxx:2152
virtual ~ScUndoClearItems() override
Definition: undoblk.cxx:2112
ScMarkData aMarkData
Definition: undoblk.hxx:905
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:907
ScUndoClearItems(ScDocShell *pNewDocShell, const ScMarkData &rMark, ScDocumentUniquePtr pNewUndoDoc, const sal_uInt16 *pW)
Definition: undoblk.cxx:2096
virtual OUString GetComment() const override
Definition: undoblk.cxx:2116
virtual void Undo() override
Definition: undoblk.cxx:2121
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk.cxx:2143
virtual void Redo() override
Definition: undoblk.cxx:2132
virtual ~ScUndoConditionalFormatList() override
Definition: undoblk.cxx:1621
virtual OUString GetComment() const override
Definition: undoblk.cxx:1625
void DoChange(const ScDocument *pDoc)
Definition: undoblk.cxx:1640
ScDocumentUniquePtr mpRedoDoc
Definition: undoblk.hxx:654
ScUndoConditionalFormatList(ScDocShell *pNewDocShell, ScDocumentUniquePtr pUndoDoc, ScDocumentUniquePtr pRedoDoc, SCTAB nTab)
Definition: undoblk.cxx:1612
ScDocumentUniquePtr mpUndoDoc
Definition: undoblk.hxx:653
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk.cxx:1667
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk.cxx:1663
virtual void Undo() override
Definition: undoblk.cxx:1630
virtual void Redo() override
Definition: undoblk.cxx:1635
ScDocumentUniquePtr mpUndoDoc
Definition: undoblk.hxx:632
ScUndoConditionalFormat(ScDocShell *pNewDocShell, ScDocumentUniquePtr pUndoDoc, ScDocumentUniquePtr pRedoDoc, const ScRange &rRange)
Definition: undoblk.cxx:1562
virtual ~ScUndoConditionalFormat() override
Definition: undoblk.cxx:1571
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk.cxx:1603
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk.cxx:1607
virtual void Redo() override
Definition: undoblk.cxx:1585
ScDocumentUniquePtr mpRedoDoc
Definition: undoblk.hxx:633
virtual OUString GetComment() const override
Definition: undoblk.cxx:1575
virtual void Undo() override
Definition: undoblk.cxx:1580
void DoChange(ScDocument *pDoc)
Definition: undoblk.cxx:1590
ScDocumentUniquePtr pRedoDoc
Definition: undoblk.hxx:558
ScAddress aCursorPos
Definition: undoblk.hxx:555
void DoChange(ScDocument *pRefDoc, const ScAddress &rCursorPos)
Conversion type and parameters.
Definition: undoblk3.cxx:1224
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:556
virtual void Undo() override
Definition: undoblk3.cxx:1252
virtual OUString GetComment() const override
Definition: undoblk3.cxx:1211
sal_uLong nStartChangeAction
Definition: undoblk.hxx:559
ScAddress aNewCursorPos
Definition: undoblk.hxx:557
void SetChangeTrack()
Definition: undoblk3.cxx:1192
sal_uLong nEndChangeAction
Definition: undoblk.hxx:560
ScConversionParam maConvParam
Definition: undoblk.hxx:561
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk3.cxx:1276
ScUndoConversion(ScDocShell *pNewDocShell, const ScMarkData &rMark, SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, ScDocumentUniquePtr pNewUndoDoc, SCCOL nNewX, SCROW nNewY, SCTAB nNewZ, ScDocumentUniquePtr pNewRedoDoc, const ScConversionParam &rConvParam)
Definition: undoblk3.cxx:1170
virtual void Redo() override
Definition: undoblk3.cxx:1262
ScMarkData aMarkData
Definition: undoblk.hxx:554
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk3.cxx:1270
virtual ~ScUndoConversion() override
Definition: undoblk3.cxx:1186
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:154
ScMarkData aMarkData
Definition: undoblk.hxx:152
ScRange aExtendedRange
Definition: undoblk.hxx:155
sal_uLong nStartChangeAction
Definition: undoblk.hxx:156
sal_uLong nEndChangeAction
Definition: undoblk.hxx:157
DelCellCmd eCmd
Definition: undoblk.hxx:98
virtual ~ScUndoDeleteCells() override
Definition: undoblk.cxx:371
std::unique_ptr< SCTAB[]> pTabs
Definition: undoblk.hxx:93
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk.cxx:626
virtual void Undo() override
Definition: undoblk.cxx:565
void DoChange(const bool bUndo)
Definition: undoblk.cxx:390
virtual OUString GetComment() const override
Definition: undoblk.cxx:375
void SetChangeTrack()
Definition: undoblk.cxx:380
ScUndoDeleteCells(ScDocShell *pNewDocShell, const ScRange &rRange, SCTAB nNewCount, std::unique_ptr< SCTAB[]> pNewTabs, std::unique_ptr< SCTAB[]> pNewScenarios, DelCellCmd eNewCmd, ScDocumentUniquePtr pUndoDocument, std::unique_ptr< ScRefUndoData > pRefData)
Definition: undoblk.cxx:344
virtual void Redo() override
Definition: undoblk.cxx:601
ScRange aEffRange
Definition: undoblk.hxx:90
std::unique_ptr< SCTAB[]> pScenarios
Definition: undoblk.hxx:95
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk.cxx:632
sal_uLong nStartChangeAction
Definition: undoblk.hxx:96
sal_uLong nEndChangeAction
Definition: undoblk.hxx:97
void DoChange(const bool bUndo)
Definition: undoblk3.cxx:105
ScMarkData aMarkData
Definition: undoblk.hxx:271
sal_uLong nStartChangeAction
Definition: undoblk.hxx:274
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk3.cxx:200
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:272
virtual void Redo() override
Definition: undoblk3.cxx:185
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk3.cxx:194
std::shared_ptr< DataSpansType > mpDataSpans
Definition: undoblk.hxx:268
virtual void Undo() override
Definition: undoblk3.cxx:176
virtual ~ScUndoDeleteContents() override
Definition: undoblk3.cxx:79
InsertDeleteFlags nFlags
Definition: undoblk.hxx:276
sal_uLong nEndChangeAction
Definition: undoblk.hxx:275
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undoblk.hxx:273
virtual OUString GetComment() const override
Definition: undoblk3.cxx:85
void SetDataSpans(const std::shared_ptr< DataSpansType > &pSpans)
Definition: undoblk3.cxx:90
ScUndoDeleteContents(ScDocShell *pNewDocShell, const ScMarkData &rMark, const ScRange &rRange, ScDocumentUniquePtr &&pNewUndoDoc, bool bNewMulti, InsertDeleteFlags nNewFlags, bool bObjects)
Definition: undoblk3.cxx:58
sal_uLong nEndChangeAction
Definition: undoblk.hxx:128
sal_uLong nStartChangeAction
Definition: undoblk.hxx:127
virtual void Redo() override
Definition: undoblk.cxx:776
ScUndoDeleteMulti(ScDocShell *pNewDocShell, bool bNewRows, bool bNeedsRefresh, SCTAB nNewTab, std::vector< sc::ColRowSpan > &&rSpans, ScDocumentUniquePtr pUndoDocument, std::unique_ptr< ScRefUndoData > pRefData)
Definition: undoblk.cxx:638
void SetChangeTrack()
Definition: undoblk.cxx:697
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk.cxx:810
virtual void Undo() override
Definition: undoblk.cxx:734
virtual ~ScUndoDeleteMulti() override
Definition: undoblk.cxx:652
virtual OUString GetComment() const override
Definition: undoblk.cxx:656
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk.cxx:803
void DoChange() const
Definition: undoblk.cxx:661
std::vector< sc::ColRowSpan > maSpans
Definition: undoblk.hxx:126
virtual void Undo() override
Definition: undoblk.cxx:1353
void SetChangeTrack()
Definition: undoblk.cxx:1248
ScRangeList maPaintRanges
Definition: undoblk.hxx:233
sal_uLong nEndChangeAction
Definition: undoblk.hxx:238
virtual void Redo() override
Definition: undoblk.cxx:1416
ScRange aSrcRange
Definition: undoblk.hxx:235
ScUndoDragDrop(ScDocShell *pNewDocShell, const ScRange &rRange, const ScAddress &aNewDestPos, bool bNewCut, ScDocumentUniquePtr pUndoDocument, bool bScenario)
Definition: undoblk.cxx:1205
sal_uInt16 mnPaintExtFlags
Definition: undoblk.hxx:232
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk.cxx:1504
sal_uLong nStartChangeAction
Definition: undoblk.hxx:237
virtual ~ScUndoDragDrop() override
Definition: undoblk.cxx:1237
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk.cxx:1500
void DoUndo(ScRange aRange)
Definition: undoblk.cxx:1316
bool bKeepScenarioFlags
Definition: undoblk.hxx:240
virtual OUString GetComment() const override
Definition: undoblk.cxx:1241
void PaintArea(ScRange aRange, sal_uInt16 nExtFlags) const
Definition: undoblk.cxx:1267
ScRange aDestRange
Definition: undoblk.hxx:236
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk.cxx:1974
sal_uLong nStartChangeAction
Definition: undoblk.hxx:747
void SetChangeTrack()
Definition: undoblk.cxx:1913
OUString aFormula
Definition: undoblk.hxx:746
virtual void Redo() override
Definition: undoblk.cxx:1945
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk.cxx:1964
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:745
ScUndoEnterMatrix(ScDocShell *pNewDocShell, const ScRange &rArea, ScDocumentUniquePtr pNewUndoDoc, const OUString &rForm)
Definition: undoblk.cxx:1895
virtual OUString GetComment() const override
Definition: undoblk.cxx:1908
virtual void Undo() override
Definition: undoblk.cxx:1924
sal_uLong nEndChangeAction
Definition: undoblk.hxx:748
virtual ~ScUndoEnterMatrix() override
Definition: undoblk.cxx:1904
InsertDeleteFlags nFlags
Definition: undoblk.hxx:308
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk3.cxx:336
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk3.cxx:330
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:305
ScMarkData aMarkData
Definition: undoblk.hxx:303
virtual ~ScUndoFillTable() override
Definition: undoblk3.cxx:225
virtual void Undo() override
Definition: undoblk3.cxx:316
ScRange aRange
Definition: undoblk.hxx:302
ScPasteFunc nFunction
Definition: undoblk.hxx:309
virtual void Redo() override
Definition: undoblk3.cxx:323
ScUndoFillTable(ScDocShell *pNewDocShell, const ScMarkData &rMark, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScDocumentUniquePtr pNewUndoDoc, bool bNewMulti, SCTAB nSrc, InsertDeleteFlags nFlg, ScPasteFunc nFunc, bool bSkip, bool bLink)
Definition: undoblk3.cxx:205
void DoChange(const bool bUndo)
Definition: undoblk3.cxx:262
sal_uLong nStartChangeAction
Definition: undoblk.hxx:306
virtual OUString GetComment() const override
Definition: undoblk3.cxx:229
void SetChangeTrack()
Definition: undoblk3.cxx:234
sal_uLong nEndChangeAction
Definition: undoblk.hxx:307
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk.cxx:2036
ScMarkData aMarkData
Definition: undoblk.hxx:862
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:864
virtual ~ScUndoIndent() override
Definition: undoblk.cxx:1994
virtual void Undo() override
Definition: undoblk.cxx:2004
bool bIsIncrement
Definition: undoblk.hxx:865
virtual void Redo() override
Definition: undoblk.cxx:2019
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk.cxx:2030
virtual OUString GetComment() const override
Definition: undoblk.cxx:1998
ScUndoIndent(ScDocShell *pNewDocShell, const ScMarkData &rMark, ScDocumentUniquePtr pNewUndoDoc, bool bIncrement)
Definition: undoblk.cxx:1985
std::unique_ptr< SCTAB[]> pScenarios
Definition: undoblk.hxx:62
virtual bool Merge(SfxUndoAction *pNextAction) override
Definition: undoblk.cxx:102
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk.cxx:323
void DoChange(const bool bUndo)
Definition: undoblk.cxx:139
sal_uLong nEndChangeAction
Definition: undoblk.hxx:63
ScUndoInsertCells(ScDocShell *pNewDocShell, const ScRange &rRange, SCTAB nNewCount, std::unique_ptr< SCTAB[]> pNewTabs, std::unique_ptr< SCTAB[]> pNewScenarios, InsCellCmd eNewCmd, ScDocumentUniquePtr pUndoDocument, std::unique_ptr< ScRefUndoData > pRefData, bool bNewPartOfPaste)
Definition: undoblk.cxx:64
virtual ~ScUndoInsertCells() override
Definition: undoblk.cxx:93
std::unique_ptr< SfxUndoAction > pPasteUndo
Definition: undoblk.hxx:67
virtual OUString GetComment() const override
Definition: undoblk.cxx:97
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk.cxx:339
InsCellCmd eCmd
Definition: undoblk.hxx:64
virtual void Undo() override
Definition: undoblk.cxx:293
void SetChangeTrack()
Definition: undoblk.cxx:127
virtual void Redo() override
Definition: undoblk.cxx:308
ScRange aEffRange
Definition: undoblk.hxx:57
std::unique_ptr< SCTAB[]> pTabs
Definition: undoblk.hxx:60
virtual void Undo() override
Definition: undoblk.cxx:1537
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk.cxx:1551
ScUndoListNames(ScDocShell *pNewDocShell, const ScRange &rRange, ScDocumentUniquePtr pNewUndoDoc, ScDocumentUniquePtr pNewRedoDoc)
Definition: undoblk.cxx:1511
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk.cxx:1557
ScDocumentUniquePtr xUndoDoc
Definition: undoblk.hxx:610
virtual OUString GetComment() const override
Definition: undoblk.cxx:1519
ScDocumentUniquePtr xRedoDoc
Definition: undoblk.hxx:611
virtual void Redo() override
Definition: undoblk.cxx:1544
void DoChange(ScDocument *pSrcDoc) const
Definition: undoblk.cxx:1524
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk3.cxx:752
virtual ~ScUndoMerge() override
Definition: undoblk3.cxx:647
ScCellMergeOption maOption
Definition: undoblk.hxx:443
virtual void Redo() override
Definition: undoblk3.cxx:745
ScDocumentUniquePtr mxUndoDoc
Definition: undoblk.hxx:445
virtual OUString GetComment() const override
Definition: undoblk3.cxx:652
bool mbMergeContents
Definition: undoblk.hxx:444
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk3.cxx:762
void DoChange(bool bUndo) const
Definition: undoblk3.cxx:657
virtual void Undo() override
Definition: undoblk3.cxx:738
std::unique_ptr< SdrUndoAction > mpDrawUndo
Definition: undoblk.hxx:446
ScUndoMerge(ScDocShell *pNewDocShell, const ScCellMergeOption &rOption, bool bMergeContents, ScDocumentUniquePtr pUndoDoc, std::unique_ptr< SdrUndoAction > pDrawUndo)
Definition: undoblk3.cxx:637
ScDocumentUniquePtr pRedoDoc
Definition: undoblk.hxx:202
sal_uLong nStartChangeAction
Definition: undoblk.hxx:206
bool bRedoFilled
Definition: undoblk.hxx:208
sal_uLong nEndChangeAction
Definition: undoblk.hxx:207
InsertDeleteFlags nFlags
Definition: undoblk.hxx:203
ScUndoPasteOptions aPasteOptions
Definition: undoblk.hxx:209
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:201
std::unique_ptr< ScRefUndoData > pRefRedoData
Definition: undoblk.hxx:205
std::unique_ptr< ScRefUndoData > pRefUndoData
Definition: undoblk.hxx:204
ScMarkData aMarkData
Definition: undoblk.hxx:200
virtual void Redo() override
Definition: undoblk3.cxx:1347
virtual OUString GetComment() const override
Definition: undoblk3.cxx:1301
sal_uLong nEndChangeAction
Definition: undoblk.hxx:589
ScMarkData aMarkData
Definition: undoblk.hxx:583
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:584
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk3.cxx:1362
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk3.cxx:1356
ScDocumentUniquePtr pRedoDoc
Definition: undoblk.hxx:585
void DoChange(ScDocument *pRefDoc)
Definition: undoblk3.cxx:1316
virtual void Undo() override
Definition: undoblk3.cxx:1336
sal_uLong nStartChangeAction
Definition: undoblk.hxx:588
ScUndoRefConversion(ScDocShell *pNewDocShell, const ScRange &aMarkRange, const ScMarkData &rMark, ScDocumentUniquePtr pNewUndoDoc, ScDocumentUniquePtr pNewRedoDoc, bool bNewMulti)
Definition: undoblk3.cxx:1281
virtual ~ScUndoRefConversion() override
Definition: undoblk3.cxx:1295
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:929
virtual OUString GetComment() const override
Definition: undoblk.cxx:2170
ScUndoRemoveBreaks(ScDocShell *pNewDocShell, SCTAB nNewTab, ScDocumentUniquePtr pNewUndoDoc)
Definition: undoblk.cxx:2158
virtual ~ScUndoRemoveBreaks() override
Definition: undoblk.cxx:2166
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk.cxx:2215
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk.cxx:2206
virtual void Redo() override
Definition: undoblk.cxx:2190
virtual void Undo() override
Definition: undoblk.cxx:2175
ScUndoRemoveMerge(ScDocShell *pNewDocShell, const ScCellMergeOption &rOption, ScDocumentUniquePtr pNewUndoDoc)
Definition: undoblk.cxx:2220
virtual void Undo() override
Definition: undoblk.cxx:2254
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk.cxx:2342
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:957
std::vector< ScCellMergeOption > maOptions
Definition: undoblk.hxx:956
virtual OUString GetComment() const override
Definition: undoblk.cxx:2239
virtual void Redo() override
Definition: undoblk.cxx:2290
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk.cxx:2336
void AddCellMergeOption(const ScCellMergeOption &rOption)
Definition: undoblk.cxx:2249
virtual ~ScUndoRemoveMerge() override
Definition: undoblk.cxx:2235
ScDocument * GetUndoDoc()
Definition: undoblk.cxx:2244
ScAddress aCursorPos
Definition: undoblk.hxx:493
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk3.cxx:1085
virtual OUString GetComment() const override
Definition: undoblk3.cxx:966
virtual void Redo() override
Definition: undoblk3.cxx:1049
OUString aUndoStr
Definition: undoblk.hxx:495
ScUndoReplace(ScDocShell *pNewDocShell, const ScMarkData &rMark, SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, const OUString &rNewUndoStr, ScDocumentUniquePtr pNewUndoDoc, const SvxSearchItem *pItem)
Definition: undoblk3.cxx:917
std::unique_ptr< SvxSearchItem > pSearchItem
Definition: undoblk.hxx:497
sal_uLong nStartChangeAction
Definition: undoblk.hxx:498
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk3.cxx:1091
virtual ~ScUndoReplace() override
Definition: undoblk3.cxx:931
void SetChangeTrack()
Definition: undoblk3.cxx:937
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:496
ScMarkData aMarkData
Definition: undoblk.hxx:494
virtual void Undo() override
Definition: undoblk3.cxx:971
sal_uLong nEndChangeAction
Definition: undoblk.hxx:499
virtual void Redo() override
Definition: undoblk3.cxx:459
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk3.cxx:478
ScUndoSelectionAttr(ScDocShell *pNewDocShell, const ScMarkData &rMark, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScDocumentUniquePtr pNewUndoDoc, bool bNewMulti, const ScPatternAttr *pNewApply, const SvxBoxItem *pNewOuter=nullptr, const SvxBoxInfoItem *pNewInner=nullptr, const ScRange *pRangeCover=nullptr)
Definition: undoblk3.cxx:341
SvxBoxInfoItem * pLineInner
Definition: undoblk.hxx:350
virtual OUString GetComment() const override
Definition: undoblk3.cxx:375
virtual ~ScUndoSelectionAttr() override
Definition: undoblk3.cxx:363
SvxBoxItem * pLineOuter
Definition: undoblk.hxx:349
std::unique_ptr< ScEditDataArray > mpDataArray
Definition: undoblk.hxx:345
ScPatternAttr * pApplyPattern
Definition: undoblk.hxx:348
virtual void Undo() override
Definition: undoblk3.cxx:452
void DoChange(const bool bUndo)
Definition: undoblk3.cxx:386
ScMarkData aMarkData
Definition: undoblk.hxx:342
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:346
void ChangeEditData(const bool bUndo)
Definition: undoblk3.cxx:426
ScEditDataArray * GetDataArray()
Definition: undoblk3.cxx:381
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk3.cxx:466
virtual ~ScUndoSelectionStyle() override
Definition: undoblk.cxx:1805
virtual void Undo() override
Definition: undoblk.cxx:1857
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk.cxx:1871
ScMarkData aMarkData
Definition: undoblk.hxx:700
virtual OUString GetComment() const override
Definition: undoblk.cxx:1809
virtual void Redo() override
Definition: undoblk.cxx:1864
void DoChange(const bool bUndo)
Definition: undoblk.cxx:1814
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk.cxx:1890
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:702
ScUndoSelectionStyle(ScDocShell *pNewDocShell, const ScMarkData &rMark, const ScRange &rRange, const OUString &rName, ScDocumentUniquePtr pNewUndoDoc)
Definition: undoblk.cxx:1791
ScRefAddress theColCell
Definition: undoblk.hxx:532
virtual OUString GetComment() const override
Definition: undoblk3.cxx:1120
virtual ~ScUndoTabOp() override
Definition: undoblk3.cxx:1116
ScRefAddress theRowCell
Definition: undoblk.hxx:531
ScRange aRange
Definition: undoblk.hxx:526
ScTabOpParam::Mode meMode
Definition: undoblk.hxx:533
ScUndoTabOp(ScDocShell *pNewDocShell, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScDocumentUniquePtr pNewUndoDoc, const ScRefAddress &rFormulaCell, const ScRefAddress &rFormulaEnd, const ScRefAddress &rRowCell, const ScRefAddress &rColCell, ScTabOpParam::Mode eMode)
Definition: undoblk3.cxx:1097
virtual void Redo() override
Definition: undoblk3.cxx:1146
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk3.cxx:1161
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:528
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk3.cxx:1165
ScRefAddress theFormulaEnd
Definition: undoblk.hxx:530
ScRefAddress theFormulaCell
Definition: undoblk.hxx:529
virtual void Undo() override
Definition: undoblk3.cxx:1125
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk.cxx:2091
virtual OUString GetComment() const override
Definition: undoblk.cxx:2054
virtual void Undo() override
Definition: undoblk.cxx:2059
TransliterationFlags nTransliterationType
Definition: undoblk.hxx:887
ScMarkData aMarkData
Definition: undoblk.hxx:883
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk.cxx:2085
virtual ~ScUndoTransliterate() override
Definition: undoblk.cxx:2050
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:885
virtual void Redo() override
Definition: undoblk.cxx:2074
ScUndoTransliterate(ScDocShell *pNewDocShell, const ScMarkData &rMark, ScDocumentUniquePtr pNewUndoDoc, TransliterationFlags nType)
Definition: undoblk.cxx:2041
virtual ~ScUndoUseScenario() override
Definition: undoblk.cxx:1690
ScMarkData aMarkData
Definition: undoblk.hxx:678
virtual void Redo() override
Definition: undoblk.cxx:1754
virtual void Undo() override
Definition: undoblk.cxx:1699
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk.cxx:1781
virtual OUString GetComment() const override
Definition: undoblk.cxx:1694
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:676
ScUndoUseScenario(ScDocShell *pNewDocShell, const ScMarkData &rMark, const ScArea &rDestArea, ScDocumentUniquePtr pNewUndoDoc, const OUString &rNewName)
Definition: undoblk.cxx:1672
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk.cxx:1772
OUString aName
Definition: undoblk.hxx:679
virtual ~ScUndoWidthOrHeight() override
Definition: undoblk2.cxx:58
virtual void Undo() override
Definition: undoblk2.cxx:79
virtual void Repeat(SfxRepeatTarget &rTarget) override
Definition: undoblk2.cxx:175
std::vector< sc::ColRowSpan > maRanges
Definition: undoblk.hxx:385
std::unique_ptr< ScOutlineTable > pUndoTab
Definition: undoblk.hxx:384
std::unique_ptr< SdrUndoAction > pDrawUndo
Definition: undoblk.hxx:389
sal_uInt16 nNewSize
Definition: undoblk.hxx:386
ScDocumentUniquePtr pUndoDoc
Definition: undoblk.hxx:383
ScMarkData aMarkData
Definition: undoblk.hxx:378
virtual void Redo() override
Definition: undoblk2.cxx:143
ScUndoWidthOrHeight(ScDocShell *pNewDocShell, const ScMarkData &rMark, SCCOLROW nNewStart, SCTAB nNewStartTab, SCCOLROW nNewEnd, SCTAB nNewEndTab, ScDocumentUniquePtr pNewUndoDoc, std::vector< sc::ColRowSpan > &&rRanges, std::unique_ptr< ScOutlineTable > pNewUndoTab, ScSizeMode eNewMode, sal_uInt16 nNewSizeTwips, bool bNewWidth)
Change column widths or row heights.
Definition: undoblk2.cxx:36
virtual OUString GetComment() const override
Definition: undoblk2.cxx:65
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
Definition: undoblk2.cxx:181
ScSizeMode eMode
Definition: undoblk.hxx:388
virtual void Repeat(SfxRepeatTarget &)
virtual void Redo()
virtual void Undo()
virtual OUString GetComment() const
virtual bool CanRepeat(SfxRepeatTarget &) const
std::unique_ptr< ScDocument, o3tl::default_delete< ScDocument > > ScDocumentUniquePtr
Definition: document.hxx:2715
FilterGroup & rTarget
DelCellCmd
Definition: global.hxx:279
ScPasteFunc
Definition: global.hxx:179
InsCellCmd
Definition: global.hxx:288
@ INS_NONE
Definition: global.hxx:293
InsertDeleteFlags
Definition: global.hxx:148
ScSizeMode
Definition: global.hxx:349
FillDateCmd
Definition: global.hxx:332
FillCmd
Definition: global.hxx:315
FillDir
Definition: global.hxx:307
Mode eMode
NONE
QPRO_FUNC_TYPE nType
Definition: qproform.cxx:398
#define SC_DLLPUBLIC
Definition: scdllapi.h:27
sal_uIntPtr sal_uLong
InsCellCmd eMoveMode
Definition: undoblk.hxx:169
ScPasteFunc nFunction
Definition: undoblk.hxx:165
TransliterationFlags
sal_Int32 SCCOLROW
a type capable of holding either SCCOL or SCROW
Definition: types.hxx:23
sal_Int16 SCTAB
Definition: types.hxx:22
sal_Int16 SCCOL
Definition: types.hxx:21
sal_Int32 SCROW
Definition: types.hxx:17