I don't know about taged text, but I'd try ...
kSetLinkTextFilesCmdBoss "Don't Link Text Files"
IID_IUIDDATA => kDocWorkspaceBoss
IID_IBOOLDATA => kFalse
matching that checkbox in document preferences / file handling ...
Oops, I should have read to the bottom. No idea yet.
I'd forgotten about this particular problem, but here I am again as I still have no solution for it. On a number of documents, I am now seeing a number of frames contain a large number of links and I cannot see a way to access them to remove them (whether this be by changing the resource state, I don't know).
Earlier on I tried something simple by simply getting hold of ILinkManager and calling QueryLinks(). As expected it returned no links! Another aspect of this issue can be seen in the screenshot below - there are no links, yet the tooltip specifies that there are 2 unique links (I imported tagged text into the same frame twice).
I now have two projects using slightly different approaches to importing tagged text. One uses IImportSuite::DoImport() as mentioned before and the other uses IImportResourceCmdData\IReplaceCmdData. Both import with no problems apart from this annoying side-effect.
Has anyone got any ideas?
Thanks in Advance,
I came back to this problem last month and finally come up with a solution.
Having imported the tagged text file I set up a LinkResourceQuery and call its SetURI() method with the resource URI from my first post. That query is then passed to the ILinkManager method QueryResources(). I then take the results, build up a UIDList of ResourceIDs and then create a command using kLinkResourceDeleteCmdBoss.
Now every time I add tagged text to a frame from a temporary file, I don't accumulate missing links.