|
@@ -48,47 +48,151 @@ namespace PDFSettings
|
|
|
|
|
|
public class DescriptionPropertyClass
|
|
public class DescriptionPropertyClass
|
|
{
|
|
{
|
|
- private string author = "PDF Reader Pro";
|
|
|
|
- public string Author
|
|
|
|
- {
|
|
|
|
- get { return author; }
|
|
|
|
- set { author = value; }
|
|
|
|
- }
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// app启动时打开上次未关闭的文档
|
|
|
|
+ /// </summary>
|
|
|
|
+ private bool OpenUnClosedFileWhenOpen = false;
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 文档打开时恢复上次视图设置
|
|
|
|
+ /// </summary>
|
|
|
|
+ private bool RecoveryViewWhenOpen = false;
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
- /// 0-a new tab in the Same window 1- open in new window
|
|
|
|
|
|
+ /// 最近打开中文档最多显示数量
|
|
/// </summary>
|
|
/// </summary>
|
|
- public int OpenDocumentMode = 1;
|
|
|
|
|
|
+ private int FileCountInRecentFiles = 10;
|
|
|
|
+
|
|
/// <summary>
|
|
/// <summary>
|
|
- /// 文件打开时是否显示选择在标签页打开方式
|
|
|
|
|
|
+ /// 是否自动保存
|
|
/// </summary>
|
|
/// </summary>
|
|
- public int HideOpenTabWindow = 0;
|
|
|
|
|
|
+ private bool AutoSave = true;
|
|
|
|
|
|
- public ViewMode DefualtLayout = ViewMode.SingleContinuous;
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 自动保存频次
|
|
|
|
+ /// </summary>
|
|
|
|
+ private int AutoSaveInterval = 5;
|
|
|
|
|
|
- public FitMode NewDocumentFitMode = FitMode.FitSize;
|
|
|
|
|
|
|
|
- public ViewMode DefualtLayoutInFullScreen = ViewMode.SingleContinuous;
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 关闭文档 弹出保存提示
|
|
|
|
+ /// </summary>
|
|
|
|
+ private bool ShowSaveWhenClose = true;
|
|
|
|
|
|
- public bool IsOpenLastFilesAtStart = false;
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 关闭文档 无提示 直接保存
|
|
|
|
+ /// </summary>
|
|
|
|
+ private bool NotShowSaveWhenClose = false;
|
|
|
|
|
|
- public bool IsRememberLastPageViewed = true;
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ ///打开图片文档 自动扫描并识别文本
|
|
|
|
+ /// </summary>
|
|
|
|
+ private bool AutoScanImageFile = true;
|
|
|
|
|
|
- public bool IsOpenPanelOnlyforOutline = false;
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 提示扫描并识别文本
|
|
|
|
+ /// </summary>
|
|
|
|
+ private bool TipScanImageFile = false;
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 用户名
|
|
|
|
+ /// </summary>
|
|
|
|
+ private string Author = Environment.UserName;
|
|
}
|
|
}
|
|
|
|
|
|
public class InitialVIewPropertyClass
|
|
public class InitialVIewPropertyClass
|
|
{
|
|
{
|
|
- //字体属性 单独写在外面 层数太多绑定响应不到
|
|
|
|
- public string Background = "#DBDDE5";
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 页面显示模式
|
|
|
|
+ /// </summary>
|
|
|
|
+ private ViewMode PageView = ViewMode.SingleContinuous;
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 缩放比例
|
|
|
|
+ /// </summary>
|
|
|
|
+ private FitMode ZoomMode = FitMode.FitWidth;
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 默认收起BOTA
|
|
|
|
+ /// </summary>
|
|
|
|
+ private bool NotShowBOTA = true;
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 记住上一次BOTA是否展开
|
|
|
|
+ /// </summary>
|
|
|
|
+ private bool RememberBOTA = false;
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 记录本次BOTA的展开状态
|
|
|
|
+ /// </summary>
|
|
|
|
+ private bool IsBOTAOpen = false;
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 有大纲时默认显示大纲列表
|
|
|
|
+ /// </summary>
|
|
|
|
+ private bool ShowOutLine = true;
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ ///属性面板 自动展开
|
|
|
|
+ /// </summary>
|
|
|
|
+ private bool AutoExpandProperty = true;
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 属性面板 手动展开
|
|
|
|
+ /// </summary>
|
|
|
|
+ private bool ClickOpenProperty = true;
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 阅读页背景色
|
|
|
|
+ /// </summary>
|
|
|
|
+ private Color BackGround = Color.White;
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 全屏背景色
|
|
|
|
+ /// </summary>
|
|
|
|
+ private Color BackGroundInFulWindow = Color.White;
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ ///高亮表单
|
|
|
|
+ /// </summary>
|
|
|
|
+ private bool HignlightForm = true;
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 域高亮色
|
|
|
|
+ /// </summary>
|
|
|
|
+ private Color FormHighLightColor = Color.White;
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 必填栏高亮色
|
|
|
|
+ /// </summary>
|
|
|
|
+ private Color RequiredFieldsColor = Color.White;
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 高亮链接
|
|
|
|
+ /// </summary>
|
|
|
|
+ private bool HighlightLink = true;
|
|
}
|
|
}
|
|
|
|
|
|
public class AnnotatePropertyClass
|
|
public class AnnotatePropertyClass
|
|
{
|
|
{
|
|
|
|
+ //各类型注释默认颜色
|
|
|
|
+
|
|
|
|
+ private Color HighLightColor = Color.White;
|
|
|
|
+ private Color UnderLineColor = Color.White;
|
|
|
|
+ private Color StrikethroughColor = Color.White;
|
|
|
|
+ private Color FreeHandColor = Color.White;
|
|
|
|
+ private Color TextAnnoteColor = Color.White;
|
|
|
|
+ private Color NoteAnnoteColor = Color.White;
|
|
|
|
+ private Color RectangleBorderColor = Color.White;
|
|
|
|
+ private Color RectangleFillColor = Color.White;
|
|
|
|
+ private Color CircleBorderColor = Color.White;
|
|
|
|
+ private Color CircleFillColor = Color.White;
|
|
|
|
+ private Color LineColor = Color.White;
|
|
|
|
+
|
|
/// <summary>
|
|
/// <summary>
|
|
- /// 0-left 1-center 2-right
|
|
|
|
|
|
+ ///文本对齐方式
|
|
/// </summary>
|
|
/// </summary>
|
|
- public int TextAlign = 0;
|
|
|
|
|
|
+ public TextAlignment TextAlign = TextAlignment.Left;
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 文本注释 字体
|
|
/// 文本注释 字体
|