-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD Using immersivetranslate translate PDF
- Loading branch information
1 parent
e7e9c67
commit 8fd2da1
Showing
9 changed files
with
251 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{B07E78BC-D0E2-4BB2-BAF1-DCC8EAE1A22D}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>SetMainFormFont</RootNamespace> | ||
<AssemblyName>SetMainFormFont</AssemblyName> | ||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<Deterministic>true</Deterministic> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>..\..\..\Software\CitaviTest\Addons\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="Citavi"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\Citavi.exe</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Infragistics4.Win.UltraWinEditors.v11.2"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\Infragistics4.Win.UltraWinEditors.v11.2.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Infragistics4.Win.UltraWinSchedule.v11.2"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\Infragistics4.Win.UltraWinSchedule.v11.2.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Infragistics4.Win.UltraWinStatusBar.v11.2"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\Infragistics4.Win.UltraWinStatusBar.v11.2.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Newtonsoft.Json"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\Newtonsoft.Json.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic.AI"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.AI.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic.AI.Console"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.AI.Console.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic.AI.Core"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.AI.Core.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic.AI.Desktop"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.AI.Desktop.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic.Azure.Shared"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.Azure.Shared.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic.Citavi"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.Citavi.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic.Citavi.Controls.Wpf"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.Citavi.Controls.Wpf.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic.Citavi.DbServer.Management"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.Citavi.DbServer.Management.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic.Citavi.DbServer.Management.Controls"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.Citavi.DbServer.Management.Controls.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic.Constants"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.Constants.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic.Controls"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.Controls.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic.Desktop"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.Desktop.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic.Epub"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.Epub.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic.KeyVaultUtils"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.KeyVaultUtils.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic.Logging"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.Logging.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic.Pdf"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.Pdf.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic.Resources"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.Resources.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SwissAcademic.SecurityUtility"> | ||
<HintPath>..\..\..\Software\CitaviTest\bin\SwissAcademic.SecurityUtility.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Drawing" /> | ||
<Reference Include="System.Windows.Forms" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Net.Http" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="SetMainFormFontAddon.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'"> | ||
<StartAction>Program</StartAction> | ||
<StartProgram>E:\Software\CitaviTest\bin\Citavi.exe</StartProgram> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using SwissAcademic.Citavi; | ||
using SwissAcademic.Citavi.Shell; | ||
using SwissAcademic.Controls; | ||
using System.Drawing; | ||
|
||
namespace SetMainFormFont | ||
{ | ||
public class SetMainFormFontAddon | ||
: | ||
CitaviAddOn<MainForm> | ||
{ | ||
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); | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.