using ComPDFKitViewer;
using ComPDFKitViewer.AnnotEvent;
using ComPDFKitViewer.PdfViewer;
using Microsoft.Office.Interop.Word;
using PDF_Master.CustomControl;
using PDF_Master.EventAggregators;
using PDF_Master.Helper;
using PDF_Master.Model;
using PDF_Master.Model.BOTA;
using PDF_Master.ViewModels.BOTA;
using PDF_Master.Views;
using PDF_Master.Views.BOTA;
using PDFSettings;
using Prism.Commands;
using Prism.Events;
using Prism.Mvvm;
using Prism.Regions;
using Prism.Services.Dialogs;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Forms;
namespace PDF_Master.ViewModels.PropertyPanel.ViewModular
{
public class ViewModularContentViewModel : BindableBase, INavigationAware
{
#region 文案
private string T_title;
public string T_Title
{
get { return T_title; }
set
{
SetProperty(ref T_title, value);
}
}
private string T_modeTitle;
public string T_ModeTitle
{
get { return T_modeTitle; }
set
{
SetProperty(ref T_modeTitle, value);
}
}
private string T_single;
public string T_Single
{
get { return T_single; }
set
{
SetProperty(ref T_single, value);
}
}
private string T_two;
public string T_Two
{
get { return T_two; }
set
{
SetProperty(ref T_two, value);
}
}
private string T_book;
public string T_Book
{
get { return T_book; }
set
{
SetProperty(ref T_book, value);
}
}
private string T_read;
public string T_Read
{
get { return T_read; }
set
{
SetProperty(ref T_read, value);
}
}
private string T_full;
public string T_Full
{
get { return T_full; }
set
{
SetProperty(ref T_full, value);
}
}
private string T_continuousScroll;
public string T_ContinuousScroll
{
get { return T_continuousScroll; }
set
{
SetProperty(ref T_continuousScroll, value);
}
}
private string T_pageBreak;
public string T_PageBreak
{
get { return T_pageBreak; }
set
{
SetProperty(ref T_pageBreak, value);
}
}
private string T_rotateTitle;
public string T_RotateTitle
{
get { return T_rotateTitle; }
set
{
SetProperty(ref T_rotateTitle, value);
}
}
private void InitString()
{
T_Title = App.MainPageLoader.GetString("ViewProperties_Title");
T_ModeTitle = App.MainPageLoader.GetString("ViewProperties_Mode");
T_Single = App.MainPageLoader.GetString("ViewProperties_Single");
T_Two = App.MainPageLoader.GetString("ViewProperties_Two");
T_Book = App.MainPageLoader.GetString("ViewProperties_Book");
T_Read = App.MainPageLoader.GetString("ViewProperties_Read");
T_Full = App.MainPageLoader.GetString("ViewProperties_Full");
T_ContinuousScroll = App.MainPageLoader.GetString("ViewProperties_ContinuousScroll");
T_PageBreak = App.MainPageLoader.GetString("ViewProperties_PageBreak");
T_RotateTitle = App.MainPageLoader.GetString("ViewProperties_RotateTitle");
}
#endregion 文案
private IRegionManager region;
private IDialogService dialogs;
public CPDFViewer PDFViewer { get; set; }
public CPDFViewer SplitScreenPDFViewer { get; set; }
public BottomToolContentViewModel BottomToolContentViewModel { get; set; }
public ViewContentViewModel ViewContentViewModel { get; set; }
public string SplitScreenViewRegionName { get; set; }
public string ThemesContentName { get; set; }
private Visibility splitScreenViewVisible = Visibility.Collapsed;
public OpenFileInfo OpenFileInfo = null;
private IEventAggregator events;
///
/// 用于区分事件的唯一码
///
private string unicode;
///
/// 控制Content的显示 用于显示分屏的模块
///
public Visibility SplitScreenViewVisible
{
get { return splitScreenViewVisible; }
set
{
SetProperty(ref splitScreenViewVisible, value);
}
}
private bool isContinue = true;
public bool IsContinue
{
get { return isContinue; }
set
{
SetProperty(ref isContinue, value);
if (value)
{
SetModeView();
}
}
}
private bool isPagesBreak = true;
public bool IsPagesBreak
{
get { return isPagesBreak; }
set
{
SetProperty(ref isPagesBreak, value);
}
}
private bool isSingleView;
public bool IsSingleView
{
get { return isSingleView; }
set
{
SetProperty(ref isSingleView, value);
if (value)
{
SetModeView();
}
}
}
private bool isTwoPageView;
public bool IsTwoPageView
{
get { return isTwoPageView; }
set
{
SetProperty(ref isTwoPageView, value);
if (value)
{
SetModeView();
}
}
}
private bool isBookModeView;
public bool IsBookModeView
{
get { return isBookModeView; }
set
{
SetProperty(ref isBookModeView, value);
if (value)
{
SetModeView();
}
}
}
private bool rBtnFullScreenIsChecked = false;
public bool IsFullScreen
{
get { return rBtnFullScreenIsChecked; }
set
{
SetProperty(ref rBtnFullScreenIsChecked, value);
}
}
public DelegateCommand