1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
|
//------------------------------------------------------------------------------
// <copyright file="Constants.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
using System;
using System.Globalization;
using System.Web;
using System.Collections;
using System.Collections.Specialized;
using System.Web.UI;
using System.IO;
using System.Web.Mobile;
using System.Web.UI.MobileControls;
using System.Web.UI.MobileControls.Adapters;
#if COMPILING_FOR_SHIPPED_SOURCE
namespace System.Web.UI.MobileControls.ShippedAdapterSource.XhtmlAdapters
#else
namespace System.Web.UI.MobileControls.Adapters.XhtmlAdapters
#endif
{
/// <include file='doc\Constants.uex' path='docs/doc[@for="Doctype"]/*' />
[Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
public enum Doctype {
/// <include file='doc\Constants.uex' path='docs/doc[@for="Doctype.NotSet"]/*' />
NotSet,
/// <include file='doc\Constants.uex' path='docs/doc[@for="Doctype.XhtmlBasic"]/*' />
XhtmlBasic,
/// <include file='doc\Constants.uex' path='docs/doc[@for="Doctype.XhtmlMobileProfile"]/*' />
XhtmlMobileProfile,
/// <include file='doc\Constants.uex' path='docs/doc[@for="Doctype.Wml20"]/*' />
Wml20
}
[Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
internal static class XhtmlConstants {
internal static readonly string CssQueryStringName = "_css";
internal static readonly string CacheStyleSheetValue = "application";
internal static readonly string CssSessionKey = CssQueryStringName;
internal static readonly string CssStateLocationAppSettingKey = "XhtmlCssState";
internal static readonly string CssMappedFileName = "xhtmlCss.axd";
internal static readonly StyleFilter Format = StyleFilter.None | StyleFilter.Italic | StyleFilter.Bold | StyleFilter.FontName | StyleFilter.FontSize | StyleFilter.BackgroundColor | StyleFilter.ForegroundColor;
internal static readonly StyleFilter Layout= StyleFilter.Wrapping | StyleFilter.Alignment;
internal static readonly StyleFilter All= XhtmlConstants.Format | XhtmlConstants.Layout;
internal static readonly string SessionKeyPrefix = "_s";
internal static readonly string PostedFromOtherFile = ".";
internal static Style DefaultStyle = new Style ();
internal static XhtmlStyleClass DefaultStyleClass = new XhtmlStyleClass(DefaultStyle, XhtmlConstants.All);
// Capabilities
internal static readonly string RequiresXhtmlCssSuppression = "requiresXhtmlCssSuppression";
internal static readonly string RequiresNewLineSuppression = "requiresNewLineSuppression";
internal static readonly string BreaksOnBlockElements = "breaksOnBlockElements";
internal static readonly string BreaksOnInlineElements = "breaksOnInlineElements";
internal static readonly string RequiresOnEnterForward = "requiresOnEnterForwardForCheckboxLists";
internal static readonly string SupportsBodyClassAttribute = "supportsBodyClassAttribute";
internal static readonly string SupportsUrlAttributeEncoding = "supportsUrlAttributeEncoding";
internal static readonly string InternalStyleConfigSetting = "supportsStyleElement";
internal static readonly string SupportsNoWrapStyle = "supportsNoWrapStyle";
// Custom attributes
internal static readonly string CssClassCustomAttribute = "cssclass";
internal static readonly string StyleSheetLocationCustomAttribute = "CssLocation";
internal static readonly string CssPagerClassCustomAttribute = "cssPagerClass";
internal static readonly string CssLabelClassCustomAttribute = "cssLabelClass";
internal static readonly string CssCommandClassCustomAttribute = "cssCommandClass";
internal static readonly string AccessKeyCustomAttribute = "accesskey";
internal static readonly string PagerNextAccessKeyCustomAttribute = "PagerNextAccessKey";
internal static readonly string PagerPreviousAccessKeyCustomAttribute = "PagerPrevAccessKey";
internal static readonly string TitleCustomAttribute = "title";
}
/// <include file='doc\Constants.uex' path='docs/doc[@for="StyleSheetLocation"]/*' />
[Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
public enum StyleSheetLocation {
/// <include file='doc\Constants.uex' path='docs/doc[@for="StyleSheetLocation.NotSet"]/*' />
NotSet,
/// <include file='doc\Constants.uex' path='docs/doc[@for="StyleSheetLocation.ApplicationCache"]/*' />
ApplicationCache,
/// <include file='doc\Constants.uex' path='docs/doc[@for="StyleSheetLocation.SessionState"]/*' />
SessionState,
/// <include file='doc\Constants.uex' path='docs/doc[@for="StyleSheetLocation.PhysicalFile"]/*' />
PhysicalFile,
/// <include file='doc\Constants.uex' path='docs/doc[@for="StyleSheetLocation.Internal"]/*' />
Internal,
/// <include file='doc\Constants.uex' path='docs/doc[@for="StyleSheetLocation.None // currently not used"]/*' />
None // currently not used
}
[Flags]
[Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
internal enum StyleFilter : int /* 32 bits */ {
None = 0x00000000,
Italic = 0x00000001,
Bold = 0x00000002,
FontName = 0x00000004,
FontSize = 0x00000008,
BackgroundColor = 0x00000010,
ForegroundColor = 0x00000020,
Wrapping = 0x00000040,
Alignment = 0x00000080
}
}
|