Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base: 68e7ff7b4d
...
compare: 3e5a95ee70
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 61 files changed
  • 0 commit comments
  • 1 contributor
Showing with 698 additions and 694 deletions.
  1. +2 −2 README.md
  2. +39 −37 Foxby.sln → TabulaRasa.sln
  3. +10 −10 build/package.nuspec
  4. +4 −4 build/teamcity.build
  5. +8 −8 src/Foxby.Core.Tests/DocumentBuilder/DocumentPlaceholderTests.cs
  6. +8 −8 src/Foxby.Core.Tests/DocumentBuilder/DocumentTagTests.cs
  7. +8 −9 src/Foxby.Core.Tests/DocumentBuilder/DocxDocumentBuilderFieldTests.cs
  8. +7 −7 src/Foxby.Core.Tests/DocumentBuilder/DocxDocumentBuilderMediaTests.cs
  9. +10 −10 src/Foxby.Core.Tests/DocumentBuilder/DocxDocumentBuilderTests.cs
  10. +6 −6 src/Foxby.Core.Tests/DocumentBuilder/Extensions/OpenXmlElementExtensionsTests.cs
  11. +12 −13 src/Foxby.Core.Tests/DocxDocumentTests.cs
  12. +8 −8 src/Foxby.Core.Tests/EqualityComparers/DocxDocumentEqualityComparer.cs
  13. +4 −4 src/Foxby.Core.Tests/Properties/AssemblyInfo.cs
  14. +3 −3 src/Foxby.Core.Tests/Properties/Resources.Designer.cs
  15. +164 −164 src/Foxby.Core.Tests/{Foxby.Core.Tests.csproj → TabulaRasa.Core.Tests.csproj}
  16. +7 −7 src/Foxby.Core/DocumentBuilder/Anchors/AnchorElement.cs
  17. +8 −8 src/Foxby.Core/DocumentBuilder/Anchors/BlockField.cs
  18. +7 −7 src/Foxby.Core/DocumentBuilder/Anchors/DocumentPlaceholder.cs
  19. +7 −7 src/Foxby.Core/DocumentBuilder/Anchors/DocumentTag.cs
  20. +8 −8 src/Foxby.Core/DocumentBuilder/Anchors/InlineField.cs
  21. +9 −9 src/Foxby.Core/DocumentBuilder/Anchors/SdtField.cs
  22. +6 −6 src/Foxby.Core/DocumentBuilder/DocxDocumentAggregationBuilder.cs
  23. +10 −10 src/Foxby.Core/DocumentBuilder/DocxDocumentBlockContextBuilderBase.cs
  24. +10 −10 src/Foxby.Core/DocumentBuilder/DocxDocumentBlockFieldContextBuilder.cs
  25. +12 −12 src/Foxby.Core/DocumentBuilder/DocxDocumentBuilder.cs
  26. +9 −9 src/Foxby.Core/DocumentBuilder/DocxDocumentBuilderBase.cs
  27. +7 −7 src/Foxby.Core/DocumentBuilder/DocxDocumentCellContextBuilder.cs
  28. +12 −12 src/Foxby.Core/DocumentBuilder/DocxDocumentContextBuilderBase.cs
  29. +7 −7 src/Foxby.Core/DocumentBuilder/DocxDocumentOrderedListBuilder.cs
  30. +7 −7 src/Foxby.Core/DocumentBuilder/DocxDocumentParagraphContextBuilder.cs
  31. +5 −5 src/Foxby.Core/DocumentBuilder/DocxDocumentPlaceholderContextBuilder.cs
  32. +8 −8 src/Foxby.Core/DocumentBuilder/DocxDocumentTableSchemeBuilder.cs
  33. +8 −8 src/Foxby.Core/DocumentBuilder/DocxDocumentTagContextBuilder.cs
  34. +4 −4 src/Foxby.Core/DocumentBuilder/Extensions/OpenXmlElementExtensions.cs
  35. +5 −5 src/Foxby.Core/DocumentBuilder/MainDocumentPartExtensions.cs
  36. +4 −4 src/Foxby.Core/DocumentBuilder/TagVisibilityOptions.cs
  37. +4 −4 src/Foxby.Core/ICellContextBuilder.cs
  38. +2 −3 src/Foxby.Core/IDocumentBuilder.cs
  39. +4 −4 src/Foxby.Core/IDocumentContextBuilder.cs
  40. +1 −1  src/Foxby.Core/IDocumentContextFormattableBuilder.cs
  41. +1 −1  src/Foxby.Core/IDocumentFormattableBuilder.cs
  42. +4 −4 src/Foxby.Core/IDocumentOrderedListBuilder.cs
  43. +5 −5 src/Foxby.Core/IDocumentParagraphFormattableBuilder.cs
  44. +4 −4 src/Foxby.Core/IDocumentTableContextBuilder.cs
  45. +4 −4 src/Foxby.Core/IDocumentTableRowsBuilder.cs
  46. +1 −1  src/Foxby.Core/IDocumentTableSchemeBuilder.cs
  47. +4 −4 src/Foxby.Core/IDocumentTagContextBuilder.cs
  48. +7 −7 src/Foxby.Core/MetaObjects/Collections/FieldsCollection.cs
  49. +16 −16 src/Foxby.Core/MetaObjects/DocxDocument.cs
  50. +1 −1  src/Foxby.Core/MetaObjects/Extensions/StringFormatExtensions.cs
  51. +4 −4 src/Foxby.Core/MetaObjects/Field.cs
  52. +1 −1  src/Foxby.Core/MetaObjects/Format.cs
  53. +42 −36 src/Foxby.Core/MetaObjects/Image.cs
  54. +4 −4 src/Foxby.Core/MetaObjects/OpenCloseTagReplacer.cs
  55. +4 −4 src/Foxby.Core/MetaObjects/SingleTagReplacer.cs
  56. +4 −4 src/Foxby.Core/MetaObjects/TagReplacer.cs
  57. +1 −1  src/Foxby.Core/MetaObjects/TextBlock.cs
  58. +2 −2 src/Foxby.Core/Properties/AssemblyInfo.cs
  59. +3 −3 src/Foxby.Core/SimpleTemplate.Designer.cs
  60. +119 −119 src/Foxby.Core/{Foxby.Core.csproj → TabulaRasa.Core.csproj}
  61. +3 −4 src/Solution Items/GlobalAssemblyInfo.cs
