Update of /cvsroot/hmath/org.hmath.server/WEB-INF/src/org/hartmath/server/filter
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21210/WEB-INF/src/org/hartmath/server/filter
Added Files:
WikipediaFilter.java IBodyTagSupportMacro.java
ParserFilter.java IRenderResultMacro.java
INoParserBodyFilterMacro.java MacroHMathFilter.java
Log Message:
initial version
--- NEW FILE: WikipediaFilter.java ---
/*
* This file is part of the "HMath MathML BLOG/Wiki Engine".
*
* Copyright (c) 2004 Klaus Hartlage All Rights Reserved.
*
* Please visit http://www.hmath.org/ for updates and contact.
*
* --LICENSE NOTICE-- This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser
* General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any
* later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --LICENSE NOTICE--
*/
package org.hartmath.server.filter;
[...2046 lines suppressed...]
public void setContext(FilterContext context) {
fContext = context;
}
/**
* @return Returns the wikiEngine.
*/
public RenderEngine getWikiEngine() {
return fWikiEngine;
}
/**
* @param wikiEngine
* The wikiEngine to set.
*/
public void setWikiEngine(RenderEngine wikiEngine) {
fWikiEngine = wikiEngine;
}
}
--- NEW FILE: IBodyTagSupportMacro.java ---
/*
* Created on 27.01.2004
*
* To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
package org.hartmath.server.filter;
/**
* this interface indicates that a macro has a body content
*/
public interface IBodyTagSupportMacro {
}
--- NEW FILE: ParserFilter.java ---
/*
* This file is part of "SnipSnap Radeox Rendering Engine".
*
* Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel All Rights Reserved.
*
* Please visit http://radeox.org/ for updates and contact.
*
* --LICENSE NOTICE-- This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser
* General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any
* later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --LICENSE NOTICE--
*/
package org.hartmath.server.filter;
[...1634 lines suppressed...]
public void setContext(FilterContext context) {
fContext = context;
}
/**
* @return Returns the wikiEngine.
*/
public RenderEngine getWikiEngine() {
return fWikiEngine;
}
/**
* @param wikiEngine
* The wikiEngine to set.
*/
public void setWikiEngine(RenderEngine wikiEngine) {
fWikiEngine = wikiEngine;
}
}
--- NEW FILE: IRenderResultMacro.java ---
/*
* Created on 30.01.2004
*
* To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
package org.hartmath.server.filter;
/**
* @author khartlage
*
* To change the template for this generated type comment go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
public interface IRenderResultMacro {
}
--- NEW FILE: INoParserBodyFilterMacro.java ---
/*
* Created on 17.01.2004
*
* To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
package org.hartmath.server.filter;
/**
* Interface that indicates, that a macro content (i.e. body)
* shouldn't be filtered in ParserFilter
*
* @see org.radeox.filter.ParserFilter
*/
public interface INoParserBodyFilterMacro extends IBodyTagSupportMacro {
}
--- NEW FILE: MacroHMathFilter.java ---
/*
* This file is part of "SnipSnap Radeox Rendering Engine".
*
* Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel
* All Rights Reserved.
*
* Please visit http://radeox.org/ for updates and contact.
*
* --LICENSE NOTICE--
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* --LICENSE NOTICE--
*/
package org.hartmath.server.filter;
import org.hartmath.server.macro.HMathMacroRepository;
import org.radeox.macro.Repository;
import org.snipsnap.render.filter.LateMacroFilter;
/*
*
*/
public class MacroHMathFilter extends LateMacroFilter {
private static HMathMacroRepository macros = (HMathMacroRepository)HMathMacroRepository.getInstance();
public MacroHMathFilter() {
super();
}
/* (non-Javadoc)
* @see org.radeox.filter.MacroFilter#getMacroRepository()
*/
protected Repository getMacroRepository() {
return macros;
}
}
|