diff --git a/README.md b/README.md index 2465043..49554a1 100644 --- a/README.md +++ b/README.md @@ -90,5 +90,6 @@ Selenium.WebDriver.MSEdgeDriver.118.0.2088.41 -> Edge 118.0.2088.xx (x64) Selenium.WebDriver.4.14.1 System.Drawing.Common.7.0.0; Newtonsoft.Json.13.0.1 (Install automaticly by Selenium) +## Using immersivetranslate translate PDF - +![ScrollSpeedInPdfPreview](vx_images/ScrollSpeedInPdfPreview-1700828658584-1.gif) diff --git a/ReleaseFiles/SetMainFormFont.dll b/ReleaseFiles/SetMainFormFont.dll new file mode 100644 index 0000000..c2af971 Binary files /dev/null and b/ReleaseFiles/SetMainFormFont.dll differ diff --git a/ReleaseFiles/SetTableViewFont.dll b/ReleaseFiles/SetTableViewFont.dll new file mode 100644 index 0000000..2617b2f Binary files /dev/null and b/ReleaseFiles/SetTableViewFont.dll differ diff --git a/SetMainFormFont/Properties/AssemblyInfo.cs b/SetMainFormFont/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..4be4818 --- /dev/null +++ b/SetMainFormFont/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("SetMainFormFont")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("SetMainFormFont")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("b07e78bc-d0e2-4bb2-baf1-dcc8eae1a22d")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/SetMainFormFont/SetMainFormFont.csproj b/SetMainFormFont/SetMainFormFont.csproj new file mode 100644 index 0000000..e23e9b5 --- /dev/null +++ b/SetMainFormFont/SetMainFormFont.csproj @@ -0,0 +1,146 @@ + + + + + Debug + AnyCPU + {B07E78BC-D0E2-4BB2-BAF1-DCC8EAE1A22D} + Library + Properties + SetMainFormFont + SetMainFormFont + v4.6.1 + 512 + true + + + true + full + false + ..\..\..\Software\CitaviTest\Addons\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\..\..\Software\CitaviTest\bin\Citavi.exe + False + + + ..\..\..\Software\CitaviTest\bin\Infragistics4.Win.UltraWinEditors.v11.2.dll + False + + + ..\..\..\Software\CitaviTest\bin\Infragistics4.Win.UltraWinSchedule.v11.2.dll + False + + + ..\..\..\Software\CitaviTest\bin\Infragistics4.Win.UltraWinStatusBar.v11.2.dll + False + + + ..\..\..\Software\CitaviTest\bin\Newtonsoft.Json.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.AI.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.AI.Console.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.AI.Core.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.AI.Desktop.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.Azure.Shared.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.Citavi.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.Citavi.Controls.Wpf.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.Citavi.DbServer.Management.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.Citavi.DbServer.Management.Controls.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.Constants.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.Controls.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.Desktop.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.Epub.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.KeyVaultUtils.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.Logging.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.Pdf.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.Resources.dll + False + + + ..\..\..\Software\CitaviTest\bin\SwissAcademic.SecurityUtility.dll + False + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SetMainFormFont/SetMainFormFont.csproj.user b/SetMainFormFont/SetMainFormFont.csproj.user new file mode 100644 index 0000000..a1d8c68 --- /dev/null +++ b/SetMainFormFont/SetMainFormFont.csproj.user @@ -0,0 +1,7 @@ + + + + Program + E:\Software\CitaviTest\bin\Citavi.exe + + \ No newline at end of file diff --git a/SetMainFormFont/SetMainFormFont.sln b/SetMainFormFont/SetMainFormFont.sln new file mode 100644 index 0000000..e1e7593 --- /dev/null +++ b/SetMainFormFont/SetMainFormFont.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.33414.496 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SetMainFormFont", "SetMainFormFont.csproj", "{B07E78BC-D0E2-4BB2-BAF1-DCC8EAE1A22D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B07E78BC-D0E2-4BB2-BAF1-DCC8EAE1A22D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B07E78BC-D0E2-4BB2-BAF1-DCC8EAE1A22D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B07E78BC-D0E2-4BB2-BAF1-DCC8EAE1A22D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B07E78BC-D0E2-4BB2-BAF1-DCC8EAE1A22D}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {FDB79F8F-762B-4869-8464-1C8615F591ED} + EndGlobalSection +EndGlobal diff --git a/SetMainFormFont/SetMainFormFontAddon.cs b/SetMainFormFont/SetMainFormFontAddon.cs new file mode 100644 index 0000000..34b5e94 --- /dev/null +++ b/SetMainFormFont/SetMainFormFontAddon.cs @@ -0,0 +1,35 @@ +using SwissAcademic.Citavi; +using SwissAcademic.Citavi.Shell; +using SwissAcademic.Controls; +using System.Drawing; + +namespace SetMainFormFont +{ + public class SetMainFormFontAddon + : + CitaviAddOn + { + public override void OnHostingFormLoaded(MainForm mainForm) + { + mainForm.GetMainCommandbarManager().GetReferenceEditorCommandbar(MainFormReferenceEditorCommandbarId.Toolbar).InsertCommandbarButton(8,"SetMainFormFontTo13", "Set Font of MainForm to 13px", CommandbarItemStyle.ImageOnly, image: SwissAcademic.Citavi.Shell.Properties.Resources.FitHeight); + + base.OnHostingFormLoaded(mainForm); + } + + public override void OnBeforePerformingCommand(MainForm mainForm, BeforePerformingCommandEventArgs e) + { + switch (e.Key) + { + case "SetMainFormFontTo13": + { + e.Handled = true; + Font font = new Font(mainForm.Font.FontFamily, 13); // 在此处指定所需的字体名称和字体大小 + mainForm.Font = font; + } + break; + } + + base.OnBeforePerformingCommand(mainForm, e); + } + } +} \ No newline at end of file diff --git a/vx_images/ScrollSpeedInPdfPreview-1700828658584-1.gif b/vx_images/ScrollSpeedInPdfPreview-1700828658584-1.gif new file mode 100644 index 0000000..552067a Binary files /dev/null and b/vx_images/ScrollSpeedInPdfPreview-1700828658584-1.gif differ