Changeset View
Changeset View
Standalone View
Standalone View
plugins/flake/textshape/kotext/commands/ChangeListCommand.h
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | 61 | ChangeListCommand(const QTextCursor &cursor, KoListStyle *style, int level, | |||
---|---|---|---|---|---|
63 | KUndo2Command *parent = 0); | 63 | KUndo2Command *parent = 0); | ||
64 | ~ChangeListCommand() override; | 64 | ~ChangeListCommand() override; | ||
65 | 65 | | |||
66 | /// redo the command | 66 | /// redo the command | ||
67 | void redo() override; | 67 | void redo() override; | ||
68 | /// revert the actions done in redo | 68 | /// revert the actions done in redo | ||
69 | void undo() override; | 69 | void undo() override; | ||
70 | 70 | | |||
71 | /// reimplemnted from KUndo2Command | 71 | /// reimplemented from KUndo2Command | ||
72 | int id() const override { | 72 | int id() const override { | ||
73 | return 58450687; | 73 | return 58450687; | ||
74 | } | 74 | } | ||
75 | /// reimplemnted from KUndo2Command | 75 | /// reimplemented from KUndo2Command | ||
76 | bool mergeWith(const KUndo2Command *other) override; | 76 | bool mergeWith(const KUndo2Command *other) override; | ||
77 | 77 | | |||
78 | private: | 78 | private: | ||
79 | enum CommandAction { | 79 | enum CommandAction { | ||
80 | CreateNew, | 80 | CreateNew, | ||
81 | ModifyExisting, | 81 | ModifyExisting, | ||
82 | ReparentList, | 82 | ReparentList, | ||
83 | MergeList, | 83 | MergeList, | ||
Show All 23 Lines |