From 2fb0dcb6a4463ec0d4978fef7ff0b32e490a3e89 Mon Sep 17 00:00:00 2001 From: "akkana%netscape.com" Date: Wed, 26 May 1999 23:13:03 +0000 Subject: [PATCH] Add nsICiter, for mail quoting --- editor/public/MANIFEST | 1 + editor/public/Makefile.in | 1 + editor/public/makefile.win | 1 + editor/public/nsICiter.h | 43 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 editor/public/nsICiter.h diff --git a/editor/public/MANIFEST b/editor/public/MANIFEST index 86021cd3c18..490368ab31a 100644 --- a/editor/public/MANIFEST +++ b/editor/public/MANIFEST @@ -23,3 +23,4 @@ nsIContextLoader.h nsIHTMLEditor.h nsIEditRules.h nsIEditActionListener.h +nsICiter.h diff --git a/editor/public/Makefile.in b/editor/public/Makefile.in index 465940c7844..878e0e73a6c 100644 --- a/editor/public/Makefile.in +++ b/editor/public/Makefile.in @@ -30,6 +30,7 @@ EXPORTS = \ nsITextEditor.h \ nsIEditRules.h \ nsEditorCID.h \ + nsICiter.h \ $(NULL) EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) diff --git a/editor/public/makefile.win b/editor/public/makefile.win index 5dc1acc9c92..b83e40b97ce 100644 --- a/editor/public/makefile.win +++ b/editor/public/makefile.win @@ -26,6 +26,7 @@ EXPORTS = \ nsIEditRules.h \ nsEditorCID.h \ nsIContextLoader.h \ + nsICiter.h \ $(NULL) MODULE = editor diff --git a/editor/public/nsICiter.h b/editor/public/nsICiter.h new file mode 100644 index 00000000000..2cf937e0dc0 --- /dev/null +++ b/editor/public/nsICiter.h @@ -0,0 +1,43 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + * + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. + * + * The Initial Developer of this code under the NPL is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. + */ + +#ifndef nsICiter_h__ +#define nsICiter_h__ + +#include "nsISupports.h" + +class nsString; + +#define NS_ICITER_IID \ +{ /* a6cf9102-15b3-11d2-932e-00805f8add32 */ \ +0xa6cf9102, 0x15b3, 0x11d2, \ +{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32} } + +/** Handle plaintext citations, as in mail quoting. + * Used by the editor but not dependant on it. + */ +class nsICiter : public nsISupports +{ +public: + static const nsIID& GetIID() { static nsIID iid = NS_ICITER_IID; return iid; } + + NS_IMETHOD GetCiteString(const nsString& aInString, nsString& aOutString) = 0; +}; + +#endif //nsICiter_h__ +