using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace PDF_Office.Model.PageEdit
{
    public class PageEditHistory
    {
        /// <summary>
        /// 操作类型
        /// </summary>
        public ActionType Type { get; set; }

        /// <summary>
        /// 原位置-新位置集合  用于倒序、旋转、拖拽排序
        /// </summary>
        public Dictionary<int, int> SourceTargetValue { get; set; }

        /// <summary>
        /// 插入位置
        /// </summary>
        public int InsertIndex { get; set; }

        /// <summary>
        ///插入文件的文件路径
        /// </summary>
        public string InsertFilePath { get; set; }

        /// <summary>
        /// 插入文件的密码
        /// </summary>
        public string InsertFilePassWord { get; set; }

        /// <summary>
        /// 插入文档的页面总数
        /// </summary>
        public int InsertPageCount { get; set; }

        /// <summary>
        /// 插入的页面尺寸大小
        /// </summary>
        public Size PageSize { get; set; }
    }

    /// <summary>
    /// 操作类型
    /// </summary>
    public enum ActionType
    {
        /// <summary>
        /// 页面右旋转
        /// </summary>
        RightRotate,
        /// <summary>
        /// 页面左旋转
        /// </summary>
        LeftRotate,
        /// <summary>
        /// 从文件插入
        /// </summary>
        InsertFromFile,
        /// <summary>
        /// 插入自定义页面
        /// </summary>
        InsertCustomPages,
        /// <summary>
        /// 拖拽排序
        /// </summary>
        DragSort,
        /// <summary>
        /// 倒序
        /// </summary>
        Reverse

    }
}
