NanoXLSX.Reader 3.0.0-rc.2
Loading...
Searching...
No Matches
RederPlugInHandler.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
8using System.IO;
10using NanoXLSX.Registry;
11
13{
17 internal static class RederPlugInHandler
18 {
26 internal static void HandleInlineQueuePlugins(ref MemoryStream stream, Workbook workbook, string queueUuid, int? index = 0)
27 {
28 IInlinePlugInReader queueReader = null;
29 string lastUuid = null;
30 do
31 {
32 string currentUuid;
33 queueReader = PlugInLoader.GetNextQueuePlugIn<IInlinePlugInReader>(queueUuid, lastUuid, out currentUuid);
34 if (queueReader != null)
35 {
36 stream.Position = 0;
37 queueReader.Init(ref stream, workbook, index);
38 queueReader.Execute();
39 lastUuid = currentUuid;
40 }
41 else
42 {
43 lastUuid = null;
44 }
45
46 } while (queueReader != null);
47 }
48 }
49}