/* * Excel.File.cs * * Copyright © 2017 * Diversified Technical Systems, Inc. * All Rights Reserved */ namespace DTS.Serialization.XLSX { /// /// implementation of the Serialization.File class for XLSX /// http://fogbugz/fogbugz/default.asp?9920' /// right now this will only export EU, (filtered or unfiltered) /// but we'll likely want to control whether to export mV/ADC in future /// public partial class File : Serialization.File, IWritable { /// /// constructor /// public File() : base( "XLSX" ) { } /// /// Get the file writer for this file type. /// public IWriter Exporter { get { try { if (_exporter == null) { var writer = new Writer(this, DefaultEncoding); _exporter = writer; } return _exporter; } catch ( System.Exception ex ) { throw new Exception( "encountered problem getting exporter", ex ); } } } private IWriter _exporter; /// /// Controls whether to export ADC or not /// public bool ExportADC { set => ((Writer) Exporter).ExportADC = value; } /// /// Controls whether to export EU or not /// public bool ExportEU { set => ((Writer) Exporter).ExportEU = value; } /// /// Controls whether to export mV or not /// public bool ExportMV { set => ((Writer) Exporter).ExportMv = value; } } }