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: XReportControlFormat.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_XReportControlFormat_idl__
31 #define __com_sun_star_report_XReportControlFormat_idl__
33 #include
<com
/sun
/star
/awt
/FontDescriptor.idl
>
34 #include
<com
/sun
/star
/awt
/FontSlant.idl
>
35 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
36 #include
<com
/sun
/star
/lang
/IllegalArgumentException.idl
>
37 #include
<com
/sun
/star
/lang
/Locale.idl
>
38 #include
<com
/sun
/star
/style
/ParagraphAdjust.idl
>
39 #include
<com
/sun
/star
/style
/VerticalAlignment.idl
>
40 #include
<com
/sun
/star
/util
/Color.idl
>
41 //=============================================================================
43 module com
{ module sun
{ module star
{ module report
{
45 //=============================================================================
46 /** specifies a format condition for a control.
48 interface XReportControlFormat
50 /** specifies the background color (RGB) of the control.
52 [attribute
,bound
] com
::sun
::star
::util
::Color ControlBackground
54 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
55 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
58 /** determines if the back ground color is set to transparent.
60 [attribute
,bound
] boolean ControlBackgroundTransparent
62 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
63 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
66 /** specifies the horizontal alignment of the text.
67 @see ::com::sun::star::style::ParagraphAdjust
69 [attribute
,bound
] short ParaAdjust
71 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
72 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
75 //-------------------------------------------------------------------------
77 /** specifies the font attributes of the text in the control.
79 [attribute
,bound
] com
::sun
::star
::awt
::FontDescriptor FontDescriptor
81 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
82 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
85 /** specifies the font attributes of the text in the control.
87 [attribute
,bound
] com
::sun
::star
::awt
::FontDescriptor FontDescriptorAsian
89 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
90 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
93 /** specifies the font attributes of the text in the control.
95 [attribute
,bound
] com
::sun
::star
::awt
::FontDescriptor FontDescriptorComplex
97 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
98 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
101 //-------------------------------------------------------------------------
103 /** specifies the <type scope="com::sun::star::text">FontEmphasis</type>
104 value of the text in the control.
106 [attribute
,bound
] short ControlTextEmphasis
108 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
109 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
112 /** contains the font emphasis value as <type scope="com::sun::star::text">FontEmphasis</type>.
114 [attribute
,bound
] short CharEmphasis
116 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
117 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
120 /** determins whether text is formatted in two lines.
121 <p>It is linked to the properties CharCombinePrefix and CharCombineSuffix.</p>
123 [attribute
,bound
] boolean CharCombineIsOn
125 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
126 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
128 //-------------------------------------------------------------------------
129 /** contains the prefix (usually parenthesis) before text that is formatted in two lines.
130 <p>It is linked to the properties CharCombineIsOn and CharCombineSuffix.</p>
132 [attribute
,bound
] string CharCombinePrefix
134 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
135 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
137 //-------------------------------------------------------------------------
138 /** contains the suffix (usually parenthesis) after text that is formatted in two lines.
139 <p>It is linked to the properties CharCombineIsOn and CharCombinePrefix.</p>
141 [attribute
,bound
] string CharCombineSuffix
143 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
144 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
147 /** If this optional property is <TRUE/>, then the characters are invisible.
151 [attribute
,bound
] boolean CharHidden
153 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
154 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
157 //-------------------------------------------------------------------------
158 /** specifies if the characters are formatted and
159 displayed with a shadow effect.
161 [attribute
,bound
] boolean CharShadowed
163 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
164 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
167 /** specifies if the characters are formatted and
168 displayed with a contour effect.
170 [attribute
,bound
] boolean CharContoured
172 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
173 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
176 /** optional property which contains the value of the case-mapping of the
177 text for formatting and displaying.
181 [attribute
,bound
] short CharCaseMap
183 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
184 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
187 /** contains the value of the locale.
189 [attribute
,bound
] com
::sun
::star
::lang
::Locale CharLocale
191 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
192 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
195 /** specifies the percentage of raisement/lowerment of superscript/subscript
198 <p>Negative values denote subscripts and positive values superscripts.</p>
200 [attribute
,bound
] short CharEscapement
202 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
203 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
206 /** This is the additional height used for subscript or superscript
207 characters in units of percent.
208 For subscript characters the value is negative and for
209 superscript characters positive.
211 [attribute
,bound
] byte CharEscapementHeight
213 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
214 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
217 /** optional property to determine whether the kerning tables from the current font are used.
218 <p>Automatic <em>kerning</em> applies a spacing in between certain
219 pairs of characters to make the text look better.</p>
221 [attribute
,bound
] boolean CharAutoKerning
223 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
224 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
227 /** optional property which contains the value of the kerning of the characters.
229 [attribute
,bound
] short CharKerning
231 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
232 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
235 /** If this optional property is <TRUE/>, then the characters are flashing.
237 [attribute
,bound
] boolean CharFlash
239 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
240 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
243 /** specifies the <type scope="com::sun::star::text">FontRelief</type>
244 value of the text in the control.
246 [attribute
,bound
] short CharRelief
248 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
249 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
252 /** This attribute specifies the name of the font style.
256 <p>It may contain more than one name separated by comma.</p>
258 [attribute
,bound
] string CharFontName
260 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
261 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
263 //-------------------------------------------------------------------------
265 /** This attribute contains the name of the font style.
267 <p>This attribute may be empty.</p>
269 [attribute
,bound
] string CharFontStyleName
271 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
272 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
274 //-------------------------------------------------------------------------
276 /** This attribute contains font family as specified in
277 com.sun.star.awt.FontFamily .
279 [attribute
,bound
] short CharFontFamily
281 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
282 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
284 //-------------------------------------------------------------------------
286 /** This attribute contains the text encoding of the font as specified in
287 com.sun.star.awt.CharSet.
289 [attribute
,bound
] short CharFontCharSet
291 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
292 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
294 //-------------------------------------------------------------------------
296 /** This attribute contains the font pitch as specified in com.sun.star.awt.FontPitch.
298 [attribute
,bound
] short CharFontPitch
300 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
301 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
304 /** specifies the text color (RGB) of the control.
306 [attribute
,bound
] com
::sun
::star
::util
::Color CharColor
308 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
309 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
312 //-------------------------------------------------------------------------
314 /** specifies the text line color (RGB) of the control.
316 [attribute
,bound
] com
::sun
::star
::util
::Color CharUnderlineColor
318 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
319 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
322 /** This value contains the height of the characters in point.
324 [attribute
,bound
] float CharHeight
326 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
327 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
330 //-------------------------------------------------------------------------
332 /** This attribute contains the value for the character underline.@see com::sun::star::awt::FontUnderline
334 [attribute
,bound
] short CharUnderline
336 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
337 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
340 //-------------------------------------------------------------------------
342 /** This attribute contains the value of the font weight.@see com::sun::star::awt::FontWeight
344 [attribute
,bound
] float CharWeight
346 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
347 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
350 //-------------------------------------------------------------------------
352 /** This attribute contains the value of the posture of the document.@see com::sun::star::awt::FontSlant
354 [attribute
,bound
] com
::sun
::star
::awt
::FontSlant CharPosture
356 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
357 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
360 //-------------------------------------------------------------------------
361 /** determins the type of the strike out of the character.
362 @see com.sun.star.awt.FontStrikeout
364 [attribute
,bound
] short CharStrikeout
366 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
367 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
370 /** If this attribute is <TRUE/>, the underline and strike-through
371 properties are not applied to white spaces.
373 [attribute
,bound
] boolean CharWordMode
375 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
376 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
379 /** determins the rotation of a character in degree.
380 <p>Depending on the implementation only certain values may be allowed.
383 [attribute
,bound
] short CharRotation
385 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
386 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
388 //-------------------------------------------------------------------------
390 /** determins the percentage value for scaling the width of characters.
392 <p>The value refers to the original width which is denoted by 100,
393 and it has to be greater than 0.</p>
396 [attribute
,bound
] short CharScaleWidth
398 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
399 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
402 /** specifies the vertical alignment of the text in the control.
403 @see com::sun::star::style::VerticalAlignment
405 [attribute
,bound
] com
::sun
::star
::style
::VerticalAlignment VerticalAlign
407 set raises
( com
::sun
::star
::lang
::IllegalArgumentException
,com
::sun
::star
::beans
::UnknownPropertyException
);
408 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
411 //-------------------------------------------------------------------------
412 /** contains the URL of a hyperlink (if set).
414 [attribute
,bound
] string HyperLinkURL
416 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
417 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
420 //-------------------------------------------------------------------------
421 /** contains the name of the target for a hyperlink (if set).
423 [attribute
,bound
] string HyperLinkTarget
425 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
426 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
429 //-------------------------------------------------------------------------
430 /** contains the name of the hyperlink (if set).
432 [attribute
,bound
] string HyperLinkName
434 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
435 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
438 //--------------------------------------------------------------------
439 /** contains the character style name for visited hyperlinks.
441 [attribute
,bound
] string VisitedCharStyleName
443 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
444 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
447 //--------------------------------------------------------------------
448 /** contains the character style name for unvisited hyperlinks.
450 [attribute
,bound
] string UnvisitedCharStyleName
452 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
453 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
455 /** This value contains the height of the characters in point.
457 [attribute
,bound
] float CharHeightAsian
459 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
460 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
462 //-------------------------------------------------------------------------
463 /** This property contains the value of the font weight.@see com::sun::star::awt::FontWeight
465 [attribute
,bound
] float CharWeightAsian
467 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
468 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
470 //-------------------------------------------------------------------------
471 /** This property specifies the name of the font style.
472 <p>It may contain more than one name separated by comma.</p>
474 [attribute
,bound
] string CharFontNameAsian
476 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
477 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
479 //-------------------------------------------------------------------------
480 /** This property contains the name of the font style.
481 <p>This property may be empty.</p>
483 [attribute
,bound
] string CharFontStyleNameAsian
485 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
486 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
488 //-------------------------------------------------------------------------
489 /** This property contains font family as specified in
490 com.sun.star.awt.FontFamily .
492 [attribute
,bound
] short CharFontFamilyAsian
494 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
495 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
497 //-------------------------------------------------------------------------
498 /** This property contains the text encoding of the font as specified in
499 com.sun.star.awt.CharSet.
501 [attribute
,bound
] short CharFontCharSetAsian
503 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
504 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
506 //-------------------------------------------------------------------------
507 /** This property contains the font pitch as specified in com.sun.star.awt.FontPitch.
509 [attribute
,bound
] short CharFontPitchAsian
511 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
512 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
514 //-------------------------------------------------------------------------
515 /** This property contains the value of the posture of the document.@see com::sun::star::awt::FontSlant
517 [attribute
,bound
] com
::sun
::star
::awt
::FontSlant CharPostureAsian
519 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
520 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
523 //-------------------------------------------------------------------------
524 /** contains the value of the locale.
526 [attribute
,bound
] com
::sun
::star
::lang
::Locale CharLocaleAsian
528 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
529 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
532 //-------------------------------------------------------------------------
533 /** This value contains the height of the characters in point.
535 [attribute
,bound
] float CharHeightComplex
537 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
538 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
540 //-------------------------------------------------------------------------
541 /** This property contains the value of the font weight.@see com::sun::star::awt::FontWeight
543 [attribute
,bound
] float CharWeightComplex
545 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
546 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
548 //-------------------------------------------------------------------------
549 /** This property specifies the name of the font style.
550 <p>It may contain more than one name separated by comma.</p>
552 [attribute
,bound
] string CharFontNameComplex
554 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
555 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
557 //-------------------------------------------------------------------------
558 /** This property contains the name of the font style.
559 <p>This property may be empty.</p>
561 [attribute
,bound
] string CharFontStyleNameComplex
564 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
565 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
567 //-------------------------------------------------------------------------
568 /** This property contains font family as specified in
569 com.sun.star.awt.FontFamily .
571 [attribute
,bound
] short CharFontFamilyComplex
573 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
574 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
576 //-------------------------------------------------------------------------
577 /** This property contains the text encoding of the font as specified in
578 com.sun.star.awt.CharSet.
580 [attribute
,bound
] short CharFontCharSetComplex
582 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
583 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
585 //-------------------------------------------------------------------------
586 /** This property contains the font pitch as specified in com.sun.star.awt.FontPitch.
588 [attribute
,bound
] short CharFontPitchComplex
590 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
591 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
593 //-------------------------------------------------------------------------
594 /** This property contains the value of the posture of the document.@see com::sun::star::awt::FontSlant
596 [attribute
,bound
] com
::sun
::star
::awt
::FontSlant CharPostureComplex
598 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
599 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
602 //-------------------------------------------------------------------------
603 /** contains the value of the locale.
605 [attribute
,bound
] com
::sun
::star
::lang
::Locale CharLocaleComplex
607 set raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
608 get raises
( com
::sun
::star
::beans
::UnknownPropertyException
);
612 service ReportControlFormat
: XReportControlFormat
;
613 //=============================================================================