More Info

Revision 4d779e5...

(Back to digest)
 

Features in Office

C. Boemann committed changes in [calligra] /:

Implement undo of Style changes

Two new methods are introduced: beginEdit() and endEdit() to mark
when the editing happens. At endEdit() the collected changes
are applied to any attached documents like before.

The difference is that it now happens through ChangeStylesMacroCommand
Which in turn uses ChangeStylesCommand

The role of ChangeStylesMacroCommand is to act as a macro plus to
make sure the styles within the stylemanager itself are updated.

The role of ChangeStylesCommand is to update the qtextdocuments.

REVIEW: 103779

File Changes

Added 4 files
/kotext/commands
 
libs/ChangeStylesCommand.cpp
 
libs/ChangeStylesCommand.h
 
libs/ChangeStylesMacroCommand.cpp
 
libs/ChangeStylesMacroCommand.h
Modified 18 files
 
tables/Map.cpp
 
libs/kotext/CMakeLists.txt
 
libs/kotext/KoTextDocument.cpp
 
libs/kotext/styles/ChangeFollower.cpp
 
libs/kotext/styles/ChangeFollower.h
 
libs/kotext/styles/KoCharacterStyle.cpp
 
libs/kotext/styles/KoParagraphStyle.cpp
 
libs/kotext/styles/KoStyleManager.cpp
 
libs/kotext/styles/KoStyleManager.h
 
libs/kotext/tests/TestKoTextEditor.cpp
 
libs/textlayout/tests/TestBlockLayout.cpp
 
libs/textlayout/tests/TestDocumentLayout.cpp
 
libs/textlayout/tests/TestTableLayout.cpp
 
plugins/textshape/dialogs/StyleManager.cpp
 
libs/kotext/opendocument/tests/TestChangeTracking.cpp
 
libs/kotext/opendocument/tests/TestLoading.cpp
 
libs/kotext/opendocument/tests/TestLoadStyle.cpp
 
libs/kotext/styles/tests/TestListStyle.cpp
22 files changed in total