ChangeAttributeTransaction.cpp |
|
5365 |
ChangeAttributeTransaction.h |
A transaction that changes an attribute of a content node. This transaction
covers add, remove, and change attribute.
|
3104 |
ChangeStyleTransaction.cpp |
|
11925 |
ChangeStyleTransaction.h |
A transaction that changes the value of a CSS inline style of a content
node. This transaction covers add, remove, and change a property's value.
|
5117 |
CompositionTransaction.cpp |
|
17843 |
CompositionTransaction.h |
CompositionTransaction stores all edit for a composition, i.e.,
from compositionstart event to compositionend event. E.g., inserting a
composition string, modifying the composition string or its IME selection
ranges and commit or cancel the composition.
|
3525 |
crashtests |
|
118 |
CSSEditUtils.cpp |
|
47949 |
CSSEditUtils.h |
Answers true if the given combination element_name/attribute_name
has a CSS equivalence in this implementation.
@param aNode [IN] A DOM node.
@param aProperty [IN] An atom containing a HTML tag name.
@param aAttribute [IN] An atom containing a HTML
attribute carried by the element above.
@return A boolean saying if the tag/attribute has a CSS
equiv.
|
21344 |
DeleteNodeTransaction.cpp |
|
6044 |
DeleteNodeTransaction.h |
A transaction that deletes a single element
|
2298 |
DeleteRangeTransaction.cpp |
|
11489 |
DeleteRangeTransaction.h |
A transaction that deletes an entire range in the content tree
|
4777 |
DeleteTextTransaction.cpp |
|
6238 |
DeleteTextTransaction.h |
A transaction that removes text from a content node.
|
3415 |
EditAction.h |
EditAction indicates which operation or command causes running the methods
of editors.
|
30087 |
EditAggregateTransaction.cpp |
|
5561 |
EditAggregateTransaction.h |
base class for all document editing transactions that require aggregation.
provides a list of child transactions.
|
2021 |
EditorBase.cpp |
|
254122 |
EditorBase.h |
Implementation of an editor object. it will be the controller/focal point
for the main editor services. i.e. the GUIManager, publishing, transaction
manager, event interfaces. the idea for the event interfaces is to have them
delegate the actual commands to the editor independent of the XPFE
implementation.
|
115521 |
EditorCommands.cpp |
mozilla::EditorCommand
**************************************************************************** |
37552 |
EditorCommands.h |
EditorCommandParamType tells you that EditorCommand subclasses refer
which type in nsCommandParams (e.g., bool or nsString) or do not refer.
If they refer some types, also set where is in nsCommandParams, e.g.,
whether "state_attribute" or "state_data".
|
36636 |
EditorController.cpp |
|
6266 |
EditorController.h |
|
923 |
EditorDOMPoint.h |
EditorDOMPoint and EditorRawDOMPoint are simple classes which refers
a point in the DOM tree at creating the instance or initializing the
instance with calling Set().
EditorDOMPoint refers container node (and child node if it's already set)
with nsCOMPtr. EditorRawDOMPoint refers them with raw pointer.
So, EditorRawDOMPoint is useful when you access the nodes only before
changing DOM tree since increasing refcount may appear in micro benchmark
if it's in a hot path. On the other hand, if you need to refer them even
after changing DOM tree, you must use EditorDOMPoint.
When initializing an instance only with child node or offset, the instance
starts to refer the child node or offset in the container. In this case,
the other information hasn't been initialized due to performance reason.
When you retrieve the other information with calling Offset() or
GetChild(), the other information is computed with the current DOM tree.
Therefore, e.g., in the following case, the other information may be
different:
EditorDOMPoint pointA(container1, childNode1);
EditorDOMPoint pointB(container1, childNode1);
Unused << pointA.Offset(); // The offset is computed now.
container1->RemoveChild(childNode1->GetPreviousSibling());
Unused << pointB.Offset(); // Now, pointB.Offset() equals pointA.Offset() - 1
similarly:
EditorDOMPoint pointA(container1, 5);
EditorDOMPoint pointB(container1, 5);
Unused << pointA.GetChild(); // The child is computed now.
container1->RemoveChild(childNode1->GetFirstChild());
Unused << pointB.GetChild(); // Now, pointB.GetChild() equals
// pointA.GetChild()->GetPreviousSibling().
So, when you initialize an instance only with one information, you need to
be careful when you access the other information after changing the DOM tree.
When you need to lock the child node or offset and recompute the other
information with new DOM tree, you can use
AutoEditorDOMPointOffsetInvalidator and AutoEditorDOMPointChildInvalidator.
|
52962 |
EditorEventListener.cpp |
for any window |
45614 |
EditorEventListener.h |
DetachedFromEditor() returns true if editor was detached.
Otherwise, false.
|
4114 |
EditorForwards.h |
Forward declarations of other modules'
**************************************************************************** |
6565 |
EditorUtils.cpp |
mozilla::EditActionResult
*************************************************************************** |
32070 |
EditorUtils.h |
EditActionResult is useful to return multiple results of an editor
action handler without out params.
Note that when you return an anonymous instance from a method, you should
use EditActionIgnored(), EditActionHandled() or EditActionCanceled() for
easier to read. In other words, EditActionResult should be used when
declaring return type of a method, being an argument or defined as a local
variable.
|
26439 |
EditTransactionBase.cpp |
|
3559 |
EditTransactionBase.h |
Base class for all document editing transactions.
|
3080 |
HTMLAbsPositionEditor.cpp |
|
34115 |
HTMLAnonymousNodeEditor.cpp |
|
21767 |
HTMLEditHelpers.cpp |
some helper classes for iterating the dom tree
*************************************************************************** |
6508 |
HTMLEditHelpers.h |
This header declares/defines trivial helper classes which are used by
HTMLEditor. If you want to create or look for static utility methods,
see HTMLEditUtils.h.
|
43935 |
HTMLEditor.cpp |
HTMLEditor::AutoSelectionRestorer
*************************************************************************** |
249244 |
HTMLEditor.h |
The HTML editor implementation.<br>
Use to edit HTML document represented as a DOM tree.
|
211850 |
HTMLEditorCommands.cpp |
mozilla::StateUpdatingCommandBase
*************************************************************************** |
48058 |
HTMLEditorController.cpp |
|
5805 |
HTMLEditorController.h |
mozllla_HTMLEditorController_h__ |
798 |
HTMLEditorDataTransfer.cpp |
|
167466 |
HTMLEditorDeleteHandler.cpp |
AutoSetTemporaryAncestorLimiter
************************************************************************** |
239800 |
HTMLEditorDocumentCommands.cpp |
mozilla::SetDocumentStateCommand
Commands for document state that may be changed via doCommandParams
As of 11/11/02, this is just "cmd_setDocumentModified"
Note that you can use the same command class, SetDocumentStateCommand,
for more than one of this type of command
We check the input command param for different behavior
*************************************************************************** |
17835 |
HTMLEditorEventListener.cpp |
|
14992 |
HTMLEditorEventListener.h |
Connect() fails if aEditorBase isn't an HTMLEditor instance.
|
3296 |
HTMLEditorObjectResizer.cpp |
mozilla::HTMLEditor
**************************************************************************** |
54363 |
HTMLEditorState.cpp |
ListElementSelectionState
************************************************************************** |
22722 |
HTMLEditSubActionHandler.cpp |
first some helpful functors we will use
****************************************************** |
471567 |
HTMLEditUtils.cpp |
|
71429 |
HTMLEditUtils.h |
This header declares/defines static helper methods as members of
HTMLEditUtils. If you want to create or look for helper trivial classes for
HTMLEditor, see HTMLEditHelpers.h.
|
85273 |
HTMLInlineTableEditor.cpp |
|
18705 |
HTMLStyleEditor.cpp |
|
123397 |
HTMLTableEditor.cpp |
Stack based helper class for restoring selection after table edit.
|
174366 |
InsertNodeTransaction.cpp |
|
7176 |
InsertNodeTransaction.h |
A transaction that inserts a single element
|
3213 |
InsertTextTransaction.cpp |
|
7146 |
InsertTextTransaction.h |
A transaction that inserts text into a content node.
|
2868 |
InternetCiter.cpp |
Mail citations using the Internet style: > This is a citation.
|
10299 |
InternetCiter.h |
Mail citations using standard Internet style.
|
825 |
JoinNodesTransaction.cpp |
|
7251 |
JoinNodesTransaction.h |
A transaction that joins two nodes E1 (left node) and E2 (right node) into a
single node E. The children of E are the children of E1 followed by the
children of E2. After DoTransaction() and RedoTransaction(), E1 is removed
from the content tree and E2 remains.
|
3622 |
ManualNAC.h |
Smart pointer class to own "manual" Native Anonymous Content, and perform
the necessary registration and deregistration on the parent element.
|
3826 |
MoveNodeTransaction.cpp |
|
12094 |
MoveNodeTransaction.h |
A transaction that moves a content node to a specified point.
|
4119 |
moz.build |
|
2680 |
PlaceholderTransaction.cpp |
|
14470 |
PlaceholderTransaction.h |
An aggregate transaction that knows how to absorb all subsequent
transactions with the same name. This transaction does not "Do" anything.
But it absorbs other transactions via merge, and can undo/redo the
transactions it has absorbed.
|
3411 |
ReplaceTextTransaction.cpp |
|
7687 |
ReplaceTextTransaction.h |
|
2989 |
SelectionState.cpp |
mozilla::RangeItem
*************************************************************************** |
19080 |
SelectionState.h |
A helper struct for saving/setting ranges.
|
18692 |
SplitNodeTransaction.cpp |
|
8796 |
SplitNodeTransaction.h |
A transaction that splits a node into two identical nodes, with the children
divided between the new nodes.
|
3384 |
tests |
|
292 |
TextEditor.cpp |
|
34981 |
TextEditor.h |
The text editor implementation.
Use to edit text document represented as a DOM tree.
|
22758 |
TextEditorDataTransfer.cpp |
|
10439 |
TextEditSubActionHandler.cpp |
|
29003 |
TypeInState.cpp |
mozilla::TypeInState
***************************************************************** |
18340 |
TypeInState.h |
PreHandleMouseEvent() is called when `HTMLEditorEventListener` receives
"mousedown" and "mouseup" events. Note that `aMouseDownOrUpEvent` may not
be acceptable event for the `HTMLEditor`, but this is called even in
the case because the event may cause a following `OnSelectionChange()`
call.
|
6008 |
WSRunObject.cpp |
|
184594 |
WSRunObject.h |
WSScanResult is result of ScanNextVisibleNodeOrBlockBoundaryFrom(),
ScanPreviousVisibleNodeOrBlockBoundaryFrom(), and their static wrapper
methods. This will have information of found visible content (and its
position) or reached block element or topmost editable content at the
start of scanner.
|
66340 |