Subversion Repositories DevTools

Rev

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

Rev 2116 Rev 2132
Line 157... Line 157...
157
            np.Font.Size = 10;
157
            np.Font.Size = 10;
158
            np.Font.Bold = 0;
158
            np.Font.Bold = 0;
159
         }
159
         }
160
      }
160
      }
161
 
161
 
-
 
162
      public static void forceHeadingsToUse2_5cmTabStops()
-
 
163
      {
-
 
164
         object alignment = Word.WdTabAlignment.wdAlignTabLeft;
-
 
165
         object leader = Word.WdTabLeader.wdTabLeaderSpaces;
-
 
166
         Word.Style h = getStyle(EA_Constants.styleName_Heading6);
-
 
167
         if (h != null)
-
 
168
         {
-
 
169
            h.ParagraphFormat.TabStops.ClearAll();
-
 
170
            h.ParagraphFormat.TabStops.Add((float)2.5, ref alignment, ref leader);
-
 
171
         }
-
 
172
         h = getStyle(EA_Constants.styleName_Heading7);
-
 
173
         if (h != null)
-
 
174
         {
-
 
175
            h.ParagraphFormat.TabStops.ClearAll();
-
 
176
            h.ParagraphFormat.TabStops.Add((float)2.5, ref alignment, ref leader);
-
 
177
         }
-
 
178
         h = getStyle(EA_Constants.styleName_Heading8);
-
 
179
         if (h != null)
-
 
180
         {
-
 
181
            h.ParagraphFormat.TabStops.ClearAll();
-
 
182
            h.ParagraphFormat.TabStops.Add((float)2.5, ref alignment, ref leader);
-
 
183
         }
-
 
184
         h = getStyle(EA_Constants.styleName_Heading9);
-
 
185
         if (h != null)
-
 
186
         {
-
 
187
            h.ParagraphFormat.TabStops.ClearAll();
-
 
188
            h.ParagraphFormat.TabStops.Add((float)2.5, ref alignment, ref leader);
-
 
189
         }
-
 
190
      }
-
 
191
 
162
      /// <summary>
192
      /// <summary>
163
      /// This method is designed to correct problems that have been reported in the styles
193
      /// This method is designed to correct problems that have been reported in the styles
164
      /// contained in the input templates being used. These can be corrected programmatically
194
      /// contained in the input templates being used. These can be corrected programmatically
165
      /// much quicker than waiting for a fix to be done to the templates and having them re-deployed
195
      /// much quicker than waiting for a fix to be done to the templates and having them re-deployed
166
      /// to the shared drive where MS-Word templates are retrieved from by most users.
196
      /// to the shared drive where MS-Word templates are retrieved from by most users.