🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.indesign.sdk
Article #72

ActionFilter problem

#72
From: chle
Date: Mon, 16 Mar 2009 14:29
12 lines
1794 bytes
I'm trying to override the four actions under the Main:&Edit :kInCopyMenu:ExportMenu menu (kExportLayerToICActionID, kExportAllStoriesToICActionID, kExportAllGraphicsToICActionID, kExportAllItemsToICActionID). The action component class for those actions is kInCopyExportMenuComponentBoss, so I've set my ActionFilterHelper like this:

ActionFilterHelper exportAllGraphicsToICAction;
exportAllGraphicsToICAction.SetFilterActionID(kTrue, kExportAllGraphicsToICActionID, kExportAllGraphicsToICActionID, kTrue);
exportAllGraphicsToICAction.SetFilterComponentClass(kTrue, kInCopyExportMenuComponentBoss, kMyActionComponentBoss);
exportAllGraphicsToICAction.SetFilterEnablingType(kTrue, kDisableIfLowMem, kCustomEnabling);
gActionFilterHelpers.push_back(exportAllGraphicsToICAction);
...

However the redirecting from kInCopyExportMenuComponentBoss to kMyActionComponentBoss doesnt work. Its probably down to the fact that unlike other action component bosses kInCopyExportMenuComponentBoss is actually defined in another plugin (InCopyExportUI). Coz when I searched for kInCopyExportMenuComponentBoss I've found it in the SDKSamples project incopyexportui.

Any ideas how to get this to work?
Technical Details
Message-ID: <59b838ee.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f63e9,b67db5da720a351f,start
X-Google-Attributes: gidf63e9,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: chle@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.indesign.sdk
Subject: ActionFilter problem
Message-ID: <59b838ee.-1@webcrossing.la2eafNXanI>
Date: Mon, 16 Mar 2009 07:29:30 -0700
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit