mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-14 01:07:35 +08:00
Add CFB extract to directory menu
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user