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