NanoXLSX.Writer 3.0.0-rc.3
Loading...
Searching...
No Matches
WriterPlugInHandler.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 © 2025
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
9using NanoXLSX.Registry;
10using NanoXLSX.Utils.Xml;
11
13{
17 internal static class WriterPlugInHandler
18 {
27 internal static void HandleInlineQueuePlugins(ref XmlElement rootElement, Workbook workbook, string queueUuid, int? index = null)
28 {
29 IInlinePlugInWriter queueWriter = null;
30 string lastUuid = null;
31 do
32 {
33 string currentUuid;
34 queueWriter = PlugInLoader.GetNextQueuePlugIn<IInlinePlugInWriter>(queueUuid, lastUuid, out currentUuid);
35 if (queueWriter != null)
36 {
37 queueWriter.Init(ref rootElement, workbook, index);
38 queueWriter.Execute();
39 lastUuid = currentUuid;
40 }
41 else
42 {
43 lastUuid = null;
44 }
45
46 } while (queueWriter != null);
47 }
48 }
49}