1d1766043SAndrew Rist/**************************************************************
2*11774565Smseidel *
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
10*11774565Smseidel *
11d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*11774565Smseidel *
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.
19*11774565Smseidel *
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
45*11774565Smseidel module com { module sun { module star { module report {
46cdf0e10cSrcweir
47cdf0e10cSrcweir//=============================================================================
48cdf0e10cSrcweirpublished interface XReportControlModel
49cdf0e10cSrcweir{
50*11774565Smseidel	/** allows the creation of sub reports.
51*11774565Smseidel	*/
52*11774565Smseidel	interface XReportComponent;
53*11774565Smseidel
54*11774565Smseidel	interface XReportControlFormat;
55*11774565Smseidel
56*11774565Smseidel	/** allows to register listeners to be notified of changes in the container.
57*11774565Smseidel	*/
58*11774565Smseidel	interface com::sun::star::container::XContainer;
59*11774565Smseidel
60*11774565Smseidel	/** gives access to the <type scope="com::sun::star::report">XFormatCondition</type> elements by index.
61*11774565Smseidel	*/
62*11774565Smseidel	interface com::sun::star::container::XIndexContainer;
63*11774565Smseidel
64*11774565Smseidel	/** Creates a format condition.
65*11774565Smseidel		@return
66*11774565Smseidel			   report component
67*11774565Smseidel	*/
68*11774565Smseidel	XFormatCondition createFormatCondition() raises( com::sun::star::uno::Exception );
69*11774565Smseidel
70*11774565Smseidel
71*11774565Smseidel	/** Specifies which content should be shown.
72*11774565Smseidel		The value can be <br/>
73*11774565Smseidel		<li>the name of a database column. The format to use is field:[name] </li>
74*11774565Smseidel		<li>the name of a function defined in the report or a group. The format to use is rpt:[functionName]</li>
75*11774565Smseidel		<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
79*11774565Smseidel	*/
80*11774565Smseidel	[attribute,bound] string DataField
81*11774565Smseidel	{
82*11774565Smseidel		set raises ( com::sun::star::lang::IllegalArgumentException,com::sun::star::beans::UnknownPropertyException );
83*11774565Smseidel		get raises ( com::sun::star::beans::UnknownPropertyException );
84*11774565Smseidel	};
85*11774565Smseidel
86*11774565Smseidel	/** Specifies that the element gets printed when the group changes.
87*11774565Smseidel		The default value is <FALSE/>.
88*11774565Smseidel	*/
89*11774565Smseidel	[attribute,bound] boolean PrintWhenGroupChange
90*11774565Smseidel	{
91*11774565Smseidel		set raises ( com::sun::star::beans::UnknownPropertyException );
92*11774565Smseidel		get raises ( com::sun::star::beans::UnknownPropertyException );
93*11774565Smseidel	};
94*11774565Smseidel
95*11774565Smseidel	/** Describes the print expression of the report control model.
96*11774565Smseidel		If the expression evaluates to true than the report control model will be printed otherwise not.
97*11774565Smseidel	*/
98*11774565Smseidel	[attribute,bound] string ConditionalPrintExpression
99*11774565Smseidel	{
100*11774565Smseidel		set raises ( com::sun::star::beans::UnknownPropertyException );
101*11774565Smseidel		get raises ( com::sun::star::beans::UnknownPropertyException );
102*11774565Smseidel	};
103cdf0e10cSrcweir};
104cdf0e10cSrcweir
105cdf0e10cSrcweir//=============================================================================
106cdf0e10cSrcweir
107cdf0e10cSrcweir}; }; }; };
108cdf0e10cSrcweir
109cdf0e10cSrcweir/*=============================================================================
110cdf0e10cSrcweir
111cdf0e10cSrcweir=============================================================================*/
112cdf0e10cSrcweir#endif
113*11774565Smseidel
114