v 1.13
This commit is contained in:
10
FileTail.cs
10
FileTail.cs
@@ -1,10 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace PreviewToy
|
|
||||||
{
|
|
||||||
class FileTail
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -56,11 +56,13 @@ namespace PreviewToy
|
|||||||
previews = new Dictionary<IntPtr, Preview>();
|
previews = new Dictionary<IntPtr, Preview>();
|
||||||
|
|
||||||
xml_bad_to_ok_chars = new Dictionary<string, string>();
|
xml_bad_to_ok_chars = new Dictionary<string, string>();
|
||||||
xml_bad_to_ok_chars.Add("<", "<");
|
xml_bad_to_ok_chars["<"] = "---lt---";
|
||||||
xml_bad_to_ok_chars.Add("&", "&");
|
xml_bad_to_ok_chars["&"] = "---amp---";
|
||||||
xml_bad_to_ok_chars.Add(">", ">");
|
xml_bad_to_ok_chars[">"] = "---gt---";
|
||||||
xml_bad_to_ok_chars.Add("\"", """);
|
xml_bad_to_ok_chars["\""] = "---quot---";
|
||||||
xml_bad_to_ok_chars.Add("'", "&apos");
|
xml_bad_to_ok_chars["\'"] = "---apos---";
|
||||||
|
xml_bad_to_ok_chars[","] = "---comma---";
|
||||||
|
xml_bad_to_ok_chars["."] = "---dot---";
|
||||||
|
|
||||||
unique_layouts = new Dictionary<String, Dictionary<String, Point>>();
|
unique_layouts = new Dictionary<String, Dictionary<String, Point>>();
|
||||||
flat_layout = new Dictionary<String, Point>();
|
flat_layout = new Dictionary<String, Point>();
|
||||||
@@ -205,7 +207,7 @@ namespace PreviewToy
|
|||||||
{
|
{
|
||||||
foreach(var kv in xml_bad_to_ok_chars)
|
foreach(var kv in xml_bad_to_ok_chars)
|
||||||
{
|
{
|
||||||
entry.Replace(kv.Key, kv.Value);
|
entry = entry.Replace(kv.Key, kv.Value);
|
||||||
}
|
}
|
||||||
return entry;
|
return entry;
|
||||||
}
|
}
|
||||||
@@ -214,14 +216,15 @@ namespace PreviewToy
|
|||||||
{
|
{
|
||||||
foreach (var kv in xml_bad_to_ok_chars)
|
foreach (var kv in xml_bad_to_ok_chars)
|
||||||
{
|
{
|
||||||
entry.Replace(kv.Value, kv.Key);
|
entry = entry.Replace(kv.Value, kv.Key);
|
||||||
}
|
}
|
||||||
return entry;
|
return entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
private XElement MakeXElement(string input)
|
private XElement MakeXElement(string input)
|
||||||
{
|
{
|
||||||
return new XElement(remove_nonconform_xml_characters(input).Replace(" ", "_"));
|
string clean = remove_nonconform_xml_characters(input).Replace(" ", "_");
|
||||||
|
return new XElement(clean);
|
||||||
}
|
}
|
||||||
|
|
||||||
private string ParseXElement(XElement input)
|
private string ParseXElement(XElement input)
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
<UpdateRequired>false</UpdateRequired>
|
<UpdateRequired>false</UpdateRequired>
|
||||||
<MapFileExtensions>true</MapFileExtensions>
|
<MapFileExtensions>true</MapFileExtensions>
|
||||||
<ApplicationRevision>0</ApplicationRevision>
|
<ApplicationRevision>0</ApplicationRevision>
|
||||||
<ApplicationVersion>1.12.0.0</ApplicationVersion>
|
<ApplicationVersion>1.13.0.0</ApplicationVersion>
|
||||||
<UseApplicationTrust>false</UseApplicationTrust>
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||||
@@ -93,7 +93,6 @@
|
|||||||
<Reference Include="WindowsBase" />
|
<Reference Include="WindowsBase" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="FileTail.cs" />
|
|
||||||
<Compile Include="PreviewHandler.cs">
|
<Compile Include="PreviewHandler.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -129,7 +128,9 @@
|
|||||||
<DependentUpon>Resources.resx</DependentUpon>
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
<DesignTime>True</DesignTime>
|
<DesignTime>True</DesignTime>
|
||||||
</Compile>
|
</Compile>
|
||||||
<None Include="app.config" />
|
<None Include="app.config">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</None>
|
||||||
<None Include="preview toy_TemporaryKey.pfx" />
|
<None Include="preview toy_TemporaryKey.pfx" />
|
||||||
<None Include="Properties\DataSources\PreviewToyMain.datasource" />
|
<None Include="Properties\DataSources\PreviewToyMain.datasource" />
|
||||||
<None Include="Properties\Settings.settings">
|
<None Include="Properties\Settings.settings">
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user