Subversion Repositories DevTools

Rev

Rev 2116 | Rev 2126 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2116 Rev 2124
Line 66... Line 66...
66
      }
66
      }
67
 
67
 
68
 
68
 
69
      public static Word.Range appendAndSelectText(string wordText, string styleText, bool continuation )
69
      public static Word.Range appendAndSelectText(string wordText, string styleText, bool continuation )
70
      {
70
      {
71
         if (wordText.Length > 0)
71
         if (wordText != null && wordText.Length > 0)
72
         {
72
         {
73
            Word.Range WordRange = null;
73
            Word.Range WordRange = null;
74
            object startLocation;
74
            object startLocation;
75
            object endLocation;
75
            object endLocation;
76
 
76
 
Line 183... Line 183...
183
      }
183
      }
184
 
184
 
185
 
185
 
186
      public static string trimTrailingReturns(string s)
186
      public static string trimTrailingReturns(string s)
187
      {
187
      {
-
 
188
         if (s != null)
188
          return s.TrimEnd(trim_newlines);
189
            return s.TrimEnd(trim_newlines);
-
 
190
         else
-
 
191
            return null;
189
      }
192
      }
190
   
193
   
191
   
194
   
192
 
195
 
193
      public static string testSuiteName(EA.Element theElement)
196
      public static string testSuiteName(EA.Element theElement)
Line 289... Line 292...
289
      /// <summary>
292
      /// <summary>
290
      /// Generates the text for requirements.  
293
      /// Generates the text for requirements.  
291
      /// </summary>
294
      /// </summary>
292
      public static bool generateRequirementText( EA.Element theElement )
295
      public static bool generateRequirementText( EA.Element theElement )
293
      {
296
      {
294
         if ( theElement.Type.StartsWith("Requirement"))
297
         if (theElement.Type.StartsWith("Requirement"))
295
         {
298
         {
296
            string reqID = "";
299
            string reqID = "";
297
            string reqShortDesc = "";
300
            string reqShortDesc = "";
298
            string reqHeadingStyle ="";
301
            string reqHeadingStyle ="";
299
            string reqParaStyle = "";
302
            string reqParaStyle = "";
Line 415... Line 418...
415
               }
418
               }
416
            }
419
            }
417
 
420
 
418
            // Add requirement notes/body, if we have not already consumed them for the
421
            // Add requirement notes/body, if we have not already consumed them for the
419
            // short description
422
            // short description
420
            if (!doneNotes && theElement.Notes != null && theElement.Notes.Length > 0)
423
            if (!doneNotes && theElement.Notes != null && theElement.Notes.Length > 0 && !EA_DocGenOptions.optionValue(EA_DocGenOptions.boolean_options_e.SUPPRESS_REQUIREMENT_NOTES))
421
            {
424
            {
422
               Word.Range wr_body = appendAndSelectText( theElement.Notes, reqParaStyle );
425
               Word.Range wr_body = appendAndSelectText( theElement.Notes, reqParaStyle );
423
 
426
 
424
               // indent according to the number of dots in the tag
427
               // indent according to the number of dots in the tag
425
               if (numDots > 0)
428
               if (numDots > 0)