mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Not part of build.
This commit is contained in:
parent
82cff61e8e
commit
b6b220e133
@ -25,6 +25,26 @@
|
||||
#include "nsOutlinerSelection.h"
|
||||
#include "nsIOutlinerBoxObject.h"
|
||||
|
||||
// A helper class for managing our ranges of selection.
|
||||
struct nsOutlinerRange
|
||||
{
|
||||
PRInt32 mMin;
|
||||
PRInt32 mMax;
|
||||
|
||||
nsOutlinerRange* mNext;
|
||||
nsOutlinerRange* mPrev;
|
||||
|
||||
nsOutlinerRange(PRInt32 aSingleVal):mNext(nsnull), mMin(aSingleVal), mMax(aSingleVal) {};
|
||||
nsOutlinerRange(PRInt32 aMin, PRInt32 aMax) :mNext(nsnull), mMin(aMin), mMax(aMax) {};
|
||||
|
||||
~nsOutlinerRange() { delete mNext; };
|
||||
|
||||
void Connect(nsOutlinerRange* aPrev = nsnull, nsOutlinerRange* aNext = nsnull) {
|
||||
mPrev = aPrev;
|
||||
mNext = aNext;
|
||||
}
|
||||
};
|
||||
|
||||
nsOutlinerSelection::nsOutlinerSelection(nsIOutlinerBoxObject* aOutliner)
|
||||
{
|
||||
NS_INIT_ISUPPORTS();
|
||||
|
@ -25,6 +25,26 @@
|
||||
#include "nsOutlinerSelection.h"
|
||||
#include "nsIOutlinerBoxObject.h"
|
||||
|
||||
// A helper class for managing our ranges of selection.
|
||||
struct nsOutlinerRange
|
||||
{
|
||||
PRInt32 mMin;
|
||||
PRInt32 mMax;
|
||||
|
||||
nsOutlinerRange* mNext;
|
||||
nsOutlinerRange* mPrev;
|
||||
|
||||
nsOutlinerRange(PRInt32 aSingleVal):mNext(nsnull), mMin(aSingleVal), mMax(aSingleVal) {};
|
||||
nsOutlinerRange(PRInt32 aMin, PRInt32 aMax) :mNext(nsnull), mMin(aMin), mMax(aMax) {};
|
||||
|
||||
~nsOutlinerRange() { delete mNext; };
|
||||
|
||||
void Connect(nsOutlinerRange* aPrev = nsnull, nsOutlinerRange* aNext = nsnull) {
|
||||
mPrev = aPrev;
|
||||
mNext = aNext;
|
||||
}
|
||||
};
|
||||
|
||||
nsOutlinerSelection::nsOutlinerSelection(nsIOutlinerBoxObject* aOutliner)
|
||||
{
|
||||
NS_INIT_ISUPPORTS();
|
||||
|
Loading…
Reference in New Issue
Block a user