Review Request 118532: Proper handling of sections for Words and Author
Inge Wallin
inge at lysator.liu.se
Mon Jun 23 05:08:31 BST 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118532/#review60742
-----------------------------------------------------------
Looks very good. I only found utterly trivial problems, like language issues and code layout stuff.
For the final ship it, I will let Camilla have a say too but for me it.'s good to go.
libs/kotext/KoTextEditor_format.cpp
<https://git.reviewboard.kde.org/r/118532/#comment42336>
"The above"
"unapply"
libs/kotext/commands/DeleteCommand.cpp
<https://git.reviewboard.kde.org/r/118532/#comment42337>
Then
libs/kotext/opendocument/KoTextLoader.h
<https://git.reviewboard.kde.org/r/118532/#comment42338>
It's called pasteMode here and mode in both the comment above and the implementation.
plugins/textshape/dialogs/SimpleInsertWidget.ui
<https://git.reviewboard.kde.org/r/118532/#comment42334>
Is this the only clue the user will get?
words/part/KWView.cpp
<https://git.reviewboard.kde.org/r/118532/#comment42335>
This will look strange in Author. Could you rephrase it so that it's application name neutral?
words/part/dockers/KWDebugWidget.cpp
<https://git.reviewboard.kde.org/r/118532/#comment42331>
braces on same line as 'if'
words/part/dockers/KWDebugWidget.cpp
<https://git.reviewboard.kde.org/r/118532/#comment42332>
same here
words/part/dockers/KWDebugWidget.cpp
<https://git.reviewboard.kde.org/r/118532/#comment42333>
EBN will complain that you're using a string for one character. :)
- Inge Wallin
On June 22, 2014, 8 p.m., Denis Kuplyakov wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/118532/
> -----------------------------------------------------------
>
> (Updated June 22, 2014, 8 p.m.)
>
>
> Review request for Calligra, Camilla Boemann, Inge Wallin, and Dan Leinir Turthra Jensen.
>
>
> Repository: calligra
>
>
> Description
> -------
>
> This adds proper section handling to code. It concentrates on managing to not break section structure during editing of text.
> Patch fixes many things:
> 1) Insertion of text into sections
> 2) Deletion of text with sections
> 3) Cut, paste of text with sections
> 4) Applying style doesn't remove section info
> 5) WORDS product set added for fast building of Words and Author
> 6) Sections visual indication (need improvements)
>
> Future TODOS:
> 1) improving section indication (DONE)
> 2) ability to insert section (DONE)
> 3) adding unittests
> 4) change icon for "New section" functionality
> 5) we should read "Undo New section" in edit, after inserting new one
> 6) fix indication of sections for multipage documents
>
>
> Diffs
> -----
>
> cmake/productsets/words.cmake PRE-CREATION
> libs/flake/KoCanvasResourceManager.h 2ad1c6f
> libs/flake/KoShapePaintingContext.h a7d15fd
> libs/flake/KoShapePaintingContext.cpp 28ce859
> libs/kotext/KoSection.h ac3fdd8
> libs/kotext/KoSection.cpp ca414b0
> libs/kotext/KoTextEditor.h 1fe289b
> libs/kotext/KoTextEditor.cpp 574e803
> libs/kotext/KoTextEditor_format.cpp a82352d
> libs/kotext/KoTextPaste.cpp de89bd8
> libs/kotext/commands/DeleteCommand.h f9dd2ef
> libs/kotext/commands/DeleteCommand.cpp 391495e
> libs/kotext/opendocument/KoTextLoader.h ca92573
> libs/kotext/opendocument/KoTextLoader.cpp bf3044e
> libs/kotext/opendocument/KoTextWriter_p.cpp c03cebb
> libs/kundo2/kundo2magicstring.h f60f2a7
> libs/odf/KoOdfPaste.cpp 1e46546
> libs/textlayout/KoTextDocumentLayout.h 45a9ccb
> libs/textlayout/KoTextLayoutArea.h f1b900a
> libs/textlayout/KoTextLayoutArea_paint.cpp 2982c60
> plugins/textshape/TextShape.cpp 3b25ffe
> plugins/textshape/TextTool.h 3409292
> plugins/textshape/TextTool.cpp ae51513
> plugins/textshape/dialogs/SimpleInsertWidget.cpp c2f083f
> plugins/textshape/dialogs/SimpleInsertWidget.ui 4b9c639
> words/part/CMakeLists.txt 41f675b
> words/part/KWApplicationConfig.h 87f1016
> words/part/KWApplicationConfig.cpp 1df6557
> words/part/KWFactory.cpp 9894f40
> words/part/KWView.h 50ee760
> words/part/KWView.cpp 6456d1f
> words/part/dockers/KWDebugDocker.h PRE-CREATION
> words/part/dockers/KWDebugDocker.cpp PRE-CREATION
> words/part/dockers/KWDebugDockerFactory.h PRE-CREATION
> words/part/dockers/KWDebugDockerFactory.cpp PRE-CREATION
> words/part/dockers/KWDebugWidget.h PRE-CREATION
> words/part/dockers/KWDebugWidget.cpp PRE-CREATION
> words/part/words.rc c3a9822
>
> Diff: https://git.reviewboard.kde.org/r/118532/diff/
>
>
> Testing
> -------
>
> I have tested all functionality with emphasis on deletion. It has the most complicated code and need very good testing.
> You can use LibreOffice Writer to create document with sections and then test editing it in words. And I will attach one I've used.
>
>
> File Attachments
> ----------------
>
> File for testing
> https://git.reviewboard.kde.org/media/uploaded/files/2014/06/04/f87d4ce2-3ab9-48a4-a880-4caa586790fc__Test-orig.odt
>
>
> Thanks,
>
> Denis Kuplyakov
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20140623/77016e6a/attachment.htm>
More information about the calligra-devel
mailing list