Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for opening structures in CDX format embedded into MS PowerPoint #3914

Closed
vanoprenko opened this issue Jan 16, 2024 · 0 comments · Fixed by #3941, #3969, #3978 or #3985
Closed

Add support for opening structures in CDX format embedded into MS PowerPoint #3914

vanoprenko opened this issue Jan 16, 2024 · 0 comments · Fixed by #3941, #3969, #3978 or #3985

Comments

@vanoprenko
Copy link
Collaborator

vanoprenko commented Jan 16, 2024

Background
Some Ketcher users need to deal with chemical structures embedded into MS PowerPoint presentation as ChemDraw OLE objects. Users need to select structures from those stored in the presentation and open them in Ketcher.
Supported formats are PPTX for presentation and CDX for chemical structures stored in OLE objects.

Solution
If user selects a .pptx file in Ketcher's file selection window (Open Structure -> Open From File), Ketcher should find all ChemDraw objects in the file and extract CDX content from each object. Structure selection window should further be displayed instead of file content preview.

The structure selection window should include presentation file name (without path), list of chemical structures found and preview frame showing selected structure.

image

Structures in the list should be displayed in order of their appearance in the presentation file. List items should be named Structure 1, ... Structure < n >, where n is the number of structures found.

Once user selects an element in the list, Ketcher should use corresponding CDX to render the structure in the preview frame. User may further use 'Add to Canvas' and 'Open as New Project' buttons to open the selected structure similarly to regular file opening workflow.

If no chemical structures found in the selected presentation file, a message box "No embedded structures found in the file" should be displayed and structure selection window should not be shown.
When structure selection window pops up, it should have first item in the structure list selected.

@vanoprenko vanoprenko added this to the Query Features - Phase II milestone Jan 16, 2024
@captain2b captain2b assigned captain2b and unassigned Nitvex Jan 17, 2024
captain2b added a commit that referenced this issue Jan 23, 2024
…MS PowerPoint add and integrate new components
captain2b added a commit that referenced this issue Jan 23, 2024
captain2b added a commit that referenced this issue Jan 23, 2024
…MS PowerPoint add and integrate new components
captain2b added a commit that referenced this issue Jan 24, 2024
…MS PowerPoint fix concurrent generateImageAsBase64 requests, add tests
captain2b added a commit that referenced this issue Jan 24, 2024
…MS PowerPoint fix concurrent generateImageAsBase64 requests, add tests
captain2b added a commit that referenced this issue Jan 25, 2024
…MS PowerPoint fix decoding for large arrays
captain2b added a commit that referenced this issue Jan 26, 2024
…MS PowerPoint add and integrate new components
captain2b added a commit that referenced this issue Jan 26, 2024
…MS PowerPoint fix concurrent generateImageAsBase64 requests, add tests
captain2b added a commit that referenced this issue Jan 26, 2024
…MS PowerPoint fix decoding for large arrays
captain2b added a commit that referenced this issue Jan 26, 2024
…tures-in-cdx-format-embedded-into-ms-powerpoint

Backmerge: #3914 – Add support for opening structures in CDX format embedded into MS PowerPoint
captain2b added a commit that referenced this issue Jan 28, 2024
…MS PowerPoint change preview rendering mechanism
@AlexeyGirin AlexeyGirin reopened this Jan 29, 2024
captain2b added a commit that referenced this issue Jan 29, 2024
…MS PowerPoint change preview rendering mechanism
captain2b added a commit that referenced this issue Jan 29, 2024
…tures-in-cdx-format-embedded-into-ms-powerpoint

#3914 Add support for opening structures in CDX format embedded into …
This was referenced Feb 12, 2024
AlexeyGirin added a commit that referenced this issue Mar 8, 2024
…bedded into MS PowerPoint (#4185)

* Added autotests for opening structures in CDX format embedded into MS PowerPoint (#4016) and related screenshots

* Added fix for spinner (now all spinners are recognized by waitForSpinnerFinishedWork)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment