[
next
] [
prev
] [
prev-tail
] [
tail
] [
up
]
10.1
Outline
<..
OoFilter.java
..>
package
tex4ht;
/*
OoFilter.java
(2014-05-24-11:53),
generated
from
tex4ht-oo-xtpipes.tex
Copyright
(C)
2009-2010
TeX
Users
Group
Copyright
(C)
2002-2009
Eitan
M.
Gurari
<.
TeX4ht copyright
.>
*/
<.
OoFilter imports
.>
public
class
OoFilter
extends
XMLFilterImpl
{
PrintWriter
out
=
null;
public
OoFilter(
PrintWriter
out,
PrintWriter
log,
boolean
trace
){
this.out
=
out;
}
public
void
startElement(String
ns,
String
sName,
String
qName,
Attributes
attr)
{
if(
qName.equals(
"draw:frame"
)
){
<.
set dimensions of figures
.>
}
try{
super.startElement(ns,
sName,
qName,
attr);
}
catch(
Exception
e
){
System.err.println(
"---
OoFilter
Error
1
---
"
+
e);
}
}
public
void
processingInstruction(String
target,
String
fileName)
{
if(
target.equals("tex4ht-lg")
){
fileName
=
fileName.trim();
if(
fileName.replaceAll("
","").startsWith("file=")
){
<.
load font vars
.>
<.
load font styles
.>
}
}
}
}
-_-_-
[
next
] [
prev
] [
prev-tail
] [
front
] [
up
]