using ComPDFKitViewer;
using ComPDFKitViewer.PdfViewer;
using PDF_Office.CustomControl.CompositeControl;
using PDF_Office.Model.PropertyPanel.AnnotPanel;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;

namespace PDF_Office.ViewModels.PropertyPanel.PDFEdit
{

    public class PDFEditVM: FontSetMode
    {
       
        #region 变量
        protected PDFEditEvent TextEditEvent;
        protected CPDFViewer PDFViewer;
        #endregion

        #region 编辑PDF全局

        //平均对齐布局
        private bool _isLayoutAvgAlign = false;
        public bool IsLayoutAvgAlign { get { return _isLayoutAvgAlign; } set { SetProperty(ref _isLayoutAvgAlign, value); } }
        //对齐布局

        private bool _isLayoutAlign = false;
        public bool IsLayoutAlign { get { return _isLayoutAlign; } set { SetProperty(ref _isLayoutAlign, value); } }


        #endregion
        protected void SetPopMenuItem(MenuItem menu, object sender, ICommand command)
        {
            MenuItem menuItem = menu;
            menuItem.CommandTarget = (UIElement)sender;
            menuItem.Command = command;
        }
      
    }
}