Subversion Repositories DevTools

Rev

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

Rev 2116 Rev 2122
Line 200... Line 200...
200
         this.label2.TabIndex = 8;
200
         this.label2.TabIndex = 8;
201
         this.label2.Text = "Output Document Name";
201
         this.label2.Text = "Output Document Name";
202
         // 
202
         // 
203
         // checkBox_WordVisibility
203
         // checkBox_WordVisibility
204
         // 
204
         // 
-
 
205
         this.checkBox_WordVisibility.Checked = true;
-
 
206
         this.checkBox_WordVisibility.CheckState = System.Windows.Forms.CheckState.Checked;
205
         this.checkBox_WordVisibility.Location = new System.Drawing.Point(8, 168);
207
         this.checkBox_WordVisibility.Location = new System.Drawing.Point(8, 168);
206
         this.checkBox_WordVisibility.Name = "checkBox_WordVisibility";
208
         this.checkBox_WordVisibility.Name = "checkBox_WordVisibility";
207
         this.checkBox_WordVisibility.Size = new System.Drawing.Size(256, 24);
209
         this.checkBox_WordVisibility.Size = new System.Drawing.Size(256, 24);
208
         this.checkBox_WordVisibility.TabIndex = 7;
210
         this.checkBox_WordVisibility.TabIndex = 7;
209
         this.checkBox_WordVisibility.Text = "Show MS-WORD During Construction";
211
         this.checkBox_WordVisibility.Text = "Show MS-WORD During Construction";
Line 224... Line 226...
224
         this.AcceptButton = this.button_generate;
226
         this.AcceptButton = this.button_generate;
225
         this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
227
         this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
226
         this.CancelButton = this.button_cancel;
228
         this.CancelButton = this.button_cancel;
227
         this.ClientSize = new System.Drawing.Size(784, 202);
229
         this.ClientSize = new System.Drawing.Size(784, 202);
228
         this.Controls.Add(this.checkBox_keep_on_top);
230
         this.Controls.Add(this.checkBox_keep_on_top);
229
         this.Controls.Add(this.checkBox_WordVisibility);
-
 
230
         this.Controls.Add(this.textBox_output_file);
231
         this.Controls.Add(this.textBox_output_file);
231
         this.Controls.Add(this.textBox_template);
232
         this.Controls.Add(this.textBox_template);
-
 
233
         this.Controls.Add(this.checkBox_WordVisibility);
232
         this.Controls.Add(this.label2);
234
         this.Controls.Add(this.label2);
233
         this.Controls.Add(this.label1);
235
         this.Controls.Add(this.label1);
234
         this.Controls.Add(this.button_view_output);
236
         this.Controls.Add(this.button_view_output);
235
         this.Controls.Add(this.button_generate);
237
         this.Controls.Add(this.button_generate);
236
         this.Controls.Add(this.button_cancel);
238
         this.Controls.Add(this.button_cancel);
Line 742... Line 744...
742
         {
744
         {
743
            MessageBox.Show("WARNING - Could not find linked package : " + linkedName );
745
            MessageBox.Show("WARNING - Could not find linked package : " + linkedName );
744
         }
746
         }
745
      }
747
      }
746
 
748
 
-
 
749
 
747
      /// <summary>
750
      /// <summary>
748
      /// This function processes a name link element. These are elements that point
751
      /// This function processes a name link element. These are elements that point
749
      /// (using a GUID) to a package, and the user has specified text names of sub-packages
752
      /// (using a GUID) to a package, and the user has specified text names of sub-packages
750
      /// within the package that they wish to have processed for document generation.
753
      /// within the package that they wish to have processed for document generation.
751
      /// This is a useful way of getting content when you cannot be sure that the GUIDs
754
      /// This is a useful way of getting content when you cannot be sure that the GUIDs
Line 1997... Line 2000...
1997
 
2000
 
1998
            Main.EA_Repository.WriteOutput( Main.GUI_OUTPUT_TAB_NAME, "", 0);
2001
            Main.EA_Repository.WriteOutput( Main.GUI_OUTPUT_TAB_NAME, "", 0);
1999
            Main.EA_Repository.WriteOutput( Main.GUI_OUTPUT_TAB_NAME, 
2002
            Main.EA_Repository.WriteOutput( Main.GUI_OUTPUT_TAB_NAME, 
2000
                                       String.Format( "Generating Document {0}", this.textBox_output_file.Text), 0 );
2003
                                       String.Format( "Generating Document {0}", this.textBox_output_file.Text), 0 );
2001
 
2004
 
2002
            // tell word not to show itself unless user has checked the option to say otherwise
2005
            // control word visibility based on checkbox user can modify
2003
            WordApp.Visible = this.checkBox_WordVisibility.Checked;
2006
            WordApp.Visible = this.checkBox_WordVisibility.Checked;
2004
   
2007
   
2005
            // disable VB macros from running in the document
2008
            // disable VB macros from running in the document
2006
            WordApp.AutomationSecurity = MsoAutomationSecurity.msoAutomationSecurityForceDisable;
2009
            WordApp.AutomationSecurity = MsoAutomationSecurity.msoAutomationSecurityForceDisable;
2007
            WordApp.DisplayAlerts = Word.WdAlertLevel.wdAlertsNone;
2010
            WordApp.DisplayAlerts = Word.WdAlertLevel.wdAlertsNone;