projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reject incomplete conversion unary user operators. Fixes #7935.
[mono.git]
/
mcs
/
class
/
System.Web
/
System.Web.UI.WebControls.WebParts
/
WebPart.cs
diff --git
a/mcs/class/System.Web/System.Web.UI.WebControls.WebParts/WebPart.cs
b/mcs/class/System.Web/System.Web.UI.WebControls.WebParts/WebPart.cs
index edf30902664c82f671064865c86e045efd9514d3..3738c7e047bb2bb23ece66e22fee50965abf0c6c 100644
(file)
--- a/
mcs/class/System.Web/System.Web.UI.WebControls.WebParts/WebPart.cs
+++ b/
mcs/class/System.Web/System.Web.UI.WebControls.WebParts/WebPart.cs
@@
-46,10
+46,17
@@
namespace System.Web.UI.WebControls.WebParts
}
}
- WebPartVerbCollection verbs;
+ WebPartVerbCollection verbs
= new WebPartVerbCollection()
;
Allow allow;
string auth_filter;
string catalog_icon_url;
Allow allow;
string auth_filter;
string catalog_icon_url;
+ WebPartExportMode exportMode = WebPartExportMode.None;
+ string titleIconImageUrl,
+ titleUrl,
+ helpUrl;
+ bool isStatic, hidden, isClosed, hasSharedData, hasUserData;
+ WebPartHelpMode helpMode = WebPartHelpMode.Navigate;
+ int zoneIndex ;
protected WebPart ()
{
protected WebPart ()
{
@@
-57,23
+64,31
@@
namespace System.Web.UI.WebControls.WebParts
allow = Allow.Close | Allow.Connect | Allow.Edit | Allow.Hide | Allow.Minimize | Allow.ZoneChange;
auth_filter = "";
catalog_icon_url = "";
allow = Allow.Close | Allow.Connect | Allow.Edit | Allow.Hide | Allow.Minimize | Allow.ZoneChange;
auth_filter = "";
catalog_icon_url = "";
+ titleIconImageUrl = string.Empty;
+ titleUrl = string.Empty;
+ helpUrl = string.Empty;
+ isStatic = false;
+ hasUserData = false;
+ hasSharedData = false;
+ hidden = false;
+ isClosed = false;
}
#if IWebEditableInterface
}
#if IWebEditableInterface
- [MonoTODO]
+ [MonoTODO
("Not implemented")
]
public virtual EditorPartCollection CreateEditorParts ()
{
throw new NotImplementedException ();
}
#endif
public virtual EditorPartCollection CreateEditorParts ()
{
throw new NotImplementedException ();
}
#endif
- [MonoTODO]
+ [MonoTODO
("Not implemented")
]
protected void SetPersonalizationDirty ()
{
throw new NotImplementedException ();
}
protected void SetPersonalizationDirty ()
{
throw new NotImplementedException ();
}
- [MonoTODO]
+ [MonoTODO
("Not implemented")
]
public static void SetPersonalizationDirty (Control control)
{
throw new NotImplementedException ();
public static void SetPersonalizationDirty (Control control)
{
throw new NotImplementedException ();
@@
-88,6
+103,11
@@
namespace System.Web.UI.WebControls.WebParts
}
}
}
}
+ internal void SetZoneIndex (int index)
+ {
+ zoneIndex = index;
+ }
+
protected internal virtual void OnClosing (EventArgs e)
{ /* no base class implementation */ }
protected internal virtual void OnClosing (EventArgs e)
{ /* no base class implementation */ }
@@
-190,7
+210,6
@@
namespace System.Web.UI.WebControls.WebParts
}
}
}
}
- [MonoTODO]
public virtual string AuthorizationFilter
{
get {
public virtual string AuthorizationFilter
{
get {
@@
-201,7
+220,6
@@
namespace System.Web.UI.WebControls.WebParts
}
}
}
}
- [MonoTODO]
public virtual string CatalogIconImageUrl
{
get {
public virtual string CatalogIconImageUrl
{
get {
@@
-212,7
+230,6
@@
namespace System.Web.UI.WebControls.WebParts
}
}
}
}
- [MonoTODO ("why override?")]
public override PartChromeState ChromeState
{
get {
public override PartChromeState ChromeState
{
get {
@@
-223,7
+240,6
@@
namespace System.Web.UI.WebControls.WebParts
}
}
}
}
- [MonoTODO ("why override?")]
public override PartChromeType ChromeType
{
get {
public override PartChromeType ChromeType
{
get {
@@
-234,7
+250,7
@@
namespace System.Web.UI.WebControls.WebParts
}
}
}
}
- [MonoTODO]
+ [MonoTODO
("Not implemented")
]
public string ConnectErrorMessage
{
get {
public string ConnectErrorMessage
{
get {
@@
-242,7
+258,6
@@
namespace System.Web.UI.WebControls.WebParts
}
}
}
}
- [MonoTODO ("why override?")]
public override string Description
{
get {
public override string Description
{
get {
@@
-253,15
+268,15
@@
namespace System.Web.UI.WebControls.WebParts
}
}
}
}
- [MonoTODO]
+ [MonoTODO
("Not implemented")
]
/* msdn2 lists this as an override, but it doesn't appear to work with our implementation */
/* msdn2 lists this as an override, but it doesn't appear to work with our implementation */
- public
/*override*/
ContentDirection Direction
+ public
override
ContentDirection Direction
{
get {
{
get {
- throw new NotImplementedException ();
+
throw new NotImplementedException ();
}
set {
}
set {
- throw new NotImplementedException ();
+
throw new NotImplementedException ();
}
}
}
}
@@
-272,34
+287,30
@@
namespace System.Web.UI.WebControls.WebParts
}
}
}
}
- [MonoTODO]
public virtual WebPartExportMode ExportMode
{
get {
public virtual WebPartExportMode ExportMode
{
get {
-
throw new NotImplementedException ()
;
+
return exportMode
;
}
set {
}
set {
-
throw new NotImplementedException ()
;
+
exportMode = value
;
}
}
}
}
- [MonoTODO]
public bool HasSharedData
{
get {
public bool HasSharedData
{
get {
-
throw new NotImplementedException ()
;
+
return hasSharedData
;
}
}
}
}
- [MonoTODO]
public bool HasUserData
{
get {
public bool HasUserData
{
get {
-
throw new NotImplementedException ()
;
+
return hasUserData
;
}
}
}
}
- [MonoTODO("why override?")]
public override Unit Height
{
get {
public override Unit Height
{
get {
@@
-310,36
+321,33
@@
namespace System.Web.UI.WebControls.WebParts
}
}
}
}
- [MonoTODO]
public virtual WebPartHelpMode HelpMode
{
get {
public virtual WebPartHelpMode HelpMode
{
get {
-
throw new NotImplementedException ()
;
+
return helpMode
;
}
set {
}
set {
-
throw new NotImplementedException ()
;
+
helpMode = value
;
}
}
}
}
- [MonoTODO]
public virtual string HelpUrl
{
get {
public virtual string HelpUrl
{
get {
-
throw new NotImplementedException ()
;
+
return helpUrl
;
}
set {
}
set {
-
throw new NotImplementedException ()
;
+
helpUrl = value
;
}
}
}
}
- [MonoTODO]
public virtual bool Hidden
{
get {
public virtual bool Hidden
{
get {
-
throw new NotImplementedException ()
;
+
return hidden
;
}
set {
}
set {
-
throw new NotImplementedException ()
;
+
hidden = value
;
}
}
}
}
@@
-353,15
+361,13
@@
namespace System.Web.UI.WebControls.WebParts
}
}
}
}
- [MonoTODO]
public bool IsClosed
{
get {
public bool IsClosed
{
get {
-
throw new NotImplementedException ()
;
+
return isClosed
;
}
}
}
}
- [MonoTODO("not virtual and no setter..")]
public bool IsShared
{
get {
public bool IsShared
{
get {
@@
-369,7
+375,6
@@
namespace System.Web.UI.WebControls.WebParts
}
}
}
}
- [MonoTODO("not virtual and no setter..")]
public bool IsStandalone
{
get {
public bool IsStandalone
{
get {
@@
-377,23
+382,20
@@
namespace System.Web.UI.WebControls.WebParts
}
}
}
}
- [MonoTODO]
public bool IsStatic
{
get {
public bool IsStatic
{
get {
-
throw new NotImplementedException ()
;
+
return isStatic
;
}
}
}
}
- [MonoTODO]
public virtual string Subtitle
{
get {
public virtual string Subtitle
{
get {
-
throw new NotImplementedException ()
;
+
return string.Empty
;
}
}
}
}
- [MonoTODO ("why override?")]
public override string Title
{
get {
public override string Title
{
get {
@@
-404,25
+406,23
@@
namespace System.Web.UI.WebControls.WebParts
}
}
}
}
- [MonoTODO]
public virtual string TitleIconImageUrl
{
get {
public virtual string TitleIconImageUrl
{
get {
-
throw new NotImplementedException ()
;
+
return titleIconImageUrl
;
}
set {
}
set {
-
throw new NotImplementedException ()
;
+
titleIconImageUrl = value
;
}
}
}
}
- [MonoTODO]
public virtual string TitleUrl
{
get {
public virtual string TitleUrl
{
get {
-
throw new NotImplementedException ()
;
+
return titleUrl
;
}
set {
}
set {
-
throw new NotImplementedException ()
;
+
titleUrl = value
;
}
}
}
}
@@
-434,26
+434,25
@@
namespace System.Web.UI.WebControls.WebParts
}
#if IWebEditableInterface
}
#if IWebEditableInterface
- [MonoTODO]
+ [MonoTODO
("Not implemented")
]
public virtual object WebBrowsableObject
{
get {
public virtual object WebBrowsableObject
{
get {
- throw new NotImplementedException ();
+
throw new NotImplementedException ();
}
}
#endif
#if notyet
}
}
#endif
#if notyet
- [MonoTODO]
+ [MonoTODO
("Not implemented")
]
protected WebPartManager WebPartManager
{
get {
protected WebPartManager WebPartManager
{
get {
- throw new NotImplementedException ();
+
throw new NotImplementedException ();
}
}
#endif
}
}
#endif
- [MonoTODO ("why override?")]
public override Unit Width
{
get {
public override Unit Width
{
get {
@@
-465,20
+464,19
@@
namespace System.Web.UI.WebControls.WebParts
}
#if notyet
}
#if notyet
- [MonoTODO]
+ [MonoTODO
("Not implemented")
]
public WebPartZoneBase Zone
{
get {
public WebPartZoneBase Zone
{
get {
- throw new NotImplementedException ();
+
throw new NotImplementedException ();
}
}
#endif
}
}
#endif
- [MonoTODO]
public int ZoneIndex
{
get {
public int ZoneIndex
{
get {
-
throw new NotImplementedException ()
;
+
return zoneIndex
;
}
}
}
}
}
}