using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ComPDFKit.Import;

namespace PDFSettings
{
    public class HeaderFooterList : List<BatesHeaderFooterItem>
    {

    }

    public class BatesList : List<BatesHeaderFooterItem>
    {

    }

    public class BatesHeaderFooterItem
    {
        /// <summary>
        /// 模板名称
        /// </summary>
        public string FileName { get; set; } = "";
        /// <summary>
        /// 内容
        /// </summary>
        public contentItem[] TextData { get; set; }
        /// <summary>
        /// 间距
        /// </summary>
        public float[] margin { get; set; }
        /// <summary>
        /// 页面范围
        /// </summary>
        public string PageRange { get; set; } = "0";
        /// <summary>
        /// 起始页
        /// </summary>
        public int StarPagetNumber { get; set; } = 1;

        /// <summary>
        /// 贝茨码：前缀
        /// </summary>
        public string Prefix { get; set; } = "";

        /// <summary>
        /// 贝茨码：后缀
        /// </summary>
        public string Suffix { get; set; } = "";
        ///// <summary>
        ///// 贝茨码：起始页
        ///// </summary>
        //public int StartWithPageNum { get; set; }
        /// <summary>
        /// 贝茨码：位数
        /// </summary>
        public int DigitNumber { get; set; } = 1;
        /// <summary>
        /// 页眉页脚：页码格式
        /// </summary>
        public string PageNumberFormat { get; set; } = "1";
        /// <summary>
        /// 页眉页脚：日期格式
        /// </summary>
        public string DateTimeFormat { get; set; } = "m/d";

        /// <summary>
        /// 页面范围：显示标记
        /// </summary>
        public string PageRangeTag { get; set; } = "All";
    }

    public struct contentItem
    {
        public string text { get; set; }
        public BateHeaderFooter_ContentType textTag { get; set; }
        public string fontName;
        public float fontSize;
        public float fontColorR;
        public float fontColorG;
        public float fontColorB;
    }

    public enum BateHeaderFooter_ContentType
    {
        L_Header,
        C_Header,
        R_Header,
        L_Footer,
        C_Footer,
        R_Footer
    }
}
