Skip to content

Commit fa994a6

Browse files
committed
Update Syncfusion packages to version 32.1.19
Upgraded all Syncfusion WPF package references from version 27.2.5 to 32.1.19 in the project file to ensure compatibility with the latest features and bug fixes.
1 parent 924210d commit fa994a6

File tree

2 files changed

+34
-35
lines changed

2 files changed

+34
-35
lines changed

Plugin.cs

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,42 +20,41 @@
2020
using System.Linq;
2121
using System.Windows;
2222

23-
namespace QuickLook.Plugin.OfficeViewer
23+
namespace QuickLook.Plugin.OfficeViewer;
24+
25+
public class Plugin : IViewer
2426
{
25-
public class Plugin : IViewer
26-
{
27-
private readonly string[] _formats =
28-
[".doc", ".docm", ".docx", ".rtf", ".xls", ".xlsx", ".xlsm", ".pptx", ".pptm", ".potx", ".potm"];
27+
private readonly string[] _formats =
28+
[".doc", ".docm", ".docx", ".rtf", ".xls", ".xlsx", ".xlsm", ".pptx", ".pptm", ".potx", ".potm"];
2929

30-
public int Priority => 0;
30+
public int Priority => 0;
3131

32-
public void Init()
33-
{
34-
SyncfusionKey.Register();
35-
}
32+
public void Init()
33+
{
34+
SyncfusionKey.Register();
35+
}
3636

37-
public bool CanHandle(string path)
38-
{
39-
return !Directory.Exists(path) && _formats.Contains(Path.GetExtension(path).ToLower());
40-
}
37+
public bool CanHandle(string path)
38+
{
39+
return !Directory.Exists(path) && _formats.Contains(Path.GetExtension(path).ToLower());
40+
}
4141

42-
public void Prepare(string path, ContextObject context)
43-
{
44-
context.SetPreferredSizeFit(new Size { Width = 1920, Height = 1440 }, 0.9d);
45-
}
42+
public void Prepare(string path, ContextObject context)
43+
{
44+
context.SetPreferredSizeFit(new Size { Width = 1920, Height = 1440 }, 0.9d);
45+
}
4646

47-
public void View(string path, ContextObject context)
48-
{
49-
var viewer = SyncfusionControl.Open(path);
47+
public void View(string path, ContextObject context)
48+
{
49+
var viewer = SyncfusionControl.Open(path);
5050

51-
context.ViewerContent = viewer;
52-
context.Title = $"{Path.GetFileName(path)}";
51+
context.ViewerContent = viewer;
52+
context.Title = $"{Path.GetFileName(path)}";
5353

54-
context.IsBusy = false;
55-
}
54+
context.IsBusy = false;
55+
}
5656

57-
public void Cleanup()
58-
{
59-
}
57+
public void Cleanup()
58+
{
6059
}
6160
}

QuickLook.Plugin.OfficeViewer.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
</PropertyGroup>
3636

3737
<ItemGroup>
38-
<PackageReference Include="Syncfusion.OfficeChartToImageConverter.Wpf" Version="27.2.5" />
39-
<PackageReference Include="Syncfusion.Presentation.Wpf" Version="27.2.5" />
40-
<PackageReference Include="Syncfusion.PresentationToPdfConverter.Wpf" Version="27.2.5" />
41-
<PackageReference Include="Syncfusion.SfRichTextBoxAdv.WPF" Version="27.2.5" />
42-
<PackageReference Include="Syncfusion.SfSpreadsheetHelper.WPF" Version="27.2.5" />
43-
<PackageReference Include="Syncfusion.Tools.WPF" Version="27.2.5" />
44-
<PackageReference Include="Syncfusion.XlsIO.Wpf" Version="27.2.5" />
38+
<PackageReference Include="Syncfusion.OfficeChartToImageConverter.Wpf" Version="32.1.19" />
39+
<PackageReference Include="Syncfusion.Presentation.Wpf" Version="32.1.19" />
40+
<PackageReference Include="Syncfusion.PresentationToPdfConverter.Wpf" Version="32.1.19" />
41+
<PackageReference Include="Syncfusion.SfRichTextBoxAdv.WPF" Version="32.1.19" />
42+
<PackageReference Include="Syncfusion.SfSpreadsheetHelper.WPF" Version="32.1.19" />
43+
<PackageReference Include="Syncfusion.Tools.WPF" Version="32.1.19" />
44+
<PackageReference Include="Syncfusion.XlsIO.Wpf" Version="32.1.19" />
4545
<Reference Include="QuickLook.Plugin.PDFViewer">
4646
<HintPath>QuickLook.Plugin.PDFViewer\QuickLook.Plugin.PDFViewer.dll</HintPath>
4747
<Private>False</Private>

0 commit comments

Comments
 (0)