123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- 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<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 bool DontTipBeforeDeleteRecent = false;
- /// <summary>
- /// 切换语言时 重启时需要打开的文档列表
- /// </summary>
- public List<string> NeedToOpenFileList = new List<string>();
- /// <summary>
- /// 登录密钥
- /// </summary>
- public string LoginToken = "";
- }
- public class DescriptionPropertyClass
- {
- /// <summary>
- /// app启动时打开上次未关闭的文档
- /// </summary>
- public bool OpenUnClosedFileWhenOpen = false;
- /// <summary>
- /// 文档打开时恢复上次视图设置
- /// </summary>
- public bool RecoveryViewWhenOpen = true;
- /// <summary>
- /// 最近打开中文档最多显示数量
- /// </summary>
- public int FileCountInRecentFiles = 10;
- /// <summary>
- /// 是否自动保存
- /// </summary>
- public bool AutoSave = true;
- /// <summary>
- /// 自动保存频次
- /// </summary>
- public int AutoSaveInterval = 5;
- /// <summary>
- /// 关闭文档 弹出保存提示
- /// </summary>
- public bool ShowSaveWhenClose = true;
- /// <summary>
- /// 关闭文档 无提示 直接保存
- /// </summary>
- public bool NotShowSaveWhenClose = false;
- /// <summary>
- ///打开图片文档 自动扫描并识别文本
- /// </summary>
- public bool AutoScanImageFile = true;
- /// <summary>
- /// 提示扫描并识别文本
- /// </summary>
- public bool TipScanImageFile = false;
- /// <summary>
- /// 用户名
- /// </summary>
- public string Author = Environment.UserName;
- }
- public class InitialVIewPropertyClass
- {
- /// <summary>
- /// 页面显示模式
- /// </summary>
- public ViewMode PageView = ViewMode.SingleContinuous;
- /// <summary>
- /// 缩放比例
- /// </summary>
- public FitMode ZoomMode = FitMode.FitWidth;
- /// <summary>
- /// 默认收起BOTA
- /// </summary>
- public bool NotShowBOTA = true;
- /// <summary>
- /// 记住上一次BOTA是否展开
- /// </summary>
- public bool RememberBOTA = false;
- /// <summary>
- /// 有大纲时默认显示大纲列表
- /// </summary>
- public bool ShowOutLine = false;
- /// <summary>
- ///属性面板 自动展开
- /// </summary>
- public bool AutoExpandProperty = true;
- /// <summary>
- /// 属性面板 手动展开
- /// </summary>
- public bool ClickOpenProperty = false;
- /// <summary>
- /// 阅读页背景色
- /// </summary>
- public Color BackGround = (Color)ColorConverter.ConvertFromString("#CED0D4");
- /// <summary>
- /// 全屏背景色
- /// </summary>
- public Color BackGroundInFulWindow = (Color)ColorConverter.ConvertFromString("#36383B");
- /// <summary>
- ///高亮表单
- /// </summary>
- public bool HignlightForm = true;
- /// <summary>
- /// 域高亮色
- /// </summary>
- public Color FormHighLightColor = Colors.White;
- /// <summary>
- /// 必填栏高亮色
- /// </summary>
- public Color RequiredFieldsColor = Colors.White;
- /// <summary>
- /// 高亮链接
- /// </summary>
- 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;
- public Color NoteAnnoteColor = Color.FromArgb(0xFF, 0x25, 0x26, 0x29);
- public Color RectangleBorderColor = Color.FromArgb(0xFF, 0xFC, 0x1F, 0x1F);
- public Color RectangleFillColor = Colors.White;
- public Color CircleBorderColor = Color.FromArgb(0xFF, 0xFC, 0x1F, 0x1F);
- public Color CircleFillColor = Colors.White;
- public Color LineColor = Color.FromArgb(0xFF, 0xFC, 0x1F, 0x1F);
- /// <summary>
- ///文本对齐方式
- /// </summary>
- public TextAlignment TextAlign = TextAlignment.Left;
- /// <summary>
- /// 文本注释 字体
- /// </summary>
- public string TextFontFamaily = "Helvetica";
- /// <summary>
- /// 标签Note 字体
- /// </summary>
- public string AnchoredFamaily = "Helvetica";
- }
- }
|