* beginnings of font handling. WIP, I did a big merge today and I'm checking in to synch up, not to announce new functionality here.

* added TextEditorTest.cpp, a unit test module for nsTextEditor.  It's use is actually commented out since my checkin is happening so late due
to all-day build bustage, and I don't have a Mac handy to verify.  With someone's Mac help tomorrow, I can turn it on.
* some minor bug fixes to property handling


git-svn-id: svn://10.0.0.236/trunk@27556 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
buster%netscape.com
1999-04-15 06:06:33 +00:00
parent d79590a9d1
commit d7cdf20fb8
19 changed files with 477 additions and 157 deletions

View File

@@ -17,6 +17,7 @@
*/
#include "nsEditProperty.h"
#include "nsString.h"
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kIEditPropertyIID, NS_IEDITPROPERTY_IID);
@@ -40,6 +41,7 @@ nsIAtom * nsIEditProperty::sub;
nsIAtom * nsIEditProperty::sup;
nsIAtom * nsIEditProperty::tt;
nsIAtom * nsIEditProperty::u;
nsString * nsIEditProperty::allProperties;
void
nsEditProperty::InstanceInit()
@@ -57,6 +59,7 @@ nsEditProperty::InstanceInit()
nsIEditProperty::sup = NS_NewAtom("SUP");
nsIEditProperty::tt = NS_NewAtom("TT");
nsIEditProperty::u = NS_NewAtom("U");
nsIEditProperty::allProperties = new nsString("moz_AllProperties");
}
void
@@ -75,6 +78,9 @@ nsEditProperty::InstanceShutdown()
NS_IF_RELEASE(nsIEditProperty::sup);
NS_IF_RELEASE(nsIEditProperty::tt);
NS_IF_RELEASE(nsIEditProperty::u);
if (nsIEditProperty::allProperties) {
delete (nsIEditProperty::allProperties);
}
}
NS_IMETHODIMP