Book a Demo

Author Topic: Using foreign heading styles in an rtf template  (Read 4486 times)

MariusS

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Using foreign heading styles in an rtf template
« on: July 21, 2011, 09:00:14 pm »
I'm working for a Germany based company and would like to exort my EA models with the rtf export.
The word documents we use for other purposes all include heading stlyes that are named in German: "Überschrift 1, "Überschift 2" and so on.
I would like to use the same style names for the headings in the rtf template I'm using for the EA exports. I created them manually but now I have the following problem:

During the export EA will not automatically swith to subheadings if he moves from one element level to a child element. So instead of this:

1. Package
1.1 Subpackage (automatic swith to heading 2 here)
1.1.1 Class

the exporter will create this:

1. Package
2. Subpackage (no swith of heading level)
2.1 Class

Is there a correct way to tell EA is is supposed to use the styles "Überschrift 1, "Überschift 2" instead of "heading 1", "heading 2" and so on?
« Last Edit: July 21, 2011, 09:07:55 pm by MariusS »

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Re: Using foreign heading styles in an rtf templat
« Reply #2 on: July 26, 2011, 03:44:38 pm »
Create an empty rtf using word with your own collection of styles and headings and import it to ea and generate your template out of this imported file. Maybe you need to take the english names for heading, but you will get the same-looking result than the german template.

I'm working in a german company and did this for our templates.

The templates without automation and with no real functionality are working with this templates, but unfortunately nothing which is a bit more complex.

Best reagrds,

Stefan
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website

MWensOrdina

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Using foreign heading styles in an rtf templat
« Reply #3 on: July 28, 2011, 01:44:34 am »
I've had the same problem and it took me a while to solve. Apparently you can also tweek the rtf.dot-file to get this working, but what worked for me was not to create new heading styles, but to modify the existing pre-defined ones (heading1 etc) to the style I wanted. This had the added bonus of them showing up in the index, which self-defined headers did not.
If generating through a master document-model document structure make sure the style of the headers in all the model documents is exactly the same, otherwise the problem will occur as well

MariusS

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Using foreign heading styles in an rtf templat
« Reply #4 on: August 02, 2011, 07:22:25 pm »
Thanks for your help so far. So my current assumption is that the names "Heading 1" and so on are some how hard coded into the rtf exporter of EA and you are not supposed to change those names.
So to make use of the rtf export I will have to change our templates so that they use the English names instead of the German ones...

I still have to figure out whether I want to blame Sparx for implementing such a restrictive export or MS Word for relying on language specific style names.  >:(
Try to imagine an internet with language specific tags <ü1>Hallo Welt</ü1>.  :'(

Regards
Marius

Michael Proske

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Using foreign heading styles in an rtf templat
« Reply #5 on: August 10, 2011, 02:48:32 am »
Yes the names are really hard coded. Also some others like Normal and also the bulleted list and table headers. Don't change them. I also used Überschrift 1 but i had always problems with the generation.