Skip to main content
Participating Frequently
March 15, 2011
Question

IActionFilter::FilterAction called only once

  • March 15, 2011
  • 1 reply
  • 371 views

Hi everyone,

IActionFilter::FilterAction is called only on the first startup of InDesign. Then it is never called again so I am unable to store default action component for menu items. When my action component is called for these item I can't pass the call to original action component. Where is the problem?

Thanks,

Denis.

This topic has been closed for replies.

1 reply

Participating Frequently
March 23, 2011

Привет, пишу по русски, что бы никто не догадался.

        if (pActID && pComponentClass) {

           if (надо ли оно нам) {
                // Remember the original handler in a persistent singleton.
                InterfacePtr<IApplication> pApp(gSession->QueryApplication());
                InterfacePtr<IMapActionID2TheirHandlers> pStorage(pApp, IID_IMapActionIDs2TheirHandlers); //Персист AddIn в kAppBoss

                pStorage->RegisterOrigCBHandler(*pActID, *pComponentClass);
               
                *pComponentClass = kТвойActionComponentBoss;                    // tell IC that this CB should be dispatched to our handler
            }
        }

Отправил лично сообщение. Аська 55006453.