Skip to content

Commit

Permalink
Move Feature namespace to top level
Browse files Browse the repository at this point in the history
  • Loading branch information
twsouthwick committed Oct 26, 2021
1 parent fa1ea16 commit 869c65b
Show file tree
Hide file tree
Showing 70 changed files with 35 additions and 97 deletions.
1 change: 0 additions & 1 deletion samples/SunburstChartExample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
using C = DocumentFormat.OpenXml.Drawing.Charts;
using C16 = DocumentFormat.OpenXml.Office2016.Drawing.ChartDrawing;
using Cs = DocumentFormat.OpenXml.Office2013.Drawing.ChartStyle;
using P = DocumentFormat.OpenXml.Presentation;
using P14 = DocumentFormat.OpenXml.Office2010.PowerPoint;

#pragma warning disable CA1303 // Do not pass literals as localized parameters
Expand Down
2 changes: 1 addition & 1 deletion src/DocumentFormat.OpenXml.CodeGeneration.Linq/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Framework;
using DocumentFormat.OpenXml.Framework.Features;
using DocumentFormat.OpenXml.Features;
using DocumentFormat.OpenXml.Framework.Metadata;
using System;
using System.CodeDom.Compiler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System;
using System.Collections.Generic;

namespace DocumentFormat.OpenXml.Framework.Features
namespace DocumentFormat.OpenXml.Features
{
/// <summary>
/// Extension methods to add retrieve disposable features.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System;

namespace DocumentFormat.OpenXml.Framework.Features
namespace DocumentFormat.OpenXml.Features
{
/// <summary>
/// Feature to track items to dispose when a package is disposed.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Framework.Features;
using DocumentFormat.OpenXml.Packaging;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Framework.Features;
using DocumentFormat.OpenXml.Packaging;

namespace DocumentFormat.OpenXml.Features
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Framework.Features;

namespace DocumentFormat.OpenXml.Features
{
internal interface IElementEventFeature : IFeatureEvent<PartElementEventArgs>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Framework.Features;
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Wordprocessing;
using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Framework.Features;

namespace DocumentFormat.OpenXml.Features
{
internal class ParagraphIdGeneratorFeature : IParagraphIdGeneratorFeature
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Framework.Features;
using DocumentFormat.OpenXml.Packaging;
using System;
using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Framework.Features;
using DocumentFormat.OpenXml.Packaging;
using System;
using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Framework.Features;
using DocumentFormat.OpenXml.Packaging;
using System;
using System.Security.Cryptography;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Framework.Features;
using DocumentFormat.OpenXml.Features;
using System.Xml.Linq;

namespace DocumentFormat.OpenXml.Packaging
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Framework.Features;
using DocumentFormat.OpenXml.Features;
using System;
using System.Diagnostics.CodeAnalysis;
using System.IO;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System;
using System.Reflection;

namespace DocumentFormat.OpenXml.Framework.Features
namespace DocumentFormat.OpenXml.Features
{
internal class DefaultFeatures : IFeatureCollection
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace DocumentFormat.OpenXml.Framework.Features
namespace DocumentFormat.OpenXml.Features
{
/// <summary>
/// Type of event used for change notification.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@

using System;
using System.Collections.Generic;
using System.Threading;

namespace DocumentFormat.OpenXml.Framework.Features
namespace DocumentFormat.OpenXml.Features
{
/// <summary>
/// Represents a collection of features.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace DocumentFormat.OpenXml.Framework.Features
namespace DocumentFormat.OpenXml.Features
{
/// <summary>
/// Holder for feature event args.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System;

namespace DocumentFormat.OpenXml.Framework.Features
namespace DocumentFormat.OpenXml.Features
{
internal abstract class FeatureEvent<TArg> : IFeatureEvent<TArg>, IRaiseFeatureEvent<TArg>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using DocumentFormat.OpenXml.Packaging;
using System;

namespace DocumentFormat.OpenXml.Framework.Features
namespace DocumentFormat.OpenXml.Features
{
/// <summary>
/// Methods to help with using <see cref="IFeatureCollection"/>.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace DocumentFormat.OpenXml.Framework.Features
namespace DocumentFormat.OpenXml.Features
{
/// <summary>
/// Represents a collection of features.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System;

namespace DocumentFormat.OpenXml.Framework.Features
namespace DocumentFormat.OpenXml.Features
{
/// <summary>
/// Interface for general feature eventing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Packaging;
using System;

namespace DocumentFormat.OpenXml.Framework.Features
namespace DocumentFormat.OpenXml.Features
{
/// <summary>
/// A feature to track events around the package.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using DocumentFormat.OpenXml.Packaging;

namespace DocumentFormat.OpenXml.Framework.Features
namespace DocumentFormat.OpenXml.Features
{
/// <summary>
/// A feature to track events around parts.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using DocumentFormat.OpenXml.Packaging;

namespace DocumentFormat.OpenXml.Framework.Features
namespace DocumentFormat.OpenXml.Features
{
/// <summary>
/// A feature to track events around parts.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace DocumentFormat.OpenXml.Framework.Features
namespace DocumentFormat.OpenXml.Features
{
/// <summary>
/// Interface to raise events for <see cref="IFeatureEvent{TArg}"/>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using DocumentFormat.OpenXml.Packaging;

namespace DocumentFormat.OpenXml.Framework.Features
namespace DocumentFormat.OpenXml.Features
{
/// <summary>
/// Extensions to add events around lifecycle.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using DocumentFormat.OpenXml.Packaging;

namespace DocumentFormat.OpenXml.Framework.Features
namespace DocumentFormat.OpenXml.Features
{
/// <summary>
/// Extensions to add events around parts.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using DocumentFormat.OpenXml.Packaging;

namespace DocumentFormat.OpenXml.Framework.Features
namespace DocumentFormat.OpenXml.Features
{
/// <summary>
/// Extensions to add events around part roots.
Expand Down
2 changes: 1 addition & 1 deletion src/DocumentFormat.OpenXml/OpenXmlElement.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Features;
using DocumentFormat.OpenXml.Framework;
using DocumentFormat.OpenXml.Framework.Features;
using DocumentFormat.OpenXml.Framework.Metadata;
using DocumentFormat.OpenXml.Packaging;
using System;
Expand Down
2 changes: 1 addition & 1 deletion src/DocumentFormat.OpenXml/OpenXmlPartReader.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Features;
using DocumentFormat.OpenXml.Framework;
using DocumentFormat.OpenXml.Framework.Features;
using DocumentFormat.OpenXml.Framework.Metadata;
using DocumentFormat.OpenXml.Packaging;
using System;
Expand Down
2 changes: 1 addition & 1 deletion src/DocumentFormat.OpenXml/OpenXmlPartRootElement.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Features;
using DocumentFormat.OpenXml.Framework;
using DocumentFormat.OpenXml.Framework.Features;
using DocumentFormat.OpenXml.Packaging;
using System;
using System.Collections.Generic;
Expand Down
2 changes: 1 addition & 1 deletion src/DocumentFormat.OpenXml/Packaging/OpenXmlPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml;
using DocumentFormat.OpenXml.Features;
using DocumentFormat.OpenXml.Framework;
using DocumentFormat.OpenXml.Framework.Features;
using System;
using System.Collections.Generic;
using System.ComponentModel;
Expand Down
3 changes: 1 addition & 2 deletions src/DocumentFormat.OpenXml/Packaging/OpenXmlPart.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Framework.Features;
using DocumentFormat.OpenXml.Features;
using System;
using System.Collections.Generic;
using System.Diagnostics;
Expand All @@ -13,7 +13,6 @@
#if FEATURE_XML_SCHEMA
using System.ComponentModel;
using System.Xml.Schema;

#endif

namespace DocumentFormat.OpenXml.Packaging
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Features;
using DocumentFormat.OpenXml.Framework;
using DocumentFormat.OpenXml.Framework.Features;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
Expand Down
2 changes: 1 addition & 1 deletion src/DocumentFormat.OpenXml/Packaging/PartDictionary.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Framework.Features;
using DocumentFormat.OpenXml.Features;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
Expand Down
2 changes: 1 addition & 1 deletion src/DocumentFormat.OpenXml/Validation/PackageValidator.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using DocumentFormat.OpenXml.Framework.Features;
using DocumentFormat.OpenXml.Features;
using DocumentFormat.OpenXml.Packaging;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Collections.Generic;
using System.Diagnostics;

namespace DocumentFormat.OpenXml.Validation.Schema
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;

namespace DocumentFormat.OpenXml.Validation.Schema
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Diagnostics;

namespace DocumentFormat.OpenXml.Validation.Schema
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Diagnostics;

namespace DocumentFormat.OpenXml.Validation.Semantic
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Diagnostics;

namespace DocumentFormat.OpenXml.Validation.Semantic
{
/// <summary>
Expand Down
1 change: 0 additions & 1 deletion test/DocumentFormat.OpenXml.Benchmarks/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Diagnosers;
using BenchmarkDotNet.Diagnostics.Windows;
using BenchmarkDotNet.Exporters;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Loggers;
Expand Down
Loading

0 comments on commit 869c65b

Please sign in to comment.