From 2138b6c1fdf19a1692cda91d6d60c42e015ce3d0 Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Wed, 11 Nov 1998 19:11:02 +0000 Subject: [PATCH] Adding new interfaces for toolbars. --- widget/public/nsIToolbarDMItem.h | 42 +++++++++++++++++++++++++++ widget/public/nsIToolbarDataModel.h | 40 ++++++++++++++++++++++++++ widget/public/nsITreeDMItem.h | 44 +++++++++++++++++++++++++++++ 3 files changed, 126 insertions(+) create mode 100644 widget/public/nsIToolbarDMItem.h create mode 100644 widget/public/nsIToolbarDataModel.h create mode 100644 widget/public/nsITreeDMItem.h diff --git a/widget/public/nsIToolbarDMItem.h b/widget/public/nsIToolbarDMItem.h new file mode 100644 index 00000000000..74b3d1353bd --- /dev/null +++ b/widget/public/nsIToolbarDMItem.h @@ -0,0 +1,42 @@ +/* -*- 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 nsIToolbarDMItem_h___ +#define nsIToolbarDMItem_h___ + +#include "prthread.h" +#include "nsString.h" + +class nsIImage; +class nsIImageGroup; + +// {2FC8FD02-789F-11d2-96ED-00104B7B7DEB} +#define NS_ITOOLBARDMITEM_IID \ +{ 0x77edfec1, 0x7956, 0x11d2, { 0xbf, 0x86, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } } + +class nsIToolbarDMItem : public nsISupports +{ +public: + // Inspectors + + // Setters + +}; + +#endif /* nsIToolbarDMItem_h___ */ + diff --git a/widget/public/nsIToolbarDataModel.h b/widget/public/nsIToolbarDataModel.h new file mode 100644 index 00000000000..0d460226ebf --- /dev/null +++ b/widget/public/nsIToolbarDataModel.h @@ -0,0 +1,40 @@ +/* -*- 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 nsIToolbarDataModel_h___ +#define nsIToolbarDataModel_h___ + +#include "prthread.h" +#include "nsString.h" + +class nsIToolbarItem; + +// {2AAB8D81-7956-11d2-BF86-00105A1B0627} +#define NS_ITOOLBARDATAMODEL_IID \ +{ 0x2aab8d81, 0x7956, 0x11d2, { 0xbf, 0x86, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } } + +class nsIToolbarDataModel : public nsISupports +{ + +public: + // There will be methods for toolbar specific stuff here. + +}; + +#endif /* nsIToolbarDataModel_h___ */ + diff --git a/widget/public/nsITreeDMItem.h b/widget/public/nsITreeDMItem.h new file mode 100644 index 00000000000..9ad5bfb7f82 --- /dev/null +++ b/widget/public/nsITreeDMItem.h @@ -0,0 +1,44 @@ +/* -*- 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 nsITreeDMItem_h___ +#define nsITreeDMItem_h___ + +#include "prthread.h" +#include "nsString.h" + +class nsIImage; +class nsIImageGroup; + +// {2FC8FD02-789F-11d2-96ED-00104B7B7DEB} +#define NS_ITREEDMITEM_IID \ +{ 0x2fc8fd02, 0x789f, 0x11d2, { 0x96, 0xed, 0x0, 0x10, 0x4b, 0x7b, 0x7d, 0xeb } } + +class nsITreeDMItem : public nsISupports +{ +public: + // Inspectors + NS_IMETHOD GetTriggerImage(nsIImage*& pImage, nsIImageGroup* pGroup) const = 0; + NS_IMETHOD GetIndentationLevel(PRUint32& indentation) const = 0; + + // Setters + +}; + +#endif /* nsITreeDMItem_h___ */ +