APPSettingProperties.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Drawing;
  8. using ComPDFKitViewer.PdfViewer;
  9. using ComPDFKitViewer;
  10. namespace PDFSettings
  11. {
  12. public class APPSettingProperties
  13. {
  14. public DescriptionPropertyClass Description = new DescriptionPropertyClass();
  15. public InitialVIewPropertyClass InitialVIew = new InitialVIewPropertyClass();
  16. public AnnotatePropertyClass Annotate = new AnnotatePropertyClass();
  17. //自定义主题色保存
  18. public List<System.Windows.Media.Color> CustomColorList = new List<System.Windows.Media.Color>();
  19. //动态图章日期格式 下拉列表索引
  20. public int DateMode = 0;
  21. public string CustomAuthor = "PDF Reader Pro";
  22. //ToolTabControl 选中项
  23. public int TabSelectedIndex = 0;
  24. //是否固定
  25. public bool IsFixed = true;
  26. //需要重启后删除的临时文件
  27. public List<string> NeedToDeletePath = new List<string>();
  28. //文件源路径集合
  29. public List<string> CustomStampFilePathLists = new List<string>();
  30. public List<string> SignatureFilePathLists = new List<string>();
  31. public string culture = System.Globalization.CultureInfo.CurrentUICulture.ToString();
  32. /// <summary>
  33. /// 0 - listView 1-GridView
  34. /// </summary>
  35. public int RecentFileListMode = 0;
  36. /// <summary>
  37. /// 切换语言时 重启时需要打开的文档列表
  38. /// </summary>
  39. public List<string> NeedToOpenFileList = new List<string>();
  40. }
  41. public class DescriptionPropertyClass
  42. {
  43. private string author = "PDF Reader Pro";
  44. public string Author
  45. {
  46. get { return author; }
  47. set { author = value; }
  48. }
  49. /// <summary>
  50. /// 0-a new tab in the Same window 1- open in new window
  51. /// </summary>
  52. public int OpenDocumentMode = 1;
  53. /// <summary>
  54. /// 文件打开时是否显示选择在标签页打开方式
  55. /// </summary>
  56. public int HideOpenTabWindow = 0;
  57. public ViewMode DefualtLayout = ViewMode.SingleContinuous;
  58. public FitMode NewDocumentFitMode = FitMode.FitSize;
  59. public ViewMode DefualtLayoutInFullScreen = ViewMode.SingleContinuous;
  60. public bool IsOpenLastFilesAtStart = false;
  61. public bool IsRememberLastPageViewed = true;
  62. public bool IsOpenPanelOnlyforOutline = false;
  63. }
  64. public class InitialVIewPropertyClass
  65. {
  66. //字体属性 单独写在外面 层数太多绑定响应不到
  67. public string Background = "#DBDDE5";
  68. }
  69. public class AnnotatePropertyClass
  70. {
  71. /// <summary>
  72. /// 0-left 1-center 2-right
  73. /// </summary>
  74. public int TextAlign = 0;
  75. /// <summary>
  76. /// 文本注释 字体
  77. /// </summary>
  78. public string TextFontFamaily = "Helvetica";
  79. /// <summary>
  80. /// 标签Note 字体
  81. /// </summary>
  82. public string AnchoredFamaily = "Helvetica";
  83. }
  84. }