C# Class ScrewTurn.Wiki.DefaultPage

Inheritance: BasePage
显示文件 Open project: mono/ScrewTurnWiki

Protected Properties

Property Type Description
attachmentViewer global::ScrewTurn.Wiki.AttachmentViewer
btnEmailNotification global::Anthem.ImageButton
lblAdminToolsLink global::System.Web.UI.WebControls.Literal
lblAdministratePage global::System.Web.UI.WebControls.Literal
lblAttachmentsLink global::System.Web.UI.WebControls.Literal
lblAuthor global::System.Web.UI.WebControls.Literal
lblBackLink global::System.Web.UI.WebControls.Literal
lblBreadcrumbsTrail global::System.Web.UI.WebControls.Literal
lblBy global::System.Web.UI.WebControls.Literal
lblCategorizedAs global::System.Web.UI.WebControls.Literal
lblDiscussLink global::System.Web.UI.WebControls.Literal
lblDiscussedPage global::System.Web.UI.WebControls.Literal
lblDoubleClickHandler global::System.Web.UI.WebControls.Literal
lblEditLink global::System.Web.UI.WebControls.Literal
lblHistoryLink global::System.Web.UI.WebControls.Literal
lblModified global::System.Web.UI.WebControls.Literal
lblModifiedDateTime global::System.Web.UI.WebControls.Literal
lblNavigationPaths global::System.Web.UI.WebControls.Literal
lblNextPage global::System.Web.UI.WebControls.Literal
lblPageCategories global::System.Web.UI.WebControls.Literal
lblPageDiscussionFor global::System.Web.UI.WebControls.Literal
lblPageTitle global::System.Web.UI.WebControls.Literal
lblPostMessageLink global::System.Web.UI.WebControls.Literal
lblPreviousPage global::System.Web.UI.WebControls.Literal
lblPrintLink global::System.Web.UI.WebControls.Literal
lblRedirectionSource global::System.Web.UI.WebControls.Literal
lblRollbackPage global::System.Web.UI.WebControls.Literal
lblRssLink global::System.Web.UI.WebControls.Literal
lblSetPagePermissions global::System.Web.UI.WebControls.Literal
lblViewCodeLink global::System.Web.UI.WebControls.Literal
plhContent global::System.Web.UI.WebControls.PlaceHolder
pnlPageInfo global::System.Web.UI.WebControls.Panel

Protected Methods

Method Description
Page_Load ( object sender, EventArgs e ) : void
btnEmailNotification_Click ( object sender, EventArgs e ) : void

Private Methods

Method Description
AppendBreadcrumb ( StringBuilder sb, System.PageInfo page, string dpPrefix ) : void

Appends a breadbrumb trail element.

AppendBreadcrumbDropDown ( StringBuilder sb, System.PageInfo page, string dbPrefix ) : string

Appends the drop-down menu DIV with outgoing links for a page.

GetAttachmentCount ( ) : int

Gets the number of attachments for the current page.

GetBackupCount ( ) : int

Gets the number of backups for the current page.

GetCategoryLink ( string category ) : string

Gets the link to a category.

GetFormattedPageCategories ( ) : string

Gets the categories for the current page, already formatted for display.

PrintKeywords ( string keywords ) : string

Prints the keywords in a CSV list.

SetupAdjacentPages ( ) : void

Prepares the previous and next pages link for navigation paths.

SetupBreadcrumbsTrail ( ) : void

Sets the breadcrumbs trail, if appropriate.

SetupDoubleClickHandler ( ) : void

Sets the JavaScript double-click editing handler.

SetupEmailNotification ( ) : void

Sets the email notification button.

SetupLabels ( ) : void

Sets the content and visibility of all labels used in the page.

SetupMetaInformation ( ) : void

Sets the content of the META description and keywords for the current page.

SetupNavigationPaths ( ) : void

Sets the navigation paths label.

SetupPageContent ( bool canPostMessages, bool canManageDiscussion ) : void

Sets the actual page content, based on the current view mode (normal, discussion, view code).

SetupPrintAndRssLinks ( ) : void

Sets the Print and RSS links.

SetupRedirectionSource ( ) : void

Sets the redirection source page link, if appropriate.

SetupTitles ( ) : void

Sets the titles used in the page.

SetupToolbarLinks ( bool canEdit, bool canViewDiscussion, bool canPostMessages, bool canDownloadAttachments, bool canRollback, bool canAdmin, bool canSetPerms ) : void

Sets the content and visibility of all toolbar links.

VerifyAndPerformPageRedirection ( ) : void

Verifies the need for a page redirection, and performs it when appropriate.

