PageTheme.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. //
  2. // System.Web.UI.PageTheme.cs
  3. //
  4. // Authors:
  5. // Chris Toshok ([email protected])
  6. //
  7. // (C) 2006 Novell, Inc (http://www.novell.com)
  8. //
  9. // Permission is hereby granted, free of charge, to any person obtaining
  10. // a copy of this software and associated documentation files (the
  11. // "Software"), to deal in the Software without restriction, including
  12. // without limitation the rights to use, copy, modify, merge, publish,
  13. // distribute, sublicense, and/or sell copies of the Software, and to
  14. // permit persons to whom the Software is furnished to do so, subject to
  15. // the following conditions:
  16. //
  17. // The above copyright notice and this permission notice shall be
  18. // included in all copies or substantial portions of the Software.
  19. //
  20. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  23. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  24. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  25. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  26. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  27. //
  28. #if NET_2_0
  29. using System;
  30. using System.Collections;
  31. using System.ComponentModel;
  32. using System.Xml;
  33. namespace System.Web.UI {
  34. [EditorBrowsable (EditorBrowsableState.Advanced)]
  35. public abstract class PageTheme
  36. {
  37. protected PageTheme ()
  38. {
  39. }
  40. [MonoTODO]
  41. public static object CreateSkinKey (Type controlType, string skinID)
  42. {
  43. return String.Format ("{0}:{1}", skinID, controlType);
  44. }
  45. [MonoTODO]
  46. protected object Eval (string expression)
  47. {
  48. throw new NotImplementedException ();
  49. }
  50. [MonoTODO]
  51. protected string Eval (string expression, string format)
  52. {
  53. throw new NotImplementedException ();
  54. }
  55. [MonoTODO]
  56. public bool TestDeviceFilter (string deviceFilterName)
  57. {
  58. throw new NotImplementedException ();
  59. }
  60. [MonoTODO]
  61. protected object XPath (string xPathExpression)
  62. {
  63. throw new NotImplementedException ();
  64. }
  65. [MonoTODO]
  66. protected object XPath (string xPathExpression, IXmlNamespaceResolver resolver)
  67. {
  68. throw new NotImplementedException ();
  69. }
  70. [MonoTODO]
  71. protected string XPath (string xPathExpression, string format)
  72. {
  73. throw new NotImplementedException ();
  74. }
  75. [MonoTODO]
  76. protected string XPath (string xPathExpression, string format, IXmlNamespaceResolver resolver)
  77. {
  78. throw new NotImplementedException ();
  79. }
  80. [MonoTODO]
  81. protected IEnumerable XPathSelect (string xPathExpression)
  82. {
  83. throw new NotImplementedException ();
  84. }
  85. [MonoTODO]
  86. protected IEnumerable XPathSelect (string xPathExpression, IXmlNamespaceResolver resolver)
  87. {
  88. throw new NotImplementedException ();
  89. }
  90. protected abstract string AppRelativeTemplateSourceDirectory { get; }
  91. protected abstract IDictionary ControlSkins { get; }
  92. protected abstract string[] LinkedStyleSheets { get; }
  93. [MonoTODO]
  94. protected Page Page {
  95. get { throw new NotImplementedException (); }
  96. }
  97. internal ControlSkin GetControlSkin (Type controlType, string skinID)
  98. {
  99. object key = PageTheme.CreateSkinKey (controlType, skinID);
  100. return ControlSkins[key] as ControlSkin;
  101. }
  102. internal string [] GetStyleSheets () {
  103. return LinkedStyleSheets;
  104. }
  105. }
  106. }
  107. #endif