mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 12:37:37 +00:00
56 lines
1.8 KiB
C++
56 lines
1.8 KiB
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
*
|
|
* The contents of this file are subject to the Netscape Public License
|
|
* Version 1.0 (the "License"); you may not use this file except in
|
|
* compliance with the License. You may obtain a copy of the License at
|
|
* http://www.mozilla.org/NPL/
|
|
*
|
|
* Software distributed under the License is distributed on an "AS IS"
|
|
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
|
|
* the License for the specific language governing rights and limitations
|
|
* under the License.
|
|
*
|
|
* The Original Code is Mozilla Communicator client code.
|
|
*
|
|
* The Initial Developer of the Original Code is Netscape Communications
|
|
* Corporation. Portions created by Netscape are Copyright (C) 1998
|
|
* Netscape Communications Corporation. All Rights Reserved.
|
|
*/
|
|
|
|
/*
|
|
|
|
A content model builder.
|
|
|
|
*/
|
|
|
|
#ifndef nsIRDFContentModelBuilder_h__
|
|
#define nsIRDFContentModelBuilder_h__
|
|
|
|
#include "nsISupports.h"
|
|
|
|
class nsIRDFContent;
|
|
class nsIRDFDocument;
|
|
class nsIRDFNode;
|
|
class nsIRDFResource;
|
|
|
|
// {541AFCB0-A9A3-11d2-8EC5-00805F29F370}
|
|
#define NS_IRDFCONTENTMODELBUILDER_IID \
|
|
{ 0x541afcb0, 0xa9a3, 0x11d2, { 0x8e, 0xc5, 0x0, 0x80, 0x5f, 0x29, 0xf3, 0x70 } }
|
|
|
|
class nsIRDFContentModelBuilder : public nsISupports
|
|
{
|
|
public:
|
|
NS_IMETHOD SetDocument(nsIRDFDocument* aDocument) = 0;
|
|
NS_IMETHOD CreateRoot(nsIRDFResource* aResource) = 0;
|
|
NS_IMETHOD CreateChildrenFor(nsIRDFContent* aElement) = 0;
|
|
NS_IMETHOD OnAssert(nsIRDFContent* aElement, nsIRDFResource* aProperty, nsIRDFNode* aValue) = 0;
|
|
NS_IMETHOD OnUnassert(nsIRDFContent* aElement, nsIRDFResource* aProperty, nsIRDFNode* aValue) = 0;
|
|
};
|
|
|
|
|
|
extern nsresult NS_NewRDFTreeBuilder(nsIRDFContentModelBuilder** aResult);
|
|
extern nsresult NS_NewRDFHTMLBuilder(nsIRDFContentModelBuilder** aResult);
|
|
|
|
|
|
#endif // nsIRDFContentModelBuilder_h__
|