|
@@ -501,42 +501,12 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
{
|
|
|
panelState.RightPanel = PanelState.RightPanelState.PropertyPanel;
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- //private void PDFView_AnnotActiveHandler(object sender, AnnotAttribEvent e)
|
|
|
- //{
|
|
|
- // PropertyContainer.Child = PDFAnnotationControl;
|
|
|
- // PDFAnnotationControl.SetAnnotEventData(e);
|
|
|
- //}
|
|
|
-
|
|
|
- //private void PDFView_WidgetClickHandler(object sender, WidgetArgs e)
|
|
|
- //{
|
|
|
- // if ((e is WidgetSignArgs args))
|
|
|
- // {
|
|
|
- // var signatureWidget = args.Sign;
|
|
|
- // if(signatureWidget != null)
|
|
|
- // {
|
|
|
- // CPDFSignature sig = signatureWidget.GetSignature(PDFViewControl.PDFView.Document);
|
|
|
- // if (signatureWidget.IsSigned() && sig!=null && sig?.SignerList.Count > 0)
|
|
|
- // {
|
|
|
- // return;
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
- // if (args.WidgetType == C_WIDGET_TYPE.WIDGET_SIGNATUREFIELDS)
|
|
|
- // {
|
|
|
- // panelState.RightPanel = PanelState.RightPanelState.PropertyPanel;
|
|
|
- // CPDFSignatureUI signatureProperty = new CPDFSignatureUI();
|
|
|
- // signatureProperty.SetFormProperty(args, PDFViewControl.PDFView);
|
|
|
- // PropertyContainer.Child = signatureProperty;
|
|
|
- // }
|
|
|
- // }
|
|
|
- //}
|
|
|
-
|
|
|
- //private void PDFView_AnnotEditHandler(object sender, List<AnnotEditEvent> e)
|
|
|
- //{
|
|
|
- // OnAnnotEditHandler.Invoke(this, null);
|
|
|
- //}
|
|
|
+ if(e == CPDFAnnotationType.Link)
|
|
|
+ {
|
|
|
+ PDFViewControl.PDFViewTool.GetCPDFViewer().SetLinkHighlight(true);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
private void CommandBinding_Executed_Undo(object sender, ExecutedRoutedEventArgs e)
|
|
|
{
|