Package com.openhtmltopdf.context
Class ContentFunctionFactory
- java.lang.Object
-
- com.openhtmltopdf.context.ContentFunctionFactory
-
public class ContentFunctionFactory extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ContentFunctionFactory.FsIfCutOffFunction
Content function which returns its argument if on a cut off page, else the empty string.private static class
ContentFunctionFactory.LeaderFunction
Partially implements leaders as specified here: http://www.w3.org/TR/2007/WD-css3-gcpm-20070504/#leadersprivate static class
ContentFunctionFactory.PageCounterFunction
private static class
ContentFunctionFactory.PageNumberFunction
private static class
ContentFunctionFactory.PagesCounterFunction
private static class
ContentFunctionFactory.TargetCounterFunction
Partially implements target counter as specified here: http://www.w3.org/TR/2007/WD-css3-gcpm-20070504/#cross-referencesprivate static class
ContentFunctionFactory.TargetTextFunction
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ContentFunction>
_functions
-
Constructor Summary
Constructors Constructor Description ContentFunctionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentFunction
lookupFunction(LayoutContext c, FSFunction function)
void
registerFunction(ContentFunction function)
-
-
-
Field Detail
-
_functions
private final java.util.List<ContentFunction> _functions
-
-
Method Detail
-
lookupFunction
public ContentFunction lookupFunction(LayoutContext c, FSFunction function)
-
registerFunction
public void registerFunction(ContentFunction function)
-
-