![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Indenting Object Text using DXL Topic Summary: Created On: 6-Mar-2003 04:27 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi,
This is repost of a previous submission in desperation for a solution !!! Does anyone know how to use DXL to apply indenting or outdenting to object text? DOORS V6.0 supports this via a toolbar icon but it can only be applied when editing within an object - I want to be able to apply indents to a selected range of objects such as a bullet list and apply a script to indent them all in one go - my users are a tad unimpressed with having to do it manually object by object . ![]() ------------------------------------------ Paul Miller Contractor - EuroCyber, Tenix Specification Practices Project, Nelson House, Williamstown, Victoria, Australia, 3016. E-mail: paul.miller@tenix.com ------------------------------------------ ------------------------- Paul Miller Specification Practices Specialist, EuroCyber, Melbourne, Australia. Mobile: +61 (0)418 135 103 Web Site: http://www.eurocyber.biz E-mail: miller@eurocyber.biz">pmiller@eurocyber.biz |
|
![]() |
|
![]() |
|
Paul,
The following method seems to consistently add an indent to existing text, but takes away the indent when applied to text that already has an indent. Object o = current Object o."Object Text" = richText( "\\li360" richTextFragment( richText( o."Object Text" ) ) ) I'll leave the final solution to you. I would add a routine to make sure that the text has no indent before adding the indent. ------------------------- Michael Sutherland michael@galactic-solutions.com http://galactic-solutions.com |
|
![]() |
|
![]() |
|
Does this only work in v6.0 or will it work in v5.2 also? Im trying it on some scripts in v5.2 and I cant get it to work but Im not sure if I have the syntaxt correct.
If you were to look at the rich text markup would it look something like this? {\li360 text to apply to } |
|
![]() |
|
![]() |
|
Marc,
The indent (and bulleting) functionality is only in DOORS 6.0 and above. As Paul has indicated, there is no documented way in DXL to add indents and bulleting, so we are doing our own research in the area. I hope Telelogic will provide a more official way to do such formatting in DXL, either through better documentation or new commands. ------------------------- Michael Sutherland michael@galactic-solutions.com http://galactic-solutions.com |
|
![]() |
|
![]() |
|
Paul-
When we import documents from Word, we capture styles of the document in an attribute called "Paragraph Style". I wrote a simple script to add tabs in front of object text with specific paragraph styles. Is this something you're looking for? ------------------------------------------------------ Onekki Christian Raytheon NCS St. Petersburg, FL Email: Onekki_M_Christian@Raytheon.com |
|
![]() |
|
![]() |
|
for obj in mod do
{ if (isSelected(obj)) { // Object is selected by user. Do intent algorithm here } } |
|
![]() |
|
![]() |
|
Here is a script that I use to apply indentation that mirrors the object hierachy (ie level 1 = no indent and level 2 = 1 indent etc..). I'm new to DXL so I'm sure there are better and easier ways to do the same task but this is just what I came up with when I had the problem.
Problems: 1 - Will remove embedded OLE objects 2 - Changes every object in the display set every time the script is run so your database will grow pretty fast if you are not using baselines. |
|
![]() |
|
![]() |
|
This version of the script will not delete objects with embedded OLE files.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Indenting Object Text using DXL
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.