🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.indesign.sdk
Article #148

ILinkFacade::DeleteLinks vs kRemoveLinksCmdBoss

#148
From: doug_norton
Date: Fri, 20 Mar 2009 16:53
16 lines
1163 bytes
I've been using ILinkFacade::DeleteLinks to remove links but since I now need to remove links without undo I need to construct the command myself.

InterfacePtr<ICommand> removeDataLink (CmdUtils::CreateCommand(kRemoveLinksCmdBoss));

if(removeDataLink)
{
    removeDataLink->SetItemList(links);
    removeDataLink->SetUndoability(ICommand::kAutoUndo);
    err = CmdUtils::ProcessCommand(removeDataLink);
}

But this doesn't work if I just replace the above with

err = iLinkFacade->DeleteLinks(links, true, true);

What am I missing?
Technical Details
Message-ID: <59b85c81.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f63e9,3ea11950ec44569b,start
X-Google-Attributes: gidf63e9,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: doug_norton@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.indesign.sdk
Subject: ILinkFacade::DeleteLinks vs kRemoveLinksCmdBoss
Message-ID: <59b85c81.-1@webcrossing.la2eafNXanI>
Date: Fri, 20 Mar 2009 09:53:09 -0700
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Original-Lines: 19