Stamp.cs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. using ComPDFKitViewer.AnnotEvent;
  2. using Prism.Mvvm;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows.Media.Imaging;
  9. namespace PDF_Master.Model.AnnotPanel
  10. {
  11. public class Stamp : BindableBase
  12. {
  13. #region 文案
  14. private string _T__MenuRightMenuStampAnnot_Export = App.MainPageLoader.GetString("MenuRightMenuStampAnnot_Export");
  15. public string T_MenuRightMenuStampAnnot_Export
  16. {
  17. get { return _T__MenuRightMenuStampAnnot_Export; }
  18. set
  19. {
  20. SetProperty(ref _T__MenuRightMenuStampAnnot_Export, value);
  21. }
  22. }
  23. private string _T_MenuRightMenuStampAnnotExport_PNG = App.MainPageLoader.GetString("MenuRightMenuStampAnnotExport_PNG");
  24. public string T_MenuRightMenuStampAnnotExport_PNG
  25. {
  26. get { return _T_MenuRightMenuStampAnnotExport_PNG; }
  27. set
  28. {
  29. SetProperty(ref _T_MenuRightMenuStampAnnotExport_PNG, value);
  30. }
  31. }
  32. private string _T_MenuRightMenuStampAnnotExport_PDF = App.MainPageLoader.GetString("MenuRightMenuStampAnnotExport_PDF");
  33. public string T_MenuRightMenuStampAnnotExport_PDF
  34. {
  35. get { return _T_MenuRightMenuStampAnnotExport_PDF; }
  36. set
  37. {
  38. SetProperty(ref _T_MenuRightMenuStampAnnotExport_PDF, value);
  39. }
  40. }
  41. private void IntString()
  42. {
  43. T_MenuRightMenuStampAnnot_Export = App.MainPageLoader.GetString("MenuRightMenuStampAnnot_Export");
  44. T_MenuRightMenuStampAnnotExport_PNG = App.MainPageLoader.GetString("MenuRightMenuStampAnnotExport_PNG");
  45. T_MenuRightMenuStampAnnotExport_PDF = App.MainPageLoader.GetString("MenuRightMenuStampAnnotExport_PDF");
  46. }
  47. #endregion
  48. private string stampText;
  49. public string StampText
  50. {
  51. get { return stampText; }
  52. set
  53. {
  54. SetProperty(ref stampText, value);
  55. }
  56. }
  57. private string sourcePath;
  58. public string SourcePath
  59. {
  60. get { return sourcePath; }
  61. set
  62. {
  63. SetProperty(ref sourcePath, value);
  64. }
  65. }
  66. private int maxWidth;
  67. public int MaxWidth
  68. {
  69. get { return maxWidth; }
  70. set
  71. {
  72. SetProperty(ref maxWidth, value);
  73. }
  74. }
  75. private int maxHeight;
  76. public int MaxHeight
  77. {
  78. get { return maxHeight; }
  79. set
  80. {
  81. SetProperty(ref maxHeight, value);
  82. }
  83. }
  84. private StampType type;
  85. public StampType Type
  86. {
  87. get { return type; }
  88. set
  89. {
  90. SetProperty(ref type, value);
  91. }
  92. }
  93. private string author;
  94. public string Author
  95. {
  96. get { return author; }
  97. set
  98. {
  99. SetProperty(ref author, value);
  100. }
  101. }
  102. private double opacity;
  103. public double Opacity
  104. {
  105. get { return opacity; }
  106. set
  107. {
  108. SetProperty(ref opacity, value);
  109. }
  110. }
  111. private BitmapSource imageSource;
  112. public BitmapSource ImageSource
  113. {
  114. get { return imageSource; }
  115. set
  116. {
  117. SetProperty(ref imageSource, value);
  118. }
  119. }
  120. private TextStampColor textColor;
  121. public TextStampColor TextColor
  122. {
  123. get { return textColor; }
  124. set
  125. {
  126. SetProperty(ref textColor, value);
  127. }
  128. }
  129. private string stampTextDate;
  130. public string StampTextDate
  131. {
  132. get { return stampTextDate; }
  133. set
  134. {
  135. SetProperty(ref stampTextDate, value);
  136. }
  137. }
  138. private TextStampSharp textSharp;
  139. public TextStampSharp TextSharp
  140. {
  141. get { return textSharp; }
  142. set
  143. {
  144. SetProperty(ref textSharp, value);
  145. }
  146. }
  147. private bool isCheckedDate;
  148. public bool IsCheckedDate
  149. {
  150. get { return isCheckedDate; }
  151. set
  152. {
  153. SetProperty(ref isCheckedDate, value);
  154. }
  155. }
  156. private bool isCheckedTime;
  157. public bool IsCheckedTime
  158. {
  159. get { return isCheckedTime; }
  160. set
  161. {
  162. SetProperty(ref isCheckedTime, value);
  163. }
  164. }
  165. }
  166. }