|
@@ -1,34 +1,30 @@
|
|
-using ComPDFKit.PDFAnnotation;
|
|
|
|
-using ComPDFKit.PDFDocument.Action;
|
|
|
|
|
|
+using ComPDFKit.Import;
|
|
|
|
+using ComPDFKit.PDFAnnotation;
|
|
using ComPDFKit.PDFDocument;
|
|
using ComPDFKit.PDFDocument;
|
|
|
|
+using ComPDFKit.PDFDocument.Action;
|
|
using ComPDFKitViewer;
|
|
using ComPDFKitViewer;
|
|
using ComPDFKitViewer.AnnotEvent;
|
|
using ComPDFKitViewer.AnnotEvent;
|
|
using ComPDFKitViewer.PdfViewer;
|
|
using ComPDFKitViewer.PdfViewer;
|
|
using PDF_Master.CustomControl;
|
|
using PDF_Master.CustomControl;
|
|
using PDF_Master.EventAggregators;
|
|
using PDF_Master.EventAggregators;
|
|
using PDF_Master.Helper;
|
|
using PDF_Master.Helper;
|
|
|
|
+using PDF_Master.Model.AnnotPanel;
|
|
using PDF_Master.Properties;
|
|
using PDF_Master.Properties;
|
|
using PDF_Master.ViewModels.BOTA;
|
|
using PDF_Master.ViewModels.BOTA;
|
|
|
|
+using PDF_Master.ViewModels.Tools.AnnotManager;
|
|
using PDF_Master.Views.BOTA;
|
|
using PDF_Master.Views.BOTA;
|
|
using PDFSettings;
|
|
using PDFSettings;
|
|
using Prism.Mvvm;
|
|
using Prism.Mvvm;
|
|
using Prism.Regions;
|
|
using Prism.Regions;
|
|
using System;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
|
|
+using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Linq;
|
|
-using System.Text;
|
|
|
|
-using System.Threading.Tasks;
|
|
|
|
using System.Windows;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Controls.Primitives;
|
|
using System.Windows.Controls.Primitives;
|
|
-using System.Windows.Media;
|
|
|
|
-using System.Diagnostics;
|
|
|
|
-using PDF_Master.Model.AnnotPanel;
|
|
|
|
using System.Windows.Input;
|
|
using System.Windows.Input;
|
|
-using PDF_Master.ViewModels.Tools.AnnotManager;
|
|
|
|
-using ComPDFKit.Import;
|
|
|
|
-using System.Windows.Markup;
|
|
|
|
-using ImTools;
|
|
|
|
|
|
+using System.Windows.Media;
|
|
|
|
|
|
namespace PDF_Master.ViewModels.Tools
|
|
namespace PDF_Master.ViewModels.Tools
|
|
{
|
|
{
|
|
@@ -374,7 +370,7 @@ namespace PDF_Master.ViewModels.Tools
|
|
switch (annot.EventType)
|
|
switch (annot.EventType)
|
|
{
|
|
{
|
|
case AnnotArgsType.AnnotFreeText:
|
|
case AnnotArgsType.AnnotFreeText:
|
|
- GetFreetext(e.AnnotItemsList);
|
|
|
|
|
|
+ annot = GetFreetext(e.AnnotItemsList);
|
|
PDFViewer.SetToolParam(annot);
|
|
PDFViewer.SetToolParam(annot);
|
|
break;
|
|
break;
|
|
|
|
|
|
@@ -873,14 +869,14 @@ namespace PDF_Master.ViewModels.Tools
|
|
{
|
|
{
|
|
case ActionType.Add:
|
|
case ActionType.Add:
|
|
|
|
|
|
- if (editEvent.EditAnnotArgs is StickyAnnotArgs stickyAnnotArgs)
|
|
|
|
- {
|
|
|
|
- PDFViewer.SelectAnnotation(stickyAnnotArgs.PageIndex, stickyAnnotArgs.AnnotIndex);
|
|
|
|
- }
|
|
|
|
- if (editEvent.EditAnnotArgs is FreeTextAnnotArgs freeTextAnnotArgs)
|
|
|
|
- {
|
|
|
|
- PDFViewer.SelectAnnotation(freeTextAnnotArgs.PageIndex, freeTextAnnotArgs.AnnotIndex);
|
|
|
|
- }
|
|
|
|
|
|
+ //if (editEvent.EditAnnotArgs is StickyAnnotArgs stickyAnnotArgs)
|
|
|
|
+ //{
|
|
|
|
+ // PDFViewer.SelectAnnotation(stickyAnnotArgs.PageIndex, stickyAnnotArgs.AnnotIndex);
|
|
|
|
+ //}
|
|
|
|
+ //if (editEvent.EditAnnotArgs is FreeTextAnnotArgs freeTextAnnotArgs)
|
|
|
|
+ //{
|
|
|
|
+ // PDFViewer.SelectAnnotation(freeTextAnnotArgs.PageIndex, freeTextAnnotArgs.AnnotIndex);
|
|
|
|
+ //}
|
|
//BOTA
|
|
//BOTA
|
|
bool isTabItemAnnotation = IsBOTATabItemShow(out BOTAContentViewModel bOTAContentViewModel, out BOTAContent bOTAContent, "TabItemAnnotation");
|
|
bool isTabItemAnnotation = IsBOTATabItemShow(out BOTAContentViewModel bOTAContentViewModel, out BOTAContent bOTAContent, "TabItemAnnotation");
|
|
|
|
|
|
@@ -902,10 +898,10 @@ namespace PDF_Master.ViewModels.Tools
|
|
AddAnnotSignature(editEvent.EditAnnotArgs);
|
|
AddAnnotSignature(editEvent.EditAnnotArgs);
|
|
}
|
|
}
|
|
|
|
|
|
- if (editEvent.EditAnnotArgs.EventType == AnnotArgsType.AnnotFreeText)
|
|
|
|
- {
|
|
|
|
- (editEvent.EditAnnotArgs as FreeTextAnnotArgs).LineWidth = 0;
|
|
|
|
- }
|
|
|
|
|
|
+ //if (editEvent.EditAnnotArgs.EventType == AnnotArgsType.AnnotFreeText)
|
|
|
|
+ //{
|
|
|
|
+ // (editEvent.EditAnnotArgs as FreeTextAnnotArgs).LineWidth = 0;
|
|
|
|
+ //}
|
|
|
|
|
|
break;
|
|
break;
|
|
|
|
|