Skip to main content
Inspiring
September 28, 2016
Question

Save is grayed out after importing image on custom DragAndDropEvent

  • September 28, 2016
  • 2 replies
  • 233 views

Hi,

I have a custom drag handler. In the "ProcessDragDropCommand" method I am importing an image from disk with kImportAndPlaceCmdBoss boss. As a result, I can see the image on the page.

Problem: after this import "Save" and "Save as..." buttons are greyed our in the Indesign. I can export a file and then successfully open it with the imported image.

When I execute the SAME code that does import from Menu Item "Save" button is OK.

Plugin that contains ProcessDragDropCommand method is UIPlugin. We tried to send the command bu PlugPlug interface to another model plugin to import the image but it gives the same problem.

Thank you for any help.

This topic has been closed for replies.

2 replies

Inspiring
September 30, 2016

Thanks alot Markus,

You're right this is related to the fact that Indesign thought the document is currently under modification. In ProcessDragDropCommand the code snippet CmdUtils::EndCommandSequence(sequence) is not executed.

Inspiring
September 29, 2016

Hi charlesf4519698,

on the IDataBase interface of your document you can call SetModified(kTrue). You can check it with the function IsModified().

Markus