CPDFOutlineUI.xaml.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. namespace compdfkit_tools.PDFControlUI
  17. {
  18. /// <summary>
  19. /// CPDFOutlineUI.xaml 的交互逻辑
  20. /// </summary>
  21. public partial class CPDFOutlineUI : UserControl
  22. {
  23. public CPDFOutlineUI()
  24. {
  25. InitializeComponent();
  26. }
  27. }
  28. internal class CPDFOutlineNode
  29. {
  30. /// <summary>
  31. /// 大纲父节点
  32. /// </summary>
  33. private CPDFOutlineNode parentNode = null;
  34. /// <summary>
  35. /// 当前节点
  36. /// </summary>
  37. private CPDFOutlineNode currentNode = null;
  38. /// <summary>
  39. /// 大纲子节点
  40. /// </summary>
  41. private ObservableCollection<CPDFOutlineNode> childNode = null;
  42. /// <summary>
  43. /// 当前展开状态
  44. /// </summary>
  45. private bool isExpanded = false;
  46. /// <summary>
  47. /// 当前节点页面
  48. /// </summary>
  49. private int pageIndex = 0;
  50. /// <summary>
  51. /// 当前节点所在页面中的水平位置
  52. /// </summary>
  53. private double positionX;
  54. /// <summary>
  55. /// 当前节点所在页面中的垂直位置
  56. /// </summary>
  57. private double positionY;
  58. }
  59. }