Article View: adobe.indesign.sdk
Article #4322Re: Table Selection
From: Ken_Sadahiro
Date: Tue, 22 Jun 2004 06:52
Date: Tue, 22 Jun 2004 06:52
10 lines
1448 bytes
1448 bytes
I am not sure why you are using ITableSuite within your ASB/CSB code, when ITableSuite is already a selection suite interface. If you want to call ITableSuite::CanMergeCells and MergeCells, you can simply query for ITableSuite using ISelectionUtils, and call those methods from anywhere (e.g. Action Component). InterfacePtr<ITableSuite>tableSuite((ITableSuite*)Utils<ISelectionUtils>()->QuerySuite(ITableSuite::kDefaultIID)); if (tableSuite->CanMergeCells()) tableSuite->MergeCells(); If there is a need for you to implement your own ASB/CSB, then you can query for ITableTarget to get the cells that are currently selected, and process a command. (But since ITableSuite already has CanMergeCells and MergeCells methods, it still seems unclear why you would need to wrap those calls in your own ASB/CSB) Refer to the Selection technote for details.
Technical Details
Message-ID:
<3bb4b618.0@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!newsfeed.arcor.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<3bb4b618.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f63e9,6870eb26d743f0fa X-Google-Attributes: gidf63e9,public From: Ken_Sadahiro@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!newsfeed.arcor.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.indesign.sdk Subject: Re: Table Selection Message-ID: <3bb4b618.0@webx.la2eafNXanI> Date: Mon, 21 Jun 2004 23:52:34 -0700 References: <3bb4b618.-1@webx.la2eafNXanI> Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit