diff --git a/mozilla/layout/base/src/nsXIFConverter.cpp b/mozilla/layout/base/src/nsXIFConverter.cpp index b2b168258cc..c91a3294e77 100644 --- a/mozilla/layout/base/src/nsXIFConverter.cpp +++ b/mozilla/layout/base/src/nsXIFConverter.cpp @@ -64,6 +64,23 @@ nsXIFConverter::~nsXIFConverter() } +void nsXIFConverter::SetSelection(nsIDOMSelection* aSelection) { + mSelection = aSelection; + + BeginStartTag("encode"); + if (mSelection == nsnull) + { + AddAttribute("selection","0"); + } + else + { + AddAttribute("selection","1"); + } + FinishStartTag("encode",PR_TRUE,PR_TRUE); +} + + + void nsXIFConverter::BeginStartTag(const nsString& aTag) { diff --git a/mozilla/layout/base/src/nsXIFConverter.h b/mozilla/layout/base/src/nsXIFConverter.h index e208dbc24bc..a936f59a973 100644 --- a/mozilla/layout/base/src/nsXIFConverter.h +++ b/mozilla/layout/base/src/nsXIFConverter.h @@ -114,9 +114,8 @@ public: // Output routines void Write(); - void SetSelection(nsIDOMSelection* aSelection) { - mSelection = aSelection; - } + void SetSelection(nsIDOMSelection* aSelection); + nsIDOMSelection* GetSelection() { return mSelection; }