AnnotationContent.xaml.cs 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599
  1. using ComPDFKit.PDFAnnotation;
  2. using ComPDFKit.PDFPage;
  3. using ComPDFKitViewer;
  4. using ComPDFKitViewer.AnnotEvent;
  5. using ImTools;
  6. using PDF_Master.DataConvert;
  7. using PDF_Master.EventAggregators;
  8. using PDF_Master.Helper;
  9. using PDF_Master.Model.BOTA;
  10. using PDF_Master.ViewModels;
  11. using PDF_Master.ViewModels.BOTA;
  12. using Prism.Events;
  13. using System;
  14. using System.Collections.Generic;
  15. using System.ComponentModel;
  16. using System.Diagnostics;
  17. using System.Linq;
  18. using System.Runtime.InteropServices.Expando;
  19. using System.Text;
  20. using System.Threading.Tasks;
  21. using System.Windows;
  22. using System.Windows.Annotations;
  23. using System.Windows.Controls;
  24. using System.Windows.Controls.Primitives;
  25. using System.Windows.Data;
  26. using System.Windows.Documents;
  27. using System.Windows.Forms;
  28. using System.Windows.Input;
  29. using System.Windows.Media;
  30. using System.Windows.Media.Imaging;
  31. using System.Windows.Navigation;
  32. using System.Windows.Shapes;
  33. using static Dropbox.Api.Paper.ListPaperDocsSortBy;
  34. using static Dropbox.Api.TeamLog.PaperDownloadFormat;
  35. using static System.Windows.Forms.VisualStyles.VisualStyleElement.StartPanel;
  36. using ListBox = System.Windows.Controls.ListBox;
  37. using MenuItem = System.Windows.Controls.MenuItem;
  38. using UserControl = System.Windows.Controls.UserControl;
  39. namespace PDF_Master.Views.BOTA
  40. {
  41. /// <summary>
  42. /// AnnotationContent.xaml 的交互逻辑
  43. /// </summary>
  44. public partial class AnnotationContent : UserControl
  45. {
  46. public AnnotationContentViewModel viewModel;
  47. private string unicode;
  48. public AnnotationContent(IEventAggregator eventAggregator)
  49. {
  50. InitializeComponent();
  51. unicode = App.mainWindowViewModel.SelectedItem.Unicode;
  52. viewModel = this.DataContext as AnnotationContentViewModel;
  53. if (AnnotationList.Items.Count < 0)
  54. {
  55. MenuExpandAll.IsEnabled = false;
  56. }
  57. eventAggregator.GetEvent<CleanSelectAllEvent>().Subscribe(CleanSelectAll, e => e.Unicode == unicode);
  58. eventAggregator.GetEvent<RefreshAnnotationEvent>().Subscribe(ExpandGroupHeader, e => e.Unicode == unicode);
  59. }
  60. public async void ExpandGroupHeader(RefreshAnnotationArgs obj)
  61. {
  62. if (obj.IsAll)
  63. {
  64. ExpandAllGroupHeader(obj);
  65. }
  66. else
  67. {
  68. //需要时间加载完 listbox所有的控件模板
  69. await Task.Delay(200);
  70. ExpandOneGroupHeader(obj);
  71. }
  72. }
  73. private async void ExpandAllGroupHeader(RefreshAnnotationArgs obj)
  74. {
  75. try
  76. {
  77. foreach (var item in AnnotationList.Items)
  78. {
  79. var groups = AnnotationList.Items.Groups;
  80. for (int i = 0; i < groups.Count; i++)
  81. {
  82. if (groups[i] is CollectionViewGroup group)
  83. {
  84. if (group.Items.Contains(item))
  85. {
  86. var scroller = GetScrollHost(AnnotationList);
  87. var stackpanel = CommonHelper.FindVisualChild<StackPanel>(scroller);
  88. if (stackpanel == null)
  89. {
  90. await Task.Delay(1);
  91. }
  92. else
  93. {
  94. GroupItemExpanded(stackpanel, i);
  95. }
  96. }
  97. }
  98. }
  99. }
  100. }
  101. catch (Exception ex) { }
  102. }
  103. public async void ExpandOneGroupHeader(RefreshAnnotationArgs obj)
  104. {
  105. if (obj.annotHandlerArgs == null)
  106. {
  107. if (obj.Pageindex != -1 && obj.AnnotIndex != -1)
  108. {
  109. List<AnnotationHandlerEventArgs> annotations = AnnotationList.Items.Cast<AnnotationHandlerEventArgs>().ToList();
  110. obj.annotHandlerArgs = annotations.FirstOrDefault(x => x.PageIndex == obj.Pageindex && x.AnnotIndex == obj.AnnotIndex);
  111. }
  112. }
  113. if (obj.annotHandlerArgs != null)
  114. {
  115. try
  116. {
  117. var groups = AnnotationList.Items.Groups;
  118. if (groups != null && groups.Count > 0)
  119. {
  120. for (int i = 0; i < groups.Count; i++)
  121. {
  122. if (groups[i] is CollectionViewGroup group)
  123. {
  124. if (group.Items.Contains(obj.annotHandlerArgs))
  125. {
  126. var scroller = GetScrollHost(AnnotationList);
  127. var stackpanel = CommonHelper.FindVisualChild<StackPanel>(scroller);
  128. if (stackpanel != null)
  129. {
  130. GroupItemExpanded(stackpanel, i);
  131. }
  132. else
  133. {
  134. ItemsPresenter itemsPresenter = CommonHelper.FindVisualChild<ItemsPresenter>(scroller);
  135. if (itemsPresenter != null)
  136. {
  137. var tt = VisualTreeHelper.GetChild(itemsPresenter, i);
  138. int count = VisualTreeHelper.GetChildrenCount(tt);
  139. }
  140. }
  141. }
  142. }
  143. }
  144. }
  145. if (obj.IsDel)
  146. {
  147. viewModel.IsModified = true;
  148. }
  149. await Task.Delay(10);//不加延时 会有不滚动的现象
  150. SelectedItems(obj);
  151. }
  152. catch (Exception ex) { }
  153. }
  154. }
  155. private void GroupItemExpanded(StackPanel stackpanel, int i)
  156. {
  157. int count = VisualTreeHelper.GetChildrenCount(stackpanel);
  158. if (count > 0)
  159. {
  160. if (VisualTreeHelper.GetChild(stackpanel, i) is GroupItem groupItem)
  161. {
  162. var expander = CommonHelper.FindVisualChild<Expander>(groupItem);
  163. if (expander != null)
  164. {
  165. if (expander.IsExpanded == false)
  166. {
  167. expander.IsExpanded = true;
  168. }
  169. }
  170. }
  171. }
  172. }
  173. private async void SelectedItems(RefreshAnnotationArgs obj)
  174. {
  175. if (obj.IsSelect && obj.annotHandlerArgs != null)
  176. {
  177. if (viewModel.ViewContentViewModel.IsMultiSelected == false)
  178. {
  179. if (AnnotationList.SelectedItems.IndexOf(obj.annotHandlerArgs) == -1)
  180. {
  181. viewModel.IsModified = false;
  182. AnnotationList.SelectedItem = obj.annotHandlerArgs;
  183. AnnotationList.SelectedIndex = AnnotationList.Items.IndexOf(obj.annotHandlerArgs);
  184. }
  185. await Task.Delay(10);//不加延时 会有不滚动的现象
  186. AnnotationList.ScrollIntoView(AnnotationList.SelectedItem);
  187. }
  188. }
  189. }
  190. private void CleanSelectAll(CleanSelectAllArgs obj)
  191. {
  192. AnnotationList.SelectedIndex = -1;
  193. }
  194. private void ListBoxItem_PreviewMouseDown(object sender, MouseButtonEventArgs e)
  195. {
  196. if (e.ClickCount == 1)
  197. {
  198. //if (Mouse.LeftButton == e.ButtonState)
  199. //{
  200. // viewModel.ListBoxItemPreviewMouseLeftButtonDown.Execute(sender);
  201. //}
  202. if (Mouse.RightButton == e.ButtonState)
  203. {
  204. var pos = e.GetPosition(AnnotationList);
  205. var result = VisualTreeHelper.HitTest(AnnotationList, pos);
  206. if (result != null)
  207. {
  208. ListBoxItem myListBoxItem = sender as System.Windows.Controls.ListBoxItem;
  209. MenuItem copyText = myListBoxItem.ContextMenu.Items[0] as MenuItem;
  210. MenuItem import = myListBoxItem.ContextMenu.Items[1] as MenuItem;
  211. MenuItem export = myListBoxItem.ContextMenu.Items[2] as MenuItem;
  212. if (AnnotationList.SelectedItems.Count > 1)
  213. {
  214. import.IsEnabled = false;
  215. export.IsEnabled = true;
  216. export.Command = viewModel.ExportCommentsCommand;
  217. copyText.IsEnabled = false;
  218. }
  219. else
  220. {
  221. //直接右键菜单不需要选中Viewer中注释
  222. //viewModel.ListBoxItemPreviewMouseLeftButtonDown.Execute(sender);
  223. if (myListBoxItem.DataContext is AnnotationHandlerEventArgs annotation)
  224. {
  225. //文本、高亮、下划线、删除线、便签
  226. if (annotation.EventType == AnnotArgsType.AnnotFreeText ||
  227. annotation.EventType == AnnotArgsType.AnnotHighlight ||
  228. annotation.EventType == AnnotArgsType.AnnotUnderline ||
  229. annotation.EventType == AnnotArgsType.AnnotStrikeout ||
  230. annotation.EventType == AnnotArgsType.AnnotSticky)
  231. {
  232. copyText.IsEnabled = true;
  233. }
  234. else
  235. {
  236. copyText.IsEnabled = false;
  237. }
  238. }
  239. import.IsEnabled = true;
  240. import.Command = viewModel.ImportCommentsCommand;
  241. export.IsEnabled = true;
  242. export.Command = viewModel.ExportCommentsCommand;
  243. }
  244. }
  245. //拦截响应选中事件
  246. e.Handled = true;
  247. }
  248. }
  249. }
  250. private void ListBoxItem_PreviewMouseDoubleClick(object sender, MouseButtonEventArgs e)
  251. {
  252. if (Mouse.LeftButton == e.ButtonState)
  253. {
  254. viewModel.AddNotesCommand.Execute(sender);
  255. }
  256. }
  257. private async void MenuExpandAll_Click(object sender, RoutedEventArgs e)
  258. {
  259. SetAllExpander(true);
  260. await Task.Delay(1);
  261. for (int i = 0; i < AnnotationList.Items.Count; i++)
  262. {
  263. ListBoxItem item = AnnotationList.ItemContainerGenerator.ContainerFromIndex(i) as ListBoxItem;
  264. if (item != null)
  265. {
  266. ToggleButton button = GetExpandButton(item);
  267. if (button != null && button.Visibility == Visibility.Visible)
  268. {
  269. button.IsChecked = true;
  270. }
  271. }
  272. }
  273. }
  274. private void MenuCollapseAll_Click(object sender, RoutedEventArgs e)
  275. {
  276. for (int i = 0; i < AnnotationList.Items.Count; i++)
  277. {
  278. ListBoxItem item = AnnotationList.ItemContainerGenerator.ContainerFromIndex(i) as ListBoxItem;
  279. ToggleButton button = GetExpandButton(item);
  280. if (button != null && button.Visibility == Visibility.Visible)
  281. {
  282. button.IsChecked = false;
  283. }
  284. }
  285. SetAllExpander(false);
  286. }
  287. private void SetAllExpander(bool isexpand)
  288. {
  289. AnnotationList.Dispatcher.Invoke(() =>
  290. {
  291. //开启虚拟化之后 全部展开和折叠会有问题
  292. var scroller = GetScrollHost(AnnotationList);
  293. var stackpanel = CommonHelper.FindVisualChild<StackPanel>(scroller);
  294. int count = VisualTreeHelper.GetChildrenCount(stackpanel);
  295. for (int i = 0; i < count; i++)
  296. {
  297. var item = VisualTreeHelper.GetChild(stackpanel, i) as GroupItem;
  298. var g = CommonHelper.FindVisualChild<Expander>(item);
  299. if (g != null)
  300. g.IsExpanded = isexpand;
  301. }
  302. });
  303. }
  304. private ScrollViewer GetScrollHost(ListBox listBox)
  305. {
  306. if (VisualTreeHelper.GetChildrenCount(listBox) > 0)
  307. {
  308. int s = VisualTreeHelper.GetChildrenCount(listBox);
  309. Border border = VisualTreeHelper.GetChild(listBox, 0) as Border;
  310. if (border != null)
  311. {
  312. return VisualTreeHelper.GetChild(border, 0) as ScrollViewer;
  313. }
  314. }
  315. return null;
  316. }
  317. private ToggleButton GetExpandButton(ListBoxItem item)
  318. {
  319. if (item == null) return null;
  320. Border border = VisualTreeHelper.GetChild(item, 0) as Border;
  321. var btn = CommonHelper.FindVisualChild<ToggleButton>(border);
  322. return btn;
  323. }
  324. private void MenuTimeRightSort_Click(object sender, RoutedEventArgs e)
  325. {
  326. ICollectionView v = CollectionViewSource.GetDefaultView(AnnotationList.ItemsSource);
  327. CreateTimeToDate createTimeToDate = new CreateTimeToDate();
  328. v.GroupDescriptions.Clear();
  329. v.GroupDescriptions.Add(new PropertyGroupDescription(nameof(AnnotHandlerEventArgs.CreateTime), createTimeToDate));
  330. v.SortDescriptions.Clear();
  331. v.SortDescriptions.Add(new SortDescription(nameof(AnnotHandlerEventArgs.CreateTime), ListSortDirection.Ascending));
  332. v.SortDescriptions.Add(new SortDescription(nameof(AnnotHandlerEventArgs.AnnotIndex), ListSortDirection.Ascending));
  333. }
  334. private void MenuTimeBackSort_Click(object sender, RoutedEventArgs e)
  335. {
  336. ICollectionView v = CollectionViewSource.GetDefaultView(AnnotationList.ItemsSource);
  337. CreateTimeToDate createTimeToDate = new CreateTimeToDate();
  338. v.GroupDescriptions.Clear();
  339. v.GroupDescriptions.Add(new PropertyGroupDescription(nameof(AnnotHandlerEventArgs.CreateTime), createTimeToDate));
  340. v.SortDescriptions.Clear();
  341. v.SortDescriptions.Add(new SortDescription(nameof(AnnotHandlerEventArgs.CreateTime), ListSortDirection.Descending));
  342. v.SortDescriptions.Add(new SortDescription(nameof(AnnotHandlerEventArgs.AnnotIndex), ListSortDirection.Descending));
  343. }
  344. private void MenuPageSort_Click(object sender, RoutedEventArgs e)
  345. {
  346. ICollectionView v = CollectionViewSource.GetDefaultView(AnnotationList.ItemsSource);
  347. v.GroupDescriptions.Clear();
  348. v.GroupDescriptions.Add(new PropertyGroupDescription(nameof(AnnotHandlerEventArgs.PageIndex)));
  349. v.SortDescriptions.Clear();
  350. v.SortDescriptions.Add(new SortDescription(nameof(AnnotHandlerEventArgs.PageIndex), ListSortDirection.Ascending));
  351. v.SortDescriptions.Add(new SortDescription(nameof(AnnotHandlerEventArgs.AnnotIndex), ListSortDirection.Ascending));
  352. }
  353. private void MenuItemCopyText_Click(object sender, RoutedEventArgs e)
  354. {
  355. //没有权限解密时,拦截复制文本操作
  356. if (!viewModel.ViewContentViewModel.CheckPermissionBeforeOption())
  357. {
  358. return;
  359. }
  360. if (AnnotationList.SelectedItems.Count == 1)
  361. {
  362. if (AnnotationList.SelectedItem is AnnotationHandlerEventArgs annotation)
  363. {
  364. //文本、高亮、下划线、删除线、便签
  365. if (annotation.EventType == AnnotArgsType.AnnotFreeText ||
  366. annotation.EventType == AnnotArgsType.AnnotHighlight ||
  367. annotation.EventType == AnnotArgsType.AnnotUnderline ||
  368. annotation.EventType == AnnotArgsType.AnnotStrikeout ||
  369. annotation.EventType == AnnotArgsType.AnnotSticky)
  370. {
  371. StringBuilder Copystr = new StringBuilder();
  372. if (annotation.MarkupContent != null)
  373. {
  374. Copystr.Append(annotation.MarkupContent);
  375. Copystr.Append(Environment.NewLine);
  376. }
  377. if (annotation.Content != null)
  378. {
  379. Copystr.Append(annotation.Content);
  380. }
  381. System.Windows.Clipboard.SetText(Copystr.ToString());
  382. //CustomControl.MessageBoxEx.Show("数据复制成功");
  383. }
  384. }
  385. }
  386. }
  387. private void MenuItemDelete_Click(object sender, RoutedEventArgs e)
  388. {
  389. List<int> pagelist = new List<int>();
  390. if (AnnotationList.SelectedItems.Count > 1)
  391. {
  392. //for (int i = 0; i < AnnotationList.SelectedItems.Count; i++)
  393. //{
  394. // AnnotationHandlerEventArgs annotation = AnnotationList.SelectedItems[i] as AnnotationHandlerEventArgs;
  395. // pagelist.Add(AnnotationList.Items.IndexOf(annotation));
  396. //}
  397. //pagelist.Sort();
  398. //for (int i = 0; i < pagelist.Count; i++)
  399. //{
  400. // AnnotationHandlerEventArgs annotation = AnnotationList.Items[pagelist[pagelist.Count - i - 1]] as AnnotationHandlerEventArgs;
  401. // if (annotation == null)
  402. // {
  403. // continue;
  404. // }
  405. // viewModel.DeleteCommand.Execute(annotation);
  406. //}
  407. Dictionary<int, List<int>> selectedItemDics = new Dictionary<int, List<int>>();
  408. List<AnnotationHandlerEventArgs> eventArgs = new List<AnnotationHandlerEventArgs>();
  409. foreach (var item in AnnotationList.SelectedItems)
  410. {
  411. if (item is AnnotationHandlerEventArgs annotation)
  412. {
  413. if (eventArgs.Contains(annotation) == false)
  414. {
  415. eventArgs.Add(annotation);
  416. }
  417. }
  418. }
  419. var result = eventArgs.GroupBy(d => d.PageIndex);
  420. foreach (var item in result)
  421. {
  422. if (selectedItemDics.ContainsKey(item.Key) == false)
  423. {
  424. var ai = item.Select(w => w.AnnotIndex).ToList();
  425. selectedItemDics.Add(item.Key, ai);
  426. }
  427. }
  428. viewModel.DeleteCommand.Execute(selectedItemDics);
  429. }
  430. else
  431. {
  432. AnnotationHandlerEventArgs annotation = (AnnotationHandlerEventArgs)(sender as MenuItem).DataContext;
  433. if (annotation == null)
  434. {
  435. return;
  436. }
  437. viewModel.DeleteCommand.Execute(annotation);
  438. }
  439. }
  440. private void BtnMore_Initialized(object sender, EventArgs e)
  441. {
  442. BtnMore.ContextMenu = null;
  443. }
  444. private void BtnMore_Click(object sender, RoutedEventArgs e)
  445. {
  446. MenuMore.PlacementTarget = BtnMore;
  447. MenuMore.IsOpen = true;
  448. }
  449. private void AnnotationList_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
  450. {
  451. var pos = e.GetPosition(AnnotationList);
  452. var result = VisualTreeHelper.HitTest(AnnotationList, pos);
  453. if (result != null)
  454. {
  455. //获取当前鼠标指针下的容器
  456. var listBoxItem = CommonHelper.FindVisualParent<ListBoxItem>(result.VisualHit);
  457. if (listBoxItem == null)
  458. {
  459. viewModel.ViewContentViewModel.mainViewModel.AnnotMouseLeftButtonDown = false;
  460. }
  461. }
  462. }
  463. private void AnnotationList_SelectionChanged(object sender, SelectionChangedEventArgs e)
  464. {
  465. var selectedItems = (sender as ListBox).SelectedItems.Cast<AnnotationHandlerEventArgs>().ToList();
  466. if (selectedItems.Count == 1)
  467. {
  468. if (viewModel.IsModified)
  469. {
  470. viewModel.ListBoxItemPreviewMouseLeftButtonDown.Execute(selectedItems[0]);
  471. }
  472. viewModel.IsModified = true;
  473. }
  474. else if (selectedItems.Count > 1)
  475. {
  476. #region 阅读视图 多选
  477. Dictionary<int, List<int>> selectedItemDics = new Dictionary<int, List<int>>();
  478. List<AnnotationHandlerEventArgs> eventArgs = new List<AnnotationHandlerEventArgs>();
  479. foreach (var item in selectedItems)
  480. {
  481. if (item is AnnotationHandlerEventArgs annotation)
  482. {
  483. if (eventArgs.Contains(annotation) == false)
  484. {
  485. eventArgs.Add(annotation);
  486. }
  487. }
  488. }
  489. var result = eventArgs.GroupBy(d => d.PageIndex);
  490. foreach (var item in result)
  491. {
  492. if (selectedItemDics.ContainsKey(item.Key) == false)
  493. {
  494. var ai = item.Select(w => w.AnnotIndex).ToList();
  495. selectedItemDics.Add(item.Key, ai);
  496. }
  497. }
  498. #endregion 阅读视图 多选
  499. viewModel.ListBoxItemPreviewMouseLeftButtonDown.Execute(selectedItemDics);
  500. }
  501. }
  502. private void AnnotationList_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
  503. {
  504. if (AnnotationList.SelectedItems == null)
  505. {
  506. return;
  507. }
  508. if (e.Key == Key.Escape)
  509. {
  510. //Windows:BOTA列表,移除Esc取消选中逻辑
  511. //AnnotationList.SelectedItems.Clear();
  512. }
  513. }
  514. private void Grid_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
  515. {
  516. var pos = e.GetPosition(this);
  517. var result = VisualTreeHelper.HitTest(this, pos);
  518. if (result != null)
  519. {
  520. //点击按钮和listboxitem时 不清空多选 其余区域取消多选
  521. var item = CommonHelper.FindVisualParent<ListBoxItem>(result.VisualHit);
  522. if (item != null)
  523. {
  524. return;
  525. }
  526. var btn = CommonHelper.FindVisualParent<System.Windows.Controls.Button>(result.VisualHit);
  527. if (btn != null)
  528. {
  529. return;
  530. }
  531. }
  532. }
  533. private void ListBox_MouseDown(object sender, MouseButtonEventArgs e)
  534. {
  535. AnnotationList.SelectedIndex = -1;
  536. }
  537. private void ContextMenu_Loaded(object sender, RoutedEventArgs e)
  538. {
  539. var menu = sender as System.Windows.Controls.ContextMenu;
  540. if (menu != null)
  541. {
  542. (menu.Items[0] as MenuItem).Header = viewModel.T_CopyText;
  543. (menu.Items[1] as MenuItem).Header = viewModel.T_Import;
  544. (menu.Items[2] as MenuItem).Header = viewModel.T_Export;
  545. (menu.Items[3] as MenuItem).Header = viewModel.T_Delete;
  546. if (AnnotationList.SelectedItems.Count > 1)
  547. {
  548. (menu.Items[3] as MenuItem).Header = viewModel.T_DeleteAll;
  549. }
  550. }
  551. }
  552. }
  553. }