🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.framemaker.sgml
Article #752

Re: Problem with F_ApiAddText() after F_ApiPaste()

#752
From: Stanislav_Kurik
Date: Thu, 07 Aug 2008 08:33
7 lines
1512 bytes
Hi Rick,

thank you for response. What I was trying to do is copy&pasting cross-reference from one place to another and then adding some text behind it.

Eventually, I found the solution. As I had already written, the paragraph ID is changed after the cross-reference is pasted into it. What I tried first was to save paragraph's UID and then obtain its new ID by calling F_ApiGetUniqueObject() but it didn't work (this function returned 0).

Simple solution is to call F_ApiGetTextRange(FV_Session, docId, FP_TextSelection) after pasting the cross-reference and extract paragraph ID from the returned F_TextRangeT structure.
Technical Details
Message-ID: <59b60d9f.2@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!newsfeed.straub-nv.de!newsfeed01.sul.t-online.de!t-online.de!feeder.visyn.net!feeder.news-service.com!tudelft.nl!txtfeed1.tudelft.nl!news4us.nl!webcrossing
References: <59b60d9f.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcc08,7ddfef38ebf755b2
X-Google-Attributes: gidfcc08,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Stanislav_Kurik@adobeforums.com
Newsgroups: adobe.framemaker.sgml
Subject: Re: Problem with F_ApiAddText() after F_ApiPaste()
Message-ID: <59b60d9f.2@webcrossing.la2eafNXanI>
Date: Thu, 7 Aug 2008 01:33:39 -0700
References: <59b60d9f.-1@webcrossing.la2eafNXanI>
Lines: 6
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!newsfeed.straub-nv.de!newsfeed01.sul.t-online.de!t-online.de!feeder.visyn.net!feeder.news-service.com!tudelft.nl!txtfeed1.tudelft.nl!news4us.nl!webcrossing
X-Original-Lines: 14
X-Original-Bytes: 1263