Summary: | Extend SfxStyleFamily by Shapes | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Heiko Tietze <heiko.tietze> |
Component: | LibreOffice | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | NEW --- | ||
Severity: | enhancement | CC: | kainz.a, mentoring, momonasmon, rb.henschel, xiscofauli |
Priority: | medium | Keywords: | needsDevEval |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 86899, 89155, 89369 |
Description
Heiko Tietze
2019-03-01 13:31:12 UTC
The problem is deeper than adding something to UI. There exists no special style family for frames but frame and shape styles both belong to the family 'graphic'. The distinction between frame and shape is done by the fact, that the automatic style which is referenced by the object has a parent style in case of a frame and does not have a parent style in case of a shape. The parent style is a custom style and visible in the UI. Second problem is, that using custom styles is not implemented for shapes in Writer. Meaning, if you directly refer a custom style in the draw:style-name attribute of an object, it will make the object to a Writer-object if possible and will be ignored otherwise. You can see what problems this has looking at the attempt to consolidate the features of Writer-images and Draw-images. Similar hard problems will occur with Writer-frames and Draw-textboxes. These problems are homemade and have nothing to do with the ODF specification. All together I classify it has hard task. Could imagine a intermediate solution is possible. It might be possible to solve a sub-task first: Implement the use of custom styles for a subset of shapes. Especially leave out those, which are written with draw:frame in file format. But that is still not an easyhack. Hi Heiko, What about adding this issue to the GSOC's ideas page ? (In reply to Xisco FaulĂ from comment #4) > What about adding this issue to the GSOC's ideas page ? https://wiki.documentfoundation.org/Development/GSoC/Ideas_without_a_mentor#Extend_SfxStyleFamily_by_Shapes |