mirror of
https://github.com/BluePointLilac/ContextMenuManager.git
synced 2026-01-21 01:14:38 +08:00
添加支持编辑通用文档文件的右键菜单
This commit is contained in:
@@ -56,6 +56,7 @@ namespace ContextMenuManager
|
||||
public static string UwpLnk => GetValue("UwpLnk");
|
||||
public static string ExeFile => GetValue("ExeFile");
|
||||
public static string TextFile => GetValue("TextFile");
|
||||
public static string DocumentFile => GetValue("DocumentFile");
|
||||
public static string ImageFile => GetValue("ImageFile");
|
||||
public static string VideoFile => GetValue("VideoFile");
|
||||
public static string AudioFile => GetValue("AudioFile");
|
||||
@@ -97,6 +98,7 @@ namespace ContextMenuManager
|
||||
public static string UwpLnk => GetValue("UwpLnk");
|
||||
public static string ExeFile => GetValue("ExeFile");
|
||||
public static string TextFile => GetValue("TextFile");
|
||||
public static string DocumentFile => GetValue("DocumentFile");
|
||||
public static string ImageFile => GetValue("ImageFile");
|
||||
public static string VideoFile => GetValue("VideoFile");
|
||||
public static string AudioFile => GetValue("AudioFile");
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace ContextMenuManager.Controls
|
||||
public const string MENUPATH_UWPLNK = @"HKEY_CLASSES_ROOT\Launcher.ImmersiveApplication";//UWP快捷方式
|
||||
public const string MENUPATH_UNKNOWN = @"HKEY_CLASSES_ROOT\Unknown";//未知格式
|
||||
public const string MENUPATH_TEXT = @"HKEY_CLASSES_ROOT\SystemFileAssociations\text";//通用文本文件
|
||||
public const string MENUPATH_DOCUMENT = @"HKEY_CLASSES_ROOT\SystemFileAssociations\document";//通用文档文件
|
||||
public const string MENUPATH_IMAGE = @"HKEY_CLASSES_ROOT\SystemFileAssociations\image";//通用图像文件
|
||||
public const string MENUPATH_VIDEO = @"HKEY_CLASSES_ROOT\SystemFileAssociations\video";//通用视频文件
|
||||
public const string MENUPATH_AUDIO = @"HKEY_CLASSES_ROOT\SystemFileAssociations\audio";//通用音频文件
|
||||
@@ -40,7 +41,7 @@ namespace ContextMenuManager.Controls
|
||||
public enum Scenes
|
||||
{
|
||||
File, Folder, Directory, Background, Desktop, Drive, AllObjects, Computer, RecycleBin,
|
||||
Library, LnkFile, UwpLnk, ExeFile, TextFile, ImageFile, VideoFile, AudioFile,
|
||||
Library, LnkFile, UwpLnk, ExeFile, TextFile, DocumentFile, ImageFile, VideoFile, AudioFile,
|
||||
ImageDirectory, VideoDirectory, AudioDirectory, UnknownType, CustomType, CommandStore
|
||||
}
|
||||
|
||||
@@ -102,6 +103,8 @@ namespace ContextMenuManager.Controls
|
||||
scenePath = MENUPATH_EXEFILE; break;
|
||||
case Scenes.TextFile:
|
||||
scenePath = MENUPATH_TEXT; break;
|
||||
case Scenes.DocumentFile:
|
||||
scenePath = MENUPATH_DOCUMENT; break;
|
||||
case Scenes.ImageFile:
|
||||
scenePath = MENUPATH_IMAGE; break;
|
||||
case Scenes.VideoFile:
|
||||
|
||||
@@ -93,6 +93,7 @@ namespace ContextMenuManager
|
||||
AppString.SideBar.ExeFile,
|
||||
null,
|
||||
AppString.SideBar.TextFile,
|
||||
AppString.SideBar.DocumentFile,
|
||||
AppString.SideBar.ImageFile,
|
||||
AppString.SideBar.VideoFile,
|
||||
AppString.SideBar.AudioFile,
|
||||
@@ -102,7 +103,6 @@ namespace ContextMenuManager
|
||||
AppString.SideBar.AudioDirectory,
|
||||
null,
|
||||
AppString.SideBar.UnknownType,
|
||||
null,
|
||||
AppString.SideBar.CustomType
|
||||
};
|
||||
static readonly string[] TypeItemInfos = {
|
||||
@@ -111,6 +111,7 @@ namespace ContextMenuManager
|
||||
AppString.StatusBar.ExeFile,
|
||||
null,
|
||||
AppString.StatusBar.TextFile,
|
||||
AppString.StatusBar.DocumentFile,
|
||||
AppString.StatusBar.ImageFile,
|
||||
AppString.StatusBar.VideoFile,
|
||||
AppString.StatusBar.AudioFile,
|
||||
@@ -120,7 +121,6 @@ namespace ContextMenuManager
|
||||
AppString.StatusBar.AudioDirectory,
|
||||
null,
|
||||
AppString.StatusBar.UnknownType,
|
||||
null,
|
||||
AppString.StatusBar.CustomType
|
||||
};
|
||||
|
||||
@@ -168,6 +168,7 @@ namespace ContextMenuManager
|
||||
ShellList.Scenes.ExeFile,
|
||||
null,
|
||||
ShellList.Scenes.TextFile,
|
||||
ShellList.Scenes.DocumentFile,
|
||||
ShellList.Scenes.ImageFile,
|
||||
ShellList.Scenes.VideoFile,
|
||||
ShellList.Scenes.AudioFile,
|
||||
@@ -177,7 +178,6 @@ namespace ContextMenuManager
|
||||
ShellList.Scenes.AudioDirectory,
|
||||
null,
|
||||
ShellList.Scenes.UnknownType,
|
||||
null,
|
||||
ShellList.Scenes.CustomType
|
||||
};
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@ LnkFile = lnk文件
|
||||
UwpLnk = uwp lnk
|
||||
ExeFile = exe文件
|
||||
TextFile = 文本文件
|
||||
DocumentFile = 文档文件
|
||||
ImageFile = 图像文件
|
||||
VideoFile = 视频文件
|
||||
AudioFile = 音频文件
|
||||
@@ -76,6 +77,7 @@ LnkFile = 所有快捷方式的右键菜单
|
||||
UwpLnk = Win8~Win10 UWP应用快捷方式的右键菜单
|
||||
ExeFile = 所有EXE可执行文件的右键菜单
|
||||
TextFile = 通用文本格式(如.txt、.ini)文件的右键菜单
|
||||
DocumentFile = 通用文档格式(如.docx、.pptx)文件的右键菜单
|
||||
ImageFile = 通用图像格式(如.jpg、.png)文件的右键菜单
|
||||
VideoFile = 通用视频格式(如.avi、.wmv)文件的右键菜单
|
||||
AudioFile = 通用音频格式(如.mp3、.wav)文件的右键菜单
|
||||
|
||||
@@ -36,6 +36,7 @@ LnkFile = lnk文件
|
||||
UwpLnk = uwp lnk
|
||||
ExeFile = exe文件
|
||||
TextFile = 文本文件
|
||||
DocumentFile = 文档文件
|
||||
ImageFile = 图像文件
|
||||
VideoFile = 视频文件
|
||||
AudioFile = 音频文件
|
||||
@@ -76,6 +77,7 @@ LnkFile = 所有快捷方式的右键菜单
|
||||
UwpLnk = Win8~Win10 UWP应用快捷方式的右键菜单
|
||||
ExeFile = 所有EXE可执行文件的右键菜单
|
||||
TextFile = 通用文本格式(如.txt、.ini)文件的右键菜单
|
||||
DocumentFile = 通用文档格式(如.docx、.pptx)文件的右键菜单
|
||||
ImageFile = 通用图像格式(如.jpg、.png)文件的右键菜单
|
||||
VideoFile = 通用视频格式(如.avi、.wmv)文件的右键菜单
|
||||
AudioFile = 通用音频格式(如.mp3、.wav)文件的右键菜单
|
||||
|
||||
Reference in New Issue
Block a user