зеркало из https://github.com/mozilla/pjs.git
68 строки
1.8 KiB
C++
68 строки
1.8 KiB
C++
/* -*- 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.1 (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.org 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.
|
|
*
|
|
* Contributor(s):
|
|
* Peter Van der Beken, peterv@netscape.com
|
|
* -- original author.
|
|
*
|
|
*/
|
|
|
|
#ifndef XPathProcessor_h__
|
|
#define XPathProcessor_h__
|
|
|
|
#include "nsIXPathNodeSelector.h"
|
|
#include "nsISecurityCheckedComponent.h"
|
|
|
|
/* e4172588-1dd1-11b2-bf09-ec309437245a */
|
|
#define TRANSFORMIIX_XPATH_PROCESSOR_CID \
|
|
{ 0xe4172588, 0x1dd1, 0x11b2, {0xbf, 0x09, 0xec, 0x30, 0x94, 0x37, 0x24, 0x5a} }
|
|
|
|
#define TRANSFORMIIX_XPATH_PROCESSOR_CONTRACTID \
|
|
"@mozilla.org/xpath-nodeselector;1"
|
|
|
|
/**
|
|
* A class for processing an XPath query
|
|
**/
|
|
class XPathProcessor : public nsIXPathNodeSelector,
|
|
public nsISecurityCheckedComponent
|
|
{
|
|
public:
|
|
/**
|
|
* Creates a new XPathProcessor
|
|
**/
|
|
XPathProcessor();
|
|
|
|
/**
|
|
* Default destructor for XPathProcessor
|
|
**/
|
|
virtual ~XPathProcessor();
|
|
|
|
// nsISupports interface
|
|
NS_DECL_ISUPPORTS
|
|
|
|
// nsIXPathNodeSelector interface
|
|
NS_DECL_NSIXPATHNODESELECTOR
|
|
|
|
// nsISecurityCheckedComponent
|
|
NS_DECL_NSISECURITYCHECKEDCOMPONENT
|
|
|
|
}; //-- XPathProcessor
|
|
|
|
#endif
|