Implements the 16 MacroPropertyTypes from the database U4-946

This commit is contained in:
Morten@Thinkpad-X220
2012-10-03 12:24:50 -02:00
parent bd180fd6ba
commit 42be2492b5
17 changed files with 448 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using Umbraco.Core.Models;
namespace Umbraco.Core.Macros.PropertyTypes
{
public class ContentAll : IMacroPropertyType
{
public string Alias
{
get { return "contentAll"; }
}
public string RenderingAssembly
{
get { return "umbraco.macroRenderings"; }
}
public string RenderingType
{
get { return "content"; }
}
public MacroPropertyTypeBaseTypes BaseType
{
get { return MacroPropertyTypeBaseTypes.Int32; }
}
}
}

View File

@@ -0,0 +1,27 @@
using Umbraco.Core.Models;
namespace Umbraco.Core.Macros.PropertyTypes
{
public class ContentPicker : IMacroPropertyType
{
public string Alias
{
get { return "contentPicker"; }
}
public string RenderingAssembly
{
get { return "umbraco.macroRenderings"; }
}
public string RenderingType
{
get { return "content"; }
}
public MacroPropertyTypeBaseTypes BaseType
{
get { return MacroPropertyTypeBaseTypes.Int32; }
}
}
}

View File

@@ -0,0 +1,27 @@
using Umbraco.Core.Models;
namespace Umbraco.Core.Macros.PropertyTypes
{
public class ContentRandom : IMacroPropertyType
{
public string Alias
{
get { return "contentRandom"; }
}
public string RenderingAssembly
{
get { return "umbraco.macroRenderings"; }
}
public string RenderingType
{
get { return "content"; }
}
public MacroPropertyTypeBaseTypes BaseType
{
get { return MacroPropertyTypeBaseTypes.Int32; }
}
}
}

View File

@@ -0,0 +1,27 @@
using Umbraco.Core.Models;
namespace Umbraco.Core.Macros.PropertyTypes
{
public class ContentStubs : IMacroPropertyType
{
public string Alias
{
get { return "contentStubs"; }
}
public string RenderingAssembly
{
get { return "umbraco.macroRenderings"; }
}
public string RenderingType
{
get { return "content"; }
}
public MacroPropertyTypeBaseTypes BaseType
{
get { return MacroPropertyTypeBaseTypes.Int32; }
}
}
}

View File

@@ -0,0 +1,27 @@
using Umbraco.Core.Models;
namespace Umbraco.Core.Macros.PropertyTypes
{
public class ContentTree : IMacroPropertyType
{
public string Alias
{
get { return "contentTree"; }
}
public string RenderingAssembly
{
get { return "umbraco.macroRenderings"; }
}
public string RenderingType
{
get { return "content"; }
}
public MacroPropertyTypeBaseTypes BaseType
{
get { return MacroPropertyTypeBaseTypes.Int32; }
}
}
}

View File

@@ -0,0 +1,27 @@
using Umbraco.Core.Models;
namespace Umbraco.Core.Macros.PropertyTypes
{
public class ContentType : IMacroPropertyType
{
public string Alias
{
get { return "contentType"; }
}
public string RenderingAssembly
{
get { return "umbraco.macroRenderings"; }
}
public string RenderingType
{
get { return "contentTypeSingle"; }
}
public MacroPropertyTypeBaseTypes BaseType
{
get { return MacroPropertyTypeBaseTypes.Int32; }
}
}
}

View File

@@ -0,0 +1,27 @@
using Umbraco.Core.Models;
namespace Umbraco.Core.Macros.PropertyTypes
{
public class ContentTypeMultiple : IMacroPropertyType
{
public string Alias
{
get { return "contentTypeMultiple"; }
}
public string RenderingAssembly
{
get { return "umbraco.macroRenderings"; }
}
public string RenderingType
{
get { return "contentTypeMultiple"; }
}
public MacroPropertyTypeBaseTypes BaseType
{
get { return MacroPropertyTypeBaseTypes.Int32; }
}
}
}

View File

@@ -0,0 +1,27 @@
using Umbraco.Core.Models;
namespace Umbraco.Core.Macros.PropertyTypes
{
public class MediaCurrent : IMacroPropertyType
{
public string Alias
{
get { return "mediaCurrent"; }
}
public string RenderingAssembly
{
get { return "umbraco.macroRenderings"; }
}
public string RenderingType
{
get { return "media"; }
}
public MacroPropertyTypeBaseTypes BaseType
{
get { return MacroPropertyTypeBaseTypes.Int32; }
}
}
}

View File

@@ -0,0 +1,27 @@
using Umbraco.Core.Models;
namespace Umbraco.Core.Macros.PropertyTypes
{
public class Number : IMacroPropertyType
{
public string Alias
{
get { return "number"; }
}
public string RenderingAssembly
{
get { return "umbraco.macroRenderings"; }
}
public string RenderingType
{
get { return "numeric"; }
}
public MacroPropertyTypeBaseTypes BaseType
{
get { return MacroPropertyTypeBaseTypes.Int32; }
}
}
}

View File

