Article View: adobe.framemaker.sgml
Article #735Re: FDK 7.2 : Get the ID of the object before MarkerID
From: Russ Ward
Date: Tue, 23 Sep 2008 16:14
Date: Tue, 23 Sep 2008 16:14
42 lines
1623 bytes
1623 bytes
Hi Alexandre, Interesting question. Do you want the ID of the parent paragraph? I think you should be able to get that by querying FP_TextLoc property of the marker. Something like: F_TextLocT tl; F_ObjHandleT pgfId; ... tl = F_ApiGetId(docId, markerId, FP_TextLoc); /* then... */ pgfId = tl.objId /* or just use tl.objId as is */ ... If you are looking for the text itself, then you probably need to do something like: F_TextItemsT textitems; F_TextLocT tl; F_TextRangeT tr; StringT text; /* find the paragraph ID */ tl = F_ApiGetId(docId, markerId, FP_TextLoc); /* get the text items up to the marker */ tr.beg.objId = tr.end.objId = tl.objId; tr.beg.offset = 0; tr.end.offset = tl.offset; textitems = F_ApiGetTextForRange(docId, &tr, FTI_String); /* get the last text string before the marker from the textitems */ text = F_StrCopyString(textitems.val[textitems.len - 1].u.sdata); ... Note that I didn't test any of this, just some ideas. Russ
Technical Details
Message-ID:
<59b68f18.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!fu-berlin.de!news4us.nl!webcrossingReferences:
<59b68f18.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: fcc08,16fee72d561c0d42 X-Google-Attributes: gidfcc08,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Russ Ward" <russ@weststreetconsulting.com> Newsgroups: adobe.framemaker.sgml Subject: Re: FDK 7.2 : Get the ID of the object before MarkerID Message-ID: <59b68f18.0@webcrossing.la2eafNXanI> Date: Tue, 23 Sep 2008 09:14:44 -0700 References: <59b68f18.-1@webcrossing.la2eafNXanI> Lines: 45 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!fu-berlin.de!news4us.nl!webcrossing