diff options
author | Ocke Janssen [oj] <Ocke.Janssen@sun.com> | 2009-11-19 09:03:57 +0100 |
---|---|---|
committer | Ocke Janssen [oj] <Ocke.Janssen@sun.com> | 2009-11-19 09:03:57 +0100 |
commit | 78155803fd8f1e7d6eb9f0af390a4a928d2fb9cd (patch) | |
tree | ccbf1863a72b8c39a7301c2ea856e77c95fdd933 /reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontNameMapper.java | |
parent | 563af76127ad7c1d20b21c1e8433b6122b34608f (diff) |
dba33d: #i102563# use rootURL to resolve the given URI and some refactoring
Diffstat (limited to 'reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontNameMapper.java')
-rw-r--r-- | reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontNameMapper.java | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontNameMapper.java b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontNameMapper.java index f9d238bfcb79..cc6cd926f7c7 100644 --- a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontNameMapper.java +++ b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontNameMapper.java @@ -27,8 +27,6 @@ * for a copy of the LGPLv3 License. * ************************************************************************/ - - package com.sun.star.report.pentaho.parser.stylemapper.style; import com.sun.star.report.pentaho.parser.StyleMapper; @@ -39,14 +37,15 @@ import org.jfree.layouting.input.style.keys.font.FontStyleKeys; public class FontNameMapper implements StyleMapper { - public FontNameMapper () - { - } - public void updateStyle (final String uri, final String attrName, final String attrValue, - final CSSDeclarationRule targetRule) - { - targetRule.setPropertyValue(FontStyleKeys.FONT_NAME, - new CSSStringValue(CSSStringType.STRING, attrValue)); - } + public FontNameMapper() + { + } + + public void updateStyle(final String uri, final String attrName, final String attrValue, + final CSSDeclarationRule targetRule) + { + targetRule.setPropertyValue(FontStyleKeys.FONT_NAME, + new CSSStringValue(CSSStringType.STRING, attrValue)); + } } |