diff --git a/src/PdfSharp/Pdf.Advanced/PdfResourceMap.cs b/src/PdfSharp/Pdf.Advanced/PdfResourceMap.cs index 154b488e..69803dc8 100644 --- a/src/PdfSharp/Pdf.Advanced/PdfResourceMap.cs +++ b/src/PdfSharp/Pdf.Advanced/PdfResourceMap.cs @@ -34,16 +34,27 @@ namespace PdfSharp.Pdf.Advanced /// /// Base class for all dictionaries that map resource names to objects. /// - internal class PdfResourceMap : PdfDictionary //, IEnumerable + public sealed class PdfResourceMap : PdfDictionary //, IEnumerable { + /// + /// Instantiates a new instance of the class. + /// public PdfResourceMap() { } + /// + /// Instantiates a new instance of the class. + /// + /// The public PdfResourceMap(PdfDocument document) : base(document) { } - protected PdfResourceMap(PdfDictionary dict) + /// + /// Instantiates a new instance of the class. + /// + /// The + public PdfResourceMap(PdfDictionary dict) : base(dict) { } @@ -61,7 +72,7 @@ protected PdfResourceMap(PdfDictionary dict) /// /// Adds all imported resource names to the specified hashtable. /// - internal void CollectResourceNames(Dictionary usedResourceNames) + public void CollectResourceNames(Dictionary usedResourceNames) { // ?TODO: Imported resources (e.g. fonts) can be reused, but I think this is rather difficult. Will be an issue in PDFsharp 2.0. PdfName[] names = Elements.KeyNames; diff --git a/src/PdfSharp/Pdf.Advanced/PdfResources.cs b/src/PdfSharp/Pdf.Advanced/PdfResources.cs index dd80e591..4ebdf588 100644 --- a/src/PdfSharp/Pdf.Advanced/PdfResources.cs +++ b/src/PdfSharp/Pdf.Advanced/PdfResources.cs @@ -185,7 +185,7 @@ public string AddShading(PdfShading shading) /// /// Gets the fonts map. /// - internal PdfResourceMap Fonts + public PdfResourceMap Fonts { get { return _fonts ?? (_fonts = (PdfResourceMap)Elements.GetValue(Keys.Font, VCF.Create)); } } @@ -194,14 +194,17 @@ internal PdfResourceMap Fonts /// /// Gets the external objects map. /// - internal PdfResourceMap XObjects + public PdfResourceMap XObjects { get { return _xObjects ?? (_xObjects = (PdfResourceMap)Elements.GetValue(Keys.XObject, VCF.Create)); } } PdfResourceMap _xObjects; + /// + /// + /// // TODO: make own class - internal PdfResourceMap ExtGStates + public PdfResourceMap ExtGStates { get { @@ -210,29 +213,41 @@ internal PdfResourceMap ExtGStates } PdfResourceMap _extGStates; + /// + /// + /// // TODO: make own class - internal PdfResourceMap ColorSpaces + public PdfResourceMap ColorSpaces { get { return _colorSpaces ?? (_colorSpaces = (PdfResourceMap)Elements.GetValue(Keys.ColorSpace, VCF.Create)); } } PdfResourceMap _colorSpaces; + /// + /// + /// // TODO: make own class - internal PdfResourceMap Patterns + public PdfResourceMap Patterns { get { return _patterns ?? (_patterns = (PdfResourceMap) Elements.GetValue(Keys.Pattern, VCF.Create)); } } PdfResourceMap _patterns; + /// + /// + /// // TODO: make own class - internal PdfResourceMap Shadings + public PdfResourceMap Shadings { get { return _shadings ?? (_shadings = (PdfResourceMap) Elements.GetValue(Keys.Shading, VCF.Create)); } } PdfResourceMap _shadings; + /// + /// + /// // TODO: make own class - internal PdfResourceMap Properties + public PdfResourceMap Properties { get {return _properties ?? (_properties = (PdfResourceMap) Elements.GetValue(Keys.Properties, VCF.Create));} } diff --git a/src/PdfSharp/root/ProductVersionInfo.cs b/src/PdfSharp/root/ProductVersionInfo.cs index 0e284769..112d836e 100644 --- a/src/PdfSharp/root/ProductVersionInfo.cs +++ b/src/PdfSharp/root/ProductVersionInfo.cs @@ -115,7 +115,7 @@ public static class ProductVersionInfo /// /// The build number of the product. /// - public const string VersionBuild = "5185"; // V16G // Build = days since 2005-01-01 - change this values ONLY HERE + public const string VersionBuild = "5911"; // V16G // Build = days since 2005-01-01 - change this values ONLY HERE /// /// The patch number of the product. diff --git a/src/PdfSharp/root/VersionInfo.cs b/src/PdfSharp/root/VersionInfo.cs index 9fed5912..4204023a 100644 --- a/src/PdfSharp/root/VersionInfo.cs +++ b/src/PdfSharp/root/VersionInfo.cs @@ -32,7 +32,7 @@ namespace PdfSharp /// /// Version info of this assembly. /// - static class VersionInfo + internal static class VersionInfo { public const string Title = ProductVersionInfo.Title; public const string Description = ProductVersionInfo.Description;