Fix for bug 235748 (Reorganize Transformiix directories). r=Pike, sr=jst.

git-svn-id: svn://10.0.0.236/trunk@156696 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterv%propagandism.org
2004-05-21 10:41:24 +00:00
parent 9a53d8dd5b
commit 9e2eb3d460
47 changed files with 138 additions and 198 deletions

View File

@@ -36,7 +36,7 @@
* ***** END LICENSE BLOCK ***** */
#include "nsString.h"
#include "primitives.h"
#include "txCore.h"
#include "XMLUtils.h"
#include <math.h>
#include <stdlib.h>

View File

@@ -39,10 +39,10 @@
#ifndef MITRE_ERROROBSERVER_H
#define MITRE_ERROROBSERVER_H
#include "baseutils.h"
#include "txError.h"
#include "txCore.h"
#ifdef TX_EXE
#include <iostream.h>
class nsAString;
#endif
/**
* A simple interface for observing errors
@@ -74,6 +74,7 @@ public:
}; //-- ErrorObserver
#ifdef TX_EXE
/**
* A simple ErrorObserver which allows printing error messages to a stream
**/
@@ -109,3 +110,5 @@ private:
}; //-- SimpleErrorObserver
#endif
#endif

View File

@@ -39,9 +39,7 @@
#ifndef TRANSFRMX_LIST_H
#define TRANSFRMX_LIST_H
#include "baseutils.h"
#include "TxObject.h"
#include "txError.h"
#include "txCore.h"
class txListIterator;

View File

