using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Drawing;
using ComPDFKitViewer.PdfViewer;
using ComPDFKitViewer;

namespace PDFSettings
{
    public class APPSettingProperties
    {
        public DescriptionPropertyClass Description = new DescriptionPropertyClass();
        public InitialVIewPropertyClass InitialVIew = new InitialVIewPropertyClass();
        public AnnotatePropertyClass Annotate = new AnnotatePropertyClass();
        //自定义主题色保存
        public List<System.Windows.Media.Color> CustomColorList = new List<System.Windows.Media.Color>();
        //动态图章日期格式   下拉列表索引
        public int DateMode = 0;

        public string CustomAuthor = "PDF Reader Pro";
        //ToolTabControl 选中项
        public int TabSelectedIndex = 0;
        //是否固定
        public bool IsFixed = true;

        //需要重启后删除的临时文件
        public List<string> NeedToDeletePath = new List<string>();

        //文件源路径集合
        public List<string> CustomStampFilePathLists = new List<string>();
        public List<string> SignatureFilePathLists = new List<string>();

        public string culture = System.Globalization.CultureInfo.CurrentUICulture.ToString();

        /// <summary>
        /// 0 - listView   1-GridView
        /// </summary>
        public int RecentFileListMode = 0;

        /// <summary>
        /// 切换语言时 重启时需要打开的文档列表
        /// </summary>
        public List<string> NeedToOpenFileList = new List<string>();
    }

    public class DescriptionPropertyClass
    {
        private string author = "PDF Reader Pro";
        public string Author
        {
            get { return author; }
            set { author = value; }
        }

        /// <summary>
        /// 0-a new tab in the Same window 1- open in new window
        /// </summary>
        public int OpenDocumentMode = 1;
        /// <summary>
        /// 文件打开时是否显示选择在标签页打开方式
        /// </summary>
        public int HideOpenTabWindow = 0;

        public ViewMode DefualtLayout = ViewMode.SingleContinuous;

        public FitMode NewDocumentFitMode = FitMode.FitSize;

        public ViewMode DefualtLayoutInFullScreen = ViewMode.SingleContinuous;

        public bool IsOpenLastFilesAtStart = false;

        public bool IsRememberLastPageViewed = true;

        public bool IsOpenPanelOnlyforOutline = false;
    }

    public class InitialVIewPropertyClass
    {
        //字体属性 单独写在外面   层数太多绑定响应不到
        public string Background = "#DBDDE5";
    }

    public class AnnotatePropertyClass
    {
        /// <summary>
        /// 0-left 1-center 2-right
        /// </summary>
        public int TextAlign = 0;

        /// <summary>
        /// 文本注释 字体
        /// </summary>
        public string TextFontFamaily = "Helvetica";

        /// <summary>
        /// 标签Note 字体
        /// </summary>
        public string AnchoredFamaily = "Helvetica";
    }

}
