PDFEditList.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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.Windows.Media;
  8. namespace PDFSettings
  9. {
  10. public class PDFEditList
  11. {
  12. public string mTag { get; set; }= "Custom";
  13. public string mTagContent { get; set; }
  14. public static int mFontSize1 { get; set; } = 1;
  15. public FontFamily mFontFamily { get; set; }
  16. public FontStyle mFontStyle { get; set; }
  17. public FontWeight mFontWeight { get; set; }
  18. public struct PresetFontItem
  19. {
  20. public string mTag;
  21. public string mTagContent;
  22. public int mFontSize;
  23. public int mFontSize1;
  24. public FontFamily mFontFamily;
  25. public FontStyle mFontStyle;
  26. public FontWeight mFontWeight;
  27. }
  28. public List<PresetFontItem> fontStyleList = new List<PresetFontItem>() {
  29. new PresetFontItem() {
  30. mTag = "Custom",
  31. mTagContent = "PresetTextStyle_Customize",
  32. mFontSize = 16,
  33. mFontFamily = new FontFamily("Helvetica"),
  34. mFontStyle = FontStyles.Normal,
  35. mFontWeight = FontWeights.Normal
  36. },
  37. new PresetFontItem() {
  38. mTag = "H1",
  39. mTagContent = "PresetTextStyle_H1Title",
  40. mFontSize = mFontSize1,
  41. mFontFamily = new FontFamily("Helvetica"),
  42. mFontStyle = FontStyles.Normal,
  43. mFontWeight = FontWeights.Bold
  44. },
  45. new PresetFontItem() {
  46. mTag = "H2",
  47. mTagContent = "PresetTextStyle_H2Title",
  48. mFontSize = 24,
  49. mFontFamily = new FontFamily("Helvetica"),
  50. mFontStyle = FontStyles.Normal,
  51. mFontWeight = FontWeights.Bold
  52. },
  53. new PresetFontItem() {
  54. mTag = "H3",
  55. mTagContent = "PresetTextStyle_H3Title",
  56. mFontSize = 18,
  57. mFontFamily = new FontFamily("Helvetica"),
  58. mFontStyle = FontStyles.Normal,
  59. mFontWeight = FontWeights.Bold
  60. },
  61. new PresetFontItem() {
  62. mTag = "B1",
  63. mTagContent = "PresetTextStyle_B1NormalTextStandard",
  64. mFontSize = 14,
  65. mFontFamily = new FontFamily("Helvetica"),
  66. mFontStyle = FontStyles.Normal,
  67. mFontWeight = FontWeights.Regular
  68. },
  69. new PresetFontItem() {
  70. mTag = "B2",
  71. mTagContent = "PresetTextStyle_B2NormalTextSmall",
  72. mFontSize = 12,
  73. mFontFamily = new FontFamily("Helvetica"),
  74. mFontStyle = FontStyles.Normal,
  75. mFontWeight = FontWeights.Regular
  76. },
  77. new PresetFontItem() {
  78. mTag = "B3",
  79. mTagContent = "PresetTextStyle_B3Description",
  80. mFontSize = 11,
  81. mFontFamily = new FontFamily("Helvetica"),
  82. mFontStyle = FontStyles.Normal,
  83. mFontWeight = FontWeights.Regular
  84. }
  85. };
  86. }
  87. }