adding InsertHeader()

git-svn-id: svn://10.0.0.236/trunk@42816 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jfrancis%netscape.com 1999-08-09 21:43:53 +00:00
parent 56ea64f92b
commit f14b1b883c
2 changed files with 19 additions and 0 deletions

View File

@ -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)
{

View File

@ -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);