Browse Source

ComPDFKit.Tool(win) - 移除多余命名空间

TangJinZhou 2 months ago
parent
commit
63fc3163eb

+ 1 - 0
Demo/Examples/ComPDFKit.Tool/CPDFViewerTool.AnnotEdit.cs

@@ -15,6 +15,7 @@ namespace ComPDFKit.Tool
         public event EventHandler<SelectedAnnotData> AnnotEditDataChanging;
         public event EventHandler<SelectedAnnotData> AnnotEditDataChanged;
         public event EventHandler<object> AnnotChanged;
+
         private void InsertAnnotEditView()
         {
             int selectedRectViewIndex = PDFViewer.GetMaxViewIndex();

+ 1 - 5
Demo/Examples/ComPDFKit.Tool/CPDFViewerTool.CreateWidget.cs

@@ -8,11 +8,6 @@ using ComPDFKitViewer.BaseObject;
 using ComPDFKitViewer.Helper;
 using ComPDFKitViewer.Layer;
 using ComPDFKitViewer.Widget;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Input;
 
@@ -27,6 +22,7 @@ namespace ComPDFKit.Tool
         {
             return cacheMoveWidget;
         }
+
         private void InsertWidgetView()
         {
             CreateWidgetTool createAnnotTool = new CreateWidgetTool();

+ 0 - 2
Demo/Examples/ComPDFKit.Tool/CPDFViewerTool.DataMethod.cs

@@ -21,7 +21,6 @@ namespace ComPDFKit.Tool
         }
 
         #region DefaultAnnot
-
         public void CreateDefaultAnnot(CPDFAnnotation cPDFAnnotation, C_ANNOTATION_TYPE annotType, AnnotParam annotParam)
         {
             if (cPDFAnnotation == null || !cPDFAnnotation.IsValid())
@@ -569,7 +568,6 @@ namespace ComPDFKit.Tool
                         int imageWidth = 0;
                         int imageHeight = 0;
                         PDFHelp.ImageStreamToByte(stampParam.ImageStream, ref imageData, ref imageWidth, ref imageHeight);
-
                         if (imageData != null && imageWidth > 0 && imageHeight > 0)
                         {
                             stampAnnot.SetRect(new CRect(0, imageHeight, imageWidth, 0));

+ 0 - 6
Demo/Examples/ComPDFKit.Tool/CPDFViewerTool.PageSelected.cs

@@ -4,15 +4,9 @@ using ComPDFKit.PDFPage;
 using ComPDFKit.Tool.DrawTool;
 using ComPDFKit.Tool.Help;
 using ComPDFKit.Viewer.Layer;
-using ComPDFKitViewer;
 using ComPDFKitViewer.Helper;
 using ComPDFKitViewer.Layer;
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Reflection;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Controls;
 using System.Windows.Input;

+ 0 - 7
Demo/Examples/ComPDFKit.Tool/CPDFViewerTool.SelectText.cs

@@ -1,17 +1,10 @@
 using ComPDFKit.Tool.DrawTool;
 using ComPDFKitViewer.Layer;
-using System;
 using System.Collections.Generic;
 using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Input;
 using System.Windows;
 using ComPDFKitViewer.Helper;
-using ComPDFKitViewer;
 using ComPDFKit.Tool.Help;
-using System.Windows.Media;
-using System.Xml.Linq;
 
 namespace ComPDFKit.Tool
 {

+ 1 - 1
Demo/Examples/ComPDFKit.Tool/ComPDFKit.Tool.csproj

@@ -137,7 +137,6 @@
     <Compile Include="CPDFToolManager.cs" />
     <Compile Include="SettingParam\AnnotParam.cs" />
     <Compile Include="SettingParam\AnnotParam\CircleParam.cs" />
-    <Compile Include="SettingParam\AnnotParam\PolygonParam.cs" />
     <Compile Include="SettingParam\AnnotParam\FreeTextParam.cs" />
     <Compile Include="SettingParam\AnnotParam\HighlightParam.cs" />
     <Compile Include="SettingParam\AnnotParam\InkParam.cs" />
@@ -175,6 +174,7 @@
     <Compile Include="UndoManger\AnnotHistory\LineAnnotHistory.cs" />
     <Compile Include="UndoManger\AnnotHistory\LineMeasureAnnotHistory.cs" />
     <Compile Include="UndoManger\AnnotHistory\LinkAnnotHistory.cs" />
+    <Compile Include="UndoManger\AnnotHistory\PolygonAnnotHistory.cs" />
     <Compile Include="UndoManger\AnnotHistory\PolygonMeasureAnnotHistory.cs" />
     <Compile Include="UndoManger\AnnotHistory\PolyLineMeasureAnnotHistory.cs" />
     <Compile Include="UndoManger\AnnotHistory\SoundAnnotHistory.cs" />

+ 0 - 2
Demo/Examples/ComPDFKit.Tool/SettingParam/AnnotParam/SquigglyParam.cs

@@ -1,8 +1,6 @@
 using ComPDFKit.Import;
 using ComPDFKit.PDFAnnotation;
 using System.Collections.Generic;
-using System.Windows;
-using System.Windows.Media;
 
 namespace ComPDFKit.Tool
 {