Skip to content

Commit 7cae034

Browse files
committed
- final
1 parent 57e1c0b commit 7cae034

File tree

5 files changed

+2
-35
lines changed

5 files changed

+2
-35
lines changed

AddinUtilities.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,13 @@ public static void initFonts()
3939
if (m_latexFonts == null)
4040
{
4141
m_latexFonts = new List<LatexFont>();
42-
//m_latexFonts.Add(new LatexFont("Computer Modern Roman", "cmr"));
4342
m_latexFonts.Add(new LatexFont("Times Roman", "ptm"));
4443
m_latexFonts.Add(new LatexFont("Palatino", "ppl"));
4544
m_latexFonts.Add(new LatexFont("New Century Schoolbook", "pnc"));
4645
m_latexFonts.Add(new LatexFont("Bookman", "pbk"));
47-
//m_latexFonts.Add(new LatexFont("Computer Modern SansSerif", "cmss"));
4846
m_latexFonts.Add(new LatexFont("Helvetica", "phv"));
4947
m_latexFonts.Add(new LatexFont("Avant Garde", "pag"));
50-
//m_latexFonts.Add(new LatexFont("Computer Modern Typewriter", "cmtt"));
5148
m_latexFonts.Add(new LatexFont("Courier", "pcr"));
52-
//m_latexFonts.Add(new LatexFont("Computer Modern Fibonacci", "cmfib"));
53-
//m_latexFonts.Add(new LatexFont("Computer Modern Dunhill", "cmdh"));
5449
}
5550
if (m_latexFontSeries == null)
5651
{
@@ -454,11 +449,9 @@ public static void changeOptions()
454449
SettingsManager mgr = SettingsManager.getCurrent();
455450
OptionsDialog dialog = new OptionsDialog();
456451
dialog.MiktexPath = mgr.SettingsData.miktexPath;
457-
//dialog.GSPath = mgr.SettingsData.gsPath;
458452
if (dialog.ShowDialog() == DialogResult.OK)
459453
{
460454
mgr.SettingsData.miktexPath = dialog.MiktexPath;
461-
//mgr.SettingsData.gsPath = dialog.GSPath;
462455
mgr.saveSettings();
463456
}
464457
}

DockerUI.xaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ public bool editLatexObject(Corel.Interop.VGCore.Shape s)
8484
private void btn_editLatex_Click(object sender, RoutedEventArgs e)
8585
{
8686
Corel.Interop.VGCore.ShapeRange sel = corelApp.ActiveDocument.SelectionRange;
87-
//Corel.Interop.VGCore.Shapes sel = corelApp.ActiveLayer.SelectableShapes;
8887
bool found = false;
8988
foreach (Corel.Interop.VGCore.Shape s in sel)
9089
{

Latex4CorelDraw.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<ItemGroup>
3636
<Reference Include="ScintillaNET, Version=2.6.0.0, Culture=neutral, PublicKeyToken=948d6c9751444115, processorArchitecture=MSIL">
3737
<SpecificVersion>False</SpecificVersion>
38-
<HintPath>..\Scintilla\3.5.10\ScintillaNET.dll</HintPath>
38+
<HintPath>..\Scintilla\2.6\bin\Release\ScintillaNET.dll</HintPath>
3939
</Reference>
4040
<Reference Include="System" />
4141
<Reference Include="System.Core" />
@@ -133,6 +133,7 @@
133133
<None Include="Resources\LatexTemplate.txt" />
134134
<Content Include="UserUI.xslt">
135135
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
136+
<SubType>Designer</SubType>
136137
</Content>
137138
<Content Include="CorelDrw.addon">
138139
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

OptionsDialog.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ public string MiktexPath
1717
set { textBoxMiktex.Text = value; }
1818
}
1919

20-
// public string GSPath
21-
// {
22-
// get { return textBoxGS.Text; }
23-
// set { textBoxGS.Text = value; }
24-
// }
25-
2620
public OptionsDialog()
2721
{
2822
InitializeComponent();

SettingsManager.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -89,25 +89,6 @@ public bool loadSettings()
8989
}
9090
}
9191
}
92-
93-
// // If the GS path was not found, try to find it in the registry
94-
// if ((m_settings.gsPath == null) || (m_settings.gsPath == ""))
95-
// {
96-
// RegistryKey key = Registry.LocalMachine.OpenSubKey("Software\\GPL Ghostscript", false);
97-
// if (key != null)
98-
// {
99-
// string [] versionKeys = key.GetSubKeyNames();
100-
// if (versionKeys.Length > 0)
101-
// {
102-
// // Just take the first version
103-
// key = Registry.LocalMachine.OpenSubKey("Software\\GPL Ghostscript\\" + versionKeys[0], false);
104-
// if (key != null)
105-
// {
106-
// m_settings.gsPath = Path.GetDirectoryName((string)key.GetValue("GS_DLL", ""));
107-
// }
108-
// }
109-
// }
110-
// }
11192
return result;
11293
}
11394
}
@@ -117,7 +98,6 @@ public class Settings
11798
public string textColor;
11899
public string fontSize;
119100
public string miktexPath;
120-
//public string gsPath;
121101
public string font;
122102
public string fontSeries;
123103
public string fontShape;

0 commit comments

Comments
 (0)