CalloutShape: Add a new shape to handle callouts

Desktop / KDE / Calligra - Dag Andersen [get2net.dk] - 14 November 2018 10:00 EST

Summary: This is the start of a dedicated callout shape. It uses draw:type to identify callouts, same as LO/OO. Unfortunatwly it abuses odf, but if we shall be compatible with LO/OO I see no other option.

Roundtrips via LO works both ways and LO's ui also works with callout produced with stage.

TODO:- Shearing and rotation- Needs new tool for resize/move of 'bubble' part

Known problem: Rounding (?) problem when calculating position/size offsets, but this will be changed anyway when shearing/rotation is implemented.

Reviewers: boemann, anthonyfieroni

Subscribers: Calligra-Devel-list

Tags: #calligra:_3.0

Differential Revision: https://phabricator.kde.org/D16756

2e1aaae999f CalloutShape: Add a new shape to handle callouts
plugins/pathshapes/CMakeLists.txt | 2 +
plugins/pathshapes/PathShapesPlugin.cpp | 4 +-
plugins/pathshapes/enhancedpath/CalloutShape.cpp | 253 +++++++++++++++++++++
plugins/pathshapes/enhancedpath/CalloutShape.h | 50 ++++
.../enhancedpath/CalloutShapeFactory.cpp | 208 +++++++++++++++++
.../pathshapes/enhancedpath/CalloutShapeFactory.h | 45 ++++
.../pathshapes/enhancedpath/EnhancedPathShape.cpp | 7 +
.../pathshapes/enhancedpath/EnhancedPathShape.h | 1 -
.../enhancedpath/EnhancedPathShapeFactory.cpp | 82 +------
.../enhancedpath/EnhancedPathShapeFactory.h | 1 -
10 files changed, 569 insertions(+), 84 deletions(-)

Upstream: quickgit.kde.org


  • Share