add:双联动架构
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1456,12 +1456,21 @@
|
|||||||
<ui:SimpleStackPanel Orientation="Horizontal" HorizontalAlignment="Left">
|
<ui:SimpleStackPanel Orientation="Horizontal" HorizontalAlignment="Left">
|
||||||
<Image Source="/Resources/Icons-png/Powerpoint.png" Margin="0,0,6,0" Width="28"
|
<Image Source="/Resources/Icons-png/Powerpoint.png" Margin="0,0,6,0" Width="28"
|
||||||
Height="28" VerticalAlignment="Center" />
|
Height="28" VerticalAlignment="Center" />
|
||||||
<TextBlock Foreground="#fafafa" Text="PowerPoint 联动增强(目前已不推荐使用)" VerticalAlignment="Center"
|
<TextBlock Foreground="#fafafa" Text="PowerPoint 联动增强" VerticalAlignment="Center"
|
||||||
FontSize="14" Margin="0,0,16,0" />
|
FontSize="14" Margin="0,0,16,0" />
|
||||||
<ui:ToggleSwitch OnContent="" OffContent="" Name="ToggleSwitchPowerPointEnhancement"
|
<ui:ToggleSwitch OnContent="" OffContent="" Name="ToggleSwitchPowerPointEnhancement"
|
||||||
IsOn="False" FontFamily="Microsoft YaHei UI" FontWeight="Bold"
|
IsOn="False" FontFamily="Microsoft YaHei UI" FontWeight="Bold"
|
||||||
Toggled="ToggleSwitchPowerPointEnhancement_Toggled" />
|
Toggled="ToggleSwitchPowerPointEnhancement_Toggled" />
|
||||||
</ui:SimpleStackPanel>
|
</ui:SimpleStackPanel>
|
||||||
|
<ui:SimpleStackPanel Orientation="Horizontal" HorizontalAlignment="Left">
|
||||||
|
<Image Source="/Resources/Icons-png/Powerpoint.png" Margin="0,0,6,0" Width="28"
|
||||||
|
Height="28" VerticalAlignment="Center" />
|
||||||
|
<TextBlock Foreground="#fafafa" Text="使用 ROT 联动(关闭为默认 COM 联动)" VerticalAlignment="Center"
|
||||||
|
FontSize="14" Margin="0,0,16,0" />
|
||||||
|
<ui:ToggleSwitch OnContent="" OffContent="" Name="ToggleSwitchUseRotPptLink"
|
||||||
|
IsOn="False" FontFamily="Microsoft YaHei UI" FontWeight="Bold"
|
||||||
|
Toggled="ToggleSwitchUseRotPptLink_Toggled" />
|
||||||
|
</ui:SimpleStackPanel>
|
||||||
<ui:SimpleStackPanel Orientation="Horizontal" HorizontalAlignment="Left">
|
<ui:SimpleStackPanel Orientation="Horizontal" HorizontalAlignment="Left">
|
||||||
<Image Source="/Resources/Icons-png/WPS.png" Margin="0,0,6,0" Width="28"
|
<Image Source="/Resources/Icons-png/WPS.png" Margin="0,0,6,0" Width="28"
|
||||||
Height="28" VerticalAlignment="Center" />
|
Height="28" VerticalAlignment="Center" />
|
||||||
|
|||||||
@@ -140,6 +140,23 @@ namespace Ink_Canvas
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void ToggleSwitchUseRotPptLink_Toggled(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
if (!isLoaded) return;
|
||||||
|
|
||||||
|
Settings.PowerPointSettings.UseRotPptLink = ToggleSwitchUseRotPptLink.IsOn;
|
||||||
|
SaveSettingsToFile();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
InitializePPTManagers();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
LogHelper.WriteLogToFile($"切换 PPT 联动架构失败: {ex}", LogHelper.LogType.Error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void ToggleSwitchShowCanvasAtNewSlideShow_Toggled(object sender, RoutedEventArgs e)
|
private void ToggleSwitchShowCanvasAtNewSlideShow_Toggled(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
if (!isLoaded) return;
|
if (!isLoaded) return;
|
||||||
|
|||||||
@@ -469,6 +469,11 @@ namespace Ink_Canvas
|
|||||||
|
|
||||||
ToggleSwitchShowCanvasAtNewSlideShow.IsOn = Settings.PowerPointSettings.IsShowCanvasAtNewSlideShow;
|
ToggleSwitchShowCanvasAtNewSlideShow.IsOn = Settings.PowerPointSettings.IsShowCanvasAtNewSlideShow;
|
||||||
|
|
||||||
|
if (ToggleSwitchUseRotPptLink != null)
|
||||||
|
{
|
||||||
|
ToggleSwitchUseRotPptLink.IsOn = Settings.PowerPointSettings.UseRotPptLink;
|
||||||
|
}
|
||||||
|
|
||||||
ToggleSwitchEnableTwoFingerGestureInPresentationMode.IsOn =
|
ToggleSwitchEnableTwoFingerGestureInPresentationMode.IsOn =
|
||||||
Settings.PowerPointSettings.IsEnableTwoFingerGestureInPresentationMode;
|
Settings.PowerPointSettings.IsEnableTwoFingerGestureInPresentationMode;
|
||||||
|
|
||||||
|
|||||||
@@ -340,6 +340,8 @@ namespace Ink_Canvas
|
|||||||
public bool EnablePPTTimeCapsule { get; set; } = true;
|
public bool EnablePPTTimeCapsule { get; set; } = true;
|
||||||
[JsonProperty("pptTimeCapsulePosition")]
|
[JsonProperty("pptTimeCapsulePosition")]
|
||||||
public int PPTTimeCapsulePosition { get; set; } = 1;
|
public int PPTTimeCapsulePosition { get; set; } = 1;
|
||||||
|
[JsonProperty("useRotPptLink")]
|
||||||
|
public bool UseRotPptLink { get; set; } = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Automation
|
public class Automation
|
||||||
|
|||||||
Reference in New Issue
Block a user