|
@@ -185,6 +185,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
if (result != null)
|
|
if (result != null)
|
|
{
|
|
{
|
|
DoInsert(result);
|
|
DoInsert(result);
|
|
|
|
+ CanSave = true;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
@@ -1507,6 +1508,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
ItemsInViewHitTest();
|
|
ItemsInViewHitTest();
|
|
this.PageMoved?.Invoke(this, new RoutedEventArgs());
|
|
this.PageMoved?.Invoke(this, new RoutedEventArgs());
|
|
UpdateSortedPageNum(sourceindex, targetindex);
|
|
UpdateSortedPageNum(sourceindex, targetindex);
|
|
|
|
+ CanSave = true;
|
|
}
|
|
}
|
|
|
|
|
|
private void UpdateSortedPageNum(int sourceIndex, int targetIndex)
|
|
private void UpdateSortedPageNum(int sourceIndex, int targetIndex)
|
|
@@ -1610,8 +1612,8 @@ namespace Compdfkit_Tools.PDFControl
|
|
if (visiblePageIndexes.Contains(insertindex + i))
|
|
if (visiblePageIndexes.Contains(insertindex + i))
|
|
visiblePageIndexes.Remove(insertindex + i);
|
|
visiblePageIndexes.Remove(insertindex + i);
|
|
}
|
|
}
|
|
- CPDFViewer pdfViewer=GetPDFViewer();
|
|
|
|
- if(pdfViewer!=null)
|
|
|
|
|
|
+ CPDFViewer pdfViewer=GetPDFViewer();
|
|
|
|
+ if(pdfViewer != null)
|
|
{
|
|
{
|
|
pdfViewer.UndoManager?.ClearHistory();
|
|
pdfViewer.UndoManager?.ClearHistory();
|
|
}
|
|
}
|
|
@@ -1667,6 +1669,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
}
|
|
}
|
|
pdfViewer?.UpdateVirtualNodes();
|
|
pdfViewer?.UpdateVirtualNodes();
|
|
ItemsInViewHitTest();
|
|
ItemsInViewHitTest();
|
|
|
|
+ CanSave = true;
|
|
}
|
|
}
|
|
|
|
|
|
public static string CreateFilePath(string path)
|
|
public static string CreateFilePath(string path)
|
|
@@ -1861,7 +1864,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
pageList.Add(PageEditListBox.Items[insertIndex + i] as ListBoxItem);
|
|
pageList.Add(PageEditListBox.Items[insertIndex + i] as ListBoxItem);
|
|
PageEditListBox.SelectedItems.Add(PageEditListBox.Items[insertIndex + i] as ListBoxItem);
|
|
PageEditListBox.SelectedItems.Add(PageEditListBox.Items[insertIndex + i] as ListBoxItem);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ CanSave = true;
|
|
UpdateAllPageNum();
|
|
UpdateAllPageNum();
|
|
}
|
|
}
|
|
|
|
|