Skip to main content
Inspiring
June 21, 2007
Question

How can I obtain an interface pointer to the CSB text suite in a document without a layout window

  • June 21, 2007
  • 3 replies
  • 434 views
Hi

I create a document without a layout window. Now, in my code, I like to obtain the interface pointer to the text suite I defined in my fr file.

AddIn
{
kTextSuiteBoss,
kInvalidClass,
{
IID_IINDESIGNTEXTSUITE, kIndesignTextSuiteCSBImpl
}
},

But the interface pointer is always nil, if I have no layout window. The document is open, but without the layout window.

How can I obtain this interface pointer?

Thanks a lot for the support
Hans
This topic has been closed for replies.

3 replies

Inspiring
June 22, 2007
You cannot use Selection or CSB/ASB in NOT showInWindow Plug-in for InDesign or InDesign Server.
I am using ITextModel, IAttributeStrand, ITextModelCmds, ::BuildApplyTextAttrCmd, etc. with textrange in my plug-ins for InDesign Server.
You can get ITextModel from ITextFrame in CS2, ITextFrameColumn in CS3.
Known Participant
June 22, 2007
Hi,
To get a valid TextSelectionSuitePointer you must select a text range or the cursor must be blinking inside a text frame.

Thanks and Regards,
Yogpangjo.
June 21, 2007
As mentioned in other threads, you can't get any of the selection suites without a window. Depending on what you need to do, there may be other ways to accomplish it without using the selection architecture.