xref: /trunk/main/offapi/com/sun/star/report/XReportControlModel.idl (revision 33c8d0882db58659e9da530f2ab4f758fe1a9a4b)
1d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5d1766043SAndrew Rist * distributed with this work for additional information
6d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14d1766043SAndrew Rist * software distributed under the License is distributed on an
15d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17d1766043SAndrew Rist * specific language governing permissions and limitations
18d1766043SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20d1766043SAndrew Rist *************************************************************/
21d1766043SAndrew Rist
22d1766043SAndrew Rist
23*11774565Smseidel
24cdf0e10cSrcweir#ifndef __com_sun_star_report_XReportControlModel_idl__
25cdf0e10cSrcweir#define __com_sun_star_report_XReportControlModel_idl__
26cdf0e10cSrcweir
27cdf0e10cSrcweir#ifndef __com_sun_star_report_XReportComponent_idl__
28cdf0e10cSrcweir#include <com/sun/star/report/XReportComponent.idl>
29cdf0e10cSrcweir#endif
30cdf0e10cSrcweir#ifndef __com_sun_star_report_XReportControlFormat_idl__
31cdf0e10cSrcweir#include <com/sun/star/report/XReportControlFormat.idl>
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir#ifndef __com_sun_star_container_XContainer_idl__
34cdf0e10cSrcweir#include <com/sun/star/container/XContainer.idl>
35cdf0e10cSrcweir#endif
36cdf0e10cSrcweir#ifndef __com_sun_star_container_XIndexContainer_idl__
37cdf0e10cSrcweir#include <com/sun/star/container/XIndexContainer.idl>
38cdf0e10cSrcweir#endif
39cdf0e10cSrcweir#ifndef __com_sun_star_report_XFormatCondition_idl__
40cdf0e10cSrcweir#include <com/sun/star/report/XFormatCondition.idl>
41cdf0e10cSrcweir#endif
42*11774565Smseidel
43cdf0e10cSrcweir//=============================================================================
44cdf0e10cSrcweir
45cdf0e10cSrcweir module com { module sun { module star { module report {
46cdf0e10cSrcweir
47cdf0e10cSrcweir//=============================================================================
48cdf0e10cSrcweirpublished interface XReportControlModel
49cdf0e10cSrcweir{
50cdf0e10cSrcweir    /** allows the creation of sub reports.
51cdf0e10cSrcweir    */
52cdf0e10cSrcweir    interface XReportComponent;
53cdf0e10cSrcweir
54cdf0e10cSrcweir    interface XReportControlFormat;
55cdf0e10cSrcweir
56cdf0e10cSrcweir    /** allows to register listeners to be notified of changes in the container.
57cdf0e10cSrcweir    */
58cdf0e10cSrcweir    interface com::sun::star::container::XContainer;
59cdf0e10cSrcweir
60cdf0e10cSrcweir    /** gives access to the <type scope="com::sun::star::report">XFormatCondition</type> elements by index.
61cdf0e10cSrcweir    */
62cdf0e10cSrcweir    interface com::sun::star::container::XIndexContainer;
63cdf0e10cSrcweir
64cdf0e10cSrcweir    /** Creates a format condition.
65cdf0e10cSrcweir        @return
66cdf0e10cSrcweir               report component
67cdf0e10cSrcweir    */
68cdf0e10cSrcweir    XFormatCondition createFormatCondition() raises( com::sun::star::uno::Exception );
69cdf0e10cSrcweir
70cdf0e10cSrcweir
71cdf0e10cSrcweir    /** Specifies which content should be shown.
72cdf0e10cSrcweir        The value can be <br/>
73cdf0e10cSrcweir        <li>the name of a database column. The format to use is field:[name] </li>
74cdf0e10cSrcweir        <li>the name of a function defined in the report or a group. The format to use is rpt:[functionName]</li>
75cdf0e10cSrcweir        <li>an expression like rpt:24+24-47</li>
76*11774565Smseidel        @see https://wiki.openoffice.org/wiki/SUN_Report_Builder
77*11774565Smseidel        @see https://wiki.openoffice.org/wiki/SUN_Report_Builder#Syntax
78*11774565Smseidel        @see https://wiki.openoffice.org/wiki/Base/Reports/Functions
79cdf0e10cSrcweir    */
80cdf0e10cSrcweir    [attribute,bound] string DataField
81cdf0e10cSrcweir    {
82cdf0e10cSrcweir        set raises ( com::sun::star::lang::IllegalArgumentException,com::sun::star::beans::UnknownPropertyException );
83cdf0e10cSrcweir        get raises ( com::sun::star::beans::UnknownPropertyException );
84cdf0e10cSrcweir    };
85cdf0e10cSrcweir
86cdf0e10cSrcweir    /** Specifies that the element gets printed when the group changes.
87cdf0e10cSrcweir        The default value is <FALSE/>.
88cdf0e10cSrcweir    */
89cdf0e10cSrcweir    [attribute,bound] boolean PrintWhenGroupChange
90cdf0e10cSrcweir    {
91cdf0e10cSrcweir        set raises ( com::sun::star::beans::UnknownPropertyException );
92cdf0e10cSrcweir        get raises ( com::sun::star::beans::UnknownPropertyException );
93cdf0e10cSrcweir    };
94cdf0e10cSrcweir
95cdf0e10cSrcweir    /** Describes the print expression of the report control model.
96cdf0e10cSrcweir        If the expression evaluates to true than the report control model will be printed otherwise not.
97cdf0e10cSrcweir    */
98cdf0e10cSrcweir    [attribute,bound] string ConditionalPrintExpression
99cdf0e10cSrcweir    {
100cdf0e10cSrcweir        set raises ( com::sun::star::beans::UnknownPropertyException );
101cdf0e10cSrcweir        get raises ( com::sun::star::beans::UnknownPropertyException );
102cdf0e10cSrcweir    };
103cdf0e10cSrcweir};
104cdf0e10cSrcweir
105cdf0e10cSrcweir//=============================================================================
106cdf0e10cSrcweir
107cdf0e10cSrcweir}; }; }; };
108cdf0e10cSrcweir
109cdf0e10cSrcweir/*=============================================================================
110cdf0e10cSrcweir
111cdf0e10cSrcweir=============================================================================*/
112cdf0e10cSrcweir#endif
113