Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #ifndef nsHTMLEditUtils_h__ |
michael@0 | 7 | #define nsHTMLEditUtils_h__ |
michael@0 | 8 | |
michael@0 | 9 | |
michael@0 | 10 | class nsIDOMNode; |
michael@0 | 11 | class nsINode; |
michael@0 | 12 | |
michael@0 | 13 | class nsHTMLEditUtils |
michael@0 | 14 | { |
michael@0 | 15 | public: |
michael@0 | 16 | // from nsTextEditRules: |
michael@0 | 17 | static bool IsBig(nsIDOMNode *aNode); |
michael@0 | 18 | static bool IsSmall(nsIDOMNode *aNode); |
michael@0 | 19 | |
michael@0 | 20 | // from nsHTMLEditRules: |
michael@0 | 21 | static bool IsInlineStyle(nsINode* aNode); |
michael@0 | 22 | static bool IsInlineStyle(nsIDOMNode *aNode); |
michael@0 | 23 | static bool IsFormatNode(nsINode* aNode); |
michael@0 | 24 | static bool IsFormatNode(nsIDOMNode *aNode); |
michael@0 | 25 | static bool IsNodeThatCanOutdent(nsIDOMNode *aNode); |
michael@0 | 26 | static bool IsHeader(nsIDOMNode *aNode); |
michael@0 | 27 | static bool IsParagraph(nsIDOMNode *aNode); |
michael@0 | 28 | static bool IsHR(nsIDOMNode *aNode); |
michael@0 | 29 | static bool IsListItem(nsINode* aNode); |
michael@0 | 30 | static bool IsListItem(nsIDOMNode *aNode); |
michael@0 | 31 | static bool IsTable(nsIDOMNode *aNode); |
michael@0 | 32 | static bool IsTableRow(nsIDOMNode *aNode); |
michael@0 | 33 | static bool IsTableElement(nsINode* aNode); |
michael@0 | 34 | static bool IsTableElement(nsIDOMNode *aNode); |
michael@0 | 35 | static bool IsTableElementButNotTable(nsINode* aNode); |
michael@0 | 36 | static bool IsTableElementButNotTable(nsIDOMNode *aNode); |
michael@0 | 37 | static bool IsTableCell(nsINode* node); |
michael@0 | 38 | static bool IsTableCell(nsIDOMNode *aNode); |
michael@0 | 39 | static bool IsTableCellOrCaption(nsIDOMNode *aNode); |
michael@0 | 40 | static bool IsList(nsINode* aNode); |
michael@0 | 41 | static bool IsList(nsIDOMNode *aNode); |
michael@0 | 42 | static bool IsOrderedList(nsIDOMNode *aNode); |
michael@0 | 43 | static bool IsUnorderedList(nsIDOMNode *aNode); |
michael@0 | 44 | static bool IsBlockquote(nsIDOMNode *aNode); |
michael@0 | 45 | static bool IsPre(nsIDOMNode *aNode); |
michael@0 | 46 | static bool IsAnchor(nsIDOMNode *aNode); |
michael@0 | 47 | static bool IsImage(nsIDOMNode *aNode); |
michael@0 | 48 | static bool IsLink(nsIDOMNode *aNode); |
michael@0 | 49 | static bool IsNamedAnchor(nsINode* aNode); |
michael@0 | 50 | static bool IsNamedAnchor(nsIDOMNode *aNode); |
michael@0 | 51 | static bool IsDiv(nsIDOMNode *aNode); |
michael@0 | 52 | static bool IsMozDiv(nsIDOMNode *aNode); |
michael@0 | 53 | static bool IsMailCite(nsINode* aNode); |
michael@0 | 54 | static bool IsMailCite(nsIDOMNode *aNode); |
michael@0 | 55 | static bool IsFormWidget(nsINode* aNode); |
michael@0 | 56 | static bool IsFormWidget(nsIDOMNode *aNode); |
michael@0 | 57 | static bool SupportsAlignAttr(nsIDOMNode *aNode); |
michael@0 | 58 | static bool CanContain(int32_t aParent, int32_t aChild); |
michael@0 | 59 | static bool IsContainer(int32_t aTag); |
michael@0 | 60 | }; |
michael@0 | 61 | |
michael@0 | 62 | #endif /* nsHTMLEditUtils_h__ */ |
michael@0 | 63 |