OutlineNode.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. using ComPDFKit.PDFDocument;
  2. using Prism.Mvvm;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Collections.ObjectModel;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace PDF_Office.Model.BOTA
  10. {
  11. public class OutlineNode : BindableBase
  12. {
  13. /// <summary>
  14. /// 父类大纲
  15. /// </summary>
  16. private OutlineNode parent = null;
  17. public OutlineNode Parent
  18. {
  19. get { return parent; }
  20. set
  21. {
  22. SetProperty(ref parent, value);
  23. }
  24. }
  25. /// <summary>
  26. /// 当前大纲对象
  27. /// </summary>
  28. private CPDFOutline outline = null;
  29. public CPDFOutline Outline
  30. {
  31. get { return outline; }
  32. set
  33. {
  34. SetProperty(ref outline, value);
  35. }
  36. }
  37. /// <summary>
  38. /// 子类大纲集合
  39. /// </summary>
  40. private ObservableCollection<OutlineNode> chlidlist = new ObservableCollection<OutlineNode>();
  41. public ObservableCollection<OutlineNode> Chlidlist
  42. {
  43. get { return chlidlist; }
  44. set
  45. {
  46. SetProperty(ref chlidlist, value);
  47. }
  48. }
  49. /// <summary>
  50. /// 控制虚线的显示
  51. /// </summary>
  52. private bool isInsertNextLayer = false;
  53. public bool IsInsertNextLayer
  54. {
  55. get { return isInsertNextLayer; }
  56. set
  57. {
  58. SetProperty(ref isInsertNextLayer, value);
  59. }
  60. }
  61. /// <summary>
  62. /// 控制实线的显示
  63. /// </summary>
  64. private bool isInsertCurrentLayer = false;
  65. public bool IsInsertCurrentLayer
  66. {
  67. get { return isInsertCurrentLayer; }
  68. set
  69. {
  70. SetProperty(ref isInsertCurrentLayer, value);
  71. }
  72. }
  73. private bool isExpanded = false;
  74. public bool IsExpanded
  75. {
  76. get { return isExpanded; }
  77. set
  78. {
  79. SetProperty(ref isExpanded, value);
  80. }
  81. }
  82. private string pageIndex ="";
  83. public string PageIndex
  84. {
  85. get { return pageIndex; }
  86. set
  87. {
  88. SetProperty(ref pageIndex, value);
  89. }
  90. }
  91. }
  92. }