1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 package com.sun.star.wizards.report; 24 25 import com.sun.star.lang.XMultiServiceFactory; 26 import com.sun.star.report.XReportDefinition; 27 28 /** 29 * This interface contains only one function to give access to the ReportDefinition. 30 * The ReportDefinition will be initialized very late, late after the ReportLayouters. 31 * So we need this interface for the late access. 32 * @author ll93751 33 */ 34 public interface IReportDefinitionReadAccess 35 { 36 37 /** 38 * Gives access to a ReportDefinition, if initialized. 39 * @return a ReportDefinition or null. 40 */ getReportDefinition()41 public XReportDefinition getReportDefinition(); /* should throw NullPointerException but does not. */ 42 43 44 /** 45 * This ServiceFactory is the 'global' Service Factory, which knows all and every thing in the program. 46 * @return the global service factory of the program 47 */ getGlobalMSF()48 public XMultiServiceFactory getGlobalMSF(); 49 50 /** 51 * Returns the file path to the default report definition, we need this name for early initialisation 52 * @return 53 */ getDefaultHeaderLayout()54 public String getDefaultHeaderLayout(); 55 } 56