1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XReportControlModel.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_report_XReportControlModel_idl__
31 #define __com_sun_star_report_XReportControlModel_idl__
33 #ifndef __com_sun_star_report_XReportComponent_idl__
34 #include
<com
/sun
/star
/report
/XReportComponent.idl
>
36 #ifndef __com_sun_star_report_XReportControlFormat_idl__
37 #include
<com
/sun
/star
/report
/XReportControlFormat.idl
>
39 #ifndef __com_sun_star_container_XContainer_idl__
40 #include
<com
/sun
/star
/container
/XContainer.idl
>
42 #ifndef __com_sun_star_container_XIndexContainer_idl__
43 #include
<com
/sun
/star
/container
/XIndexContainer.idl
>
45 #ifndef __com_sun_star_report_XFormatCondition_idl__
46 #include
<com
/sun
/star
/report
/XFormatCondition.idl
>
48 //=============================================================================
50 module com
{ module sun
{ module star
{ module report
{
52 //=============================================================================
53 interface XReportControlModel
55 /** allows the creation of sub reports.
57 interface XReportComponent
;
59 interface XReportControlFormat
;
61 /** allows to register listeners to be notified of changes in the container.
63 interface com
::sun
::star
::container
::XContainer
;
65 /** gives access to the <type scope="com::sun::star::report">XFormatCondition</type> elements by index.
67 interface com
::sun
::star
::container
::XIndexContainer
;
69 /** Creates a format condition.
73 XFormatCondition createFormatCondition
() raises
( com
::sun
::star
::uno
::Exception
);
76 /** Specifies which content should be shown.
77 The value can be <br/>
78 <li>the name of a database column. The format to use is field:[name] </li>
79 <li>the name of a function defined in the report or a group. The format to use is rpt:[functionName]</li>
80 <li>an expression like rpt:24+24-47</li>
81 @see http://wiki.services.openoffice.org/wiki/SUN_Report_Builder
82 @see http://wiki.services.openoffice.org/wiki/SUN_Report_Builder#Syntax
83 @see http://wiki.services.openoffice.org/wiki/Base/Reports/Functions
85 [attribute
,bound
] string DataField
87 set raises
( com
::sun
::star
::lang
::IllegalArgumentException
,com
::sun
::star
::beans
::UnknownPropertyException
);
88 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
91 /** Specifies that the element gets printed when the group changes.
92 The default value is <FALSE/>.
94 [attribute
,bound
] boolean PrintWhenGroupChange
96 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
97 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
100 /** Describes the print expression of the report control model.
101 If the expression evaluates to true than the report control model will be printed otherwise not.
103 [attribute
,bound
] string ConditionalPrintExpression
105 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
106 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
110 service ReportControlModel
: XReportControlModel
;
111 //=============================================================================
115 /*=============================================================================
117 =============================================================================*/