A small fix to see if our build works...

This commit is contained in:
RKrom 2015-11-06 22:48:19 +01:00
parent 0b60f4a471
commit f77d35e104

View file

@ -31,7 +31,6 @@ namespace GreenshotOfficePlugin {
public class OfficePlugin : IGreenshotPlugin { public class OfficePlugin : IGreenshotPlugin {
private static readonly log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(OfficePlugin)); private static readonly log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(OfficePlugin));
public static PluginAttribute Attributes; public static PluginAttribute Attributes;
private IGreenshotHost host;
public void Dispose() { public void Dispose() {
Dispose(true); Dispose(true);
@ -42,11 +41,8 @@ namespace GreenshotOfficePlugin {
//if (disposing) {} //if (disposing) {}
} }
public OfficePlugin() {
}
public IEnumerable<IDestination> Destinations() { public IEnumerable<IDestination> Destinations() {
IDestination destination = null; IDestination destination;
try { try {
destination = new ExcelDestination(); destination = new ExcelDestination();
} catch { } catch {
@ -100,12 +96,10 @@ namespace GreenshotOfficePlugin {
/// <summary> /// <summary>
/// Implementation of the IGreenshotPlugin.Initialize /// Implementation of the IGreenshotPlugin.Initialize
/// </summary> /// </summary>
/// <param name="host">Use the IGreenshotPluginHost interface to register events</param> /// <param name="pluginHost">Use the IGreenshotPluginHost interface to register events</param>
/// <param name="captureHost">Use the ICaptureHost interface to register in the MainContextMenu</param> /// <param name="myAttributes">My own attributes</param>
/// <param name="pluginAttribute">My own attributes</param>
/// <returns>true if plugin is initialized, false if not (doesn't show)</returns> /// <returns>true if plugin is initialized, false if not (doesn't show)</returns>
public virtual bool Initialize(IGreenshotHost pluginHost, PluginAttribute myAttributes) { public virtual bool Initialize(IGreenshotHost pluginHost, PluginAttribute myAttributes) {
this.host = (IGreenshotHost)pluginHost;
Attributes = myAttributes; Attributes = myAttributes;
return true; return true;
} }