Skip to content

Show drag preview of charts in Writer#15697

Closed
GulsahKose wants to merge 1 commit into
CollaboraOnline:mainfrom
GulsahKose:writer-chart-dragpreview
Closed

Show drag preview of charts in Writer#15697
GulsahKose wants to merge 1 commit into
CollaboraOnline:mainfrom
GulsahKose:writer-chart-dragpreview

Conversation

@GulsahKose
Copy link
Copy Markdown
Contributor

Until now MouseControl / ShapeHandlesSection's semi-transparent drag
preview worked for charts in Calc and Impress but not in Writer:
charts there are wrapped in a Writer fly (type 601) without an
isWriterGraphic flag, so the type == 601 && !isWriterGraphic
"isFrame" guard suppressed the rendershapeselection request and the
preview never had an SVG to show.

Drop the guard. Together with the writer_svg_Export change that
makes selected charts render as SVG, and the sfxbasemodel guard that
keeps an internal render failure from popping up as a user-facing
"Document cannot be exported" dialog, charts in Writer now show the
same drag preview as in Calc / Impress. Plain Writer text frames
(the case the workaround was originally added for, tdf#123874) still
behave the same way for the user: the kit returns 0 bytes, no
shapeselectioncontent message is sent, no preview, no dialog.

Change-Id: I2952c6d96c91b49e8fc0f3800cdd02a1fe514dd5

  • Resolves: #
  • Target version: main

Summary

TODO

  • ...

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

  Until now MouseControl / ShapeHandlesSection's semi-transparent drag
  preview worked for charts in Calc and Impress but not in Writer:
  charts there are wrapped in a Writer fly (type 601) without an
  isWriterGraphic flag, so the type == 601 && !isWriterGraphic
  "isFrame" guard suppressed the rendershapeselection request and the
  preview never had an SVG to show.

  Drop the guard.  Together with the writer_svg_Export change that
  makes selected charts render as SVG, and the sfxbasemodel guard that
  keeps an internal render failure from popping up as a user-facing
  "Document cannot be exported" dialog, charts in Writer now show the
  same drag preview as in Calc / Impress.  Plain Writer text frames
  (the case the workaround was originally added for, tdf#123874) still
  behave the same way for the user: the kit returns 0 bytes, no
  shapeselectioncontent message is sent, no preview, no dialog.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: I2952c6d96c91b49e8fc0f3800cdd02a1fe514dd5
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

Thank you for your contribution! However, the main branch on GitHub is not used for this project. Please submit patches to the main branch of the online repo at https://gerrit.collaboraoffice.com.

See CONTRIBUTING.md for details. This PR has been automatically closed.

@github-actions github-actions Bot closed this May 1, 2026
@github-project-automation github-project-automation Bot moved this from To Review to Done in Collabora Online May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant