diff --git a/Source/ClientApplication/ClientApplication.csproj b/Source/ClientApplication/ClientApplication.csproj
index 02492051d9..e285cd06e9 100644
--- a/Source/ClientApplication/ClientApplication.csproj
+++ b/Source/ClientApplication/ClientApplication.csproj
@@ -28,7 +28,6 @@
-
diff --git a/Source/NetOffice.sln b/Source/NetOffice.sln
index 76275dc3b5..286f80463e 100644
--- a/Source/NetOffice.sln
+++ b/Source/NetOffice.sln
@@ -43,8 +43,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MSComctlLibApi", "MSComctlL
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MSDATASRCApi", "MSDATASRC\MSDATASRCApi.csproj", "{9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PublisherApi", "Publisher\PublisherApi.csproj", "{044A2BC3-7F84-4BEC-8B99-9E3432FAD88E}"
-EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetOffice.Tests", "NetOffice.Tests\NetOffice.Tests.csproj", "{67372CD1-E220-44DA-AB36-F489A593923C}"
EndProject
Global
@@ -110,10 +108,6 @@ Global
{9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9D83E8F2-4EFD-4A2E-88CE-9F5943620DB6}.Release|Any CPU.Build.0 = Release|Any CPU
- {044A2BC3-7F84-4BEC-8B99-9E3432FAD88E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {044A2BC3-7F84-4BEC-8B99-9E3432FAD88E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {044A2BC3-7F84-4BEC-8B99-9E3432FAD88E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {044A2BC3-7F84-4BEC-8B99-9E3432FAD88E}.Release|Any CPU.Build.0 = Release|Any CPU
{67372CD1-E220-44DA-AB36-F489A593923C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{67372CD1-E220-44DA-AB36-F489A593923C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{67372CD1-E220-44DA-AB36-F489A593923C}.Release|Any CPU.ActiveCfg = Release|Any CPU
diff --git a/Source/NetOffice/KeyTokens.txt b/Source/NetOffice/KeyTokens.txt
index 4e4c774a26..826e86a05b 100644
--- a/Source/NetOffice/KeyTokens.txt
+++ b/Source/NetOffice/KeyTokens.txt
@@ -11,5 +11,4 @@ OWC10Api, Version=1.8.1.0, Culture=neutral, PublicKeyToken=a2b945645f1c78b9
PowerPointApi, Version=1.8.1.0, Culture=neutral, PublicKeyToken=f3aefb8851e52dd2
VBIDEApi, Version=1.8.1.0, Culture=neutral, PublicKeyToken=931cec8882205047
WordApi, Version=1.8.1.0, Culture=neutral, PublicKeyToken=f66d74591aaf8089
-PublisherApi, Version=1.8.1.0, Culture=neutral, PublicKeyToken=2133a4c2cfc56bf6
IExcelApi, Version=1.8.1.0, Culture=neutral, PublicKeyToken=c507a5667bd1b6bd
\ No newline at end of file
diff --git a/Source/NetOffice/Loader/CurrentAppDomain.cs b/Source/NetOffice/Loader/CurrentAppDomain.cs
index ccc812f8f8..4966a6f57d 100644
--- a/Source/NetOffice/Loader/CurrentAppDomain.cs
+++ b/Source/NetOffice/Loader/CurrentAppDomain.cs
@@ -16,7 +16,6 @@ internal class CurrentAppDomain
private static readonly string[] _assemblyNames = new string[] {
"OfficeApi.dll", "ExcelApi.dll", "WordApi.dll",
"OutlookApi.dll", "PowerPointApi.dll", "AccessApi.dll",
- "PublisherApi.dll",
"VBIDEApi.dll"
};
#endregion
diff --git a/Source/Office/Tools/ApplicationIdentifiers.cs b/Source/Office/Tools/ApplicationIdentifiers.cs
index 72fc623630..7c4e1f5c78 100644
--- a/Source/Office/Tools/ApplicationIdentifiers.cs
+++ b/Source/Office/Tools/ApplicationIdentifiers.cs
@@ -49,12 +49,7 @@ public enum ApplicationType
///
/// MS Project
///
- MS_Project = 7,
-
- ///
- /// Publisher
- ///
- Publisher = 8
+ MS_Project = 7
}
static ApplicationIdentifiers()
@@ -65,7 +60,6 @@ static ApplicationIdentifiers()
PowerPoint = new Guid("91493442-5A91-11CF-8700-00AA0060263B");
Access = new Guid("68CCE6C0-6129-101B-AF4E-00AA003F0F07");
MS_Project = new Guid("00020AFF-0000-0000-C000-000000000046");
- Publisher = new Guid("0002123E-0000-0000-C000-000000000046");
}
///
@@ -98,11 +92,6 @@ static ApplicationIdentifiers()
///
public static Guid MS_Project { get; private set; }
- ///
- /// 0002123E-0000-0000-C000-000000000046
- ///
- public static Guid Publisher { get; private set; }
-
///
/// Compare the id with application interface id's.
/// (Typical you got with comProxy.GetType().GUID)
@@ -123,8 +112,6 @@ public static ApplicationType IsApplication(Guid id)
return ApplicationType.Access;
if (id == MS_Project)
return ApplicationType.MS_Project;
- if (id == Publisher)
- return ApplicationType.Publisher;
return ApplicationType.None;
}
diff --git a/Source/Office/Tools/MultiRegisterAttribute.cs b/Source/Office/Tools/MultiRegisterAttribute.cs
index 496715eedd..d20ca3f143 100644
--- a/Source/Office/Tools/MultiRegisterAttribute.cs
+++ b/Source/Office/Tools/MultiRegisterAttribute.cs
@@ -31,11 +31,6 @@ public enum RegisterIn
/// MS Access in any version
///
Access = 4,
-
- ///
- /// MS Publisher
- ///
- Publisher = 7,
}
///
diff --git a/Source/Publisher/AssemblyInfo.cs b/Source/Publisher/AssemblyInfo.cs
deleted file mode 100644
index 5f8ed7d6ed..0000000000
--- a/Source/Publisher/AssemblyInfo.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-using NetOffice;
-using NetOffice.Attributes;
-
-/*
- Contains the following Type Libraries:
- Name - Description - SupportByVersion
- Publisher - Microsoft.Office.Interop.Publisher, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C - 14
- Publisher - Microsoft Publisher 15.0 Object Library - 15
- Publisher - Microsoft Publisher 16.0 Object Library - 16
-*/
-
-[assembly: PrimaryInteropAssembly(1, 0)]
-[assembly: ImportedFromTypeLib("Publisher")]
-[assembly: Guid("0002123C-0000-0000-C000-000000000046")]
-[assembly: NetOfficeAssemblyAttribute("1.8.1.0")]
-[assembly: Dependency("OfficeApi.dll", LoadHint.Default)]
-[assembly: Dependency("NetOffice.dll", LoadHint.Default)]
-
-
-/*
-Alias Table
-
-*/
\ No newline at end of file
diff --git a/Source/Publisher/Classes/Application.cs b/Source/Publisher/Classes/Application.cs
deleted file mode 100644
index e7a9496f46..0000000000
--- a/Source/Publisher/Classes/Application.cs
+++ /dev/null
@@ -1,829 +0,0 @@
-using System;
-using NetRuntimeSystem = System;
-using System.ComponentModel;
-using NetOffice.Attributes;
-using NetOffice.CollectionsGeneric;
-
-namespace NetOffice.PublisherApi
-{
- #region Delegates
-
- #pragma warning disable
- public delegate void Application_WindowActivateEventHandler(NetOffice.PublisherApi.Window wn);
- public delegate void Application_WindowDeactivateEventHandler(NetOffice.PublisherApi.Window wn);
- public delegate void Application_WindowPageChangeEventHandler(NetOffice.PublisherApi.View vw);
- public delegate void Application_QuitEventHandler();
- public delegate void Application_NewDocumentEventHandler(NetOffice.PublisherApi._Document doc);
- public delegate void Application_DocumentOpenEventHandler(NetOffice.PublisherApi._Document doc);
- public delegate void Application_DocumentBeforeCloseEventHandler(NetOffice.PublisherApi._Document doc, ref bool cancel);
- public delegate void Application_MailMergeAfterMergeEventHandler(NetOffice.PublisherApi._Document doc);
- public delegate void Application_MailMergeAfterRecordMergeEventHandler(NetOffice.PublisherApi._Document doc);
- public delegate void Application_MailMergeBeforeMergeEventHandler(NetOffice.PublisherApi._Document doc, Int32 startRecord, Int32 endRecord, ref bool cancel);
- public delegate void Application_MailMergeBeforeRecordMergeEventHandler(NetOffice.PublisherApi._Document doc, ref bool cancel);
- public delegate void Application_MailMergeDataSourceLoadEventHandler(NetOffice.PublisherApi._Document doc);
- public delegate void Application_MailMergeWizardSendToCustomEventHandler(NetOffice.PublisherApi._Document doc);
- public delegate void Application_MailMergeWizardStateChangeEventHandler(NetOffice.PublisherApi._Document doc, Int32 fromState);
- public delegate void Application_MailMergeDataSourceValidateEventHandler(NetOffice.PublisherApi._Document doc, ref bool handled);
- public delegate void Application_MailMergeInsertBarcodeEventHandler(NetOffice.PublisherApi._Document doc, ref bool okToInsert);
- public delegate void Application_MailMergeRecipientListCloseEventHandler(NetOffice.PublisherApi._Document doc);
- public delegate void Application_MailMergeGenerateBarcodeEventHandler(NetOffice.PublisherApi._Document doc, ref string bstrString);
- public delegate void Application_MailMergeWizardFollowUpCustomEventHandler(NetOffice.PublisherApi._Document doc);
- public delegate void Application_BeforePrintEventHandler(NetOffice.PublisherApi._Document doc, ref bool cancel);
- public delegate void Application_AfterPrintEventHandler(NetOffice.PublisherApi._Document doc);
- public delegate void Application_ShowCatalogUIEventHandler();
- public delegate void Application_HideCatalogUIEventHandler();
- #pragma warning restore
-
- #endregion
-
- ///
- /// CoClass Application
- /// SupportByVersion Publisher, 14,15,16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- [EntityType(EntityType.IsCoClass), ComProgId("Publisher.Application"), ModuleProvider(typeof(GlobalHelperModules.GlobalModule))]
- [EventSink(typeof(Events.ApplicationEvents_SinkHelper))]
- [ComEventInterface(typeof(Events.ApplicationEvents))]
- public class Application : _Application, ICloneable, IEventBinding
- {
- #pragma warning disable
-
- #region Fields
-
- private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint;
- private string _activeSinkId;
- private static Type _type;
- private Events.ApplicationEvents_SinkHelper _applicationEvents_SinkHelper;
-
- #endregion
-
- #region Type Information
-
- ///
- /// Instance Type
- ///
- [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden]
- public override Type InstanceType
- {
- get
- {
- return LateBindingApiWrapperType;
- }
- }
-
- ///
- /// Type Cache
- ///
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public static Type LateBindingApiWrapperType
- {
- get
- {
- if (null == _type)
- _type = typeof(Application);
- return _type;
- }
- }
-
- #endregion
-
- #region Ctor
-
- /// current used factory core
- /// object there has created the proxy
- /// proxy share instead if com proxy
- public Application(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare)
- {
- _callQuitInDispose = true;
- }
-
- ///current used factory core
- ///object there has created the proxy
- ///inner wrapped COM proxy
- public Application(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy)
- {
- GlobalHelperModules.GlobalModule.Instance = this;
- }
-
- ///object there has created the proxy
- ///inner wrapped COM proxy
- public Application(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy)
- {
- GlobalHelperModules.GlobalModule.Instance = this;
- }
-
- ///current used factory core
- ///object there has created the proxy
- ///inner wrapped COM proxy
- ///Type of inner wrapped COM proxy"
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public Application(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType)
- {
-
- }
-
- ///object there has created the proxy
- ///inner wrapped COM proxy
- ///Type of inner wrapped COM proxy"
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public Application(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType)
- {
-
- }
-
- ///object to replaced. replacedObject are not usable after this action
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public Application(ICOMObject replacedObject) : base(replacedObject)
- {
-
- }
-
- ///
- ///creates a new instance of Application
- ///
- public Application():base("Publisher.Application")
- {
- GlobalHelperModules.GlobalModule.Instance = this;
- }
-
- ///
- ///creates a new instance of Application
- ///
- ///registered ProgID
- public Application(string progId):base(progId)
- {
- GlobalHelperModules.GlobalModule.Instance = this;
- }
-
- ///
- /// NetOffice method: dispose instance and all child instances
- ///
- /// dispose event exported proxies with one or more event recipients
- [Category("NetOffice"), CoreOverridden]
- public override void Dispose(bool disposeEventBinding)
- {
- if(this.Equals(GlobalHelperModules.GlobalModule.Instance))
- GlobalHelperModules.GlobalModule.Instance = null;
- base.Dispose(disposeEventBinding);
- }
-
- ///
- /// NetOffice method: dispose instance and all child instances
- ///
- [Category("NetOffice"), CoreOverridden]
- public override void Dispose()
- {
- if(this.Equals(GlobalHelperModules.GlobalModule.Instance))
- GlobalHelperModules.GlobalModule.Instance = null;
- base.Dispose();
- }
-
- #endregion
-
- #region Static CoClass Methods
-
- ///
- /// Returns all running Publisher.Application instances from the environment/system
- ///
- /// Publisher.Application sequence
- public static IDisposableSequence GetActiveInstances()
- {
- return Running.ProxyService.GetActiveInstances("Publisher", "Application");
- }
-
- ///
- /// Returns a running Publisher.Application instance from the environment/system
- ///
- /// throw exception if unable to find an instance
- /// Publisher.Application instance or null
- public static Application GetActiveInstance(bool throwExceptionIfNotFound = false)
- {
- return Running.ProxyService.GetActiveInstance("Publisher", "Application", throwExceptionIfNotFound);
- }
-
- #endregion
-
- #region Events
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_WindowActivateEventHandler _WindowActivateEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_WindowActivateEventHandler WindowActivateEvent
- {
- add
- {
- CreateEventBridge();
- _WindowActivateEvent += value;
- }
- remove
- {
- _WindowActivateEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_WindowDeactivateEventHandler _WindowDeactivateEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_WindowDeactivateEventHandler WindowDeactivateEvent
- {
- add
- {
- CreateEventBridge();
- _WindowDeactivateEvent += value;
- }
- remove
- {
- _WindowDeactivateEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_WindowPageChangeEventHandler _WindowPageChangeEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_WindowPageChangeEventHandler WindowPageChangeEvent
- {
- add
- {
- CreateEventBridge();
- _WindowPageChangeEvent += value;
- }
- remove
- {
- _WindowPageChangeEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_QuitEventHandler _QuitEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_QuitEventHandler QuitEvent
- {
- add
- {
- CreateEventBridge();
- _QuitEvent += value;
- }
- remove
- {
- _QuitEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_NewDocumentEventHandler _NewDocumentEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_NewDocumentEventHandler NewDocumentEvent
- {
- add
- {
- CreateEventBridge();
- _NewDocumentEvent += value;
- }
- remove
- {
- _NewDocumentEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_DocumentOpenEventHandler _DocumentOpenEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_DocumentOpenEventHandler DocumentOpenEvent
- {
- add
- {
- CreateEventBridge();
- _DocumentOpenEvent += value;
- }
- remove
- {
- _DocumentOpenEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_DocumentBeforeCloseEventHandler _DocumentBeforeCloseEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_DocumentBeforeCloseEventHandler DocumentBeforeCloseEvent
- {
- add
- {
- CreateEventBridge();
- _DocumentBeforeCloseEvent += value;
- }
- remove
- {
- _DocumentBeforeCloseEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_MailMergeAfterMergeEventHandler _MailMergeAfterMergeEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_MailMergeAfterMergeEventHandler MailMergeAfterMergeEvent
- {
- add
- {
- CreateEventBridge();
- _MailMergeAfterMergeEvent += value;
- }
- remove
- {
- _MailMergeAfterMergeEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_MailMergeAfterRecordMergeEventHandler _MailMergeAfterRecordMergeEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_MailMergeAfterRecordMergeEventHandler MailMergeAfterRecordMergeEvent
- {
- add
- {
- CreateEventBridge();
- _MailMergeAfterRecordMergeEvent += value;
- }
- remove
- {
- _MailMergeAfterRecordMergeEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_MailMergeBeforeMergeEventHandler _MailMergeBeforeMergeEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_MailMergeBeforeMergeEventHandler MailMergeBeforeMergeEvent
- {
- add
- {
- CreateEventBridge();
- _MailMergeBeforeMergeEvent += value;
- }
- remove
- {
- _MailMergeBeforeMergeEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_MailMergeBeforeRecordMergeEventHandler _MailMergeBeforeRecordMergeEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_MailMergeBeforeRecordMergeEventHandler MailMergeBeforeRecordMergeEvent
- {
- add
- {
- CreateEventBridge();
- _MailMergeBeforeRecordMergeEvent += value;
- }
- remove
- {
- _MailMergeBeforeRecordMergeEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_MailMergeDataSourceLoadEventHandler _MailMergeDataSourceLoadEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_MailMergeDataSourceLoadEventHandler MailMergeDataSourceLoadEvent
- {
- add
- {
- CreateEventBridge();
- _MailMergeDataSourceLoadEvent += value;
- }
- remove
- {
- _MailMergeDataSourceLoadEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_MailMergeWizardSendToCustomEventHandler _MailMergeWizardSendToCustomEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_MailMergeWizardSendToCustomEventHandler MailMergeWizardSendToCustomEvent
- {
- add
- {
- CreateEventBridge();
- _MailMergeWizardSendToCustomEvent += value;
- }
- remove
- {
- _MailMergeWizardSendToCustomEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_MailMergeWizardStateChangeEventHandler _MailMergeWizardStateChangeEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_MailMergeWizardStateChangeEventHandler MailMergeWizardStateChangeEvent
- {
- add
- {
- CreateEventBridge();
- _MailMergeWizardStateChangeEvent += value;
- }
- remove
- {
- _MailMergeWizardStateChangeEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_MailMergeDataSourceValidateEventHandler _MailMergeDataSourceValidateEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_MailMergeDataSourceValidateEventHandler MailMergeDataSourceValidateEvent
- {
- add
- {
- CreateEventBridge();
- _MailMergeDataSourceValidateEvent += value;
- }
- remove
- {
- _MailMergeDataSourceValidateEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_MailMergeInsertBarcodeEventHandler _MailMergeInsertBarcodeEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_MailMergeInsertBarcodeEventHandler MailMergeInsertBarcodeEvent
- {
- add
- {
- CreateEventBridge();
- _MailMergeInsertBarcodeEvent += value;
- }
- remove
- {
- _MailMergeInsertBarcodeEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_MailMergeRecipientListCloseEventHandler _MailMergeRecipientListCloseEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_MailMergeRecipientListCloseEventHandler MailMergeRecipientListCloseEvent
- {
- add
- {
- CreateEventBridge();
- _MailMergeRecipientListCloseEvent += value;
- }
- remove
- {
- _MailMergeRecipientListCloseEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_MailMergeGenerateBarcodeEventHandler _MailMergeGenerateBarcodeEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_MailMergeGenerateBarcodeEventHandler MailMergeGenerateBarcodeEvent
- {
- add
- {
- CreateEventBridge();
- _MailMergeGenerateBarcodeEvent += value;
- }
- remove
- {
- _MailMergeGenerateBarcodeEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_MailMergeWizardFollowUpCustomEventHandler _MailMergeWizardFollowUpCustomEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_MailMergeWizardFollowUpCustomEventHandler MailMergeWizardFollowUpCustomEvent
- {
- add
- {
- CreateEventBridge();
- _MailMergeWizardFollowUpCustomEvent += value;
- }
- remove
- {
- _MailMergeWizardFollowUpCustomEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_BeforePrintEventHandler _BeforePrintEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_BeforePrintEventHandler BeforePrintEvent
- {
- add
- {
- CreateEventBridge();
- _BeforePrintEvent += value;
- }
- remove
- {
- _BeforePrintEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_AfterPrintEventHandler _AfterPrintEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_AfterPrintEventHandler AfterPrintEvent
- {
- add
- {
- CreateEventBridge();
- _AfterPrintEvent += value;
- }
- remove
- {
- _AfterPrintEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_ShowCatalogUIEventHandler _ShowCatalogUIEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_ShowCatalogUIEventHandler ShowCatalogUIEvent
- {
- add
- {
- CreateEventBridge();
- _ShowCatalogUIEvent += value;
- }
- remove
- {
- _ShowCatalogUIEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Application_HideCatalogUIEventHandler _HideCatalogUIEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Application_HideCatalogUIEventHandler HideCatalogUIEvent
- {
- add
- {
- CreateEventBridge();
- _HideCatalogUIEvent += value;
- }
- remove
- {
- _HideCatalogUIEvent -= value;
- }
- }
-
- #endregion
-
- #region IEventBinding
-
- ///
- /// creates active sink helper
- ///
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public void CreateEventBridge()
- {
- if(false == Factory.Settings.EnableEvents)
- return;
-
- if (null != _connectPoint)
- return;
-
- if (null == _activeSinkId)
- _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.ApplicationEvents_SinkHelper.Id);
-
-
- if(Events.ApplicationEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
- {
- _applicationEvents_SinkHelper = new Events.ApplicationEvents_SinkHelper(this, _connectPoint);
- return;
- }
- }
-
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public bool EventBridgeInitialized
- {
- get
- {
- return (null != _connectPoint);
- }
- }
- ///
- /// Instance has one or more event recipients
- ///
- /// true if one or more event is active, otherwise false
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public bool HasEventRecipients()
- {
- return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType);
- }
-
- ///
- /// Instance has one or more event recipients
- ///
- /// name of the event
- ///
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public bool HasEventRecipients(string eventName)
- {
- return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName);
- }
-
- ///
- /// Target methods from its actual event recipients
- ///
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public Delegate[] GetEventRecipients(string eventName)
- {
- return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName);
- }
-
- ///
- /// Returns the current count of event recipients
- ///
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public int GetCountOfEventRecipients(string eventName)
- {
- return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName);
- }
-
- ///
- /// Raise an instance event
- ///
- /// name of the event without 'Event' at the end
- /// custom arguments for the event
- /// count of called event recipients
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public int RaiseCustomEvent(string eventName, ref object[] paramsArray)
- {
- return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray);
- }
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public void DisposeEventBridge()
- {
- if( null != _applicationEvents_SinkHelper)
- {
- _applicationEvents_SinkHelper.Dispose();
- _applicationEvents_SinkHelper = null;
- }
-
- _connectPoint = null;
- }
-
- #endregion
-
- #region ICloneable
-
- ///
- /// Creates a new Application that is a copy of the current instance
- ///
- /// A new Application that is a copy of this instance
- /// An unexpected error occured. See inner exception(s) for details.
- public new virtual Application Clone()
- {
- return base.Clone() as Application;
- }
-
- #endregion
-
- #pragma warning restore
- }
-}
\ No newline at end of file
diff --git a/Source/Publisher/Classes/Document.cs b/Source/Publisher/Classes/Document.cs
deleted file mode 100644
index 8ec62fa385..0000000000
--- a/Source/Publisher/Classes/Document.cs
+++ /dev/null
@@ -1,396 +0,0 @@
-using System;
-using NetRuntimeSystem = System;
-using System.ComponentModel;
-using NetOffice.Attributes;
-
-namespace NetOffice.PublisherApi
-{
- #region Delegates
-
- #pragma warning disable
- public delegate void Document_OpenEventHandler();
- public delegate void Document_BeforeCloseEventHandler(ref bool cancel);
- public delegate void Document_ShapesAddedEventHandler();
- public delegate void Document_WizardAfterChangeEventHandler();
- public delegate void Document_ShapesRemovedEventHandler();
- public delegate void Document_UndoEventHandler();
- public delegate void Document_RedoEventHandler();
- #pragma warning restore
-
- #endregion
-
- ///
- /// CoClass Document
- /// SupportByVersion Publisher, 14,15,16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- [EntityType(EntityType.IsCoClass)]
- [EventSink(typeof(Events.DocumentEvents_SinkHelper))]
- [ComEventInterface(typeof(Events.DocumentEvents))]
- public class Document : _Document, IEventBinding
- {
- #pragma warning disable
-
- #region Fields
-
- private NetRuntimeSystem.Runtime.InteropServices.ComTypes.IConnectionPoint _connectPoint;
- private string _activeSinkId;
- private static Type _type;
- private Events.DocumentEvents_SinkHelper _documentEvents_SinkHelper;
-
- #endregion
-
- #region Type Information
-
- ///
- /// Instance Type
- ///
- [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden]
- public override Type InstanceType
- {
- get
- {
- return LateBindingApiWrapperType;
- }
- }
-
- ///
- /// Type Cache
- ///
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public static Type LateBindingApiWrapperType
- {
- get
- {
- if (null == _type)
- _type = typeof(Document);
- return _type;
- }
- }
-
- #endregion
-
- #region Construction
-
- ///current used factory core
- ///object there has created the proxy
- ///inner wrapped COM proxy
- public Document(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy)
- {
-
- }
-
- ///object there has created the proxy
- ///inner wrapped COM proxy
- public Document(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy)
- {
-
- }
-
- ///current used factory core
- ///object there has created the proxy
- ///inner wrapped COM proxy
- ///Type of inner wrapped COM proxy"
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public Document(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType)
- {
-
- }
-
- ///object there has created the proxy
- ///inner wrapped COM proxy
- ///Type of inner wrapped COM proxy"
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public Document(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType)
- {
-
- }
-
- ///object to replaced. replacedObject are not usable after this action
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public Document(ICOMObject replacedObject) : base(replacedObject)
- {
-
- }
-
- ///
- ///creates a new instance of Document
- ///
- public Document():base("Publisher.Document")
- {
-
- }
-
- ///
- ///creates a new instance of Document
- ///
- ///registered ProgID
- public Document(string progId):base(progId)
- {
-
- }
-
- #endregion
-
- #region Static CoClass Methods
- #endregion
-
- #region Events
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Document_OpenEventHandler _OpenEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Document_OpenEventHandler OpenEvent
- {
- add
- {
- CreateEventBridge();
- _OpenEvent += value;
- }
- remove
- {
- _OpenEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Document_BeforeCloseEventHandler _BeforeCloseEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Document_BeforeCloseEventHandler BeforeCloseEvent
- {
- add
- {
- CreateEventBridge();
- _BeforeCloseEvent += value;
- }
- remove
- {
- _BeforeCloseEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Document_ShapesAddedEventHandler _ShapesAddedEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Document_ShapesAddedEventHandler ShapesAddedEvent
- {
- add
- {
- CreateEventBridge();
- _ShapesAddedEvent += value;
- }
- remove
- {
- _ShapesAddedEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Document_WizardAfterChangeEventHandler _WizardAfterChangeEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Document_WizardAfterChangeEventHandler WizardAfterChangeEvent
- {
- add
- {
- CreateEventBridge();
- _WizardAfterChangeEvent += value;
- }
- remove
- {
- _WizardAfterChangeEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Document_ShapesRemovedEventHandler _ShapesRemovedEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Document_ShapesRemovedEventHandler ShapesRemovedEvent
- {
- add
- {
- CreateEventBridge();
- _ShapesRemovedEvent += value;
- }
- remove
- {
- _ShapesRemovedEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Document_UndoEventHandler _UndoEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Document_UndoEventHandler UndoEvent
- {
- add
- {
- CreateEventBridge();
- _UndoEvent += value;
- }
- remove
- {
- _UndoEvent -= value;
- }
- }
-
- ///
- /// SupportByVersion Publisher, 14,15,16
- ///
- private event Document_RedoEventHandler _RedoEvent;
-
- ///
- /// SupportByVersion Publisher 14 15 16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- public event Document_RedoEventHandler RedoEvent
- {
- add
- {
- CreateEventBridge();
- _RedoEvent += value;
- }
- remove
- {
- _RedoEvent -= value;
- }
- }
-
- #endregion
-
- #region IEventBinding
-
- ///
- /// creates active sink helper
- ///
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public void CreateEventBridge()
- {
- if(false == Factory.Settings.EnableEvents)
- return;
-
- if (null != _connectPoint)
- return;
-
- if (null == _activeSinkId)
- _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, Events.DocumentEvents_SinkHelper.Id);
-
-
- if(Events.DocumentEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
- {
- _documentEvents_SinkHelper = new Events.DocumentEvents_SinkHelper(this, _connectPoint);
- return;
- }
- }
-
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public bool EventBridgeInitialized
- {
- get
- {
- return (null != _connectPoint);
- }
- }
- ///
- /// Instance has one or more event recipients
- ///
- /// true if one or more event is active, otherwise false
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public bool HasEventRecipients()
- {
- return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType);
- }
-
- ///
- /// Instance has one or more event recipients
- ///
- /// name of the event
- ///
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public bool HasEventRecipients(string eventName)
- {
- return NetOffice.Events.CoClassEventReflector.HasEventRecipients(this, LateBindingApiWrapperType, eventName);
- }
-
- ///
- /// Target methods from its actual event recipients
- ///
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public Delegate[] GetEventRecipients(string eventName)
- {
- return NetOffice.Events.CoClassEventReflector.GetEventRecipients(this, LateBindingApiWrapperType, eventName);
- }
-
- ///
- /// Returns the current count of event recipients
- ///
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public int GetCountOfEventRecipients(string eventName)
- {
- return NetOffice.Events.CoClassEventReflector.GetCountOfEventRecipients(this, LateBindingApiWrapperType, eventName);
- }
-
- ///
- /// Raise an instance event
- ///
- /// name of the event without 'Event' at the end
- /// custom arguments for the event
- /// count of called event recipients
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public int RaiseCustomEvent(string eventName, ref object[] paramsArray)
- {
- return NetOffice.Events.CoClassEventReflector.RaiseCustomEvent(this, LateBindingApiWrapperType, eventName, ref paramsArray);
- }
- [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
- public void DisposeEventBridge()
- {
- if( null != _documentEvents_SinkHelper)
- {
- _documentEvents_SinkHelper.Dispose();
- _documentEvents_SinkHelper = null;
- }
-
- _connectPoint = null;
- }
-
- #endregion
-
- #pragma warning restore
- }
-}
-
diff --git a/Source/Publisher/DispatchInterfaces/Adjustments.cs b/Source/Publisher/DispatchInterfaces/Adjustments.cs
deleted file mode 100644
index 984c80b670..0000000000
--- a/Source/Publisher/DispatchInterfaces/Adjustments.cs
+++ /dev/null
@@ -1,234 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using System;
-using NetRuntimeSystem = System;
-using System.ComponentModel;
-using NetOffice.Attributes;
-using NetOffice.CollectionsGeneric;
-
-namespace NetOffice.PublisherApi
-{
- ///
- /// DispatchInterface Adjustments
- /// SupportByVersion Publisher, 14,15,16
- ///
- [SupportByVersion("Publisher", 14,15,16)]
- [EntityType(EntityType.IsDispatchInterface), Enumerator(Enumerator.Variant, EnumeratorInvoke.Custom), HasIndexProperty(IndexInvoke.Property, "Item")]
- public class Adjustments : COMObject, NetOffice.CollectionsGeneric.IEnumerableProvider