summaryrefslogtreecommitdiff
path: root/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeMasterStyles.java
diff options
context:
space:
mode:
Diffstat (limited to 'reportbuilder/java/com/sun/star/report/pentaho/model/OfficeMasterStyles.java')
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/OfficeMasterStyles.java54
1 files changed, 26 insertions, 28 deletions
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeMasterStyles.java b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeMasterStyles.java
index fed1f04db958..866a604c3f9f 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeMasterStyles.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeMasterStyles.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import java.util.HashMap;
@@ -51,37 +49,37 @@ import org.jfree.report.structure.Section;
*/
public class OfficeMasterStyles extends Element
{
- private final Map masterPages;
- private final Section otherNodes;
- public OfficeMasterStyles()
- {
- masterPages = new HashMap();
- otherNodes = new Section();
- }
+ private final Map masterPages;
+ private final Section otherNodes;
- public void addMasterPage (final OfficeMasterPage masterPage)
- {
- if (masterPage == null)
+ public OfficeMasterStyles()
{
- throw new NullPointerException();
+ masterPages = new HashMap();
+ otherNodes = new Section();
}
- this.masterPages.put(masterPage.getStyleName(), masterPage);
- }
- public OfficeMasterPage getMasterPage (final String name)
- {
- return (OfficeMasterPage) masterPages.get (name);
- }
+ public void addMasterPage(final OfficeMasterPage masterPage)
+ {
+ if (masterPage == null)
+ {
+ throw new NullPointerException();
+ }
+ this.masterPages.put(masterPage.getStyleName(), masterPage);
+ }
- public OfficeMasterPage[] getAllMasterPages()
- {
- return (OfficeMasterPage[]) masterPages.values().toArray
- (new OfficeMasterPage[masterPages.size()]);
- }
+ public OfficeMasterPage getMasterPage(final String name)
+ {
+ return (OfficeMasterPage) masterPages.get(name);
+ }
- public Section getOtherNodes()
- {
- return otherNodes;
- }
+ public OfficeMasterPage[] getAllMasterPages()
+ {
+ return (OfficeMasterPage[]) masterPages.values().toArray(new OfficeMasterPage[masterPages.size()]);
+ }
+
+ public Section getOtherNodes()
+ {
+ return otherNodes;
+ }
}