123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- using ComPDFKitViewer;
- using PDF_Master.ViewModels.PageEdit;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- namespace PDF_Master.Model.PageEdit
- {
- public class PageEditHistory:IHistory
- {
-
-
-
- public ActionType Type { get; set; }
-
-
-
- public Dictionary<int, int> SourceTargetValue { get; set; }
-
-
-
- public int InsertIndex { get; set; }
-
-
-
- public string InsertFilePath { get; set; }
-
-
-
- public string InsertFilePassWord { get; set; }
-
-
-
- public int InsertPageCount { get; set; }
-
-
-
- public Size PageSize { get; set; }
-
-
-
- public PageEditContentViewModel viewmodel { get; set; }
- public bool Redo()
- {
- viewmodel.Redo(this);
- return true;
- }
- public bool Undo()
- {
- viewmodel.Undo(this);
- return true;
- }
- }
-
-
-
- public enum ActionType
- {
-
-
-
- RightRotate,
-
-
-
- LeftRotate,
-
-
-
- InsertFromFile,
-
-
-
- InsertCustomPages,
-
-
-
- DragSort,
-
-
-
- Reverse,
-
-
-
- Paste
- }
- }
|