Skip to main content
Participating Frequently
December 4, 2006
Question

Avoid Missing Fonts Dialog on doc opening

  • December 4, 2006
  • 3 replies
  • 447 views
Hi everybody,

I need to avoid the showing of dialog listing the missing fonts during the opening of a document.
I would like to do the same with the missing/modified image dialog.
Take present the document is opened by another plugin so I can't instruct InDesign to not to show such dialogs.
What could be a way to achieve that? Any hints will be greatly appreciated.
Thanks.

Best regards,

Luca Severini
This topic has been closed for replies.

3 replies

Participant
January 3, 2007
Hi,<br /><br />You can try:<br /><br />InterfacePtr<ICommand> showMFCmd(CmdUtils::CreateCommand(kShowMissingFontsCmdBoss));<br /><br />InterfacePtr<IWorkspace> workspace(gSession->QueryWorkspace());<br /><br />InterfacePtr<IUIDData> uidData(showMFCmd, IID_IUIDDATA);<br />uidData->Set(workspace);<br /><br />InterfacePtr<IBoolData> boolData(showMFCmd, IID_IBOOLDATA);<br />boolData->Set(bEnable);<br /><br />CmdUtils::ProcessCommand(showMFCmd);<br /><br />This works with the font warning dialog. For the other cases i use kSuppressUI when available.
Participating Frequently
December 5, 2006
Hi,

Thanks Eugenio for your suggestion.
Unfortunately that doesn't work. I tried it as a responder and observer as well. Perhaps InDesign doesn't consider such dialogs as alerts.
Any other hints?
Let me to generalize the question:
How is possible to intercept any alert/message InDesign is going to show to the user to modify or avoid it to be displayed? (Something like the "_XT_SHOWINGERRORMESSAGE" callback speaking in QuarkXTensions' slang).
Thanks in advance for any help.

Luca Severini
Participating Frequently
December 5, 2006
Hi Luca,

You can try the following:

CAlert::SetShowAlerts(kFalse);

But this will switch off all error messages, so be careful when you call this (before opening the document - maybe with a document responder), and reactivate it after opening the document.

Regards,
Eugenio Andres.