Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Indenting Object Text using DXL
Topic Summary:
Created On: 6-Mar-2003 04:27
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 6-Mar-2003 04:27
User is offline View Users Profile Print this message


Paul Miller

Posts: 376
Joined: 2-Oct-2002

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
Report this to a Moderator Report this to a Moderator
 6-Mar-2003 05:00
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 6-Mar-2003 17:03
User is offline View Users Profile Print this message


Marc Battistello

Posts: 13
Joined: 19-Sep-2002

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 }
Report this to a Moderator Report this to a Moderator
 6-Mar-2003 17:13
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 25-Apr-2003 18:34
User is offline View Users Profile Print this message


Karen Sullivan

Posts: 1
Joined: 3-Dec-2002

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
Report this to a Moderator Report this to a Moderator
 30-Apr-2003 22:17
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

for obj in mod do
{ if (isSelected(obj))
{ // Object is selected by user. Do intent algorithm here
}
}
Report this to a Moderator Report this to a Moderator
 23-May-2003 18:51
User is offline View Users Profile Print this message


Cameron Poole

Posts: 12
Joined: 28-Feb-2003

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.

Report this to a Moderator Report this to a Moderator
 12-Jun-2003 15:04
User is offline View Users Profile Print this message


Cameron Poole

Posts: 12
Joined: 28-Feb-2003

This version of the script will not delete objects with embedded OLE files.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.