C# Class ScrewTurn.Wiki.Editor

Inheritance: System.Web.UI.UserControl
Show file 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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