forked from wmjordan/PDFPatcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommands.cs
97 lines (90 loc) · 4.09 KB
/
Commands.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
using System;
using System.Collections.Generic;
namespace PDFPatcher
{
static class Commands
{
internal const string File = "_File";
#region File menu
internal const string Open = "_Open";
internal const string OpenFile = "OpenFile";
internal const string LoadList = "_LoadList";
internal const string RecentFiles = "_RecentFiles";
internal const string ImportBookmark = "_ImportBookmark";
internal const string Close = "_Close";
internal const string Action = "_Action";
internal const string SaveBookmark = "_SaveBookmark";
internal const string SaveAsInfoFile = "_SaveAsInfoFile";
internal const string DocumentProperties = "_Properties";
internal const string Options = "_Options";
internal const string ResetOptions = "_ResetOptions";
internal const string AppOptions = "_AppOptions";
internal const string RestoreOptions = "_RestoreOptions";
internal const string SaveOptions = "_SaveOptions";
internal const string SaveList = "_SaveList";
internal const string CleanUpInexistentFiles = "_CleanUpInexistentFiles";
internal const string Exit = "_Exit";
#endregion
internal const string Tools = "_ToolBox";
#region Tools menu
internal const string LogWindow = "_LogWindow";
internal const string ShowGeneralToolbar = "_ShowGeneralToolbar";
internal const string CustomizeToolbar = "_CustomizeToolbar";
#endregion
internal const string Selection = "_Select";
#region Selection menu
internal const string Copy = "_Copy";
internal const string Delete = "_Delete";
internal const string Paste = "_Paste";
internal const string SelectAllPdf = "_SelectAllPdfFiles";
internal const string SelectAllImages = "_SelectAllImages";
internal const string SelectAllFolders = "_SelectAllFolders";
internal const string SelectAllItems = "_SelectAll";
internal const string InvertSelectItem = "_InvertSelect";
internal const string SelectNone = "_SelectNone";
internal const string ItemTypeSeparator = "_ItemTypeSeparator";
internal const string ExpandAll = "_ExpandAll";
internal const string CollapseAll = "_CollapseAll";
internal const string CollapseChildren = "_CollapseChildren";
#endregion
#region Options menu
internal const string PatcherOptions = "_PatcherOptions";
internal const string MergerOptions = "_MergerOptions";
internal const string InfoFileOptions = "_InfoFileOptions";
#endregion
internal const string Help = "_Help";
#region Help menu
internal const string CreateShortcut = "_CreateShortcut";
internal const string VisitHomePage = "_VisitHomePage";
internal const string CheckUpdate = "_CheckUpdate";
#endregion
#region Editor
internal const string EditorInsertBookmark = "_BookmarkHere";
internal const string EditorSavePdf = "_SavePDF";
internal const string EditorBookmarkLevelUp = "_LevelUp";
internal const string EditorBookmarkLevelDown = "_LevelDown";
internal const string EditorBookmarkDelete = "_DeleteBookmark";
internal const string EditorBookmarkBold = "_BookmarkBoldButton";
internal const string EditorBookmarkItalic = "_BookmarkItalicButton";
internal const string EditorBookmarkPageNumberIncrement = "_IncrementPageNumber";
internal const string EditorBookmarkPageNumberDecrement = "_DecrementPageNumber";
internal const string EditorBookmarkPageNumberShift = "_ShiftMultiPageNumber";
internal const string EditorOcrPage = "_OcrPage";
internal const string EditorPageProperties = "_PageProperties";
internal const string EditorSavePageImage = "_SavePageImage";
#endregion
internal static readonly string[] TopMenuItems = { File, Tools, Selection };
internal static readonly string[] CommonSelectionCommands = { SelectAllItems, SelectNone, InvertSelectItem };
internal static readonly HashSet<string> DefaultDisabledItems = new HashSet<string>(
new string[] {
SelectAllItems, InvertSelectItem, SelectNone,
Copy, Delete,
Options
});
internal static readonly HashSet<string> DefaultHiddenItems = new HashSet<string>(
new string[] {
ImportBookmark, SaveBookmark, SaveAsInfoFile, DocumentProperties,
SelectAllPdf, SelectAllImages, SelectAllFolders, ItemTypeSeparator
});
}
}