Example #1
0
 public AddInEntry(string typeName, string name, string description, AddInScope scope)
 {
     this._includeInMenu = false;
     this._name = name;
     this._description = description;
     this._typeName = typeName;
     this._scope = scope;
 }
Example #2
0
 private AddInEntry(SerializationInfo info, StreamingContext context)
 {
     this._includeInMenu = false;
     this._name = info.GetString("Name");
     this._description = info.GetString("Description");
     this._typeName = info.GetString("TypeName");
     this._scope = (AddInScope) info.GetInt32("Scope");
     this._includeInMenu = info.GetBoolean("IncludeInMenu");
 }
Example #3
0
 public AddInEntry(Type type)
 {
     this._includeInMenu = false;
     this._typeName = type.AssemblyQualifiedName;
     PluginAttribute attribute = Attribute.GetCustomAttribute(type, typeof(PluginAttribute), false) as PluginAttribute;
     if (attribute == null)
     {
         this._name = type.Name;
     }
     else
     {
         this._name = attribute.Name;
         this._description = attribute.Description;
     }
     if (typeof(DocumentAddIn).IsAssignableFrom(type))
     {
         this._scope = AddInScope.Document;
     }
     else
     {
         this._scope = AddInScope.Global;
     }
 }