@@ -1,56 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla 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/MPL/
*
* 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 TransforMiiX XSLT processor code.
*
* The Initial Developer of the Original Code is
* Keith Visco.
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Keith Visco <kvisco@ziplink.net> (Original Author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef TRANSFRMX_TXOBJECT_H
#define TRANSFRMX_TXOBJECT_H
#include "baseutils.h"
class TxObject {
public:
/**
* Deletes this TxObject
**/
virtual ~TxObject() {};
};
#endif

View File

@@ -1,54 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla 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/MPL/
*
* 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 TransforMiiX XSLT processor code.
*
* The Initial Developer of the Original Code is
* The MITRE Corporation.
* Portions created by the Initial Developer are Copyright (C) 1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Keith Visco <kvisco@ziplink.net> (Original Author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
// Basic Definitions used throughout many of these classes
#ifndef TRANSFRMX_BASEUTILS_H
#define TRANSFRMX_BASEUTILS_H
#include "prtypes.h"
#include "nscore.h"
#include "nsDebug.h"
typedef PRBool MBool;
#define MB_TRUE PR_TRUE
#define MB_FALSE PR_FALSE
#endif

View File

@@ -20,6 +20,7 @@
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Keith Visco <kvisco@ziplink.net> (Original Author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
@@ -35,53 +36,75 @@
*
* ***** END LICENSE BLOCK ***** */
#ifndef MITRE_PRIMITIVES_H
#define MITRE_PRIMITIVES_H
#ifndef __txCore_h__
#define __txCore_h__
#include "nscore.h"
#include "nsDebug.h"
#include "prtypes.h"
#include "baseutils.h"
class nsAString;
/*
class txObject
{
public:
/**
* Deletes this txObject
**/
virtual ~txObject()
{
};
};
/**
* Utility class for doubles
*/
class Double {
class txDouble
{
public:
/*
* Usefull constants
/**
* Useful constants
*/
static const double NaN;
static const double POSITIVE_INFINITY;
static const double NEGATIVE_INFINITY;
/*
* Determines whether the given double represents positive or negative
/**
* Determines whether the given double represents positive or negative.
* inifinity
*/
static MBool isInfinite(double aDbl);
static PRBool isInfinite(double aDbl);
/*
* Determines whether the given double is NaN
/**
* Determines whether the given double is NaN.
*/
static MBool isNaN(double aDbl);
static PRBool isNaN(double aDbl);
/*
* Determines whether the given double is negative
/**
* Determines whether the given double is negative.
*/
static MBool isNeg(double aDbl);
static PRBool isNeg(double aDbl);
/*
* Converts the value of the given double to a String, and appends
* the result to the destination String.
/**
* Converts the value of the given double to a string, and appends
* the result to the destination string.
*/
static void toString(double aValue, nsAString& aDest);
/*
* Converts the given String to a double, if the String value does not
/**
* Converts the given String to a double, if the string value does not
* represent a double, NaN will be returned
*/
static double toDouble(const nsAString& aStr);
};
// XXX These should go away eventually.
#define TxObject txObject
typedef txDouble Double;
typedef PRBool MBool;
#define MB_TRUE PR_TRUE
#define MB_FALSE PR_FALSE
// XXX
#endif

View File

@@ -37,7 +37,7 @@
* ***** END LICENSE BLOCK ***** */
#include "txExpandedNameMap.h"
#include "TxObject.h"
#include "txCore.h"
#include <string.h>
const int kTxExpandedNameMapAllocSize = 16;

View File

@@ -39,8 +39,6 @@
#ifndef TRANSFRMX_TXNAMESPACEMAP_H
#define TRANSFRMX_TXNAMESPACEMAP_H
#include "txError.h"
#include "baseutils.h"
#include "nsIAtom.h"
#include "nsCOMArray.h"

View File

@@ -38,15 +38,14 @@
#ifndef TRANSFRMX_URIUTILS_H
#define TRANSFRMX_URIUTILS_H
#include "baseutils.h"
#include "txCore.h"
#ifdef TX_EXE
#include <fstream.h>
#include <iostream.h>
#include "nsString.h"
#else
#include "nsIDOMNode.h"
class nsIDocument;
class nsIDOMNode;
class nsIScriptSecurityManager;
extern nsIScriptSecurityManager *gTxSecurityManager;

View File

@@ -43,16 +43,16 @@
#ifndef MITRE_XMLUTILS_H
#define MITRE_XMLUTILS_H
#include "baseutils.h"
#include "txCore.h"
#include "nsCOMPtr.h"
#include "nsDependentSubstring.h"
#include "nsIAtom.h"
#include "txError.h"
#include "txXPathNode.h"
#ifndef TX_EXE
#include "nsIParserService.h"
#endif
class nsIAtom;
class txNamespaceMap;
class txExpandedName {

View File

@@ -55,10 +55,10 @@
#include "List.h"
#include "nsIAtom.h"
#include "baseutils.h"
#include "nsDoubleHashtable.h"
#include "nsString.h"
#include "nsVoidArray.h"
#include "txCore.h"
#define kTxNsNodeIndexOffset 0x00000000;
#define kTxAttrIndexOffset 0x40000000;

View File

@@ -39,13 +39,12 @@
#ifndef MITRE_XMLPARSER_H
#define MITRE_XMLPARSER_H
#include "baseutils.h"
#include "txCore.h"
#ifdef TX_EXE
#include <iostream.h>
#endif
class nsAString;
class txXPathNode;
/**

View File

@@ -45,7 +45,6 @@
#include "Expr.h"
#include "ExprResult.h"
#include "primitives.h"
#include "txIXPathContext.h"
/**

View File

@@ -40,6 +40,7 @@
#include "FunctionLib.h"
#include "nsReadableUtils.h"
#include "txAtoms.h"
#include "txError.h"
#include "txIXPathContext.h"
#include "txStringUtils.h"
#include "txXPathTreeWalker.h"

View File

@@ -41,13 +41,9 @@
#ifndef TRANSFRMX_EXPR_H
#define TRANSFRMX_EXPR_H
#include "baseutils.h"
#include "List.h"
#include "nsString.h"
#include "nsIAtom.h"
#include "TxObject.h"
#include "nsAutoPtr.h"
#include "ExprResult.h"
#include "txCore.h"
#ifdef DEBUG
#define TX_TO_STRING
@@ -58,6 +54,8 @@
Much of this code was ported from XSL:P.
*/
class nsIAtom;
class txAExprResult;
class txIParseContext;
class txIMatchContext;
class txIEvalContext;

View File

@@ -43,6 +43,7 @@
#include "ExprLexer.h"
#include "txAtoms.h"
#include "nsString.h"
#include "txError.h"
#include "XMLUtils.h"
/**

View File

@@ -41,7 +41,7 @@
#ifndef MITREXSL_EXPRLEXER_H
#define MITREXSL_EXPRLEXER_H
#include "baseutils.h"
#include "txCore.h"
#include "nsString.h"
/**

View File

@@ -47,6 +47,7 @@
#include "FunctionLib.h"
#include "txStack.h"
#include "txAtoms.h"
#include "txError.h"
#include "txIXPathContext.h"
#include "txStringUtils.h"
#include "txXPathNode.h"

View File

@@ -45,19 +45,20 @@
#ifndef MITREXSL_EXPRPARSER_H
#define MITREXSL_EXPRPARSER_H
#include "baseutils.h"
#include "nsIAtom.h"
#include "txError.h"
#include "Expr.h"
#include "txCore.h"
#include "nsAutoPtr.h"
#include "nsString.h"
class AttributeValueTemplate;
class Expr;
class txExprLexer;
class FunctionCall;
class LocationStep;
class nsIAtom;
class PredicateList;
class Token;
class txIParseContext;
class txNodeTest;
class txNodeTypeTest;
class txExprParser

View File

@@ -40,11 +40,10 @@
#ifndef TRANSFRMX_EXPRRESULT_H
#define TRANSFRMX_EXPRRESULT_H
#include "primitives.h"
#include "TxObject.h"
#include "nsString.h"
#include "txResultRecycler.h"
#include "nsAutoPtr.h"
#include "txCore.h"
#include "txResultRecycler.h"
/*
* ExprResult

View File

@@ -39,7 +39,6 @@
#ifndef TRANSFRMX_FUNCTIONLIB_H
#define TRANSFRMX_FUNCTIONLIB_H
#include "primitives.h"
#include "Expr.h"
/**

View File

@@ -47,7 +47,6 @@
#include "Expr.h"
#include "ExprResult.h"
#include <math.h>
#include "primitives.h"
#include "txIXPathContext.h"
/**

View File

@@ -44,6 +44,7 @@
#include "ExprResult.h"
#include "FunctionLib.h"
#include "txAtoms.h"
#include "txError.h"
#include "txIXPathContext.h"
#include "XMLUtils.h"
#include "txXPathTreeWalker.h"

View File

@@ -51,6 +51,7 @@
#include "nsIDocument.h"
#include "nsIDOMDocument.h"
#include "nsDOMString.h"
#include "txError.h"
extern nsINameSpaceManager* gTxNameSpaceManager;

View File

@@ -39,12 +39,9 @@
#ifndef __TX_I_XPATH_CONTEXT
#define __TX_I_XPATH_CONTEXT
#include "baseutils.h"
#include "nsIAtom.h"
#include "txError.h"
#include "txCore.h"
class FunctionCall;
class nsAString;
class nsIAtom;
class txAExprResult;
class txResultRecycler;

View File

@@ -37,6 +37,7 @@
* ***** END LICENSE BLOCK ***** */
#include "Expr.h"
#include "ExprResult.h"
txLiteralExpr::txLiteralExpr(double aDbl)
: mValue(new NumberResult(aDbl, nsnull))

View File

@@ -39,10 +39,9 @@
#ifndef txXPathTreeWalker_h__
#define txXPathTreeWalker_h__
#include "baseutils.h"
#include "txCore.h"
#include "txXPathNode.h"
class nsAString;
class nsIAtom;
#ifndef TX_EXE

View File

@@ -38,6 +38,7 @@
#include "txIXPathContext.h"
#include "txAtoms.h"
#include "txError.h"
#include "XMLUtils.h"
#include "XSLTFunctions.h"
#include "ExprResult.h"

View File

@@ -39,6 +39,7 @@
#include "txIXPathContext.h"
#include "ExprResult.h"
#include "txAtoms.h"
#include "txError.h"
#include "XMLUtils.h"
#include "XSLTFunctions.h"
#include "txNamespaceMap.h"

View File

@@ -1,5 +1,45 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla 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/MPL/
*
* 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 TransforMiiX XSLT processor code.
*
* The Initial Developer of the Original Code is
* Axel Hecht.
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Axel Hecht <axel@pike.org>
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "txIXPathContext.h"
#include "txAtoms.h"
#include "txError.h"
#include "XMLUtils.h"
#include "XSLTFunctions.h"
#include "ExprResult.h"

View File

@@ -37,7 +37,6 @@
* ***** END LICENSE BLOCK ***** */
#include "XSLTFunctions.h"
#include "primitives.h"
#include "txAtoms.h"
#include "txIXPathContext.h"
#include "txStylesheet.h"

View File

@@ -39,9 +39,7 @@
#ifndef TRANSFRMX_TXEXECUTIONSTATE_H
#define TRANSFRMX_TXEXECUTIONSTATE_H
#include "txError.h"
#include "baseutils.h"
#include "txXMLEventHandler.h"
#include "txCore.h"
#include "txStack.h"
#include "XMLUtils.h"
#include "nsVoidArray.h"
@@ -52,6 +50,8 @@
#include "txKey.h"
#include "txStylesheet.h"
class txAOutputHandlerFactory;
class txAXMLEventHandler;
class txInstruction;
class txIOutputHandlerFactory;
class txExpandedNameMap;

View File

@@ -39,9 +39,8 @@
#ifndef TRANSFRMX_TXINSTRUCTIONS_H
#define TRANSFRMX_TXINSTRUCTIONS_H
#include "txError.h"
#include "nsCOMPtr.h"
#include "TxObject.h"
#include "txCore.h"
#include "nsString.h"
#include "XMLUtils.h"
#include "txNamespaceMap.h"

View File

@@ -62,6 +62,7 @@
#include "nsNetUtil.h"
#include "nsParserCIID.h"
#include "txAtoms.h"
#include "TxLog.h"
#include "txMozillaXSLTProcessor.h"
#include "txStylesheetCompiler.h"
#include "XMLUtils.h"

View File

@@ -39,7 +39,6 @@
#ifndef TRANSFRMX_OUTPUTFORMAT_H
#define TRANSFRMX_OUTPUTFORMAT_H
#include "baseutils.h"
#include "List.h"
#include "nsString.h"

View File

@@ -39,6 +39,7 @@
#include "txPatternParser.h"
#include "ExprLexer.h"
#include "txAtoms.h"
#include "txError.h"
#include "txStringUtils.h"
#include "txXSLTPatterns.h"
#include "txIXPathContext.h"

View File

@@ -37,6 +37,7 @@
* ***** END LICENSE BLOCK ***** */
#include "txStandaloneStylesheetCompiler.h"
#include "TxLog.h"
#include "txStylesheetCompiler.h"
#include "txURIUtils.h"
#include "xmlparse.h"

View File

@@ -41,7 +41,6 @@
#include "txXSLTPatterns.h"
#include "txToplevelItems.h"
#include "txInstructions.h"
#include "primitives.h"
#include "XSLTFunctions.h"
#include "TxLog.h"
#include "txKey.h"

View File

@@ -41,7 +41,7 @@
#include "txTokenizer.h"
#include "txInstructions.h"
#include "txAtoms.h"
#include "primitives.h"
#include "txCore.h"
#include "txStringUtils.h"
#include "txStylesheet.h"
#include "txToplevelItems.h"

View File

@@ -45,6 +45,7 @@
#include "txInstructions.h"
#include "txToplevelItems.h"
#include "ExprParser.h"
#include "TxLog.h"
#include "txPatternParser.h"
#include "txStringUtils.h"
#include "XSLTFunctions.h"

View File

@@ -39,16 +39,12 @@
#ifndef TRANSFRMX_TXSTYLESHEETCOMPILER_H
#define TRANSFRMX_TXSTYLESHEETCOMPILER_H
#include "baseutils.h"
#include "txError.h"
#include "txStack.h"
#include "txXSLTPatterns.h"
#include "Expr.h"
#include "XMLUtils.h"
#include "txIXPathContext.h"
#include "nsAutoPtr.h"
#include "txStylesheet.h"
#include "TxLog.h"
class txHandlerTable;
class txElementContext;

View File

@@ -39,10 +39,8 @@
#ifndef TRANSFRMX_XML_EVENT_HANDLER_H
#define TRANSFRMX_XML_EVENT_HANDLER_H
#include "baseutils.h"
#include "txError.h"
#include "txCore.h"
class nsAString;
class txOutputFormat;
#ifdef TX_EXE

View File

@@ -38,7 +38,7 @@
#include "txXSLTNumber.h"
#include "txAtoms.h"
#include "primitives.h"
#include "txCore.h"
#include <math.h>
#include "Expr.h"
#include "ExprResult.h"

View File

@@ -38,7 +38,7 @@
#include "txXSLTNumber.h"
#include "nsReadableUtils.h"
#include "primitives.h"
#include "txCore.h"
class txDecimalCounter : public txFormattedCounter {
public:

View File

@@ -40,12 +40,9 @@
#ifndef TRANSFRMX_NODESORTER_H
#define TRANSFRMX_NODESORTER_H
#include "baseutils.h"
#include "txCore.h"
#include "List.h"
#include "nsIAtom.h"
#include "txXPathNode.h"
class Element;
class Expr;
class txExecutionState;
class txNodeSet;

View File

@@ -40,7 +40,7 @@
#include "txXPathResultComparator.h"
#include "Expr.h"
#include "ExprResult.h"
#include "primitives.h"
#include "txCore.h"
#ifndef TX_EXE
#include "nsCollationCID.h"
#include "nsILocale.h"

View File

@@ -40,7 +40,7 @@
#ifndef TRANSFRMX_XPATHRESULTCOMPARATOR_H
#define TRANSFRMX_XPATHRESULTCOMPARATOR_H
#include "TxObject.h"
#include "txCore.h"
#ifndef TX_EXE
#include "nsCOMPtr.h"
#include "nsICollation.h"