VerifyAndPerformRedirects ( ) : void

Verifies the need for a redirect and performs it.

Method Details

Page_Load() protected method

protected Page_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

btnEmailNotification_Click() protected method

protected btnEmailNotification_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

attachmentViewer protected_oe property

attachmentViewer control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::ScrewTurn.Wiki.AttachmentViewer attachmentViewer
return global::ScrewTurn.Wiki.AttachmentViewer

btnEmailNotification protected_oe property

btnEmailNotification control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.ImageButton btnEmailNotification
return global::Anthem.ImageButton

lblAdminToolsLink protected_oe property

lblAdminToolsLink control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblAdminToolsLink
return global::System.Web.UI.WebControls.Literal

lblAdministratePage protected_oe property

lblAdministratePage control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblAdministratePage
return global::System.Web.UI.WebControls.Literal

lblAttachmentsLink protected_oe property

lblAttachmentsLink control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblAttachmentsLink
return global::System.Web.UI.WebControls.Literal

lblAuthor protected_oe property

lblAuthor control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblAuthor
return global::System.Web.UI.WebControls.Literal

lblBackLink protected_oe property

lblBackLink control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblBackLink
return global::System.Web.UI.WebControls.Literal

lblBreadcrumbsTrail protected_oe property

lblBreadcrumbsTrail control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblBreadcrumbsTrail
return global::System.Web.UI.WebControls.Literal

lblBy protected_oe property

lblBy control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblBy
return global::System.Web.UI.WebControls.Literal

lblCategorizedAs protected_oe property

lblCategorizedAs control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblCategorizedAs
return global::System.Web.UI.WebControls.Literal

lblDiscussLink protected_oe property

lblDiscussLink control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblDiscussLink
return global::System.Web.UI.WebControls.Literal

lblDiscussedPage protected_oe property

lblDiscussedPage control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblDiscussedPage
return global::System.Web.UI.WebControls.Literal

lblDoubleClickHandler protected_oe property

lblDoubleClickHandler control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblDoubleClickHandler
return global::System.Web.UI.WebControls.Literal

lblEditLink protected_oe property

lblEditLink control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblEditLink
return global::System.Web.UI.WebControls.Literal

lblHistoryLink protected_oe property

lblHistoryLink control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblHistoryLink
return global::System.Web.UI.WebControls.Literal

lblModified protected_oe property

lblModified control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblModified
return global::System.Web.UI.WebControls.Literal

lblModifiedDateTime protected_oe property

lblModifiedDateTime control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblModifiedDateTime
return global::System.Web.UI.WebControls.Literal

lblNavigationPaths protected_oe property

lblNavigationPaths control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblNavigationPaths
return global::System.Web.UI.WebControls.Literal

lblNextPage protected_oe property

lblNextPage control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblNextPage
return global::System.Web.UI.WebControls.Literal

lblPageCategories protected_oe property

lblPageCategories control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblPageCategories
return global::System.Web.UI.WebControls.Literal

lblPageDiscussionFor protected_oe property

lblPageDiscussionFor control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblPageDiscussionFor
return global::System.Web.UI.WebControls.Literal

lblPageTitle protected_oe property

lblPageTitle control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblPageTitle
return global::System.Web.UI.WebControls.Literal

lblPostMessageLink protected_oe property

lblPostMessageLink control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblPostMessageLink
return global::System.Web.UI.WebControls.Literal

lblPreviousPage protected_oe property

lblPreviousPage control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblPreviousPage
return global::System.Web.UI.WebControls.Literal

lblPrintLink protected_oe property

lblPrintLink control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblPrintLink
return global::System.Web.UI.WebControls.Literal

lblRedirectionSource protected_oe property

lblRedirectionSource control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblRedirectionSource
return global::System.Web.UI.WebControls.Literal

lblRollbackPage protected_oe property

lblRollbackPage control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblRollbackPage
return global::System.Web.UI.WebControls.Literal

lblRssLink protected_oe property

lblRssLink control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblRssLink
return global::System.Web.UI.WebControls.Literal

lblSetPagePermissions protected_oe property

lblSetPagePermissions control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblSetPagePermissions
return global::System.Web.UI.WebControls.Literal

lblViewCodeLink protected_oe property

lblViewCodeLink control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblViewCodeLink
return global::System.Web.UI.WebControls.Literal

plhContent protected_oe property

plhContent control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.PlaceHolder plhContent
return global::System.Web.UI.WebControls.PlaceHolder

pnlPageInfo protected_oe property

pnlPageInfo control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Panel pnlPageInfo
return global::System.Web.UI.WebControls.Panel