adding InsertHeader()
git-svn-id: svn://10.0.0.236/trunk@42816 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
56ea64f92b
commit
f14b1b883c
@ -610,6 +610,24 @@ nsJSEditorLog::InsertList(const nsString& aListType)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsJSEditorLog::InsertHeader(const nsString& aHeaderType)
|
||||
{
|
||||
if (mLocked)
|
||||
return NS_OK;
|
||||
|
||||
PrintSelection();
|
||||
|
||||
Write("window.editorShell.InsertHeader(\"");
|
||||
PrintUnicode(aHeaderType);
|
||||
Write("\");\n");
|
||||
Flush();
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsJSEditorLog::Indent(const nsString& aIndent)
|
||||
{
|
||||
|
||||
@ -117,6 +117,7 @@ public:
|
||||
NS_IMETHOD RemoveParagraphStyle();
|
||||
NS_IMETHOD RemoveParent(const nsString &aParentTag);
|
||||
NS_IMETHOD InsertList(const nsString& aListType);
|
||||
NS_IMETHOD InsertHeader(const nsString& aHeaderType);
|
||||
NS_IMETHOD Indent(const nsString& aIndent);
|
||||
NS_IMETHOD Align(const nsString& aAlign);
|
||||
NS_IMETHOD GetElementOrParentByTagName(const nsString& aTagName, nsIDOMNode *aNode, nsIDOMElement** aReturn);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user