From: <al...@us...> - 2011-01-04 06:04:34
|
Revision: 3343 http://omegat.svn.sourceforge.net/omegat/?rev=3343&view=rev Author: alex73 Date: 2011-01-04 06:04:28 +0000 (Tue, 04 Jan 2011) Log Message: ----------- Fix options change Modified Paths: -------------- trunk/src/org/omegat/filters3/xml/xhtml/XHTMLFilter.java Modified: trunk/src/org/omegat/filters3/xml/xhtml/XHTMLFilter.java =================================================================== --- trunk/src/org/omegat/filters3/xml/xhtml/XHTMLFilter.java 2011-01-02 14:03:20 UTC (rev 3342) +++ trunk/src/org/omegat/filters3/xml/xhtml/XHTMLFilter.java 2011-01-04 06:04:28 UTC (rev 3343) @@ -27,11 +27,16 @@ import java.awt.Dialog; import java.io.File; +import java.io.IOException; import java.util.Map; import java.util.regex.Pattern; import org.omegat.filters2.FilterContext; +import org.omegat.filters2.IAlignCallback; +import org.omegat.filters2.IParseCallback; +import org.omegat.filters2.ITranslateCallback; import org.omegat.filters2.Instance; +import org.omegat.filters2.TranslationException; import org.omegat.filters3.xml.XMLFilter; import org.omegat.util.Log; import org.omegat.util.OStrings; @@ -120,6 +125,27 @@ return result; } + public void parseFile(File inFile, Map<String, String> config, FilterContext fc, IParseCallback callback) + throws Exception { + XHTMLDialect dialect = (XHTMLDialect) this.getDialect(); + dialect.defineDialect(new XHTMLOptions(config)); + super.parseFile(inFile, config, fc, callback); + } + + public void translateFile(File inFile, File outFile, Map<String, String> config, FilterContext fc, + ITranslateCallback callback) throws Exception { + XHTMLDialect dialect = (XHTMLDialect) this.getDialect(); + dialect.defineDialect(new XHTMLOptions(config)); + super.translateFile(inFile, outFile, config, fc, callback); + } + + public void alignFile(File inFile, File outFile, Map<String, String> config, FilterContext fc, + IAlignCallback callback) throws Exception { + XHTMLDialect dialect = (XHTMLDialect) this.getDialect(); + dialect.defineDialect(new XHTMLOptions(config)); + super.alignFile(inFile, outFile, config, fc, callback); + } + /** * Overrides superimplementation not to send translatable content on XHTML validity check, and don't * translate items that match regular expression. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |