| Line 79... |
Line 79... |
| 79 |
}
|
79 |
}
|
| 80 |
return s;
|
80 |
return s;
|
| 81 |
}
|
81 |
}
|
| 82 |
|
82 |
|
| 83 |
|
83 |
|
| - |
|
84 |
public void createElementDetailsStyles()
|
| - |
|
85 |
{
|
| - |
|
86 |
Word.Style s_Body1 = getStyle(EA_Constants.styleName_Body1);
|
| - |
|
87 |
if (s_Body1 != null)
|
| - |
|
88 |
{
|
| - |
|
89 |
// A couple of indented body 1 styles
|
| - |
|
90 |
Word.Style s_B1_3_5 = createParagrapghStyle(EA_Constants.styleName_Body1_Left_3_5cm, EA_Constants.styleName_Body1_Left_3_5cm, s_Body1);
|
| - |
|
91 |
s_B1_3_5.ParagraphFormat.LeftIndent = WordApp.CentimetersToPoints((float)3.5);
|
| - |
|
92 |
|
| - |
|
93 |
Word.Style s_B1_4_5 = createParagrapghStyle(EA_Constants.styleName_Body1_Left_4_5cm, EA_Constants.styleName_Body1_Left_4_5cm, s_Body1);
|
| - |
|
94 |
s_B1_4_5.ParagraphFormat.LeftIndent = WordApp.CentimetersToPoints((float)4.5);
|
| - |
|
95 |
|
| - |
|
96 |
// A couple of pseudo-heading styles
|
| - |
|
97 |
Word.Style s_B1_2_5_Italic = createParagrapghStyle(EA_Constants.styleName_Body1_Left_2_5cm_Italic, EA_Constants.styleName_Body1_Left_3_5cm, s_Body1);
|
| - |
|
98 |
s_B1_2_5_Italic.ParagraphFormat.LeftIndent = WordApp.CentimetersToPoints((float)2.5);
|
| - |
|
99 |
s_B1_2_5_Italic.Font.Italic = 1;
|
| - |
|
100 |
s_B1_2_5_Italic.Font.Bold = 1;
|
| - |
|
101 |
|
| - |
|
102 |
Word.Style s_B1_3_5_Italic = createParagrapghStyle(EA_Constants.styleName_Body1_Left_3_5cm_Italic, EA_Constants.styleName_Body1_Left_4_5cm, s_Body1);
|
| - |
|
103 |
s_B1_3_5_Italic.ParagraphFormat.LeftIndent = WordApp.CentimetersToPoints((float)3.5);
|
| - |
|
104 |
s_B1_3_5_Italic.Font.Italic = 1;
|
| - |
|
105 |
s_B1_3_5_Italic.Font.Bold = 1;
|
| - |
|
106 |
|
| - |
|
107 |
// Style for use when detailing parameter descriptions
|
| - |
|
108 |
Word.Style s_ParamDesc = createParagrapghStyle(EA_Constants.stylename_Parameter_Description, EA_Constants.styleName_Body1, s_Body1);
|
| - |
|
109 |
s_ParamDesc.ParagraphFormat.TabStops.ClearAll();
|
| - |
|
110 |
object alignment = Word.WdTabAlignment.wdAlignTabLeft;
|
| - |
|
111 |
object leader = Word.WdTabLeader.wdTabLeaderSpaces;
|
| - |
|
112 |
s_ParamDesc.ParagraphFormat.LeftIndent = WordApp.CentimetersToPoints((float)9.0);
|
| - |
|
113 |
s_ParamDesc.ParagraphFormat.TabStops.Add( WordApp.CentimetersToPoints((float)9.0), ref alignment, ref leader );
|
| - |
|
114 |
s_ParamDesc.ParagraphFormat.FirstLineIndent = WordApp.CentimetersToPoints((float)-5.5);
|
| - |
|
115 |
}
|
| - |
|
116 |
}
|
| - |
|
117 |
|
| 84 |
/// <summary>
|
118 |
/// <summary>
|
| 85 |
/// Creates the styles needed for generating requirement documentation, if they do not
|
119 |
/// Creates the styles needed for generating requirement documentation, if they do not
|
| 86 |
/// already exist.
|
120 |
/// already exist.
|
| 87 |
/// </summary>
|
121 |
/// </summary>
|
| 88 |
public void createRequirementStylesIfNecessary()
|
122 |
public void createRequirementStylesIfNecessary()
|