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:
kostello%netscape.com 1998-07-27 18:03:16 +00:00
Родитель 1120bfabc9
Коммит 2ee98353bd
2 изменённых файлов: 14 добавлений и 8 удалений

Просмотреть файл

@ -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,