Просмотр исходного кода

Target framework changed to 3.5 for backward compatibility with some slight changes for that to work.

master
MadBoy_cp 12 лет назад
Родитель
Сommit
e1a8316e6c
5 измененных файлов: 10 добавлений и 3 удалений
  1. 1
    1
      DocX/Container.cs
  2. 1
    1
      DocX/DocX.csproj
  3. 7
    0
      DocX/HelperFunctions.cs
  4. 1
    1
      Documentation/Documentation.shfbproj
  5. Двоичные данные
      Documentation/Help/Documentation.chm

+ 1
- 1
DocX/Container.cs Просмотреть файл

public virtual void InsertAtBookmark(string toInsert, string bookmarkName) public virtual void InsertAtBookmark(string toInsert, string bookmarkName)
{ {
if (String.IsNullOrWhiteSpace(bookmarkName))
if (bookmarkName.IsNullOrWhiteSpace())
throw new ArgumentException("bookmark cannot be null or empty", "bookmarkName"); throw new ArgumentException("bookmark cannot be null or empty", "bookmarkName");
var headerCollection = Document.Headers; var headerCollection = Document.Headers;

+ 1
- 1
DocX/DocX.csproj Просмотреть файл

<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Novacode</RootNamespace> <RootNamespace>Novacode</RootNamespace>
<AssemblyName>DocX</AssemblyName> <AssemblyName>DocX</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<SccProjectName>SAK</SccProjectName> <SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath> <SccLocalPath>SAK</SccLocalPath>

+ 7
- 0
DocX/HelperFunctions.cs Просмотреть файл

{ {
public const string DOCUMENT_DOCUMENTTYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"; public const string DOCUMENT_DOCUMENTTYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml";
public const string TEMPLATE_DOCUMENTTYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml"; public const string TEMPLATE_DOCUMENTTYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml";
public static bool IsNullOrWhiteSpace(this string value)
{
if (value == null) return true;
return string.IsNullOrEmpty(value.Trim());
}
/// <summary> /// <summary>
/// Checks whether 'toCheck' has all children that 'desired' has and values of 'val' attributes are the same /// Checks whether 'toCheck' has all children that 'desired' has and values of 'val' attributes are the same
/// </summary> /// </summary>

+ 1
- 1
Documentation/Documentation.shfbproj Просмотреть файл

<Language>en-US</Language> <Language>en-US</Language>
<HelpFileFormat>HtmlHelp1</HelpFileFormat> <HelpFileFormat>HtmlHelp1</HelpFileFormat>
<IndentHtml>False</IndentHtml> <IndentHtml>False</IndentHtml>
<FrameworkVersion>.NET Framework 4.0</FrameworkVersion>
<FrameworkVersion>.NET Framework 3.5</FrameworkVersion>
<KeepLogFile>True</KeepLogFile> <KeepLogFile>True</KeepLogFile>
<DisableCodeBlockComponent>False</DisableCodeBlockComponent> <DisableCodeBlockComponent>False</DisableCodeBlockComponent>
<CppCommentsFixup>False</CppCommentsFixup> <CppCommentsFixup>False</CppCommentsFixup>

Двоичные данные
Documentation/Help/Documentation.chm Просмотреть файл


Загрузка…
Отмена
Сохранить