C# Class ScrewTurn.Wiki.Editor

Inheritance: System.Web.UI.UserControl
显示文件 Open project: mono/ScrewTurnWiki

Protected Properties

Property Type Description
btnBiggerMarkup global::Anthem.ImageButton
btnBiggerMarkupVisual global::Anthem.ImageButton
btnPreview global::Anthem.Button
btnSmallerMarkup global::Anthem.ImageButton
btnSmallerMarkupVisual global::Anthem.ImageButton
btnVisual global::Anthem.Button
btnWikiMarkup global::Anthem.Button
lblCustomSpecialTags global::System.Web.UI.WebControls.Literal
lblPreview global::System.Web.UI.WebControls.Literal
lblPreviewWarning global::System.Web.UI.WebControls.Label
lblSnippets global::System.Web.UI.WebControls.Label
lblStrings global::System.Web.UI.WebControls.Literal
lblToolbarInit global::System.Web.UI.WebControls.Literal
lblWYSIWYG global::Anthem.TextBox
mlvEditor global::Anthem.MultiView
txtMarkup global::Anthem.TextBox
viwPreview global::Anthem.View
viwStandard global::Anthem.View
viwVisual global::Anthem.View

Public Methods

Method Description
GetContent ( ) : string

Gets the edited content.

IsInWikiMarkup ( ) : bool

Gets a value indicating whether the editor is in WikiMarkup mode.

SetContent ( string content, bool useVisual ) : void

Sets the edited content.

Protected Methods

Method Description
Page_Load ( object sender, EventArgs e ) : void
btnPreview_Click ( object sender, EventArgs e ) : void
btnVisual_Click ( object sender, EventArgs e ) : void
btnWikiMarkup_Click ( object sender, EventArgs e ) : void

Private Methods

Method Description
GetParametersPlaceHolders ( string parameters, bool isSnippetPositional ) : string

Gets the placeholder for snippet parameters.

InitToolbar ( ) : void
IsSnippetPositional ( string parameters ) : bool

Determines whether the parameters of a snippet are positional or not.

LoadSnippets ( ) : void

Loads and prints the snippets.

PrintCustomSpecialTags ( ) : void

Prints the custom special tags.

SelectTab ( int index ) : void

Selects the active tab.

Method Details

GetContent() public method

Gets the edited content.
public GetContent ( ) : string
return string

IsInWikiMarkup() public method

Gets a value indicating whether the editor is in WikiMarkup mode.
public IsInWikiMarkup ( ) : bool
return bool

Page_Load() protected method

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

SetContent() public method

Sets the edited content.
public SetContent ( string content, bool useVisual ) : void
content string The content.
useVisual bool true if the visual editor must be used, false otherwise.
return void

btnPreview_Click() protected method

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

btnVisual_Click() protected method

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

btnWikiMarkup_Click() protected method

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

Property Details

btnBiggerMarkup protected_oe property

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

btnBiggerMarkupVisual protected_oe property

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

btnPreview protected_oe property

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

btnSmallerMarkup protected_oe property

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

btnSmallerMarkupVisual protected_oe property

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

btnVisual protected_oe property

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

btnWikiMarkup protected_oe property

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

lblCustomSpecialTags protected_oe property

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

lblPreview protected_oe property

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

lblPreviewWarning protected_oe property

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

lblSnippets protected_oe property

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

lblStrings protected_oe property

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

lblToolbarInit protected_oe property

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

lblWYSIWYG protected_oe property

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

mlvEditor protected_oe property

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

txtMarkup protected_oe property

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

viwPreview protected_oe property

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

viwStandard protected_oe property

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

viwVisual protected_oe property

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