[Libreoffice-bugs] [Bug 118777] [Crash] Insert Signature Line after select image object

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jul 24 10:51:08 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=118777

--- Comment #10 from Michael Stahl <michael.stahl at cib.de> ---
this is all a bit inconsistent and non-obivous:

if an image or shape is selected, then the view cursor doesn't have a valid
model position, and most of the Insert menu entries are disabled.

except for:

- Insert Image ... which replaces the existing image (if image selected), or
applies the image as background to existing shape

- Insert Shape ... which requires mouse interaction and will anchor the shape
close to the drawn rectangle, via GetCrsrOfst

- Insert Fontwork ... which anchors the shape close to the center of the
docuemnt view, via GetCrsrOfst

The SwXViewCursor has a method to get the view position as x/y coordinates via:

offapi/com/sun/star/text/XTextViewCursor.idl:    com::sun::star::awt::Point
getPosition();

... but there appears to be no way to convert that to a model (text cursor)
position via the API, which is surprising, i.e. there is no API equivalent to
GetCursorOfst.

the Signature Line dialog is implemented in cui and uses the API, hence i don't
see any way to fix this except for simply disabling the menu item when image
shape is selected, similar to the other disabled items.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180724/cc03605e/attachment.html>


More information about the Libreoffice-bugs mailing list