summaryrefslogtreecommitdiff
path: root/reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceDeclsSection.java
diff options
context:
space:
mode:
Diffstat (limited to 'reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceDeclsSection.java')
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceDeclsSection.java49
1 files changed, 23 insertions, 26 deletions
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceDeclsSection.java b/reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceDeclsSection.java
index 9b509b0b0157..96e9eed7c2fe 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceDeclsSection.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceDeclsSection.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import java.util.HashMap;
@@ -45,34 +43,33 @@ import org.jfree.report.structure.Element;
*/
public class FontFaceDeclsSection extends Element
{
- private final Map fontFaces;
- public FontFaceDeclsSection()
- {
- fontFaces = new HashMap();
- setType("font-face-decls");
- setNamespace(OfficeNamespaces.OFFICE_NS);
- }
+ private final Map fontFaces;
- public void addFontFace(final FontFaceElement style)
- {
- fontFaces.put (style.getStyleName(), style);
- }
+ public FontFaceDeclsSection()
+ {
+ fontFaces = new HashMap();
+ setType("font-face-decls");
+ setNamespace(OfficeNamespaces.OFFICE_NS);
+ }
- public FontFaceElement getFontFace (final String name)
- {
- return (FontFaceElement) fontFaces.get(name);
- }
+ public void addFontFace(final FontFaceElement style)
+ {
+ fontFaces.put(style.getStyleName(), style);
+ }
- public FontFaceElement[] getAllFontFaces()
- {
- return (FontFaceElement[]) fontFaces.values().toArray
- (new FontFaceElement[fontFaces.size()]);
- }
+ public FontFaceElement getFontFace(final String name)
+ {
+ return (FontFaceElement) fontFaces.get(name);
+ }
+ public FontFaceElement[] getAllFontFaces()
+ {
+ return (FontFaceElement[]) fontFaces.values().toArray(new FontFaceElement[fontFaces.size()]);
+ }
- public boolean containsFont(final String fontName)
- {
- return fontFaces.containsKey(fontName);
- }
+ public boolean containsFont(final String fontName)
+ {
+ return fontFaces.containsKey(fontName);
+ }
}