View
4 README.md
@@ -1,9 +1,9 @@
##About
-Fluent OpenXml Generator is .NET library which provides a fluent API for generating, changing and templating documents in OpenXML format.
+Flexible OpenXml Templater is .NET library which provides a fluent API for generating, changing and templating documents in OpenXML format.
##NuGet Install
-<img src="http://indycode.github.com/images/Nuget-Foxby.png" alt="Nuget Foxby">
+<img src="http://indycode.github.com/images/Nuget-Foxby.png" alt="Nuget TabulaRasa">
NuGet link http://nuget.org/List/Packages/Foxby
View
76 Foxby.sln → TabulaRasa.sln
@@ -1,37 +1,39 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Foxby.Core", "src\Foxby.Core\Foxby.Core.csproj", "{8826F774-A0F0-46BC-8089-90F947485ECE}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Foxby.Core.Tests", "src\Foxby.Core.Tests\Foxby.Core.Tests.csproj", "{C25FFBAC-8F07-491D-B14F-7AB1EEF6DAEE}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{2B717965-9FBE-49D6-8674-AF021E82D920}"
- ProjectSection(SolutionItems) = preProject
- build\package.nuspec = build\package.nuspec
- build\teamcity.build = build\teamcity.build
- EndProjectSection
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{18A6A18E-5C30-4DDE-80FA-30702FA1CAF2}"
- ProjectSection(SolutionItems) = preProject
- src\Solution Items\GlobalAssemblyInfo.cs = src\Solution Items\GlobalAssemblyInfo.cs
- EndProjectSection
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {8826F774-A0F0-46BC-8089-90F947485ECE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {8826F774-A0F0-46BC-8089-90F947485ECE}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {8826F774-A0F0-46BC-8089-90F947485ECE}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {8826F774-A0F0-46BC-8089-90F947485ECE}.Release|Any CPU.Build.0 = Release|Any CPU
- {C25FFBAC-8F07-491D-B14F-7AB1EEF6DAEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {C25FFBAC-8F07-491D-B14F-7AB1EEF6DAEE}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {C25FFBAC-8F07-491D-B14F-7AB1EEF6DAEE}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {C25FFBAC-8F07-491D-B14F-7AB1EEF6DAEE}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TabulaRasa.Core", "src\Foxby.Core\TabulaRasa.Core.csproj", "{8826F774-A0F0-46BC-8089-90F947485ECE}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TabulaRasa.Core.Tests", "src\Foxby.Core.Tests\TabulaRasa.Core.Tests.csproj", "{C25FFBAC-8F07-491D-B14F-7AB1EEF6DAEE}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{2B717965-9FBE-49D6-8674-AF021E82D920}"
+ ProjectSection(SolutionItems) = preProject
+ build\package.nuspec = build\package.nuspec
+ build\teamcity.build = build\teamcity.build
+ EndProjectSection
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{18A6A18E-5C30-4DDE-80FA-30702FA1CAF2}"
+ ProjectSection(SolutionItems) = preProject
+ src\Solution Items\GlobalAssemblyInfo.cs = src\Solution Items\GlobalAssemblyInfo.cs
+ LICENSE.txt = LICENSE.txt
+ README.md = README.md
+ EndProjectSection
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {8826F774-A0F0-46BC-8089-90F947485ECE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8826F774-A0F0-46BC-8089-90F947485ECE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8826F774-A0F0-46BC-8089-90F947485ECE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8826F774-A0F0-46BC-8089-90F947485ECE}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C25FFBAC-8F07-491D-B14F-7AB1EEF6DAEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C25FFBAC-8F07-491D-B14F-7AB1EEF6DAEE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C25FFBAC-8F07-491D-B14F-7AB1EEF6DAEE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C25FFBAC-8F07-491D-B14F-7AB1EEF6DAEE}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
View
20 build/package.nuspec
@@ -1,25 +1,25 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
- <id>Foxby</id>
+ <id>TabulaRasa</id>
<version>1.0.0</version>
- <title>Fluent OpenXml</title>
- <authors>Александр Бындю, Eskat0n, hazzik</authors>
- <owners>IndyCode Software Company</owners>
+ <title>Flexible OpenXml Templater</title>
+ <authors>Eskat0n, hazzik</authors>
+ <owners>Eskat0n</owners>
<licenseUrl>http://www.gnu.org/copyleft/lesser.html</licenseUrl>
<projectUrl>http://code.google.com/p/fluent-openxml</projectUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
- <description>Fluent OpenXml Generator is .NET library which provides a fluent API for generating, changing and templating documents in OpenXML format.</description>
- <summary>Fluent OpenXml Generator is .NET library which provides a fluent API for generating, changing and templating documents in OpenXML format.</summary>
+ <description>Flexible OpenXml Templater is .NET library which provides a fluent API for generating, changing and templating documents in OpenXML format.</description>
+ <summary>Flexible OpenXml Templater is .NET library which provides a fluent API for generating, changing and templating documents in OpenXML format.</summary>
<language>en-GB</language>
- <tags>openxml word msword docx</tags>
+ <tags>openxml word msword docx templating documents</tags>
<dependencies>
<dependency id="DocumentFormat.OpenXml" version="1.0" />
</dependencies>
</metadata>
<files>
- <file src="Release\Foxby.dll" target="lib\Foxby.dll" />
- <file src="Release\Foxby.pdb" target="lib\Foxby.pdb" />
- <file src="Release\Foxby.XML" target="lib\Foxby.XML" />
+ <file src="Release\TabulaRasa.dll" target="lib\TabulaRasa.dll" />
+ <file src="Release\TabulaRasa.pdb" target="lib\TabulaRasa.pdb" />
+ <file src="Release\TabulaRasa.xml" target="lib\TabulaRasa.xml" />
</files>
</package>
View
8 build/teamcity.build
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
-<project name="Build IndyCode.Foxby project" default="help">
+<project name="Build TabulaRasa project" default="help">
<!-- environment -->
<property name="path.base" value="${project::get-base-directory()}" />
@@ -37,9 +37,9 @@
<import namespace="System.Runtime.InteropServices" />
</imports>
<attributes>
- <attribute type="AssemblyProductAttribute" value="Foxby" />
- <attribute type="AssemblyCompanyAttribute" value="IndyCode" />
- <attribute type="AssemblyCopyrightAttribute" value="Copyright © IndyCode" />
+ <attribute type="AssemblyProductAttribute" value="TabulaRasa" />
+ <attribute type="AssemblyCompanyAttribute" value="Eskat0n" />
+ <attribute type="AssemblyCopyrightAttribute" value="Copyright © Eskat0n" />
<attribute type="AssemblyVersionAttribute" value="${build.version}" />
<attribute type="ComVisibleAttribute" value="false" />
</attributes>
View
16 src/Foxby.Core.Tests/DocumentBuilder/DocumentPlaceholderTests.cs
@@ -1,12 +1,12 @@
-using System.Linq;
-using Foxby.Core.DocumentBuilder.Anchors;
-using Foxby.Core.MetaObjects;
-using Foxby.Core.Tests.Properties;
-using Xunit;
-
-namespace Foxby.Core.Tests.DocumentBuilder
+namespace TabulaRasa.Core.Tests.DocumentBuilder
{
- public class DocumentPlaceholderTests
+ using System.Linq;
+ using TabulaRasa.Core.Tests.Properties;
+ using Xunit;
+ using TabulaRasa.Core.DocumentBuilder.Anchors;
+ using TabulaRasa.Core.MetaObjects;
+
+ public class DocumentPlaceholderTests
{
[Fact]
public void NewPlaceholderNameShouldBeCorrect()
View
16 src/Foxby.Core.Tests/DocumentBuilder/DocumentTagTests.cs
@@ -1,12 +1,12 @@
-using System.Linq;
-using Foxby.Core.DocumentBuilder.Anchors;
-using Foxby.Core.MetaObjects;
-using Foxby.Core.Tests.Properties;
-using Xunit;
-
-namespace Foxby.Core.Tests.DocumentBuilder
+namespace TabulaRasa.Core.Tests.DocumentBuilder
{
- public class DocumentTagTests
+ using System.Linq;
+ using TabulaRasa.Core.Tests.Properties;
+ using Xunit;
+ using TabulaRasa.Core.DocumentBuilder.Anchors;
+ using TabulaRasa.Core.MetaObjects;
+
+ public class DocumentTagTests
{
[Fact]
public void NewTagNameShouldBeCorrect()
View
17 src/Foxby.Core.Tests/DocumentBuilder/DocxDocumentBuilderFieldTests.cs
@@ -1,13 +1,12 @@
-using System.IO;
-using Foxby.Core.DocumentBuilder;
-using Foxby.Core.MetaObjects;
-using Foxby.Core.Tests.EqualityComparers;
-using Foxby.Core.Tests.Properties;
-using Xunit;
-
-namespace Foxby.Core.Tests.DocumentBuilder
+namespace TabulaRasa.Core.Tests.DocumentBuilder
{
- public class DocxDocumentBuilderFieldTests
+ using EqualityComparers;
+ using TabulaRasa.Core.Tests.Properties;
+ using Xunit;
+ using TabulaRasa.Core.DocumentBuilder;
+ using TabulaRasa.Core.MetaObjects;
+
+ public class DocxDocumentBuilderFieldTests
{
[Fact]
public void CanSetContentToBlockFieldConsistingOfTwoParagraphs()
View
14 src/Foxby.Core.Tests/DocumentBuilder/DocxDocumentBuilderMediaTests.cs
@@ -1,11 +1,11 @@
-using System.IO;
-using Foxby.Core.DocumentBuilder;
-using Foxby.Core.MetaObjects;
-using Foxby.Core.Tests.Properties;
-using Xunit;
-
-namespace Foxby.Core.Tests.DocumentBuilder
+namespace TabulaRasa.Core.Tests.DocumentBuilder
{
+ using System.IO;
+ using TabulaRasa.Core.Tests.Properties;
+ using Xunit;
+ using TabulaRasa.Core.DocumentBuilder;
+ using TabulaRasa.Core.MetaObjects;
+
public class DocxDocumentBuilderMediaTests
{
[Fact]
View
20 src/Foxby.Core.Tests/DocumentBuilder/DocxDocumentBuilderTests.cs
@@ -1,14 +1,14 @@
-using System.IO;
-using Foxby.Core.DocumentBuilder;
-using Foxby.Core.MetaObjects;
-using Foxby.Core.MetaObjects.Extensions;
-using Foxby.Core.Tests.EqualityComparers;
-using Foxby.Core.Tests.Properties;
-using Xunit;
-
-namespace Foxby.Core.Tests.DocumentBuilder
+namespace TabulaRasa.Core.Tests.DocumentBuilder
{
- public class DocxDocumentBuilderTests
+ using System.IO;
+ using EqualityComparers;
+ using TabulaRasa.Core.Tests.Properties;
+ using Xunit;
+ using TabulaRasa.Core.DocumentBuilder;
+ using TabulaRasa.Core.MetaObjects;
+ using TabulaRasa.Core.MetaObjects.Extensions;
+
+ public class DocxDocumentBuilderTests
{
private static DocxDocumentBuilder CreateBuilder(DocxDocument document)
{
View
12 src/Foxby.Core.Tests/DocumentBuilder/Extensions/OpenXmlElementExtensionsTests.cs
@@ -1,10 +1,10 @@
-using DocumentFormat.OpenXml.Wordprocessing;
-using Foxby.Core.DocumentBuilder.Extensions;
-using Xunit;
-
-namespace Foxby.Core.Tests.DocumentBuilder.Extensions
+namespace TabulaRasa.Core.Tests.DocumentBuilder.Extensions
{
- public class OpenXmlElementExtensionsTests
+ using DocumentFormat.OpenXml.Wordprocessing;
+ using Xunit;
+ using TabulaRasa.Core.DocumentBuilder.Extensions;
+
+ public class OpenXmlElementExtensionsTests
{
[Fact]
public void CloneElementCorrect()
View
25 src/Foxby.Core.Tests/DocxDocumentTests.cs
@@ -1,17 +1,16 @@
-using System.Collections.Generic;
-using System.Linq;
-using DocumentFormat.OpenXml.Wordprocessing;
-using Foxby.Core.MetaObjects;
-using Foxby.Core.Tests.EqualityComparers;
-using Foxby.Core.Tests.Properties;
-using Xunit;
-using Xunit.Sdk;
-
-namespace Foxby.Core.Tests
+namespace TabulaRasa.Core.Tests
{
- using System;
-
- public class DocxDocumentTests
+ using System.Collections.Generic;
+ using System.Linq;
+ using DocumentFormat.OpenXml.Wordprocessing;
+ using EqualityComparers;
+ using TabulaRasa.Core.Tests.Properties;
+ using Xunit;
+ using Xunit.Sdk;
+ using System;
+ using TabulaRasa.Core.MetaObjects;
+
+ public class DocxDocumentTests
{
[Fact]
public void DocumentsWithDifferentInnerXmlMustBeNotEqual()
View
16 src/Foxby.Core.Tests/EqualityComparers/DocxDocumentEqualityComparer.cs
@@ -1,12 +1,12 @@
-using System.Collections.Generic;
-using System.Linq;
-using Foxby.Core.DocumentBuilder;
-using Foxby.Core.MetaObjects;
-using Xunit;
-
-namespace Foxby.Core.Tests.EqualityComparers
+namespace TabulaRasa.Core.Tests.EqualityComparers
{
- public class DocxDocumentEqualityComparer : IEqualityComparer<DocxDocument>
+ using System.Collections.Generic;
+ using System.Linq;
+ using Xunit;
+ using TabulaRasa.Core.DocumentBuilder;
+ using TabulaRasa.Core.MetaObjects;
+
+ public class DocxDocumentEqualityComparer : IEqualityComparer<DocxDocument>
{
public bool Equals(DocxDocument x, DocxDocument y)
{
View
8 src/Foxby.Core.Tests/Properties/AssemblyInfo.cs
@@ -5,12 +5,12 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
-[assembly: AssemblyTitle("Foxby.Core.Tests")]
+[assembly: AssemblyTitle("TabulaRasa.Core.Tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("Foxby.Core.Tests")]
-[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("")]
+[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
View
6 src/Foxby.Core.Tests/Properties/Resources.Designer.cs
@@ -1,14 +1,14 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.239
+// Runtime Version:4.0.30319.17379
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
-namespace Foxby.Core.Tests.Properties {
+namespace TabulaRasa.Core.Tests.Properties {
using System;
@@ -39,7 +39,7 @@ internal class Resources {
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Foxby.Core.Tests.Properties.Resources", typeof(Resources).Assembly);
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TabulaRasa.Core.Tests.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
View
328 src/Foxby.Core.Tests/Foxby.Core.Tests.csproj → src/Foxby.Core.Tests/TabulaRasa.Core.Tests.csproj
@@ -1,165 +1,165 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.30703</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{C25FFBAC-8F07-491D-B14F-7AB1EEF6DAEE}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Foxby.Core.Tests</RootNamespace>
- <AssemblyName>Foxby.Core.Tests</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>..\..\tests\</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>..\..\tests\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="DocumentFormat.OpenXml, Version=2.0.5022.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
- <HintPath>..\..\packages\DocumentFormat.OpenXml.1.0\lib\DocumentFormat.OpenXml.dll</HintPath>
- </Reference>
- <Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Core" />
- <Reference Include="System.Drawing" />
- <Reference Include="System.Xml.Linq" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- <Reference Include="xunit, Version=1.9.0.1566, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\packages\xunit.1.9.0.1566\lib\xunit.dll</HintPath>
- </Reference>
- <Reference Include="xunit.extensions, Version=1.9.0.1566, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\packages\xunit.extensions.1.9.0.1566\lib\xunit.extensions.dll</HintPath>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="DocumentBuilder\DocumentPlaceholderTests.cs" />
- <Compile Include="DocumentBuilder\DocumentTagTests.cs" />
- <Compile Include="DocumentBuilder\DocxDocumentBuilderFieldTests.cs" />
- <Compile Include="DocumentBuilder\DocxDocumentBuilderTests.cs" />
- <Compile Include="DocumentBuilder\Extensions\OpenXmlElementExtensionsTests.cs" />
- <Compile Include="DocumentBuilder\DocxDocumentBuilderMediaTests.cs" />
- <Compile Include="DocxDocumentTests.cs" />
- <Compile Include="EqualityComparers\DocxDocumentEqualityComparer.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="Properties\Resources.Designer.cs">
- <AutoGen>True</AutoGen>
- <DesignTime>True</DesignTime>
- <DependentUpon>Resources.resx</DependentUpon>
- </Compile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\Foxby.Core\Foxby.Core.csproj">
- <Project>{8826F774-A0F0-46BC-8089-90F947485ECE}</Project>
- <Name>Foxby.Core</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <None Include="packages.config" />
- <None Include="Resources\DocumentWithAddedParagraph.docx" />
- <None Include="Resources\DocumentWithAttribute.docx" />
- <None Include="Resources\DocumentWithContentTypeTag.docx" />
- <None Include="Resources\DocumentWithHideContentInPlaceholderInTag.docx" />
- <None Include="Resources\DocumentWithHideContentInTag.docx" />
- <None Include="Resources\DocumentWithoutAttributes.docx" />
- <None Include="Resources\DocumentWithoutParagraph.docx" />
- <None Include="Resources\DocumentWithParagraph.docx" />
- <None Include="Resources\DocumentWithReplacedTitle.docx" />
- <None Include="Resources\DocumentWithTitle.docx" />
- <None Include="Resources\DocumentWithTwoAttributes.docx" />
- <None Include="Resources\DocumentWithVisibilityContentInPlaceholderInTag.docx" />
- <None Include="Resources\DocumentWithVisibilityContentInTag.docx" />
- <None Include="Resources\EmptyTemplate.docx" />
- <None Include="Resources\FieldsInHeadersAndFooters.docx" />
- <None Include="Resources\FieldsInHeadersAndFootersReplaced.docx" />
- <None Include="Resources\InvalidDocument.docx" />
- <None Include="Resources\Protected.docx" />
- <None Include="Resources\TableWithFormattedCells.docx" />
- <None Include="Resources\SdtElementWithoutSdtAlias.docx" />
- <None Include="Resources\Unprotected.docx" />
- <None Include="Resources\WithCellWithPlaceholder.docx" />
- <None Include="Resources\WithDifferentlyFormattedTextInPlaceholder.docx" />
- <None Include="Resources\WithDifferentlyFormattedTextInTag.docx" />
- <None Include="Resources\WithIndentedOrderedListInserted.docx" />
- <None Include="Resources\WithMainContentAndNewTag.docx" />
- <None Include="Resources\WithMainContentAndThreeEmptyLines.docx" />
- <None Include="Resources\WithMainContentInserted.docx" />
- <None Include="Resources\WithMainContentInsertedJustifiedParagraphs.docx" />
- <None Include="Resources\WithMainContentInsertedMultilineParagraph.docx" />
- <None Include="Resources\WithMainContentInsertedOrderedList.docx" />
- <None Include="Resources\WithMainContentInsertedTextWithSpaces.docx" />
- <None Include="Resources\WithMainContentInsertedTwoParagraphs.docx" />
- <None Include="Resources\WithMainContentSingleTag.docx" />
- <None Include="Resources\WithMainContentTag.docx" />
- <None Include="Resources\WithMainContentTwoDifferentParagraphs.docx" />
- <None Include="Resources\WithManyPlaceholders.docx" />
- <None Include="Resources\WithManyPlaceholdersInsertedContent.docx" />
- <None Include="Resources\WithManyTags.docx" />
- <None Include="Resources\WithManyTagsInsertedParagraph.docx" />
- <None Include="Resources\WithOrderedListWithParagraphs.docx" />
- <None Include="Resources\WithPlaceholderInPlaceholder.docx" />
- <None Include="Resources\WithPlaceholderInsertedContentInserted.docx" />
- <None Include="Resources\WithPlaceholderInsertedInParagraph.docx" />
- <None Include="Resources\WithPlaceholderReplacedWithText.docx" />
- <None Include="Resources\WithPlaceholdersDenormalized.docx" />
- <None Include="Resources\WithPlaceholdersNormalized.docx" />
- <None Include="Resources\WithSdtElements.docx" />
- <None Include="Resources\WithStyledInlineSdtElement.docx" />
- <None Include="Resources\WithStyledInlineSdtElementContentInserted.docx" />
- <None Include="Resources\WithStyledSdtElements.docx" />
- <None Include="Resources\WithStyledSdtElementsContentInserted.docx" />
- <None Include="Resources\WithTableInsert.docx" />
- <None Include="Resources\WithTableWithMultilineCells.docx" />
- <None Include="Resources\WithTableWithoutBordersInsert.docx" />
- <None Include="Resources\WithTitlePlaceholder.docx" />
- <None Include="Resources\WithTitlePlaceholderRemoved.docx" />
- <None Include="Resources\WithTitlePlaceholderReplaced.docx" />
- <None Include="Resources\WithTwoIndependentOrderedListsInserted.docx" />
- <None Include="Resources\WithTwoParagraphsInBlockField.docx" />
- <None Include="Resources\WithTwoRunsInInlineField.docx" />
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="Properties\Resources.resx">
- <Generator>ResXFileCodeGenerator</Generator>
- <LastGenOutput>Resources.Designer.cs</LastGenOutput>
- <SubType>Designer</SubType>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup />
- <ItemGroup>
- <Content Include="Resources\Images\apple.jpg">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Content>
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{C25FFBAC-8F07-491D-B14F-7AB1EEF6DAEE}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>TabulaRasa.Core.Tests</RootNamespace>
+ <AssemblyName>TabulaRasa.Core.Tests</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>..\..\tests\</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>..\..\tests\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="DocumentFormat.OpenXml, Version=2.0.5022.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <HintPath>..\..\packages\DocumentFormat.OpenXml.1.0\lib\DocumentFormat.OpenXml.dll</HintPath>
+ </Reference>
+ <Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ <Reference Include="xunit, Version=1.9.0.1566, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\packages\xunit.1.9.0.1566\lib\xunit.dll</HintPath>
+ </Reference>
+ <Reference Include="xunit.extensions, Version=1.9.0.1566, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\packages\xunit.extensions.1.9.0.1566\lib\xunit.extensions.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="DocumentBuilder\DocumentPlaceholderTests.cs" />
+ <Compile Include="DocumentBuilder\DocumentTagTests.cs" />
+ <Compile Include="DocumentBuilder\DocxDocumentBuilderFieldTests.cs" />
+ <Compile Include="DocumentBuilder\DocxDocumentBuilderTests.cs" />
+ <Compile Include="DocumentBuilder\Extensions\OpenXmlElementExtensionsTests.cs" />
+ <Compile Include="DocumentBuilder\DocxDocumentBuilderMediaTests.cs" />
+ <Compile Include="DocxDocumentTests.cs" />
+ <Compile Include="EqualityComparers\DocxDocumentEqualityComparer.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Properties\Resources.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DesignTime>True</DesignTime>
+ <DependentUpon>Resources.resx</DependentUpon>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Foxby.Core\TabulaRasa.Core.csproj">
+ <Project>{8826F774-A0F0-46BC-8089-90F947485ECE}</Project>
+ <Name>TabulaRasa.Core</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ <None Include="Resources\DocumentWithAddedParagraph.docx" />
+ <None Include="Resources\DocumentWithAttribute.docx" />
+ <None Include="Resources\DocumentWithContentTypeTag.docx" />
+ <None Include="Resources\DocumentWithHideContentInPlaceholderInTag.docx" />
+ <None Include="Resources\DocumentWithHideContentInTag.docx" />
+ <None Include="Resources\DocumentWithoutAttributes.docx" />
+ <None Include="Resources\DocumentWithoutParagraph.docx" />
+ <None Include="Resources\DocumentWithParagraph.docx" />
+ <None Include="Resources\DocumentWithReplacedTitle.docx" />
+ <None Include="Resources\DocumentWithTitle.docx" />
+ <None Include="Resources\DocumentWithTwoAttributes.docx" />
+ <None Include="Resources\DocumentWithVisibilityContentInPlaceholderInTag.docx" />
+ <None Include="Resources\DocumentWithVisibilityContentInTag.docx" />
+ <None Include="Resources\EmptyTemplate.docx" />
+ <None Include="Resources\FieldsInHeadersAndFooters.docx" />
+ <None Include="Resources\FieldsInHeadersAndFootersReplaced.docx" />
+ <None Include="Resources\InvalidDocument.docx" />
+ <None Include="Resources\Protected.docx" />
+ <None Include="Resources\TableWithFormattedCells.docx" />
+ <None Include="Resources\SdtElementWithoutSdtAlias.docx" />
+ <None Include="Resources\Unprotected.docx" />
+ <None Include="Resources\WithCellWithPlaceholder.docx" />
+ <None Include="Resources\WithDifferentlyFormattedTextInPlaceholder.docx" />
+ <None Include="Resources\WithDifferentlyFormattedTextInTag.docx" />
+ <None Include="Resources\WithIndentedOrderedListInserted.docx" />
+ <None Include="Resources\WithMainContentAndNewTag.docx" />
+ <None Include="Resources\WithMainContentAndThreeEmptyLines.docx" />
+ <None Include="Resources\WithMainContentInserted.docx" />
+ <None Include="Resources\WithMainContentInsertedJustifiedParagraphs.docx" />
+ <None Include="Resources\WithMainContentInsertedMultilineParagraph.docx" />
+ <None Include="Resources\WithMainContentInsertedOrderedList.docx" />
+ <None Include="Resources\WithMainContentInsertedTextWithSpaces.docx" />
+ <None Include="Resources\WithMainContentInsertedTwoParagraphs.docx" />
+ <None Include="Resources\WithMainContentSingleTag.docx" />
+ <None Include="Resources\WithMainContentTag.docx" />
+ <None Include="Resources\WithMainContentTwoDifferentParagraphs.docx" />
+ <None Include="Resources\WithManyPlaceholders.docx" />
+ <None Include="Resources\WithManyPlaceholdersInsertedContent.docx" />
+ <None Include="Resources\WithManyTags.docx" />
+ <None Include="Resources\WithManyTagsInsertedParagraph.docx" />
+ <None Include="Resources\WithOrderedListWithParagraphs.docx" />
+ <None Include="Resources\WithPlaceholderInPlaceholder.docx" />
+ <None Include="Resources\WithPlaceholderInsertedContentInserted.docx" />
+ <None Include="Resources\WithPlaceholderInsertedInParagraph.docx" />
+ <None Include="Resources\WithPlaceholderReplacedWithText.docx" />
+ <None Include="Resources\WithPlaceholdersDenormalized.docx" />
+ <None Include="Resources\WithPlaceholdersNormalized.docx" />
+ <None Include="Resources\WithSdtElements.docx" />
+ <None Include="Resources\WithStyledInlineSdtElement.docx" />
+ <None Include="Resources\WithStyledInlineSdtElementContentInserted.docx" />
+ <None Include="Resources\WithStyledSdtElements.docx" />
+ <None Include="Resources\WithStyledSdtElementsContentInserted.docx" />
+ <None Include="Resources\WithTableInsert.docx" />
+ <None Include="Resources\WithTableWithMultilineCells.docx" />
+ <None Include="Resources\WithTableWithoutBordersInsert.docx" />
+ <None Include="Resources\WithTitlePlaceholder.docx" />
+ <None Include="Resources\WithTitlePlaceholderRemoved.docx" />
+ <None Include="Resources\WithTitlePlaceholderReplaced.docx" />
+ <None Include="Resources\WithTwoIndependentOrderedListsInserted.docx" />
+ <None Include="Resources\WithTwoParagraphsInBlockField.docx" />
+ <None Include="Resources\WithTwoRunsInInlineField.docx" />
+ </ItemGroup>
+ <ItemGroup>
+ <EmbeddedResource Include="Properties\Resources.resx">
+ <Generator>ResXFileCodeGenerator</Generator>
+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ </ItemGroup>
+ <ItemGroup />
+ <ItemGroup>
+ <Content Include="Resources\Images\apple.jpg">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
</Project>
View
14 src/Foxby.Core/DocumentBuilder/Anchors/AnchorElement.cs
@@ -1,11 +1,11 @@
-using System.Collections.Generic;
-using System.Linq;
-using DocumentFormat.OpenXml;
-using DocumentFormat.OpenXml.Packaging;
-
-namespace Foxby.Core.DocumentBuilder.Anchors
+namespace TabulaRasa.Core.DocumentBuilder.Anchors
{
- /// <summary>
+ using System.Collections.Generic;
+ using System.Linq;
+ using DocumentFormat.OpenXml;
+ using DocumentFormat.OpenXml.Packaging;
+
+ /// <summary>
/// Contains metadata for anchors such as tags, placeholders etc.
/// </summary>
/// <typeparam name="TElement"><see cref="OpenXmlElement"/> representing anchor</typeparam>
View
16 src/Foxby.Core/DocumentBuilder/Anchors/BlockField.cs
@@ -1,12 +1,12 @@
-using System.Collections.Generic;
-using System.Linq;
-using DocumentFormat.OpenXml.Packaging;
-using DocumentFormat.OpenXml.Wordprocessing;
-using Foxby.Core.DocumentBuilder.Extensions;
-
-namespace Foxby.Core.DocumentBuilder.Anchors
+namespace TabulaRasa.Core.DocumentBuilder.Anchors
{
- internal class BlockField : SdtField<SdtBlock, SdtContentBlock>
+ using System.Collections.Generic;
+ using System.Linq;
+ using DocumentFormat.OpenXml.Packaging;
+ using DocumentFormat.OpenXml.Wordprocessing;
+ using Extensions;
+
+ internal class BlockField : SdtField<SdtBlock, SdtContentBlock>
{
private readonly ParagraphProperties _paragraphProperties;
View
14 src/Foxby.Core/DocumentBuilder/Anchors/DocumentPlaceholder.cs
@@ -1,11 +1,11 @@
-using System.Collections.Generic;
-using System.Linq;
-using DocumentFormat.OpenXml.Packaging;
-using DocumentFormat.OpenXml.Wordprocessing;
-
-namespace Foxby.Core.DocumentBuilder.Anchors
+namespace TabulaRasa.Core.DocumentBuilder.Anchors
{
- ///<summary>
+ using System.Collections.Generic;
+ using System.Linq;
+ using DocumentFormat.OpenXml.Packaging;
+ using DocumentFormat.OpenXml.Wordprocessing;
+
+ ///<summary>
/// Represents inline anchor (placeholder)
///</summary>
internal class DocumentPlaceholder : AnchorElement<Run>
View
14 src/Foxby.Core/DocumentBuilder/Anchors/DocumentTag.cs
@@ -1,11 +1,11 @@
-using System.Collections.Generic;
-using System.Linq;
-using DocumentFormat.OpenXml.Packaging;
-using DocumentFormat.OpenXml.Wordprocessing;
-
-namespace Foxby.Core.DocumentBuilder.Anchors
+namespace TabulaRasa.Core.DocumentBuilder.Anchors
{
- ///<summary>
+ using System.Collections.Generic;
+ using System.Linq;
+ using DocumentFormat.OpenXml.Packaging;
+ using DocumentFormat.OpenXml.Wordprocessing;
+
+ ///<summary>
/// Represents block anchor (tag)
///</summary>
internal class DocumentTag : AnchorElement<Paragraph>
View
16 src/Foxby.Core/DocumentBuilder/Anchors/InlineField.cs
@@ -1,12 +1,12 @@
-using System.Collections.Generic;
-using System.Linq;
-using DocumentFormat.OpenXml.Packaging;
-using DocumentFormat.OpenXml.Wordprocessing;
-using Foxby.Core.DocumentBuilder.Extensions;
-
-namespace Foxby.Core.DocumentBuilder.Anchors
+namespace TabulaRasa.Core.DocumentBuilder.Anchors
{
- internal class InlineField : SdtField<SdtRun, SdtContentRun>
+ using System.Collections.Generic;
+ using System.Linq;
+ using DocumentFormat.OpenXml.Packaging;
+ using DocumentFormat.OpenXml.Wordprocessing;
+ using Extensions;
+
+ internal class InlineField : SdtField<SdtRun, SdtContentRun>
{
private readonly RunProperties _runProperties;
View
18 src/Foxby.Core/DocumentBuilder/Anchors/SdtField.cs
@@ -1,13 +1,13 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using DocumentFormat.OpenXml;
-using DocumentFormat.OpenXml.Packaging;
-using DocumentFormat.OpenXml.Wordprocessing;
-
-namespace Foxby.Core.DocumentBuilder.Anchors
+namespace TabulaRasa.Core.DocumentBuilder.Anchors
{
- internal abstract class SdtField<TSdtElement, TSdtContentElement> : AnchorElement<TSdtElement>
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using DocumentFormat.OpenXml;
+ using DocumentFormat.OpenXml.Packaging;
+ using DocumentFormat.OpenXml.Wordprocessing;
+
+ internal abstract class SdtField<TSdtElement, TSdtContentElement> : AnchorElement<TSdtElement>
where TSdtElement : SdtElement
where TSdtContentElement : OpenXmlElement
{
View
12 src/Foxby.Core/DocumentBuilder/DocxDocumentAggregationBuilder.cs
@@ -1,10 +1,10 @@
-using System.Collections.Generic;
-using DocumentFormat.OpenXml;
-using DocumentFormat.OpenXml.Packaging;
-
-namespace Foxby.Core.DocumentBuilder
+namespace TabulaRasa.Core.DocumentBuilder
{
- internal abstract class DocxDocumentAggregationBuilder : DocxDocumentBuilderBase
+ using System.Collections.Generic;
+ using DocumentFormat.OpenXml;
+ using DocumentFormat.OpenXml.Packaging;
+
+ internal abstract class DocxDocumentAggregationBuilder : DocxDocumentBuilderBase
{
internal readonly List<OpenXmlElement> Aggregation = new List<OpenXmlElement>();
View
20 src/Foxby.Core/DocumentBuilder/DocxDocumentBlockContextBuilderBase.cs
@@ -1,14 +1,14 @@
-using System;
-using System.Linq;
-using DocumentFormat.OpenXml;
-using DocumentFormat.OpenXml.Packaging;
-using DocumentFormat.OpenXml.Wordprocessing;
-using Foxby.Core.DocumentBuilder.Anchors;
-using Format = Foxby.Core.MetaObjects.Format;
-
-namespace Foxby.Core.DocumentBuilder
+namespace TabulaRasa.Core.DocumentBuilder
{
- internal abstract class DocxDocumentBlockContextBuilderBase : DocxDocumentBuilderBase, IDocumentTagContextBuilder
+ using System;
+ using System.Linq;
+ using Anchors;
+ using DocumentFormat.OpenXml;
+ using DocumentFormat.OpenXml.Packaging;
+ using DocumentFormat.OpenXml.Wordprocessing;
+ using Format = MetaObjects.Format;
+
+ internal abstract class DocxDocumentBlockContextBuilderBase : DocxDocumentBuilderBase, IDocumentTagContextBuilder
{
private OpenXmlElement[] _contextParagraphPrependedElements;
private ParagraphProperties _contextParagraphProperties;
View
20 src/Foxby.Core/DocumentBuilder/DocxDocumentBlockFieldContextBuilder.cs
@@ -1,14 +1,14 @@
-using System.Collections.Generic;
-using System.Linq;
-using DocumentFormat.OpenXml;
-using DocumentFormat.OpenXml.Packaging;
-using DocumentFormat.OpenXml.Wordprocessing;
-using Foxby.Core.DocumentBuilder.Anchors;
-using Foxby.Core.DocumentBuilder.Extensions;
-
-namespace Foxby.Core.DocumentBuilder
+namespace TabulaRasa.Core.DocumentBuilder
{
- internal class DocxDocumentBlockFieldContextBuilder : DocxDocumentBlockContextBuilderBase
+ using System.Collections.Generic;
+ using System.Linq;
+ using Anchors;
+ using DocumentFormat.OpenXml;
+ using DocumentFormat.OpenXml.Packaging;
+ using DocumentFormat.OpenXml.Wordprocessing;
+ using Extensions;
+
+ internal class DocxDocumentBlockFieldContextBuilder : DocxDocumentBlockContextBuilderBase
{
private readonly IEnumerable<BlockField> _documentFields;
View
24 src/Foxby.Core/DocumentBuilder/DocxDocumentBuilder.cs
@@ -1,16 +1,16 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.RegularExpressions;
-using DocumentFormat.OpenXml;
-using DocumentFormat.OpenXml.Validation;
-using DocumentFormat.OpenXml.Wordprocessing;
-using Foxby.Core.DocumentBuilder.Anchors;
-using Foxby.Core.DocumentBuilder.Extensions;
-using Foxby.Core.MetaObjects;
-
-namespace Foxby.Core.DocumentBuilder
+namespace TabulaRasa.Core.DocumentBuilder
{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Text.RegularExpressions;
+ using Anchors;
+ using DocumentFormat.OpenXml;
+ using DocumentFormat.OpenXml.Validation;
+ using DocumentFormat.OpenXml.Wordprocessing;
+ using Extensions;
+ using MetaObjects;
+
/// <summary>
/// Operates with content of tags and placeholders in OpenXML template
/// </summary>
View
18 src/Foxby.Core/DocumentBuilder/DocxDocumentBuilderBase.cs
@@ -1,13 +1,13 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using DocumentFormat.OpenXml;
-using DocumentFormat.OpenXml.Packaging;
-using DocumentFormat.OpenXml.Wordprocessing;
-using Foxby.Core.DocumentBuilder.Extensions;
-
-namespace Foxby.Core.DocumentBuilder
+namespace TabulaRasa.Core.DocumentBuilder
{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using DocumentFormat.OpenXml;
+ using DocumentFormat.OpenXml.Packaging;
+ using DocumentFormat.OpenXml.Wordprocessing;
+ using Extensions;
+
/// <summary>
/// Contains common operations for working OpenXML tree
/// </summary>
View
14 src/Foxby.Core/DocumentBuilder/DocxDocumentCellContextBuilder.cs
@@ -1,11 +1,11 @@
-using System;
-using DocumentFormat.OpenXml;
-using DocumentFormat.OpenXml.Packaging;
-using DocumentFormat.OpenXml.Wordprocessing;
-
-namespace Foxby.Core.DocumentBuilder
+namespace TabulaRasa.Core.DocumentBuilder
{
- internal class DocxDocumentCellContextBuilder : DocxDocumentContextBuilderBase, ICellContextBuilder
+ using System;
+ using DocumentFormat.OpenXml;
+ using DocumentFormat.OpenXml.Packaging;
+ using DocumentFormat.OpenXml.Wordprocessing;
+
+ internal class DocxDocumentCellContextBuilder : DocxDocumentContextBuilderBase, ICellContextBuilder
{
private readonly TableCellProperties contextTableCellProperties;
private ParagraphProperties paragraphProperties;
View
24 src/Foxby.Core/DocumentBuilder/DocxDocumentContextBuilderBase.cs
@@ -1,16 +1,16 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using DocumentFormat.OpenXml;
-using DocumentFormat.OpenXml.Packaging;
-using DocumentFormat.OpenXml.Wordprocessing;
-using Foxby.Core.DocumentBuilder.Anchors;
-using Foxby.Core.DocumentBuilder.Extensions;
-using Foxby.Core.MetaObjects;
-
-namespace Foxby.Core.DocumentBuilder
+namespace TabulaRasa.Core.DocumentBuilder
{
- internal abstract class DocxDocumentContextBuilderBase : DocxDocumentAggregationBuilder, IDocumentContextBuilder
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using Anchors;
+ using DocumentFormat.OpenXml;
+ using DocumentFormat.OpenXml.Packaging;
+ using DocumentFormat.OpenXml.Wordprocessing;
+ using Extensions;
+ using MetaObjects;
+
+ internal abstract class DocxDocumentContextBuilderBase : DocxDocumentAggregationBuilder, IDocumentContextBuilder
{
private readonly ICollection<OpenXmlElement> _runPropertiesElements = new List<OpenXmlElement>();
private bool _isEditable;
View
14 src/Foxby.Core/DocumentBuilder/DocxDocumentOrderedListBuilder.cs
@@ -1,11 +1,11 @@
-using System;
-using System.Linq;
-using DocumentFormat.OpenXml.Packaging;
-using DocumentFormat.OpenXml.Wordprocessing;
-
-namespace Foxby.Core.DocumentBuilder
+namespace TabulaRasa.Core.DocumentBuilder
{
- internal class DocxDocumentOrderedListBuilder : DocxDocumentAggregationBuilder, IDocumentOrderedListBuilder
+ using System;
+ using System.Linq;
+ using DocumentFormat.OpenXml.Packaging;
+ using DocumentFormat.OpenXml.Wordprocessing;
+
+ internal class DocxDocumentOrderedListBuilder : DocxDocumentAggregationBuilder, IDocumentOrderedListBuilder
{
private readonly int numberingId;
View
14 src/Foxby.Core/DocumentBuilder/DocxDocumentParagraphContextBuilder.cs
@@ -1,11 +1,11 @@
-using System.Collections.Generic;
-using DocumentFormat.OpenXml;
-using DocumentFormat.OpenXml.Packaging;
-using DocumentFormat.OpenXml.Wordprocessing;
-
-namespace Foxby.Core.DocumentBuilder
+namespace TabulaRasa.Core.DocumentBuilder
{
- internal class DocxDocumentParagraphContextBuilder : DocxDocumentContextBuilderBase
+ using System.Collections.Generic;
+ using DocumentFormat.OpenXml;
+ using DocumentFormat.OpenXml.Packaging;
+ using DocumentFormat.OpenXml.Wordprocessing;
+
+ internal class DocxDocumentParagraphContextBuilder : DocxDocumentContextBuilderBase
{
private readonly IEnumerable<OpenXmlElement> _prependedElements;
private readonly ParagraphProperties _properties;
View
10 src/Foxby.Core/DocumentBuilder/DocxDocumentPlaceholderContextBuilder.cs
@@ -1,9 +1,9 @@
-using DocumentFormat.OpenXml.Packaging;
-using DocumentFormat.OpenXml.Wordprocessing;
-
-namespace Foxby.Core.DocumentBuilder
+namespace TabulaRasa.Core.DocumentBuilder
{
- internal class DocxDocumentPlaceholderContextBuilder : DocxDocumentContextBuilderBase
+ using DocumentFormat.OpenXml.Packaging;
+ using DocumentFormat.OpenXml.Wordprocessing;
+
+ internal class DocxDocumentPlaceholderContextBuilder : DocxDocumentContextBuilderBase
{
private readonly RunProperties _runProperties;
View
16 src/Foxby.Core/DocumentBuilder/DocxDocumentTableSchemeBuilder.cs
@@ -1,12 +1,12 @@
-using System;
-using System.Linq;
-using DocumentFormat.OpenXml;
-using DocumentFormat.OpenXml.Packaging;
-using DocumentFormat.OpenXml.Wordprocessing;
-
-namespace Foxby.Core.DocumentBuilder
+namespace TabulaRasa.Core.DocumentBuilder
{
- internal class DocxDocumentTableSchemeBuilder : DocxDocumentAggregationBuilder, IDocumentTableSchemeBuilder, IDocumentTableRowsBuilder
+ using System;
+ using System.Linq;
+ using DocumentFormat.OpenXml;
+ using DocumentFormat.OpenXml.Packaging;
+ using DocumentFormat.OpenXml.Wordprocessing;
+
+ internal class DocxDocumentTableSchemeBuilder : DocxDocumentAggregationBuilder, IDocumentTableSchemeBuilder, IDocumentTableRowsBuilder
{
private readonly TableRow headerRow;
private readonly Table table;
View
16 src/Foxby.Core/DocumentBuilder/DocxDocumentTagContextBuilder.cs
@@ -1,12 +1,12 @@
-using System.Collections.Generic;
-using DocumentFormat.OpenXml;
-using DocumentFormat.OpenXml.Packaging;
-using Foxby.Core.DocumentBuilder.Anchors;
-using Foxby.Core.DocumentBuilder.Extensions;
-
-namespace Foxby.Core.DocumentBuilder
+namespace TabulaRasa.Core.DocumentBuilder
{
- internal class DocxDocumentTagContextBuilder : DocxDocumentBlockContextBuilderBase
+ using System.Collections.Generic;
+ using Anchors;
+ using DocumentFormat.OpenXml;
+ using DocumentFormat.OpenXml.Packaging;
+ using Extensions;
+
+ internal class DocxDocumentTagContextBuilder : DocxDocumentBlockContextBuilderBase
{
private readonly IEnumerable<DocumentTag> _documentTags;
View
8 src/Foxby.Core/DocumentBuilder/Extensions/OpenXmlElementExtensions.cs
@@ -1,8 +1,8 @@
-using DocumentFormat.OpenXml;
-
-namespace Foxby.Core.DocumentBuilder.Extensions
+namespace TabulaRasa.Core.DocumentBuilder.Extensions
{
- internal static class OpenXmlElementExtensions
+ using DocumentFormat.OpenXml;
+
+ internal static class OpenXmlElementExtensions
{
public static TElement CloneElement<TElement>(this TElement element)
where TElement : OpenXmlElement
View
10 src/Foxby.Core/DocumentBuilder/MainDocumentPartExtensions.cs
@@ -1,9 +1,9 @@
-using System.Collections.Generic;
-using DocumentFormat.OpenXml;
-using DocumentFormat.OpenXml.Packaging;
-
-namespace Foxby.Core.DocumentBuilder
+namespace TabulaRasa.Core.DocumentBuilder
{
+ using System.Collections.Generic;
+ using DocumentFormat.OpenXml;
+ using DocumentFormat.OpenXml.Packaging;
+
internal static class MainDocumentPartExtensions
{
public static IEnumerable<OpenXmlPartRootElement> GetRootElements(this MainDocumentPart mainPart)
View
8 src/Foxby.Core/DocumentBuilder/TagVisibilityOptions.cs
@@ -1,8 +1,8 @@
-using System.Collections.Generic;
-
-namespace Foxby.Core.DocumentBuilder
+namespace TabulaRasa.Core.DocumentBuilder
{
- /// <summary>
+ using System.Collections.Generic;
+
+ /// <summary>
/// List of tags for show and hide
/// </summary>
public class TagVisibilityOptions
View
8 src/Foxby.Core/ICellContextBuilder.cs
@@ -1,8 +1,8 @@
-using System;
-
-namespace Foxby.Core
+namespace TabulaRasa.Core
{
- /// <summary>
+ using System;
+
+ /// <summary>
/// Provides methods for building content of table cells
/// </summary>
public interface ICellContextBuilder : IDocumentContextBuilder, IDocumentFormattableBuilder<ICellContextBuilder>
View
5 src/Foxby.Core/IDocumentBuilder.cs
@@ -1,7 +1,6 @@
-using System;
-
-namespace Foxby.Core
+namespace TabulaRasa.Core
{
+ using System;
using System.Collections.Generic;
using MetaObjects;
View
8 src/Foxby.Core/IDocumentContextBuilder.cs
@@ -1,8 +1,8 @@
-using System;
-
-namespace Foxby.Core
+namespace TabulaRasa.Core
{
- /// <summary>
+ using System;
+
+ /// <summary>
/// Provide base methods for changing content of block anchors and OpenXML elements
/// </summary>
public interface IDocumentContextBuilder : IDocumentContextFormattableBuilder
View
2  src/Foxby.Core/IDocumentContextFormattableBuilder.cs
@@ -1,4 +1,4 @@
-namespace Foxby.Core
+namespace TabulaRasa.Core
{
/// <summary>
/// Provide methods for edit or format text content of inline elements
View
2  src/Foxby.Core/IDocumentFormattableBuilder.cs
@@ -1,4 +1,4 @@
-namespace Foxby.Core
+namespace TabulaRasa.Core
{
/// <summary>
/// Provides alignment options for block OpenXML elements
View
8 src/Foxby.Core/IDocumentOrderedListBuilder.cs
@@ -1,8 +1,8 @@
-using System;
-
-namespace Foxby.Core
+namespace TabulaRasa.Core
{
- /// <summary>
+ using System;
+
+ /// <summary>
/// Provider methods for creating ordered list items
/// </summary>
public interface IDocumentOrderedListBuilder
View
10 src/Foxby.Core/IDocumentParagraphFormattableBuilder.cs
@@ -1,9 +1,9 @@
-using System;
-using Foxby.Core.MetaObjects;
-
-namespace Foxby.Core
+namespace TabulaRasa.Core
{
- ///<summary>
+ using System;
+ using MetaObjects;
+
+ ///<summary>
/// Provides methods for inserting paragraphs with specified indentation and format
///</summary>
public interface IDocumentParagraphFormattableBuilder : IDocumentFormattableBuilder<IDocumentParagraphFormattableBuilder>
View
8 src/Foxby.Core/IDocumentTableContextBuilder.cs
@@ -1,8 +1,8 @@
-using System;
-
-namespace Foxby.Core
+namespace TabulaRasa.Core
{
- ///<summary>
+ using System;
+
+ ///<summary>
/// Provides methods for inserting tables
///</summary>
public interface IDocumentTableContextBuilder
View
8 src/Foxby.Core/IDocumentTableRowsBuilder.cs
@@ -1,8 +1,8 @@
-using System;
-
-namespace Foxby.Core
+namespace TabulaRasa.Core
{
- ///<summary>
+ using System;
+
+ ///<summary>
/// Provides methods for inserting table rows with content
///</summary>
public interface IDocumentTableRowsBuilder
View
2  src/Foxby.Core/IDocumentTableSchemeBuilder.cs
@@ -1,4 +1,4 @@
-namespace Foxby.Core
+namespace TabulaRasa.Core
{
///<summary>
/// Provides methods for defining table header and columns metadata
View
8 src/Foxby.Core/IDocumentTagContextBuilder.cs
@@ -1,8 +1,8 @@
-using System;
-
-namespace Foxby.Core
+namespace TabulaRasa.Core
{
- ///<summary>
+ using System;
+
+ ///<summary>
/// Provide base methods for changing content of tags
///</summary>
public interface IDocumentTagContextBuilder : IDocumentParagraphFormattableBuilder, IDocumentTableContextBuilder
View
14 src/Foxby.Core/MetaObjects/Collections/FieldsCollection.cs
@@ -1,11 +1,11 @@
-using System.Collections;
-using System.Collections.Generic;
-using System.Linq;
-using DocumentFormat.OpenXml.Wordprocessing;
-
-namespace Foxby.Core.MetaObjects.Collections
+namespace TabulaRasa.Core.MetaObjects.Collections
{
- /// <summary>
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+ using DocumentFormat.OpenXml.Wordprocessing;
+
+ /// <summary>
/// Collection which contains all sdt fields from document represented as <see cref="Field"/>s
/// </summary>
public class FieldsCollection : IEnumerable<Field>
View
32 src/Foxby.Core/MetaObjects/DocxDocument.cs
@@ -1,20 +1,20 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Text.RegularExpressions;
-using DocumentFormat.OpenXml;
-using DocumentFormat.OpenXml.CustomProperties;
-using DocumentFormat.OpenXml.Packaging;
-using DocumentFormat.OpenXml.VariantTypes;
-using DocumentFormat.OpenXml.Wordprocessing;
-using Foxby.Core.DocumentBuilder;
-using Foxby.Core.DocumentBuilder.Anchors;
-using Foxby.Core.MetaObjects.Collections;
-
-namespace Foxby.Core.MetaObjects
+namespace TabulaRasa.Core.MetaObjects
{
- ///<summary>
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Linq;
+ using System.Text.RegularExpressions;
+ using Collections;
+ using DocumentBuilder;
+ using DocumentBuilder.Anchors;
+ using DocumentFormat.OpenXml;
+ using DocumentFormat.OpenXml.CustomProperties;
+ using DocumentFormat.OpenXml.Packaging;
+ using DocumentFormat.OpenXml.VariantTypes;
+ using DocumentFormat.OpenXml.Wordprocessing;
+
+ ///<summary>
/// Wrapper for OpenXML docx file which provides base methods for operating document
///</summary>
public class DocxDocument : IDisposable
View
2  src/Foxby.Core/MetaObjects/Extensions/StringFormatExtensions.cs
@@ -1,4 +1,4 @@
-namespace Foxby.Core.MetaObjects.Extensions
+namespace TabulaRasa.Core.MetaObjects.Extensions
{
///<summary>
/// Provides extension methods for specifying formatting options for text strings
View
8 src/Foxby.Core/MetaObjects/Field.cs
@@ -1,9 +1,9 @@
-namespace Foxby.Core.MetaObjects
+namespace TabulaRasa.Core.MetaObjects
{
- using DocumentFormat.OpenXml;
- using DocumentFormat.OpenXml.Wordprocessing;
+ using DocumentFormat.OpenXml;
+ using DocumentFormat.OpenXml.Wordprocessing;
- /// <summary>
+ /// <summary>
/// Class which holds basic information about <see cref="SdtElement"/>
/// </summary>
public class Field
View
2  src/Foxby.Core/MetaObjects/Format.cs
@@ -1,4 +1,4 @@
-namespace Foxby.Core.MetaObjects
+namespace TabulaRasa.Core.MetaObjects
{
///<summary>
/// Stores formatting options for text strings
View
78 src/Foxby.Core/MetaObjects/Image.cs
@@ -1,16 +1,22 @@
-using DocumentFormat.OpenXml;
-using DocumentFormat.OpenXml.Wordprocessing;
-using Run = DocumentFormat.OpenXml.Wordprocessing.Run;
-using DW = DocumentFormat.OpenXml.Drawing.Wordprocessing;
-using A = DocumentFormat.OpenXml.Drawing;
-using Pictures = DocumentFormat.OpenXml.Drawing.Pictures;
-
-namespace Foxby.Core.MetaObjects
+namespace TabulaRasa.Core.MetaObjects
{
- internal class Image
+ using DocumentFormat.OpenXml;
+ using DocumentFormat.OpenXml.Wordprocessing;
+ using DocumentFormat.OpenXml.Drawing.Wordprocessing;
+ using DocumentFormat.OpenXml.Drawing;
+ using BlipFill = DocumentFormat.OpenXml.Drawing.Pictures.BlipFill;
+ using NonVisualDrawingProperties = DocumentFormat.OpenXml.Drawing.Pictures.NonVisualDrawingProperties;
+ using NonVisualGraphicFrameDrawingProperties = DocumentFormat.OpenXml.Drawing.Wordprocessing.NonVisualGraphicFrameDrawingProperties;
+ using NonVisualPictureDrawingProperties = DocumentFormat.OpenXml.Drawing.Pictures.NonVisualPictureDrawingProperties;
+ using NonVisualPictureProperties = DocumentFormat.OpenXml.Drawing.Pictures.NonVisualPictureProperties;
+ using Picture = DocumentFormat.OpenXml.Drawing.Pictures.Picture;
+ using Run = DocumentFormat.OpenXml.Wordprocessing.Run;
+ using ShapeProperties = DocumentFormat.OpenXml.Drawing.Pictures.ShapeProperties;
+
+ internal class Image
{
private const string SchemaUri = "http://schemas.openxmlformats.org/drawingml/2006/picture";
- private const string PictureName = "Image inserted via Foxby";
+ private const string PictureName = "Image inserted via TabulaRasa";
private const string BlipUriGuid = "{28A0092B-C50C-407E-A947-70E740481C1C}";
private readonly string imagePartId;
@@ -24,36 +30,36 @@ public OpenXmlElement ToOpenXml()
{
var drawing =
new Drawing(
- new DW.Inline(
- new DW.Extent {Cx = 990000L, Cy = 792000L},
- new DW.EffectExtent
+ new Inline(
+ new Extent {Cx = 990000L, Cy = 792000L},
+ new EffectExtent
{
LeftEdge = 0L,
TopEdge = 0L,
RightEdge = 0L,
BottomEdge = 0L
},
- new DW.DocProperties
+ new DocProperties
{
Id = (UInt32Value) 1U,
Name = "Picture"
},
- new DW.NonVisualGraphicFrameDrawingProperties(
- new A.GraphicFrameLocks {NoChangeAspect = true}),
- new A.Graphic(
- new A.GraphicData(
- new Pictures.Picture(
- new Pictures.NonVisualPictureProperties(
- new Pictures.NonVisualDrawingProperties
+ new NonVisualGraphicFrameDrawingProperties(
+ new GraphicFrameLocks {NoChangeAspect = true}),
+ new Graphic(
+ new GraphicData(
+ new Picture(
+ new NonVisualPictureProperties(
+ new NonVisualDrawingProperties
{
Id = (UInt32Value) 0U,
Name = PictureName
},
- new Pictures.NonVisualPictureDrawingProperties()),
- new Pictures.BlipFill(
- new A.Blip(
- new A.BlipExtensionList(
- new A.BlipExtension
+ new NonVisualPictureDrawingProperties()),
+ new BlipFill(
+ new Blip(
+ new BlipExtensionList(
+ new BlipExtension
{
Uri = BlipUriGuid
})
@@ -61,17 +67,17 @@ public OpenXmlElement ToOpenXml()
{
Embed = imagePartId,
CompressionState =
- A.BlipCompressionValues.Print
+ BlipCompressionValues.Print
},
- new A.Stretch(
- new A.FillRectangle())),
- new Pictures.ShapeProperties(
- new A.Transform2D(
- new A.Offset {X = 0L, Y = 0L},
- new A.Extents {Cx = 990000L, Cy = 792000L}),
- new A.PresetGeometry(
- new A.AdjustValueList()
- ) {Preset = A.ShapeTypeValues.Rectangle}))
+ new Stretch(
+ new FillRectangle())),
+ new ShapeProperties(
+ new Transform2D(
+ new Offset {X = 0L, Y = 0L},
+ new Extents {Cx = 990000L, Cy = 792000L}),
+ new PresetGeometry(
+ new AdjustValueList()
+ ) {Preset = ShapeTypeValues.Rectangle}))
) {Uri = SchemaUri})
)
{
View
8 src/Foxby.Core/MetaObjects/OpenCloseTagReplacer.cs
@@ -1,8 +1,8 @@
-using DocumentFormat.OpenXml.Wordprocessing;
-
-namespace Foxby.Core.MetaObjects
+namespace TabulaRasa.Core.MetaObjects
{
- internal class OpenCloseTagReplacer : TagReplacer
+ using DocumentFormat.OpenXml.Wordprocessing;
+
+ internal class OpenCloseTagReplacer : TagReplacer
{
public OpenCloseTagReplacer(string name, DocxDocument document)
: base(name, document)
View
8 src/Foxby.Core/MetaObjects/SingleTagReplacer.cs
@@ -1,8 +1,8 @@
-using DocumentFormat.OpenXml.Wordprocessing;
-
-namespace Foxby.Core.MetaObjects
+namespace TabulaRasa.Core.MetaObjects
{
- internal class SingleTagReplacer : TagReplacer
+ using DocumentFormat.OpenXml.Wordprocessing;
+
+ internal class SingleTagReplacer : TagReplacer
{
public SingleTagReplacer(string name, DocxDocument document)
: base(name, document)
View
8 src/Foxby.Core/MetaObjects/TagReplacer.cs
@@ -1,8 +1,8 @@
-using DocumentFormat.OpenXml.Wordprocessing;
-
-namespace Foxby.Core.MetaObjects
+namespace TabulaRasa.Core.MetaObjects
{
- internal abstract class TagReplacer
+ using DocumentFormat.OpenXml.Wordprocessing;
+
+ internal abstract class TagReplacer
{
protected readonly DocxDocument Document;
View
2  src/Foxby.Core/MetaObjects/TextBlock.cs
@@ -1,4 +1,4 @@
-namespace Foxby.Core.MetaObjects
+namespace TabulaRasa.Core.MetaObjects
{
internal class TextBlock
{
View
4 src/Foxby.Core/Properties/AssemblyInfo.cs
@@ -2,6 +2,6 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-[assembly: AssemblyTitle("Foxby")]
+[assembly: AssemblyTitle("TabulaRasa")]
[assembly: Guid("f0697d3b-1eba-427c-ab0a-2f36f4cb6160")]
-[assembly: InternalsVisibleTo("Foxby.Core.Tests")]
+[assembly: InternalsVisibleTo("TabulaRasa.Core.Tests")]
View
6 src/Foxby.Core/SimpleTemplate.Designer.cs
@@ -1,14 +1,14 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.235
+// Runtime Version:4.0.30319.17379
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
-namespace Foxby.Core {
+namespace TabulaRasa.Core {
using System;
@@ -39,7 +39,7 @@ public class SimpleTemplate {
public static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Foxby.Core.SimpleTemplate", typeof(SimpleTemplate).Assembly);
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TabulaRasa.Core.SimpleTemplate", typeof(SimpleTemplate).Assembly);
resourceMan = temp;
}
return resourceMan;
View
238 src/Foxby.Core/Foxby.Core.csproj → src/Foxby.Core/TabulaRasa.Core.csproj
@@ -1,120 +1,120 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.30703</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{8826F774-A0F0-46BC-8089-90F947485ECE}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Foxby.Core</RootNamespace>
- <AssemblyName>Foxby</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>..\..\build\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <DocumentationFile>..\..\build\Debug\Foxby.xml</DocumentationFile>
- <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>..\..\build\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <DocumentationFile>..\..\build\Release\Foxby.XML</DocumentationFile>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="DocumentFormat.OpenXml, Version=2.0.5022.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
- <HintPath>..\..\packages\DocumentFormat.OpenXml.1.0\lib\DocumentFormat.OpenXml.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Core" />
- <Reference Include="System.Xml.Linq" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- <Reference Include="WindowsBase" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="..\Solution Items\GlobalAssemblyInfo.cs">
- <Link>Properties\GlobalAssemblyInfo.cs</Link>
- </Compile>
- <Compile Include="DocumentBuilder\Anchors\AnchorElement.cs" />
- <Compile Include="DocumentBuilder\Anchors\BlockField.cs" />
- <Compile Include="DocumentBuilder\Anchors\DocumentPlaceholder.cs" />
- <Compile Include="DocumentBuilder\Anchors\DocumentTag.cs" />
- <Compile Include="DocumentBuilder\Anchors\InlineField.cs" />
- <Compile Include="DocumentBuilder\Anchors\SdtField.cs" />
- <Compile Include="DocumentBuilder\DocxDocumentAggregationBuilder.cs" />
- <Compile Include="DocumentBuilder\DocxDocumentBlockContextBuilderBase.cs" />
- <Compile Include="DocumentBuilder\DocxDocumentBlockFieldContextBuilder.cs" />
- <Compile Include="DocumentBuilder\DocxDocumentBuilder.cs" />
- <Compile Include="DocumentBuilder\DocxDocumentBuilderBase.cs" />
- <Compile Include="DocumentBuilder\DocxDocumentCellContextBuilder.cs" />
- <Compile Include="DocumentBuilder\DocxDocumentContextBuilderBase.cs" />
- <Compile Include="DocumentBuilder\DocxDocumentOrderedListBuilder.cs" />
- <Compile Include="DocumentBuilder\DocxDocumentParagraphContextBuilder.cs" />
- <Compile Include="DocumentBuilder\DocxDocumentPlaceholderContextBuilder.cs" />
- <Compile Include="DocumentBuilder\DocxDocumentTableSchemeBuilder.cs" />
- <Compile Include="DocumentBuilder\DocxDocumentTagContextBuilder.cs" />
- <Compile Include="DocumentBuilder\Extensions\OpenXmlElementExtensions.cs" />
- <Compile Include="DocumentBuilder\MainDocumentPartExtensions.cs" />
- <Compile Include="DocumentBuilder\TagVisibilityOptions.cs" />
- <Compile Include="MetaObjects\Collections\FieldsCollection.cs" />
- <Compile Include="MetaObjects\Field.cs" />
- <Compile Include="MetaObjects\OpenCloseTagReplacer.cs" />
- <Compile Include="MetaObjects\DocxDocument.cs" />
- <Compile Include="ICellContextBuilder.cs" />
- <Compile Include="IDocumentBuilder.cs" />
- <Compile Include="IDocumentContextBuilder.cs" />
- <Compile Include="IDocumentContextFormattableBuilder.cs" />
- <Compile Include="IDocumentFormattableBuilder.cs" />
- <Compile Include="IDocumentOrderedListBuilder.cs" />
- <Compile Include="IDocumentParagraphFormattableBuilder.cs" />
- <Compile Include="IDocumentTableContextBuilder.cs" />
- <Compile Include="IDocumentTableRowsBuilder.cs" />
- <Compile Include="IDocumentTableSchemeBuilder.cs" />
- <Compile Include="IDocumentTagContextBuilder.cs" />
- <Compile Include="MetaObjects\Extensions\StringFormatExtensions.cs" />
- <Compile Include="MetaObjects\Format.cs" />
- <Compile Include="MetaObjects\Image.cs" />
- <Compile Include="MetaObjects\SingleTagReplacer.cs" />
- <Compile Include="MetaObjects\TagReplacer.cs" />
- <Compile Include="MetaObjects\TextBlock.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="SimpleTemplate.Designer.cs">
- <AutoGen>True</AutoGen>
- <DesignTime>True</DesignTime>
- <DependentUpon>SimpleTemplate.resx</DependentUpon>
- </Compile>
- </ItemGroup>
- <ItemGroup>
- <None Include="packages.config" />
- <None Include="Properties\Empty.docx" />
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="SimpleTemplate.resx">
- <Generator>PublicResXFileCodeGenerator</Generator>
- <LastGenOutput>SimpleTemplate.Designer.cs</LastGenOutput>
- </EmbeddedResource>
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{8826F774-A0F0-46BC-8089-90F947485ECE}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>TabulaRasa.Core</RootNamespace>
+ <AssemblyName>TabulaRasa</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>..\..\build\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <DocumentationFile>..\..\build\Debug\TabulaRasa.xml</DocumentationFile>
+ <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>..\..\build\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <DocumentationFile>..\..\build\Release\TabulaRasa.xml</DocumentationFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="DocumentFormat.OpenXml, Version=2.0.5022.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <HintPath>..\..\packages\DocumentFormat.OpenXml.1.0\lib\DocumentFormat.OpenXml.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ <Reference Include="WindowsBase" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\Solution Items\GlobalAssemblyInfo.cs">
+ <Link>Properties\GlobalAssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="DocumentBuilder\Anchors\AnchorElement.cs" />
+ <Compile Include="DocumentBuilder\Anchors\BlockField.cs" />
+ <Compile Include="DocumentBuilder\Anchors\DocumentPlaceholder.cs" />
+ <Compile Include="DocumentBuilder\Anchors\DocumentTag.cs" />
+ <Compile Include="DocumentBuilder\Anchors\InlineField.cs" />
+ <Compile Include="DocumentBuilder\Anchors\SdtField.cs" />
+ <Compile Include="DocumentBuilder\DocxDocumentAggregationBuilder.cs" />
+ <Compile Include="DocumentBuilder\DocxDocumentBlockContextBuilderBase.cs" />
+ <Compile Include="DocumentBuilder\DocxDocumentBlockFieldContextBuilder.cs" />
+ <Compile Include="DocumentBuilder\DocxDocumentBuilder.cs" />
+ <Compile Include="DocumentBuilder\DocxDocumentBuilderBase.cs" />
+ <Compile Include="DocumentBuilder\DocxDocumentCellContextBuilder.cs" />
+ <Compile Include="DocumentBuilder\DocxDocumentContextBuilderBase.cs" />
+ <Compile Include="DocumentBuilder\DocxDocumentOrderedListBuilder.cs" />
+ <Compile Include="DocumentBuilder\DocxDocumentParagraphContextBuilder.cs" />
+ <Compile Include="DocumentBuilder\DocxDocumentPlaceholderContextBuilder.cs" />
+ <Compile Include="DocumentBuilder\DocxDocumentTableSchemeBuilder.cs" />
+ <Compile Include="DocumentBuilder\DocxDocumentTagContextBuilder.cs" />
+ <Compile Include="DocumentBuilder\Extensions\OpenXmlElementExtensions.cs" />
+ <Compile Include="DocumentBuilder\MainDocumentPartExtensions.cs" />
+ <Compile Include="DocumentBuilder\TagVisibilityOptions.cs" />
+ <Compile Include="MetaObjects\Collections\FieldsCollection.cs" />
+ <Compile Include="MetaObjects\Field.cs" />
+ <Compile Include="MetaObjects\OpenCloseTagReplacer.cs" />
+ <Compile Include="MetaObjects\DocxDocument.cs" />
+ <Compile Include="ICellContextBuilder.cs" />
+ <Compile Include="IDocumentBuilder.cs" />
+ <Compile Include="IDocumentContextBuilder.cs" />
+ <Compile Include="IDocumentContextFormattableBuilder.cs" />
+ <Compile Include="IDocumentFormattableBuilder.cs" />
+ <Compile Include="IDocumentOrderedListBuilder.cs" />
+ <Compile Include="IDocumentParagraphFormattableBuilder.cs" />
+ <Compile Include="IDocumentTableContextBuilder.cs" />
+ <Compile Include="IDocumentTableRowsBuilder.cs" />
+ <Compile Include="IDocumentTableSchemeBuilder.cs" />
+ <Compile Include="IDocumentTagContextBuilder.cs" />
+ <Compile Include="MetaObjects\Extensions\StringFormatExtensions.cs" />
+ <Compile Include="MetaObjects\Format.cs" />
+ <Compile Include="MetaObjects\Image.cs" />
+ <Compile Include="MetaObjects\SingleTagReplacer.cs" />
+ <Compile Include="MetaObjects\TagReplacer.cs" />
+ <Compile Include="MetaObjects\TextBlock.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="SimpleTemplate.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DesignTime>True</DesignTime>
+ <DependentUpon>SimpleTemplate.resx</DependentUpon>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ <None Include="Properties\Empty.docx" />
+ </ItemGroup>
+ <ItemGroup>
+ <EmbeddedResource Include="SimpleTemplate.resx">
+ <Generator>PublicResXFileCodeGenerator</Generator>
+ <LastGenOutput>SimpleTemplate.Designer.cs</LastGenOutput>
+ </EmbeddedResource>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
</Project>
View
7 src/Solution Items/GlobalAssemblyInfo.cs
@@ -1,11 +1,10 @@
-using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
-[assembly: AssemblyCompany("IndyCode")]
-[assembly: AssemblyProduct("IndyCode.Foxby")]
-[assembly: AssemblyCopyright("Copyright � \"IndyCode\"")]
+[assembly: AssemblyCompany("Eskat0n")]
+[assembly: AssemblyProduct("Eskat0n.TabulaRasa")]
+[assembly: AssemblyCopyright("Copyright � Eskat0n")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("en-US")]

No commit comments for this range

Something went wrong with that request. Please try again.