NanoXLSX.Compatibility 3.2.0
Loading...
Searching...
No Matches
CompatibilityInlineWriteProcessor.cs
1/*
2 * NanoXLSX is a small .NET library to generate and read XLSX (Microsoft Excel 2007 or newer) files in an easy and native way
3 * Copyright Raphael Stoeckli © 2026
4 * This library is licensed under the MIT License.
5 * You find a copy of the license in project folder or on: http://opensource.org/licenses/MIT
6 */
7
8using NanoXLSX.Interfaces.Writer;
9using NanoXLSX.Registry;
10using NanoXLSX.Registry.Attributes;
11
13{
17 [NanoXlsxQueuePlugIn(PlugInUUID = "MAIN_COMPATIBILITY_WRITE_INLINE_ENABLE_PROCESSOR", QueueUUID = PlugInUUID.CompatibilityInlineProcessor, PlugInOrder = 1000)]
18 internal class CompatibilityInlineWriteProcessor : IPluginInlineWriteProcessor
19 {
20 #region properties
24 public IWriteContext WriteContext { get; set; }
25 #endregion
26 #region methods
31 public void Init(IWriteContext context)
32 {
33 this.WriteContext = context;
34 }
35
39 public void Execute()
40 {
41 // Tells the writer that external links can be written
42 WriteContext.MarkFeatureAsPrepared(PlugInUUID.WriteExternalLinkFeature);
43
44 // TODO Add further enabled compatibility features here
45 }
46 #endregion
47 }
48}