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