PageEditHistory.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. namespace PDF_Office.Model.PageEdit
  8. {
  9. public class PageEditHistory
  10. {
  11. /// <summary>
  12. /// 操作类型
  13. /// </summary>
  14. public ActionType Type { get; set; }
  15. /// <summary>
  16. /// 原位置-新位置集合 用于倒序、旋转、拖拽排序
  17. /// </summary>
  18. public Dictionary<int, int> SourceTargetValue { get; set; }
  19. /// <summary>
  20. /// 插入位置
  21. /// </summary>
  22. public int InsertIndex { get; set; }
  23. /// <summary>
  24. ///插入文件的文件路径
  25. /// </summary>
  26. public string InsertFilePath { get; set; }
  27. /// <summary>
  28. /// 插入文件的密码
  29. /// </summary>
  30. public string InsertFilePassWord { get; set; }
  31. /// <summary>
  32. /// 插入文档的页面总数
  33. /// </summary>
  34. public int InsertPageCount { get; set; }
  35. /// <summary>
  36. /// 插入的页面尺寸大小
  37. /// </summary>
  38. public Size PageSize { get; set; }
  39. }
  40. /// <summary>
  41. /// 操作类型
  42. /// </summary>
  43. public enum ActionType
  44. {
  45. /// <summary>
  46. /// 页面右旋转
  47. /// </summary>
  48. RightRotate,
  49. /// <summary>
  50. /// 页面左旋转
  51. /// </summary>
  52. LeftRotate,
  53. /// <summary>
  54. /// 从文件插入
  55. /// </summary>
  56. InsertFromFile,
  57. /// <summary>
  58. /// 插入自定义页面
  59. /// </summary>
  60. InsertCustomPages,
  61. /// <summary>
  62. /// 拖拽排序
  63. /// </summary>
  64. DragSort,
  65. /// <summary>
  66. /// 倒序
  67. /// </summary>
  68. Reverse
  69. }
  70. }