Skip to content

Commit

Permalink
rearrange of content related classes
Browse files Browse the repository at this point in the history
  • Loading branch information
W0dan committed Mar 7, 2013
1 parent 8b16a8b commit d12b839
Show file tree
Hide file tree
Showing 17 changed files with 39 additions and 24 deletions.
3 changes: 2 additions & 1 deletion PdfCraft/API/GraphicsCanvas.cs
Expand Up @@ -4,8 +4,9 @@
using System.IO;
using System.Text;
using PdfCraft.Constants;
using PdfCraft.Contents;
using PdfCraft.Contents.Graphics;
using PdfCraft.Extensions;
using PdfCraft.Graphics;

namespace PdfCraft.API
{
Expand Down
3 changes: 2 additions & 1 deletion PdfCraft/API/TextBox.cs
Expand Up @@ -4,9 +4,10 @@
using System.Linq;
using System.Text;
using PdfCraft.Constants;
using PdfCraft.Contents;
using PdfCraft.Contents.Text;
using PdfCraft.Extensions;
using PdfCraft.Fonts;
using PdfCraft.Text;

namespace PdfCraft.API
{
Expand Down
@@ -1,4 +1,4 @@
namespace PdfCraft
namespace PdfCraft.Contents
{
public abstract class ContentsPart
{
Expand Down
@@ -1,6 +1,6 @@
using System.Drawing;

namespace PdfCraft.Graphics
namespace PdfCraft.Contents.Graphics
{
public class BoxDefinition
{
Expand Down
@@ -1,6 +1,6 @@
using System.Drawing;

namespace PdfCraft.Graphics
namespace PdfCraft.Contents.Graphics
{
public class CircleDefinition
{
Expand Down
@@ -1,4 +1,4 @@
namespace PdfCraft.Graphics
namespace PdfCraft.Contents.Graphics
{
public enum Command
{
Expand Down
@@ -1,4 +1,4 @@
namespace PdfCraft.Graphics
namespace PdfCraft.Contents.Graphics
{
internal class GraphicsCommand
{
Expand Down
@@ -1,4 +1,4 @@
namespace PdfCraft.Graphics
namespace PdfCraft.Contents.Graphics
{
public enum ImageType
{
Expand Down
@@ -1,6 +1,6 @@
using System.Drawing;

namespace PdfCraft.Graphics
namespace PdfCraft.Contents.Graphics
{
internal class LineDefinition
{
Expand Down
10 changes: 10 additions & 0 deletions PdfCraft/Contents/Graphics/XObject.cs
@@ -0,0 +1,10 @@
namespace PdfCraft.Contents.Graphics
{
public class XObject : BasePdfObject
{
public XObject(int objectNumber)
: base(objectNumber)
{
}
}
}
@@ -1,4 +1,4 @@
namespace PdfCraft.Text
namespace PdfCraft.Contents.Text
{
public enum Command
{
Expand Down
@@ -1,4 +1,4 @@
namespace PdfCraft.Text
namespace PdfCraft.Contents.Text
{
public class TextCommand
{
Expand Down
@@ -1,9 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using PdfCraft.Fonts;

namespace PdfCraft.Text
namespace PdfCraft.Contents.Text
{
internal class WordWrapping
{
Expand Down
23 changes: 12 additions & 11 deletions PdfCraft/PdfCraft.csproj
Expand Up @@ -45,11 +45,13 @@
<Compile Include="Extensions\IntExtensions.cs" />
<Compile Include="Fonts\FontDefinition.cs" />
<Compile Include="Fonts\FontDescriptor.cs" />
<Compile Include="Fonts\FontObject.cs" />
<Compile Include="Fonts\Fontwidths.cs" />
<Compile Include="Graphics\CircleDefinition.cs" />
<Compile Include="Graphics\ImageType.cs" />
<Compile Include="Contents\Graphics\CircleDefinition.cs" />
<Compile Include="Contents\Graphics\ImageType.cs" />
<Compile Include="Contents\Graphics\XObject.cs" />
<Compile Include="PdfGenerator.cs" />
<Compile Include="PdfObjects\ContentsPart.cs" />
<Compile Include="Contents\ContentsPart.cs" />
<Compile Include="API\GraphicsCanvas.cs" />
<Compile Include="API\Document.cs" />
<Compile Include="API\Page.cs" />
Expand All @@ -58,13 +60,12 @@
<Compile Include="Extensions\PointExtensions.cs" />
<Compile Include="Extensions\SizeExtensions.cs" />
<Compile Include="Fonts\FontProperties.cs" />
<Compile Include="Fonts\FontObject.cs" />
<Compile Include="Fonts\FontFactory.cs" />
<Compile Include="Fonts\Fonts.cs" />
<Compile Include="Graphics\BoxDefinition.cs" />
<Compile Include="Graphics\Command.cs" />
<Compile Include="Graphics\GraphicsCommand.cs" />
<Compile Include="Graphics\LineDefinition.cs" />
<Compile Include="Contents\Graphics\BoxDefinition.cs" />
<Compile Include="Contents\Graphics\Command.cs" />
<Compile Include="Contents\Graphics\GraphicsCommand.cs" />
<Compile Include="Contents\Graphics\LineDefinition.cs" />
<Compile Include="PdfObjects\BasePdfObject.cs" />
<Compile Include="PdfObjects\CatalogObject.cs" />
<Compile Include="Containers\ByteArrayByteContainer.cs" />
Expand All @@ -77,9 +78,9 @@
<Compile Include="PdfObjects\PageObject.cs" />
<Compile Include="PdfObjects\PagesObject.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Text\Command.cs" />
<Compile Include="Text\TextCommand.cs" />
<Compile Include="Text\WordWrapping.cs" />
<Compile Include="Contents\Text\Command.cs" />
<Compile Include="Contents\Text\TextCommand.cs" />
<Compile Include="Contents\Text\WordWrapping.cs" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions PdfCraft/PdfObjects/ContentsObject.cs
Expand Up @@ -4,6 +4,7 @@
using PdfCraft.API;
using PdfCraft.Constants;
using PdfCraft.Containers;
using PdfCraft.Contents;

namespace PdfCraft
{
Expand Down
@@ -1,4 +1,5 @@
using NUnit.Framework;
using PdfCraft;
using PdfCraft.Fonts;

namespace Tests.Concerning_Fonts.Given_a_FontObject
Expand Down
@@ -1,4 +1,5 @@
using NUnit.Framework;
using PdfCraft;
using PdfCraft.Fonts;

namespace Tests.Concerning_Fonts.Given_a_FontObject
Expand Down

0 comments on commit d12b839

Please sign in to comment.