Article View: adobe.indesign.sdk
Article #4382Re: Can not use kAddDocToBookCmdBoss
From: Satoru_Fujimori
Date: Fri, 18 Jun 2004 01:05
Date: Fri, 18 Jun 2004 01:05
31 lines
1910 bytes
1910 bytes
kartika:
Hi,
My way is to get content list with kConstructContentCmdBoss to set IBookContentCmdData::SetContentList of kAddDocToBookCmdBoss.
First you should content list from your docpath and bookpath.
Then you can set this list to IBookContentCmdData::SetContentList.
//
UIDList construct_content(const char *bookPath,const char *docPath)
{
UIDList contentList;
InterfacePtr<ICommand> constructContentCmd(CmdUtils::CreateCommand(kConstructContentCmdBoss));
InterfacePtr<IBookContentCmdData> bookContentData(constructContentCmd,IID_IBOOKCONTENTCMDDATA);
PMString docPathString(docPath);
SysFile docSysFile = SDKUtilities::PMStringToSysFile(&docPathString);
K2Vector<SysFile> docSysList;
docSysList.push_back(docSysFile);
bookContentData->SetContentFile(docSysList);
PMString bookPathString(bookPath);
const SysFile bookSysFile = SDKUtilities::PMStringToSysFile(&bookPathString);
bookContentData->SetTargetBook(bookSysFile);
CmdUtils::ProcessCommand(constructContentCmd);
contentList = constructContentCmd->GetItemListReference();
return contentList;
}
Hope this helps.
Satoru Fujimori
KJ Systems,Inc.
Technical Details
Message-ID:
<3bb4a8aa.0@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<3bb4a8aa.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f63e9,271e3f1930e7ef16,start X-Google-Attributes: gidf63e9,public From: Satoru_Fujimori@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.indesign.sdk Subject: Re: Can not use kAddDocToBookCmdBoss Message-ID: <3bb4a8aa.0@webx.la2eafNXanI> Date: Thu, 17 Jun 2004 18:05:59 -0700 References: <3bb4a8aa.-1@webx.la2eafNXanI> Lines: 35 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit