Skip to content

Commit

Permalink
SC-227: Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ashahabov committed Feb 10, 2022
1 parent a31b1c7 commit 916cb6e
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 28 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## Version 0.28.0 - Unreleased
## Version 0.28.0 - 2022-02-10
- Added `IParagraph.Alignment` property for paragraph content alignment.

## Version 0.27.0 - 2022-02-03
Expand Down
1 change: 1 addition & 0 deletions ShapeCrawler.Tests/PresentationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.IO;
using System.Linq;
using FluentAssertions;
using ShapeCrawler.Charts;
using ShapeCrawler.Exceptions;
using ShapeCrawler.Factories;
using ShapeCrawler.Statics;
Expand Down
1 change: 0 additions & 1 deletion ShapeCrawler/AutoShapes/SlideAutoShape.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public SlideAutoShape(P.Shape pShape, SCSlide parentSlideLayoutInternal, SlideGr

public ShapeFill Fill => this.shapeFill.Value;

public SCSlideMaster SlideMasterInternal { get; }
public IShape Shape => this;

#endregion Public Properties
Expand Down
13 changes: 6 additions & 7 deletions ShapeCrawler/Charts/IPieChart.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
using System;
using ShapeCrawler.Charts;
using ShapeCrawler.Collections;
using P = DocumentFormat.OpenXml.Presentation;
using ShapeCrawler.Collections;

namespace ShapeCrawler.Factories
namespace ShapeCrawler.Charts
{
/// <summary>
/// Represents Pie chart interface.
/// </summary>
public interface IPieChart : IChart
{
public ICategoryCollection Categories { get; }
}

internal sealed class SCPieChart : SCChart, IPieChart
{
internal SCPieChart(DocumentFormat.OpenXml.Presentation.GraphicFrame pGraphicFrame, SCSlide slide)
Expand Down
1 change: 1 addition & 0 deletions ShapeCrawler/Factories/PictureHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ internal class PictureHandler : OpenXmlElementHandler

break;
}

case VideoFromFile file:
{
A.VideoFromFile aVideoFile = file;
Expand Down
8 changes: 4 additions & 4 deletions ShapeCrawler/Placeholders/PlaceholderData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ public bool Equals(PlaceholderData other)
return false;
}

if (PlaceholderType != PlaceholderType.Custom && other.PlaceholderType != PlaceholderType.Custom)
if (this.PlaceholderType != PlaceholderType.Custom && other.PlaceholderType != PlaceholderType.Custom)
{
return PlaceholderType == other.PlaceholderType;
return this.PlaceholderType == other.PlaceholderType;
}

if (PlaceholderType == PlaceholderType.Custom && other.PlaceholderType == PlaceholderType.Custom)
if (this.PlaceholderType == PlaceholderType.Custom && other.PlaceholderType == PlaceholderType.Custom)
{
return Index == other.Index;
return this.Index == other.Index;
}

return false;
Expand Down
8 changes: 4 additions & 4 deletions ShapeCrawler/ShapeCrawler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This library provides a simplified object model on top of the Open XML SDK for m
<Copyright>MIT</Copyright>
<LangVersion>9</LangVersion>
<ApplicationIcon>logo.ico</ApplicationIcon>
<PackageReleaseNotes>- Added support for Connection shape which presents Lines.</PackageReleaseNotes>
<PackageReleaseNotes>- Added `IParagraph.Alignment` property for paragraph content alignment.</PackageReleaseNotes>
<PackageProjectUrl>https://github.com/ShapeCrawler/ShapeCrawler</PackageProjectUrl>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
Expand All @@ -26,10 +26,10 @@ This library provides a simplified object model on top of the Open XML SDK for m
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<nullable>enable</nullable>
<AssemblyVersion>0.27.0.0</AssemblyVersion>
<FileVersion>0.27.0.0</FileVersion>
<AssemblyVersion>0.28.0.0</AssemblyVersion>
<FileVersion>0.28.0.0</FileVersion>
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
<PackageVersion>0.27.0</PackageVersion>
<PackageVersion>0.28.0</PackageVersion>
<Title>ShapeCrawler</Title>
<Configurations>Debug;Release;Test</Configurations>
<Platforms>AnyCPU</Platforms>
Expand Down
2 changes: 1 addition & 1 deletion ShapeCrawler/Shapes/IAudioShape.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ internal AudioShape(OpenXmlCompositeElement pShapeTreesChild, SCSlide parentSlid

public byte[] BinaryData { get; }

public ShapeType ShapeType => ShapeType.Chart;
public ShapeType ShapeType => ShapeType.AudioShape;
}
}
3 changes: 0 additions & 3 deletions ShapeCrawler/Shapes/SlideGroupShape.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ public SlideGroupShape(P.GroupShape pGroupShape, SCSlide parentSlideLayoutIntern

private IReadOnlyCollection<IShape> CreateGroupedShapeCollection()
{
SlidePart slidePart = this.slideLayoutInternal.SlidePart;
var shapeContextBuilder = new ShapeContext.Builder(slidePart);

var autoShapeCreator = new AutoShapeCreator();
var oleGrFrameHandler = new OleGraphicFrameHandler();
var pictureHandler = new PictureHandler();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ShapeCrawler.Samples", "ShapeCrawler.Samples\ShapeCrawler.Samples.csproj", "{7104AF19-BBB0-4E4D-B0DF-BB2503290031}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ShapeCrawler", "..\..\ShapeCrawler\ShapeCrawler.csproj", "{D3951044-EF09-46B5-821C-96A22C529E9B}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ShapeCrawler", "..\ShapeCrawler\ShapeCrawler.csproj", "{A1DA946A-F3D2-48E1-8088-228671761562}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -14,9 +14,9 @@ Global
{7104AF19-BBB0-4E4D-B0DF-BB2503290031}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7104AF19-BBB0-4E4D-B0DF-BB2503290031}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7104AF19-BBB0-4E4D-B0DF-BB2503290031}.Release|Any CPU.Build.0 = Release|Any CPU
{D3951044-EF09-46B5-821C-96A22C529E9B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D3951044-EF09-46B5-821C-96A22C529E9B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D3951044-EF09-46B5-821C-96A22C529E9B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D3951044-EF09-46B5-821C-96A22C529E9B}.Release|Any CPU.Build.0 = Release|Any CPU
{A1DA946A-F3D2-48E1-8088-228671761562}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A1DA946A-F3D2-48E1-8088-228671761562}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A1DA946A-F3D2-48E1-8088-228671761562}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A1DA946A-F3D2-48E1-8088-228671761562}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\ShapeCrawler\ShapeCrawler.csproj" />
<ProjectReference Include="..\..\ShapeCrawler\ShapeCrawler.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace ShapeCrawler.Samples;
using ShapeCrawler;

namespace TextExample;

internal class TextExample
{
Expand Down
Binary file added wiki_images/shape.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 916cb6e

Please sign in to comment.