Exemple #1
0
 /// <summary>
 /// Notifies the ComManager that we are about to enter linked object mode.
 /// </summary>
 /// <remarks>
 /// We do the following here:
 /// <para>
 /// We revoke the class factory of the GraphDocumentComObject. If this is not done and a user copies an embedded graph object, the container application would try
 /// to open the graph mini project just here in this application instance, because the class factory of the GraphDocumentComObject is still active. In order to avoid this,
 /// the class factory of the GraphDocumentComObject is revoked here (if it is active).
 /// </para>
 /// </remarks>
 public void EnterLinkedObjectMode()
 {
     if (null != _classFactoryOfDocumentComObject)
     {
         _classFactoryOfDocumentComObject.RevokeClassObject();
         ComDebug.ReportInfo("{0}.EnterLinkedObjectMode Revoked: {1}", GetType().Name, _classFactoryOfDocumentComObject.GetType().Name);
         _classFactoryOfDocumentComObject = null;
     }
 }