Add CFB extract to directory menu

This commit is contained in:
ema
2025-12-26 02:22:05 +08:00
parent 36d2d44200
commit e7559f3900
5 changed files with 210 additions and 2 deletions
@@ -16,16 +16,18 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using QuickLook.Common.Plugin;
using QuickLook.Common.Plugin.MoreMenu;
using QuickLook.Plugin.ArchiveViewer.ArchiveFile;
using QuickLook.Plugin.ArchiveViewer.CompoundFileBinary;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Windows;
namespace QuickLook.Plugin.ArchiveViewer;
public class Plugin : IViewer
public partial class Plugin : IViewer, IMoreMenu
{
private static readonly string[] _extensions =
[
@@ -56,9 +58,12 @@ public class Plugin : IViewer
];
private IDisposable _panel;
private string _path;
public int Priority => -5;
public IEnumerable<IMenuItem> MenuItems => GetMenuItems();
public void Init()
{
}
@@ -70,6 +75,7 @@ public class Plugin : IViewer
public void Prepare(string path, ContextObject context)
{
_path = path;
context.PreferredSize = new Size { Width = 800, Height = 400 };
}