Unfloat: Handle unfloat button visibility

Desktop / LibreOffice - Tamás Zolnai [collabora.com] - 4 January 2019 00:01 EST

We need to update the state of the button every time when the frame's layout changes or when the selection changes. Show the button if the text frame is selected and it's a floating table which would hang out of the actual page after unfloating.

Change-Id: I6b64affb063f552921915a0735e80889e5fd8124 Reviewed-on: https://gerrit.libreoffice.org/65819

6e5c4001c7b5 Unfloat: Handle unfloat button visibility
sw/source/core/frmedt/fefly1.cxx | 3 ++
sw/source/core/frmedt/feshview.cxx | 11 +++++
sw/source/core/inc/flyfrm.hxx | 9 ++++
sw/source/core/layout/fly.cxx | 96 ++++++++++++++++++++++++++++++++++++++
sw/source/core/layout/paintfrm.cxx | 12 +++++
5 files changed, 131 insertions(+)

Upstream: cgit.freedesktop.org


  • Share