OutlineNode.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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. using System.Windows;
  10. namespace PDF_Office.Model.BOTA
  11. {
  12. public class OutlineNode : BindableBase
  13. {
  14. /// <summary>
  15. /// 父类大纲
  16. /// </summary>
  17. private OutlineNode parent = null;
  18. public OutlineNode Parent
  19. {
  20. get { return parent; }
  21. set
  22. {
  23. SetProperty(ref parent, value);
  24. }
  25. }
  26. /// <summary>
  27. /// 当前大纲对象
  28. /// </summary>
  29. private CPDFOutline outline = null;
  30. public CPDFOutline Outline
  31. {
  32. get { return outline; }
  33. set
  34. {
  35. SetProperty(ref outline, value);
  36. }
  37. }
  38. /// <summary>
  39. /// 子类大纲集合
  40. /// </summary>
  41. private ObservableCollection<OutlineNode> chlidlist = new ObservableCollection<OutlineNode>();
  42. public ObservableCollection<OutlineNode> Chlidlist
  43. {
  44. get { return chlidlist; }
  45. set
  46. {
  47. SetProperty(ref chlidlist, value);
  48. }
  49. }
  50. /// <summary>
  51. /// 控制虚线的显示
  52. /// </summary>
  53. private bool isInsertNextLayer = false;
  54. public bool IsInsertNextLayer
  55. {
  56. get { return isInsertNextLayer; }
  57. set
  58. {
  59. SetProperty(ref isInsertNextLayer, value);
  60. }
  61. }
  62. /// <summary>
  63. /// 控制实线的显示
  64. /// </summary>
  65. private bool isInsertCurrentLayer = false;
  66. public bool IsInsertCurrentLayer
  67. {
  68. get { return isInsertCurrentLayer; }
  69. set
  70. {
  71. SetProperty(ref isInsertCurrentLayer, value);
  72. }
  73. }
  74. /// <summary>
  75. /// 当前节点展开状态
  76. /// </summary>
  77. private bool isExpanded = false;
  78. public bool IsExpanded
  79. {
  80. get { return isExpanded; }
  81. set
  82. {
  83. SetProperty(ref isExpanded, value);
  84. }
  85. }
  86. private bool isSelected;
  87. public bool IsSelected
  88. {
  89. get { return isSelected; }
  90. set
  91. {
  92. SetProperty(ref isSelected, value);
  93. }
  94. }
  95. private bool canDown = true;
  96. public bool CanDown
  97. {
  98. get { return canDown; }
  99. set
  100. {
  101. SetProperty(ref canDown, value);
  102. }
  103. }
  104. private bool canUp = true;
  105. public bool CanUp
  106. {
  107. get { return canUp; }
  108. set
  109. {
  110. SetProperty(ref canUp, value);
  111. }
  112. }
  113. private bool canAddParent = true;
  114. public bool CanAddParent
  115. {
  116. get { return canAddParent; }
  117. set
  118. {
  119. SetProperty(ref canAddParent, value);
  120. }
  121. }
  122. private Visibility isReName=Visibility.Visible;
  123. public Visibility IsReName
  124. {
  125. get { return isReName; }
  126. set
  127. {
  128. SetProperty(ref isReName, value);
  129. }
  130. }
  131. private string pageIndex = "";
  132. public string PageIndex
  133. {
  134. get { return pageIndex; }
  135. set
  136. {
  137. SetProperty(ref pageIndex, value);
  138. }
  139. }
  140. private double positionX;
  141. public double PositionX
  142. {
  143. get { return positionX; }
  144. set
  145. {
  146. SetProperty(ref positionX, value);
  147. }
  148. }
  149. private double positionY;
  150. public double PositionY
  151. {
  152. get { return positionY; }
  153. set
  154. {
  155. SetProperty(ref positionY, value);
  156. }
  157. }
  158. private double zoom;
  159. public double Zoom
  160. {
  161. get { return zoom; }
  162. set
  163. {
  164. SetProperty(ref zoom, value);
  165. }
  166. }
  167. }
  168. }