}
- WebPartVerbCollection verbs;
+ WebPartVerbCollection verbs = new WebPartVerbCollection();
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 ()
{
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
- [MonoTODO]
+ [MonoTODO("Not implemented")]
public virtual EditorPartCollection CreateEditorParts ()
{
throw new NotImplementedException ();
}
#endif
- [MonoTODO]
+ [MonoTODO("Not implemented")]
protected void SetPersonalizationDirty ()
{
throw new NotImplementedException ();
}
- [MonoTODO]
+ [MonoTODO("Not implemented")]
public static void SetPersonalizationDirty (Control control)
{
throw new NotImplementedException ();
}
}
+ internal void SetZoneIndex (int index)
+ {
+ zoneIndex = index;
+ }
+
protected internal virtual void OnClosing (EventArgs e)
{ /* no base class implementation */ }
}
}
- [MonoTODO]
public virtual string AuthorizationFilter
{
get {
}
}
- [MonoTODO]
public virtual string CatalogIconImageUrl
{
get {
}
}
- [MonoTODO ("why override?")]
public override PartChromeState ChromeState
{
get {
}
}
- [MonoTODO ("why override?")]
public override PartChromeType ChromeType
{
get {
}
}
- [MonoTODO]
+ [MonoTODO("Not implemented")]
public string ConnectErrorMessage
{
get {
}
}
- [MonoTODO ("why override?")]
public override string Description
{
get {
}
}
- [MonoTODO]
+ [MonoTODO("Not implemented")]
/* 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 {
- throw new NotImplementedException ();
+ throw new NotImplementedException ();
}
set {
- throw new NotImplementedException ();
+ throw new NotImplementedException ();
}
}
}
}
- [MonoTODO]
public virtual WebPartExportMode ExportMode
{
get {
- throw new NotImplementedException ();
+ return exportMode;
}
set {
- throw new NotImplementedException ();
+ exportMode = value;
}
}
- [MonoTODO]
public bool HasSharedData
{
get {
- throw new NotImplementedException ();
+ return hasSharedData;
}
}
- [MonoTODO]
public bool HasUserData
{
get {
- throw new NotImplementedException ();
+ return hasUserData;
}
}
- [MonoTODO("why override?")]
public override Unit Height
{
get {
}
}
- [MonoTODO]
public virtual WebPartHelpMode HelpMode
{
get {
- throw new NotImplementedException ();
+ return helpMode;
}
set {
- throw new NotImplementedException ();
+ helpMode = value;
}
}
- [MonoTODO]
public virtual string HelpUrl
{
get {
- throw new NotImplementedException ();
+ return helpUrl;
}
set {
- throw new NotImplementedException ();
+ helpUrl = value;
}
}
- [MonoTODO]
public virtual bool Hidden
{
get {
- throw new NotImplementedException ();
+ return hidden;
}
set {
- throw new NotImplementedException ();
+ hidden = value;
}
}
}
}
- [MonoTODO]
public bool IsClosed
{
get {
- throw new NotImplementedException ();
+ return isClosed;
}
}
- [MonoTODO("not virtual and no setter..")]
public bool IsShared
{
get {
}
}
- [MonoTODO("not virtual and no setter..")]
public bool IsStandalone
{
get {
}
}
- [MonoTODO]
public bool IsStatic
{
get {
- throw new NotImplementedException ();
+ return isStatic;
}
}
- [MonoTODO]
public virtual string Subtitle
{
get {
- throw new NotImplementedException ();
+ return string.Empty;
}
}
- [MonoTODO ("why override?")]
public override string Title
{
get {
}
}
- [MonoTODO]
public virtual string TitleIconImageUrl
{
get {
- throw new NotImplementedException ();
+ return titleIconImageUrl;
}
set {
- throw new NotImplementedException ();
+ titleIconImageUrl = value;
}
}
- [MonoTODO]
public virtual string TitleUrl
{
get {
- throw new NotImplementedException ();
+ return titleUrl;
}
set {
- throw new NotImplementedException ();
+ titleUrl = value;
}
}
}
#if IWebEditableInterface
- [MonoTODO]
+ [MonoTODO("Not implemented")]
public virtual object WebBrowsableObject
{
get {
- throw new NotImplementedException ();
+ throw new NotImplementedException ();
}
}
#endif
#if notyet
- [MonoTODO]
+ [MonoTODO("Not implemented")]
protected WebPartManager WebPartManager
{
get {
- throw new NotImplementedException ();
+ throw new NotImplementedException ();
}
}
#endif
- [MonoTODO ("why override?")]
public override Unit Width
{
get {
}
#if notyet
- [MonoTODO]
+ [MonoTODO("Not implemented")]
public WebPartZoneBase Zone
{
get {
- throw new NotImplementedException ();
+ throw new NotImplementedException ();
}
}
#endif
- [MonoTODO]
public int ZoneIndex
{
get {
- throw new NotImplementedException ();
+ return zoneIndex;
}
}
}