using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Media; 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 CustomColorList = new List(); //动态图章日期格式 下拉列表索引 public int DateMode = 0; public string CustomAuthor = "PDF Reader Pro"; //ToolTabControl 选中项 public int TabSelectedIndex = 0; //是否固定 public bool IsFixed = true; //需要重启后删除的临时文件 public List NeedToDeletePath = new List(); //文件源路径集合 public List CustomStampFilePathLists = new List(); public List SignatureFilePathLists = new List(); public string culture = System.Globalization.CultureInfo.CurrentUICulture.ToString(); /// /// 0 - listView 1-GridView /// public int RecentFileListMode = 0; /// /// 删除最近文件记录时是否显示询问弹窗 /// public bool DontTipBeforeDeleteRecent = false; /// /// 切换语言时 重启时需要打开的文档列表 /// public List NeedToOpenFileList = new List(); /// /// 登录密钥 /// public string LoginToken = ""; } public class DescriptionPropertyClass { /// /// app启动时打开上次未关闭的文档 /// public bool OpenUnClosedFileWhenOpen = false; /// /// 文档打开时恢复上次视图设置 /// public bool RecoveryViewWhenOpen = true; /// /// 最近打开中文档最多显示数量 /// public int FileCountInRecentFiles = 10; /// /// 是否自动保存 /// public bool AutoSave = true; /// /// 自动保存频次 /// public int AutoSaveInterval = 5; /// /// 关闭文档 弹出保存提示 /// public bool ShowSaveWhenClose = true; /// /// 关闭文档 无提示 直接保存 /// public bool NotShowSaveWhenClose = false; /// ///打开图片文档 自动扫描并识别文本 /// public bool AutoScanImageFile = true; /// /// 提示扫描并识别文本 /// public bool TipScanImageFile = false; /// /// 用户名 /// public string Author = Environment.UserName; } public class InitialVIewPropertyClass { /// /// 页面显示模式 /// public ViewMode PageView = ViewMode.SingleContinuous; /// /// 缩放比例 /// public FitMode ZoomMode = FitMode.FitWidth; /// /// 默认收起BOTA /// public bool NotShowBOTA = true; /// /// 记住上一次BOTA是否展开 /// public bool RememberBOTA = false; /// /// 有大纲时默认显示大纲列表 /// public bool ShowOutLine = false; /// ///属性面板 自动展开 /// public bool AutoExpandProperty = true; /// /// 属性面板 手动展开 /// public bool ClickOpenProperty = false; /// /// 阅读页背景色 /// public Color BackGround = (Color)ColorConverter.ConvertFromString("#CED0D4"); /// /// 全屏背景色 /// public Color BackGroundInFulWindow = (Color)ColorConverter.ConvertFromString("#36383B"); /// ///高亮表单 /// public bool HignlightForm = true; /// /// 域高亮色 /// public Color FormHighLightColor = Colors.White; /// /// 必填栏高亮色 /// public Color RequiredFieldsColor = Colors.White; /// /// 高亮链接 /// public bool HighlightLink = true; } public class AnnotatePropertyClass { //各类型注释默认颜色 public Color HighLightColor = Color.FromArgb(0xFF, 0xFF, 0xC7, 0x00); public Color UnderLineColor = Color.FromArgb(0xFF, 0xFC, 0x1F, 0x1F); /// /// 删除线 /// public Color StrikethroughColor = Color.FromArgb(0xFF, 0xFC, 0x1F, 0x1F); public Color FreeHandColor = Color.FromArgb(0xFF, 0xFC, 0x1F, 0x1F); /// /// 文本字体颜色 /// public Color TextAnnoteColor = Colors.Black; /// /// 便签默认颜色 /// /// #FFD573 public Color NoteAnnoteColor = Color.FromArgb(0xFF, 0xFF, 0xD5, 0x73); public Color RectangleBorderColor = Color.FromArgb(0xFF, 0xFC, 0x1F, 0x1F); public Color RectangleFillColor = Colors.Transparent; public Color CircleBorderColor = Color.FromArgb(0xFF, 0xFC, 0x1F, 0x1F); public Color CircleFillColor = Colors.Transparent; public Color LineColor = Color.FromArgb(0xFF, 0xFC, 0x1F, 0x1F); public Color ArrowColor = Colors.Red; /// ///文本对齐方式 /// public TextAlignment TextAlign = TextAlignment.Left; /// /// 文本注释 字体 /// public string TextFontFamaily = "Helvetica"; /// /// 标签Note 字体 /// public string AnchoredFamaily = "Helvetica"; } }