зеркало из https://github.com/mozilla/pjs.git
Added method for toggling selection on/off in a document.
Added more support methods for selection, made parameters const where possible.
This commit is contained in:
Родитель
1120bfabc9
Коммит
2ee98353bd
|
@ -210,10 +210,13 @@ public:
|
|||
virtual void FinishConvertToXIF(nsXIFConverter& aConverter, nsIDOMNode* aNode) = 0;
|
||||
|
||||
/* Helper methods to help determine the logical positioning of content */
|
||||
virtual PRBool IsInRange(nsIContent *aStartContent, nsIContent* aEndContent, nsIContent* aContent) const = 0;
|
||||
virtual PRBool IsBefore(nsIContent *aNewContent, nsIContent* aCurrentContent) const = 0;
|
||||
virtual nsIContent* GetPrevContent(nsIContent *aContent) const = 0;
|
||||
virtual nsIContent* GetNextContent(nsIContent *aContent) const = 0;
|
||||
virtual PRBool IsInRange(const nsIContent *aStartContent, const nsIContent* aEndContent, const nsIContent* aContent) const = 0;
|
||||
virtual PRBool IsBefore(const nsIContent *aNewContent, const nsIContent* aCurrentContent) const = 0;
|
||||
virtual PRBool IsInSelection(const nsIContent *aContent) const = 0;
|
||||
virtual nsIContent* GetPrevContent(const nsIContent *aContent) const = 0;
|
||||
virtual nsIContent* GetNextContent(const nsIContent *aContent) const = 0;
|
||||
virtual void SetDisplaySelection(PRBool aToggle) = 0;
|
||||
virtual PRBool GetDisplaySelection() const = 0;
|
||||
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext& aPresContext,
|
||||
nsEvent* aEvent,
|
||||
|
|
|
@ -210,10 +210,13 @@ public:
|
|||
virtual void FinishConvertToXIF(nsXIFConverter& aConverter, nsIDOMNode* aNode) = 0;
|
||||
|
||||
/* Helper methods to help determine the logical positioning of content */
|
||||
virtual PRBool IsInRange(nsIContent *aStartContent, nsIContent* aEndContent, nsIContent* aContent) const = 0;
|
||||
virtual PRBool IsBefore(nsIContent *aNewContent, nsIContent* aCurrentContent) const = 0;
|
||||
virtual nsIContent* GetPrevContent(nsIContent *aContent) const = 0;
|
||||
virtual nsIContent* GetNextContent(nsIContent *aContent) const = 0;
|
||||
virtual PRBool IsInRange(const nsIContent *aStartContent, const nsIContent* aEndContent, const nsIContent* aContent) const = 0;
|
||||
virtual PRBool IsBefore(const nsIContent *aNewContent, const nsIContent* aCurrentContent) const = 0;
|
||||
virtual PRBool IsInSelection(const nsIContent *aContent) const = 0;
|
||||
virtual nsIContent* GetPrevContent(const nsIContent *aContent) const = 0;
|
||||
virtual nsIContent* GetNextContent(const nsIContent *aContent) const = 0;
|
||||
virtual void SetDisplaySelection(PRBool aToggle) = 0;
|
||||
virtual PRBool GetDisplaySelection() const = 0;
|
||||
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext& aPresContext,
|
||||
nsEvent* aEvent,
|
||||
|
|
Загрузка…
Ссылка в новой задаче