Skip navigation
Currently Being Moderated

IScrapSuite constructor

Jul 16, 2012 4:43 AM

Hi list,

 

What is the IScrapSuite constructor for an IFrameList? The only examples i found in the docs and on the web, all start from a selection:

InterfacePtr<IScrapSuite> scrapSuite (static_cast<IScrapSuite*>(Utils<ISelectionUtils>()->QuerySuite(IID_ISCRAPSUITE, selectionMgr)));

Since my code is used in IndesignServer, there is no "selection" concept (unless i'm mistaken).

What i actually want to do is duplicate all threaded textframes from an ITextModel to another layer.

I tried the kDuplicateCmdBoss, which works fine except for single textframes where the text is "bottom-aligned". In that case the duplicated textboxes are overset for some reason.

I reported this to Adobe and they suggested to use the IScrapSuite instead. But the example they provided is intended for the Indesign desktop version and starts from a selection.

 

Thanks for any advice!

 

Bart Devos.

 
Replies
  • Currently Being Moderated
    Jul 16, 2012 1:36 PM   in reply to Bart Devos

    Suites need not be bound to a selection, for example the scripting text objects are suites.

    Even though I have not tried that on InDesign Server, you should get along with ::CreateObject(kLayoutSuiteBoss), set the IID_ILAYOUTTARGET and grab the IScrapSuite from there.

     

    Dirk

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points