/* This attribute DXL was generated on 05.07.2011 18:52:51. */ // prevent dxl timeout dialog pragma runLim, 0 Buffer bsz = create void endAttributeDXL() { if (!null obj && attrDXLName != "") { obj.attrDXLName = richText tempStringOf(bsz) } delete bsz } void display(string s) { bsz += s bsz += "\n" } void displayRich(string s) { bsz += s bsz += "\n" } //********** // DXL generated by DOORS traceability wizard on 20 June 2011. // Wizard version 2.0, DOORS version 9.2.0.0 pragma runLim, 0 string limitModules[1] = {"3daadaf404585fe2-000127a1"} const int indentStep = 360 Buffer indentBuff = create Buffer lineBuff = create lineBuff = "" string indentAllParagraphs(string s, bool addBullets, int addedIndent) { int numParas = 0 RichTextParagraph rtp indentBuff = s for rtp in s do { numParas++ Buffer t = create() t += rtp.text if (length(t) > 0 ) { bool hasBullet = rtp.isBullet int indentLev = rtp.indentLevel indentBuff = applyTextFormattingToParagraph(indentBuff, hasBullet, indentLev+addedIndent, numParas) } delete(t) } return (numParas == 0 ? "" : tempStringOf(indentBuff)) } int lines[1] = {0} void adjustLines(int depth, showAtDepth) { int count for (count = 0; count < 1; count++) { while (lines[depth-1] < lines[count]) { if (depth == showAtDepth) displayRich("\\pard " " ") lines[depth-1]++ } } } void showIn(Object o, int depth) { Link l LinkRef lr ModName_ otherMod = null Module linkMod = null ModuleVersion otherVersion = null Object othero string disp = null string s = null string plain, plainDisp int plainTextLen int count bool doneOne = false string linkModName = "*" for lr in all(o<-linkModName) do { otherMod = module (sourceVersion lr) if (!null otherMod) { if ((!isDeleted otherMod) && (null data(sourceVersion lr))) { if (!equal(getItem otherMod, (itemFromID limitModules[depth-1]))) continue load((sourceVersion lr),false) } } } for l in all(o<-linkModName) do { otherVersion = sourceVersion l otherMod = module(otherVersion) if (null otherMod || isDeleted otherMod) continue if (!equal(getItem otherMod, (itemFromID limitModules[depth-1]))) continue othero = source l if (null othero) { load(otherVersion,false) } othero = source l if (null othero) continue if (isDeleted othero) continue int oldLines = lines[depth-1] doneOne = true { displayRich tempStringOf applyTextFormattingToParagraph(lineBuff, false, (depth-1) * indentStep, 0) s = probeRichAttr_(othero,"Req.ID", false) s = indentAllParagraphs(s, false, (depth-1) * indentStep) if (s == "") displayRich("\\pard " " ") else displayRich("\\pard " s) } lines[depth-1] += 1 if ( depth < 1 ) { showIn(othero, depth+1) } } } showIn(obj,1) delete indentBuff delete lineBuff //********** endAttributeDXL() //********** endAttribute