![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Paragraph styles - how to use? Topic Summary: paragraph styles not covered by DOORS help Created On: 20-Dec-2006 13:41 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I have a specification in DOORS 7 that has had many objects added directly into DOORS and has been restructured a fair bit. When exporting to Word, the Word paragraph numbers are wrong.
For example in DOORS a heading object '4.2.2.5 Fault Detection' exists, but when exported to Word this becomes '4.3 Fault Detection'. When I look at the 'Paragraph Style' attribute the value is <InvalidTag Heading:Heading 2> which appears to explain why Word sees this as a level 2 heading. The other aspect is that all of the new objects entered directly into DOORS have no value for 'Paragraph Style'. The effect in an exported Word document is that some paragraphs (text objects) have Word style 'Normal' and others 'Body Text'. As Word experts advise against using the 'Normal' style, the use of Body Text is clearly preferable. My questions: Is Paragraph Style only assigned a value on import from Word? Does DOORS not adjust the Paragraph Style value when objects are moved? Having discovered this 'feature' (bug?) it would be useful to be able to correct this using DXL. For example automatically setting the Paragraph Style value appropriately for the Object Level if the object is a heading and to <InvalidTag Text:Body Text> if the object is text. As a complete DXL novice but with some programming experience how is the object type determined? What are the dangers of doing this using a script? TIA for any advice, comments or DXL fragments. Jim ------------------------- Jim Backus<BR>Ultra Electronics, Controls |
|
![]() |
|
![]() |
|
By default Object Headings are exported with the Word heading level that matches their Object Level.
Exported Object Text and other attributes default to 'Normal' unless Paragraph Style is set to a style that exists in the export document. (Provides a quick way of spotting uncontrolled paragraphs)
DOORS does not automatically adjust any styles except for Object Headings level (as above)
The styles name can be imported when importing text. The disadvantage is that if someone has customised the style on that paragraph you lose the change on export. So unless you have carefully controlled styles in your source documents, (and many aren't) then I find its better to not import them. Whether imported or not you can run a dxl script to set all object text paragraph styles to single defined style (say 'Body Text).
Example, (if it doesn't get scrambled) below. You can define different styles for different attributes of an object, but that's 'left as an exercise for the reader'.
// set visible objects paragraphstyle to 'Main Paragraph'
Assumptions
1) User has filtered display to only show the required objects.
2) User only wants one entry in paragraph style attribute.
*/
//--------------declarations----------
Module m = current
Object o = current
string s = ""
for o in all m do
{
s = "
|
|
![]() |
|
![]() |
|
If you want to use DOORS default formatting, then select not to use paragraph styles when generating a Word document.
|
|
![]() |
|
![]() |
|
Michael,
What formatting is applied in Word when using DOORS default formatting? ------------------------- Jim Backus<BR>Ultra Electronics, Controls |
|
![]() |
Telelogic DOORS
» General Discussion
»
Paragraph styles - how to use?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.