1*b1cdbd2cSJim Jagielski/**************************************************************
2*b1cdbd2cSJim Jagielski *
3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski *
11*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski *
13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski * under the License.
19*b1cdbd2cSJim Jagielski *
20*b1cdbd2cSJim Jagielski *************************************************************/
21*b1cdbd2cSJim Jagielski
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_report_XSection_idl__
24*b1cdbd2cSJim Jagielski#define __com_sun_star_report_XSection_idl__
25*b1cdbd2cSJim Jagielski
26*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_container_XChild_idl__
27*b1cdbd2cSJim Jagielski#include <com/sun/star/container/XChild.idl>
28*b1cdbd2cSJim Jagielski#endif
29*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_drawing_XShapes_idl__
30*b1cdbd2cSJim Jagielski#include <com/sun/star/drawing/XShapes.idl>
31*b1cdbd2cSJim Jagielski#endif
32*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_container_XEnumerationAccess_idl__
33*b1cdbd2cSJim Jagielski#include <com/sun/star/container/XEnumerationAccess.idl>
34*b1cdbd2cSJim Jagielski#endif
35*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_container_XContainer_idl__
36*b1cdbd2cSJim Jagielski#include <com/sun/star/container/XContainer.idl>
37*b1cdbd2cSJim Jagielski#endif
38*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_util_Color_idl__
39*b1cdbd2cSJim Jagielski#include <com/sun/star/util/Color.idl>
40*b1cdbd2cSJim Jagielski#endif
41*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_beans_XPropertySet_idl__
42*b1cdbd2cSJim Jagielski#include <com/sun/star/beans/XPropertySet.idl>
43*b1cdbd2cSJim Jagielski#endif
44*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_report_XReportDefinition_idl__
45*b1cdbd2cSJim Jagielski#include <com/sun/star/report/XReportDefinition.idl>
46*b1cdbd2cSJim Jagielski#endif
47*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_report_XReportComponent_idl__
48*b1cdbd2cSJim Jagielski#include <com/sun/star/report/XReportComponent.idl>
49*b1cdbd2cSJim Jagielski#endif
50*b1cdbd2cSJim Jagielski//=============================================================================
51*b1cdbd2cSJim Jagielski
52*b1cdbd2cSJim Jagielski module com {  module sun {  module star {  module report {
53*b1cdbd2cSJim Jagielski published interface XGroup;
54*b1cdbd2cSJim Jagielski//=============================================================================
55*b1cdbd2cSJim Jagielski
56*b1cdbd2cSJim Jagielski/** identifies a <type>XSection</type> inside a report.
57*b1cdbd2cSJim Jagielski
58*b1cdbd2cSJim Jagielski    <p>A section acts like a container of report components. This generic
59*b1cdbd2cSJim Jagielski    construction allows the definition of hierarchies of reports and their
60*b1cdbd2cSJim Jagielski    dependent subreports.</p>
61*b1cdbd2cSJim Jagielski
62*b1cdbd2cSJim Jagielski    @see XReportDefinition
63*b1cdbd2cSJim Jagielski    @see XGroup
64*b1cdbd2cSJim Jagielski */
65*b1cdbd2cSJim Jagielskipublished interface XSection
66*b1cdbd2cSJim Jagielski{
67*b1cdbd2cSJim Jagielski    /** allows to navigate to group or report definition.
68*b1cdbd2cSJim Jagielski    */
69*b1cdbd2cSJim Jagielski    interface com::sun::star::container::XChild;
70*b1cdbd2cSJim Jagielski    /** allows to register listeners to be notified of changes in the container.
71*b1cdbd2cSJim Jagielski    */
72*b1cdbd2cSJim Jagielski    interface com::sun::star::container::XContainer;
73*b1cdbd2cSJim Jagielski
74*b1cdbd2cSJim Jagielski    /** gives access to the elements by index.
75*b1cdbd2cSJim Jagielski    */
76*b1cdbd2cSJim Jagielski    interface com::sun::star::drawing::XShapes;
77*b1cdbd2cSJim Jagielski
78*b1cdbd2cSJim Jagielski    /** creates an enumeration of the elements.
79*b1cdbd2cSJim Jagielski    */
80*b1cdbd2cSJim Jagielski    interface com::sun::star::container::XEnumerationAccess;
81*b1cdbd2cSJim Jagielski
82*b1cdbd2cSJim Jagielski    /** provides generic access to the instance properties
83*b1cdbd2cSJim Jagielski    */
84*b1cdbd2cSJim Jagielski    interface com::sun::star::beans::XPropertySet;
85*b1cdbd2cSJim Jagielski
86*b1cdbd2cSJim Jagielski    /** allows life-time control of sections.
87*b1cdbd2cSJim Jagielski     */
88*b1cdbd2cSJim Jagielski    interface com::sun::star::lang::XComponent;
89*b1cdbd2cSJim Jagielski
90*b1cdbd2cSJim Jagielski    //-------------------------------------------------------------------------
91*b1cdbd2cSJim Jagielski
92*b1cdbd2cSJim Jagielski    /** Defines if the section should be visible in report.
93*b1cdbd2cSJim Jagielski    */
94*b1cdbd2cSJim Jagielski    [attribute,bound] boolean Visible;
95*b1cdbd2cSJim Jagielski
96*b1cdbd2cSJim Jagielski    /** Defines the name of the section.
97*b1cdbd2cSJim Jagielski    */
98*b1cdbd2cSJim Jagielski    [attribute,bound] string Name;
99*b1cdbd2cSJim Jagielski
100*b1cdbd2cSJim Jagielski    /** Defines the height of the section.
101*b1cdbd2cSJim Jagielski    */
102*b1cdbd2cSJim Jagielski    [attribute,bound] unsigned long Height;
103*b1cdbd2cSJim Jagielski
104*b1cdbd2cSJim Jagielski    /** Defines the back ground color of the section.
105*b1cdbd2cSJim Jagielski    */
106*b1cdbd2cSJim Jagielski    [attribute,bound] com::sun::star::util::Color BackColor;
107*b1cdbd2cSJim Jagielski
108*b1cdbd2cSJim Jagielski    /** determines if the back ground color is set to transparent.
109*b1cdbd2cSJim Jagielski     */
110*b1cdbd2cSJim Jagielski    [attribute,bound] boolean BackTransparent;
111*b1cdbd2cSJim Jagielski
112*b1cdbd2cSJim Jagielski    /** Defines the expression which is executed before printing the section.
113*b1cdbd2cSJim Jagielski        If the return value of the expression is <TRUE/> then the section will be printed.
114*b1cdbd2cSJim Jagielski    */
115*b1cdbd2cSJim Jagielski    [attribute,bound] string ConditionalPrintExpression;
116*b1cdbd2cSJim Jagielski
117*b1cdbd2cSJim Jagielski    /** Specifies wether the section is printed on a separate page.
118*b1cdbd2cSJim Jagielski        <p>Not valid for page header or page footer.</p>
119*b1cdbd2cSJim Jagielski        @see ForceNewPage
120*b1cdbd2cSJim Jagielski    */
121*b1cdbd2cSJim Jagielski    [attribute,bound] short ForceNewPage
122*b1cdbd2cSJim Jagielski    {
123*b1cdbd2cSJim Jagielski        set raises ( com::sun::star::lang::IllegalArgumentException,com::sun::star::beans::UnknownPropertyException );
124*b1cdbd2cSJim Jagielski        get raises ( com::sun::star::beans::UnknownPropertyException );
125*b1cdbd2cSJim Jagielski    };
126*b1cdbd2cSJim Jagielski
127*b1cdbd2cSJim Jagielski    /** Specifies wether the section is printed in a new row or column within a multi column report.
128*b1cdbd2cSJim Jagielski        <p>Not valid for page header or page footer.</p>
129*b1cdbd2cSJim Jagielski        @see ForceNewPage
130*b1cdbd2cSJim Jagielski    */
131*b1cdbd2cSJim Jagielski    [attribute,bound] short NewRowOrCol
132*b1cdbd2cSJim Jagielski    {
133*b1cdbd2cSJim Jagielski        set raises ( com::sun::star::lang::IllegalArgumentException,com::sun::star::beans::UnknownPropertyException );
134*b1cdbd2cSJim Jagielski        get raises ( com::sun::star::beans::UnknownPropertyException );
135*b1cdbd2cSJim Jagielski    };
136*b1cdbd2cSJim Jagielski
137*b1cdbd2cSJim Jagielski    /** Specifies that the section is printed on one page.
138*b1cdbd2cSJim Jagielski    <p>Not valid for page header or page footer.</p>
139*b1cdbd2cSJim Jagielski    */
140*b1cdbd2cSJim Jagielski    [attribute,bound] boolean KeepTogether
141*b1cdbd2cSJim Jagielski    {
142*b1cdbd2cSJim Jagielski        set raises ( com::sun::star::lang::IllegalArgumentException,com::sun::star::beans::UnknownPropertyException );
143*b1cdbd2cSJim Jagielski        get raises ( com::sun::star::beans::UnknownPropertyException );
144*b1cdbd2cSJim Jagielski    };
145*b1cdbd2cSJim Jagielski
146*b1cdbd2cSJim Jagielski    /** Specifies that elements with dynamic state will be expanded vertically when then content of the element is larger than it's container.
147*b1cdbd2cSJim Jagielski        If this property is disabled the content will be truncated when it's size is larger than the container.
148*b1cdbd2cSJim Jagielski    */
149*b1cdbd2cSJim Jagielski    [attribute,bound] boolean CanGrow
150*b1cdbd2cSJim Jagielski    {
151*b1cdbd2cSJim Jagielski        set raises ( com::sun::star::lang::IllegalArgumentException,com::sun::star::beans::UnknownPropertyException );
152*b1cdbd2cSJim Jagielski        get raises ( com::sun::star::beans::UnknownPropertyException );
153*b1cdbd2cSJim Jagielski    };
154*b1cdbd2cSJim Jagielski
155*b1cdbd2cSJim Jagielski/**
156*b1cdbd2cSJim Jagielski  <p>Represents ...</p>
157*b1cdbd2cSJim Jagielski
158*b1cdbd2cSJim Jagielski */
159*b1cdbd2cSJim Jagielski    [attribute,bound] boolean CanShrink
160*b1cdbd2cSJim Jagielski    {
161*b1cdbd2cSJim Jagielski        set raises ( com::sun::star::lang::IllegalArgumentException,com::sun::star::beans::UnknownPropertyException );
162*b1cdbd2cSJim Jagielski        get raises ( com::sun::star::beans::UnknownPropertyException );
163*b1cdbd2cSJim Jagielski    };
164*b1cdbd2cSJim Jagielski
165*b1cdbd2cSJim Jagielski    /** Defines that the group header should be repeated on the next page when a group spans more than one page.
166*b1cdbd2cSJim Jagielski        It only applies to group headers.
167*b1cdbd2cSJim Jagielski    */
168*b1cdbd2cSJim Jagielski    [attribute,bound] boolean RepeatSection
169*b1cdbd2cSJim Jagielski    {
170*b1cdbd2cSJim Jagielski        set raises ( com::sun::star::lang::IllegalArgumentException,com::sun::star::beans::UnknownPropertyException );
171*b1cdbd2cSJim Jagielski        get raises ( com::sun::star::beans::UnknownPropertyException );
172*b1cdbd2cSJim Jagielski    };
173*b1cdbd2cSJim Jagielski
174*b1cdbd2cSJim Jagielski    /** Specifies the parent of the section if it is a group header or group footer.
175*b1cdbd2cSJim Jagielski    */
176*b1cdbd2cSJim Jagielski    [attribute,readonly] com::sun::star::report::XGroup Group;
177*b1cdbd2cSJim Jagielski
178*b1cdbd2cSJim Jagielski    /** Specifies the parent of the section if it is a page header or page footer.
179*b1cdbd2cSJim Jagielski    */
180*b1cdbd2cSJim Jagielski    [attribute,readonly] com::sun::star::report::XReportDefinition ReportDefinition;
181*b1cdbd2cSJim Jagielski};
182*b1cdbd2cSJim Jagielski
183*b1cdbd2cSJim Jagielskiservice Section : XSection;
184*b1cdbd2cSJim Jagielski//=============================================================================
185*b1cdbd2cSJim Jagielski
186*b1cdbd2cSJim Jagielski}; }; }; };
187*b1cdbd2cSJim Jagielski
188*b1cdbd2cSJim Jagielski/*=============================================================================
189*b1cdbd2cSJim Jagielski
190*b1cdbd2cSJim Jagielski=============================================================================*/
191*b1cdbd2cSJim Jagielski#endif
192