add:双联动架构

This commit is contained in:
2026-02-06 16:38:33 +08:00
parent 04ff617e3c
commit 2b7f3c1f73
4 changed files with 74 additions and 15 deletions
+44
View File
@@ -0,0 +1,44 @@
using System;
using Microsoft.Office.Interop.PowerPoint;
namespace Ink_Canvas.Helpers
{
public interface IPPTLinkManager : IDisposable
{
event Action<object> SlideShowBegin;
event Action<object> SlideShowNextSlide;
event Action<object> SlideShowEnd;
event Action<object> PresentationOpen;
event Action<object> PresentationClose;
event Action<bool> PPTConnectionChanged;
event Action<bool> SlideShowStateChanged;
bool IsConnected { get; }
bool IsInSlideShow { get; }
bool IsSupportWPS { get; set; }
int SlidesCount { get; }
object PPTApplication { get; }
// 生命周期管理
void StartMonitoring();
void StopMonitoring();
// 放映控制
bool TryStartSlideShow();
bool TryEndSlideShow();
// 导航控制
bool TryNavigateToSlide(int slideNumber);
bool TryNavigateNext();
bool TryNavigatePrevious();
// 查询
int GetCurrentSlideNumber();
string GetPresentationName();
bool TryShowSlideNavigation();
object GetCurrentActivePresentation();
}
}