|
@@ -210,7 +210,6 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
|
|
|
if (annotBtn.IsChecked == true)
|
|
if (annotBtn.IsChecked == true)
|
|
{
|
|
{
|
|
-
|
|
|
|
PropertyPanel.AnnotSelect = StrAnnotToolChecked;
|
|
PropertyPanel.AnnotSelect = StrAnnotToolChecked;
|
|
PropertyPanel.IsSharpAnnotSelected = true;
|
|
PropertyPanel.IsSharpAnnotSelected = true;
|
|
PropertyPanel.IsFreeHandSelected = true;
|
|
PropertyPanel.IsFreeHandSelected = true;
|
|
@@ -1695,12 +1694,7 @@ namespace PDF_Master.ViewModels.Tools
|
|
case AnnotArgsType.AnnotLine:
|
|
case AnnotArgsType.AnnotLine:
|
|
case AnnotArgsType.AnnotSquare:
|
|
case AnnotArgsType.AnnotSquare:
|
|
case AnnotArgsType.AnnotCircle:
|
|
case AnnotArgsType.AnnotCircle:
|
|
- //case AnnotArgsType.AnnotHighlight:
|
|
|
|
- //case AnnotArgsType.AnnotUnderline:
|
|
|
|
- //case AnnotArgsType.AnnotStrikeout:
|
|
|
|
- //case AnnotArgsType.AnnotStamp:
|
|
|
|
- //case AnnotArgsType.AnnotLink:
|
|
|
|
- //case AnnotArgsType.AnnotFreehand:
|
|
|
|
|
|
+
|
|
case AnnotArgsType.AnnotSticky:
|
|
case AnnotArgsType.AnnotSticky:
|
|
case AnnotArgsType.AnnotFreeText:
|
|
case AnnotArgsType.AnnotFreeText:
|
|
Trace.WriteLine(StrAnnotToolChecked);
|
|
Trace.WriteLine(StrAnnotToolChecked);
|
|
@@ -1711,7 +1705,13 @@ namespace PDF_Master.ViewModels.Tools
|
|
else { ExitAnnotationTool(); }
|
|
else { ExitAnnotationTool(); }
|
|
break;
|
|
break;
|
|
|
|
|
|
- default:
|
|
|
|
|
|
+ case AnnotArgsType.AnnotHighlight:
|
|
|
|
+ case AnnotArgsType.AnnotUnderline:
|
|
|
|
+ case AnnotArgsType.AnnotStrikeout:
|
|
|
|
+ case AnnotArgsType.AnnotStamp:
|
|
|
|
+ case AnnotArgsType.AnnotLink:
|
|
|
|
+ case AnnotArgsType.AnnotFreehand:
|
|
|
|
+ ExitAnnotationTool();
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1738,6 +1738,7 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
|
|
|
private void ExitAnnotationTool()
|
|
private void ExitAnnotationTool()
|
|
{
|
|
{
|
|
|
|
+ PDFViewer.DisableClearSelectAnnot(false);
|
|
PDFViewer.ClearSelectAnnots();
|
|
PDFViewer.ClearSelectAnnots();
|
|
StrAnnotToolChecked = "";
|
|
StrAnnotToolChecked = "";
|
|
PDFViewer.SetMouseMode(MouseModes.PanTool);
|
|
PDFViewer.SetMouseMode(MouseModes.PanTool);
|