summaryrefslogtreecommitdiff
path: root/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style
diff options
context:
space:
mode:
Diffstat (limited to 'reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style')
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontFamilyGenericMapper.java5
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontFamilyMapper.java5
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontNameMapper.java21
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontPitchMapper.java15
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontReliefMapper.java18
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextEmphasizeMapper.java18
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextUnderlineColorMapper.java27
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextUnderlineStyleMapper.java28
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextUnderlineWordMode.java15
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/VerticalAlignMapper.java21
10 files changed, 82 insertions, 91 deletions
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontFamilyGenericMapper.java b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontFamilyGenericMapper.java
index f218fc465a94..fce338d5688b 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontFamilyGenericMapper.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontFamilyGenericMapper.java
@@ -52,7 +52,10 @@ public class FontFamilyGenericMapper implements StyleMapper
{
final CSSStringValue cssVal = new CSSStringValue(CSSStringType.STRING, attrValue);
targetRule.setPropertyValue(FontStyleKeys.FONT_FAMILY,
- new CSSValueList(new CSSValue[]{cssVal}));
+ new CSSValueList(new CSSValue[]
+ {
+ cssVal
+ }));
}
else
{
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontFamilyMapper.java b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontFamilyMapper.java
index 019fea3182a2..696fb557bdde 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontFamilyMapper.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontFamilyMapper.java
@@ -52,7 +52,10 @@ public class FontFamilyMapper implements StyleMapper
{
final CSSStringValue cssVal = new CSSStringValue(CSSStringType.STRING, attrValue);
targetRule.setPropertyValue(FontStyleKeys.FONT_FAMILY,
- new CSSValueList(new CSSValue[]{cssVal}));
+ new CSSValueList(new CSSValue[]
+ {
+ cssVal
+ }));
}
else
{
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));
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontPitchMapper.java b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontPitchMapper.java
index ae180f8fac69..79dceddb88c6 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontPitchMapper.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontPitchMapper.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.OneOfConstantsMapper;
@@ -37,10 +35,11 @@ import org.jfree.layouting.input.style.values.CSSConstant;
public class FontPitchMapper extends OneOfConstantsMapper
{
- public FontPitchMapper ()
- {
- super (FontStyleKeys.FONT_PITCH);
- addMapping("variable", new CSSConstant("variable"));
- addMapping("fixed", new CSSConstant("fixed"));
- }
+
+ public FontPitchMapper()
+ {
+ super(FontStyleKeys.FONT_PITCH);
+ addMapping("variable", new CSSConstant("variable"));
+ addMapping("fixed", new CSSConstant("fixed"));
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontReliefMapper.java b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontReliefMapper.java
index 059d01981a27..a9c18a8f7dc4 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontReliefMapper.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/FontReliefMapper.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;
@@ -37,14 +35,14 @@ import org.jfree.layouting.input.style.keys.font.FontStyleKeys;
public class FontReliefMapper implements StyleMapper
{
- public FontReliefMapper ()
- {
- }
+ public FontReliefMapper()
+ {
+ }
- public void updateStyle (final String uri, final String attrName, final String attrValue,
- final CSSDeclarationRule targetRule)
- {
- targetRule.setPropertyValueAsString(FontStyleKeys.FONT_EFFECT, attrValue);
- }
+ public void updateStyle(final String uri, final String attrName, final String attrValue,
+ final CSSDeclarationRule targetRule)
+ {
+ targetRule.setPropertyValueAsString(FontStyleKeys.FONT_EFFECT, attrValue);
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextEmphasizeMapper.java b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextEmphasizeMapper.java
index 961e22c5eb63..e465e7da1527 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextEmphasizeMapper.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextEmphasizeMapper.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;
@@ -36,14 +34,14 @@ import org.jfree.layouting.input.style.CSSDeclarationRule;
public class TextEmphasizeMapper implements StyleMapper
{
- public TextEmphasizeMapper ()
- {
- }
+ public TextEmphasizeMapper()
+ {
+ }
- public void updateStyle (final String uri, final String attrName, final String attrValue,
- final CSSDeclarationRule targetRule)
- {
- targetRule.setPropertyValueAsString("font-emphasize", attrValue);
- }
+ public void updateStyle(final String uri, final String attrName, final String attrValue,
+ final CSSDeclarationRule targetRule)
+ {
+ targetRule.setPropertyValueAsString("font-emphasize", attrValue);
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextUnderlineColorMapper.java b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextUnderlineColorMapper.java
index e0b4e309a9bc..b6b3812a834e 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextUnderlineColorMapper.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextUnderlineColorMapper.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,19 +37,20 @@ import org.jfree.layouting.util.ColorUtil;
public class TextUnderlineColorMapper implements StyleMapper
{
- public TextUnderlineColorMapper ()
- {
- }
- public void updateStyle (final String uri,
- final String attrName,
- final String attrValue,
- final CSSDeclarationRule targetRule)
- {
- final CSSColorValue cv = (CSSColorValue) ColorUtil.parseColor(attrValue);
- if (cv != null)
+ public TextUnderlineColorMapper()
+ {
+ }
+
+ public void updateStyle(final String uri,
+ final String attrName,
+ final String attrValue,
+ final CSSDeclarationRule targetRule)
{
- targetRule.setPropertyValue(TextStyleKeys.TEXT_UNDERLINE_COLOR, cv);
+ final CSSColorValue cv = (CSSColorValue) ColorUtil.parseColor(attrValue);
+ if (cv != null)
+ {
+ targetRule.setPropertyValue(TextStyleKeys.TEXT_UNDERLINE_COLOR, cv);
+ }
}
- }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextUnderlineStyleMapper.java b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextUnderlineStyleMapper.java
index 70630674abbb..fcc4e8cc6a7a 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextUnderlineStyleMapper.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextUnderlineStyleMapper.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.OneOfConstantsMapper;
@@ -37,19 +35,17 @@ import org.jfree.layouting.input.style.keys.text.TextDecorationStyle;
public class TextUnderlineStyleMapper extends OneOfConstantsMapper
{
- public TextUnderlineStyleMapper ()
- {
- super(TextStyleKeys.TEXT_UNDERLINE_STYLE);
- addMapping("none", TextDecorationStyle.NONE);
- addMapping("solid", TextDecorationStyle.SOLID);
- addMapping("dotted", TextDecorationStyle.DOTTED);
- addMapping("dash", TextDecorationStyle.DASHED);
- addMapping("long-dash", TextDecorationStyle.LONG_DASH);
- addMapping("dot-dash", TextDecorationStyle.DOT_DASH);
- addMapping("dot-dot-dash", TextDecorationStyle.DOT_DOT_DASH);
- addMapping("wave", TextDecorationStyle.WAVE);
- }
-
-
+ public TextUnderlineStyleMapper()
+ {
+ super(TextStyleKeys.TEXT_UNDERLINE_STYLE);
+ addMapping("none", TextDecorationStyle.NONE);
+ addMapping("solid", TextDecorationStyle.SOLID);
+ addMapping("dotted", TextDecorationStyle.DOTTED);
+ addMapping("dash", TextDecorationStyle.DASHED);
+ addMapping("long-dash", TextDecorationStyle.LONG_DASH);
+ addMapping("dot-dash", TextDecorationStyle.DOT_DASH);
+ addMapping("dot-dot-dash", TextDecorationStyle.DOT_DOT_DASH);
+ addMapping("wave", TextDecorationStyle.WAVE);
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextUnderlineWordMode.java b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextUnderlineWordMode.java
index 3e2d879db846..aa23d66b131f 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextUnderlineWordMode.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextUnderlineWordMode.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.OneOfConstantsMapper;
@@ -37,12 +35,11 @@ import org.jfree.layouting.input.style.keys.text.TextStyleKeys;
public class TextUnderlineWordMode extends OneOfConstantsMapper
{
- public TextUnderlineWordMode ()
- {
- super(TextStyleKeys.TEXT_UNDERLINE_MODE);
- addMapping("continuous", TextDecorationMode.CONTINUOUS);
- addMapping("skip-white-space", TextDecorationMode.SKIP_WHITE_SPACE);
- }
-
+ public TextUnderlineWordMode()
+ {
+ super(TextStyleKeys.TEXT_UNDERLINE_MODE);
+ addMapping("continuous", TextDecorationMode.CONTINUOUS);
+ addMapping("skip-white-space", TextDecorationMode.SKIP_WHITE_SPACE);
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/VerticalAlignMapper.java b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/VerticalAlignMapper.java
index ad9ea12ac6fb..9b56b1ae14be 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/VerticalAlignMapper.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/parser/stylemapper/style/VerticalAlignMapper.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.OneOfConstantsMapper;
@@ -38,13 +36,14 @@ import org.jfree.layouting.input.style.values.CSSConstant;
public class VerticalAlignMapper extends OneOfConstantsMapper
{
- public VerticalAlignMapper ()
- {
- super (LineStyleKeys.VERTICAL_ALIGN);
- addMapping("top", new CSSConstant("top"));
- addMapping("bottom", new CSSConstant("bottom"));
- addMapping("middle", new CSSConstant("middle"));
- addMapping("baseline", new CSSConstant("baseline"));
- addMapping("auto", CSSAutoValue.getInstance());
- }
+
+ public VerticalAlignMapper()
+ {
+ super(LineStyleKeys.VERTICAL_ALIGN);
+ addMapping("top", new CSSConstant("top"));
+ addMapping("bottom", new CSSConstant("bottom"));
+ addMapping("middle", new CSSConstant("middle"));
+ addMapping("baseline", new CSSConstant("baseline"));
+ addMapping("auto", CSSAutoValue.getInstance());
+ }
}