@@ -0,0 +1,27 @@
using Umbraco.Core.Models;
namespace Umbraco.Core.Macros.PropertyTypes
{
public class PropertyTypePicker : IMacroPropertyType
{
public string Alias
{
get { return "propertyTypePicker"; }
}
public string RenderingAssembly
{
get { return "umbraco.macroRenderings"; }
}
public string RenderingType
{
get { return "propertyTypePicker"; }
}
public MacroPropertyTypeBaseTypes BaseType
{
get { return MacroPropertyTypeBaseTypes.String; }
}
}
}

View File

@@ -0,0 +1,27 @@
using Umbraco.Core.Models;
namespace Umbraco.Core.Macros.PropertyTypes
{
public class PropertyTypePickerMultiple : IMacroPropertyType
{
public string Alias
{
get { return "propertyTypePickerMultiple"; }
}
public string RenderingAssembly
{
get { return "umbraco.macroRenderings"; }
}
public string RenderingType
{
get { return "propertyTypePickerMultiple"; }
}
public MacroPropertyTypeBaseTypes BaseType
{
get { return MacroPropertyTypeBaseTypes.String; }
}
}
}

View File

@@ -0,0 +1,27 @@
using Umbraco.Core.Models;
namespace Umbraco.Core.Macros.PropertyTypes
{
public class TabPicker : IMacroPropertyType
{
public string Alias
{
get { return "tabPicker"; }
}
public string RenderingAssembly
{
get { return "umbraco.macroRenderings"; }
}
public string RenderingType
{
get { return "tabPicker"; }
}
public MacroPropertyTypeBaseTypes BaseType
{
get { return MacroPropertyTypeBaseTypes.String; }
}
}
}

View File

@@ -0,0 +1,27 @@
using Umbraco.Core.Models;
namespace Umbraco.Core.Macros.PropertyTypes
{
public class TabPickerMultiple : IMacroPropertyType
{
public string Alias
{
get { return "tabPickerMultiple"; }
}
public string RenderingAssembly
{
get { return "umbraco.macroRenderings"; }
}
public string RenderingType
{
get { return "tabPickerMultiple"; }
}
public MacroPropertyTypeBaseTypes BaseType
{
get { return MacroPropertyTypeBaseTypes.String; }
}
}
}

View File

@@ -0,0 +1,27 @@
using Umbraco.Core.Models;
namespace Umbraco.Core.Macros.PropertyTypes
{
public class Text : IMacroPropertyType
{
public string Alias
{
get { return "text"; }
}
public string RenderingAssembly
{
get { return "umbraco.macroRenderings"; }
}
public string RenderingType
{
get { return "text"; }
}
public MacroPropertyTypeBaseTypes BaseType
{
get { return MacroPropertyTypeBaseTypes.String; }
}
}
}

View File

@@ -0,0 +1,27 @@
using Umbraco.Core.Models;
namespace Umbraco.Core.Macros.PropertyTypes
{
public class TextMultiLine : IMacroPropertyType
{
public string Alias
{
get { return "textMultiLine"; }
}
public string RenderingAssembly
{
get { return "umbraco.macroRenderings"; }
}
public string RenderingType
{
get { return "textMultiple"; }
}
public MacroPropertyTypeBaseTypes BaseType
{
get { return MacroPropertyTypeBaseTypes.String; }
}
}
}

View File

@@ -0,0 +1,27 @@
using Umbraco.Core.Models;
namespace Umbraco.Core.Macros.PropertyTypes
{
public class YesNoBool : IMacroPropertyType
{
public string Alias
{
get { return "bool"; }
}
public string RenderingAssembly
{
get { return "umbraco.macroRenderings"; }
}
public string RenderingType
{
get { return "yesNo"; }
}
public MacroPropertyTypeBaseTypes BaseType
{
get { return MacroPropertyTypeBaseTypes.Boolean; }
}
}
}

View File

@@ -90,7 +90,23 @@
<Compile Include="IO\FileSystemProviderAttribute.cs" />
<Compile Include="IO\IFileSystemExtensions.cs" />
<Compile Include="IO\IMediaFileSystem.cs" />
<Compile Include="Macros\PropertyTypes\ContentAll.cs" />
<Compile Include="Macros\PropertyTypes\ContentPicker.cs" />
<Compile Include="Macros\PropertyTypes\ContentRandom.cs" />
<Compile Include="Macros\PropertyTypes\ContentStubs.cs" />
<Compile Include="Macros\PropertyTypes\ContentTree.cs" />
<Compile Include="Macros\PropertyTypes\ContentType.cs" />
<Compile Include="Macros\PropertyTypes\ContentTypeMultiple.cs" />
<Compile Include="Macros\PropertyTypes\MediaCurrent.cs" />
<Compile Include="Macros\PropertyTypes\Number.cs" />
<Compile Include="Macros\PropertyTypes\PropertyTypePicker.cs" />
<Compile Include="Macros\PropertyTypes\PropertyTypePickerMultiple.cs" />
<Compile Include="Macros\PropertyTypes\TabPicker.cs" />
<Compile Include="Macros\PropertyTypes\TabPickerMultiple.cs" />
<Compile Include="Macros\PropertyTypes\Text.cs" />
<Compile Include="Macros\PropertyTypes\TextMultiLine.cs" />
<Compile Include="Macros\MacroTagParser.cs" />
<Compile Include="Macros\PropertyTypes\YesNoBool.cs" />
<Compile Include="Mandate.cs" />
<Compile Include="Models\Content.cs" />
<Compile Include="Models\ContentStatus.cs" />