CrossRefMarker problem


hello, working crossrefmarker element.

in structure view, crossrefmarker show as:
(refer test1 test2 test3 in chapter 1, section 2, additional information.)

here code have:

case sw_evt_xref:

xrefid = f_apigetid(docid, eventp->fm_elemid, fp_object);
xreffile= f_apigetstring(docid, xrefid, fp_xreffile);

xrefsrctext = f_apigetstring(docid, xrefid, fp_xrefsrctext);


//get text range
tr = f_apigettextrange(docid, xrefid, fp_textrange);

//get text
textitems = f_apigettextforrange(docid, &tr, fti_string);

o/p of xrefsrctext= babegedb: title(level1): test1 test2 test3
o/p of textitems= (refer

i want capture entire text of crossrefmarker element i.e "(refer test1 test2 test3 in chapter 1, section 2, additional information.)"

any pointers on how can done appreciated.

thanks...

guarav,

are sure text items terminate @ "refer to"? in other words, textitemst structure have 1 item (ie, textitems.len == 1)? if there type of text item such line break, split string, resulting in multiple text items fti_string type. whenever retrieve textitems purpose of getting string, run textitemst structure through concatenation function afterwards steps through each item , combines fti_strings single string. in summary, when retrieving text, don't assume textitems.val[0] entire string.

russ


More discussions in FrameMaker Structured


adobe

Comments