X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Web%2FSystem.Web.UI%2FHtml32TextWriter.cs;h=3ecee2c0076f4347b1bd3c637bd4798f9ed8b843;hb=879970ea20a49e63a5413adec014754b30a53e03;hp=82ad83920b2bdf8b597164acccf19a170f5ef68a;hpb=3331634f37c395ea87d15a2f3338b2bc66a8470a;p=mono.git diff --git a/mcs/class/System.Web/System.Web.UI/Html32TextWriter.cs b/mcs/class/System.Web/System.Web.UI/Html32TextWriter.cs index 82ad83920b2..3ecee2c0076 100644 --- a/mcs/class/System.Web/System.Web.UI/Html32TextWriter.cs +++ b/mcs/class/System.Web/System.Web.UI/Html32TextWriter.cs @@ -6,7 +6,7 @@ // Gonzalo Paniagua Javier (gonzalo@ximian.com) // // Copyright (C) Matthijs ter Woord, 2004 -// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com) +// Copyright (C) 2004-2010 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the @@ -32,18 +32,18 @@ using System.Collections; using System.Globalization; using System.IO; using System.Security.Permissions; +using System.Web.Util; namespace System.Web.UI { // CAS [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] - public class Html32TextWriter : HtmlTextWriter { -#if NET_2_0 + public class Html32TextWriter : HtmlTextWriter + { bool div_table_substitution; bool bold; bool italic; -#endif public Html32TextWriter (TextWriter writer) : base (writer) { @@ -53,7 +53,6 @@ namespace System.Web.UI { } -#if NET_2_0 [MonoTODO ("no effect on html generation")] public bool ShouldPerformDivTableSubstitution { get { return div_table_substitution; } @@ -71,7 +70,6 @@ namespace System.Web.UI get { return italic; } set { italic = value; } } -#endif public override void RenderBeginTag (HtmlTextWriterTag tagKey) { @@ -87,13 +85,13 @@ namespace System.Web.UI { if (tagKey == HtmlTextWriterTag.Unknown || !Enum.IsDefined (typeof (HtmlTextWriterTag), tagKey)) - return ""; + return String.Empty; - return tagKey.ToString ().ToLower (CultureInfo.InvariantCulture); + return tagKey.ToString ().ToLower (Helpers.InvariantCulture); /* The code below is here just in case we need to split things up switch (tagkey) { case HtmlTextWriterTag.Unknown: - return ""; + return String.Empty; case HtmlTextWriterTag.A: return "a"; case HtmlTextWriterTag.Acronym: @@ -287,7 +285,7 @@ namespace System.Web.UI case HtmlTextWriterTag.Xml: return "xml"; default: - return ""; + return String.Empty; } */ }