xref: /aoo41x/main/offapi/com/sun/star/style/Style.idl (revision 96af39f7)
1d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
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
10d1766043SAndrew Rist *
11d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12d1766043SAndrew Rist *
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.
19d1766043SAndrew Rist *
20d1766043SAndrew Rist *************************************************************/
21d1766043SAndrew Rist
22d1766043SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_style_Style_idl__
24cdf0e10cSrcweir#define __com_sun_star_style_Style_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_style_XStyle_idl__
27cdf0e10cSrcweir#include <com/sun/star/style/XStyle.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertySet_idl__
31cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl>
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir#ifndef __com_sun_star_beans_XMultiPropertySet_idl__
34cdf0e10cSrcweir#include <com/sun/star/beans/XMultiPropertySet.idl>
35cdf0e10cSrcweir#endif
36cdf0e10cSrcweir#ifndef __com_sun_star_beans_XMultiPropertyStates_idl__
37cdf0e10cSrcweir#include <com/sun/star/beans/XMultiPropertyStates.idl>
38cdf0e10cSrcweir#endif
39cdf0e10cSrcweir#ifndef __com_sun_star_beans_NamedValue_idl__
40cdf0e10cSrcweir#include <com/sun/star/beans/NamedValue.idl>
41cdf0e10cSrcweir#endif
42cdf0e10cSrcweir#ifndef _com_sun_star_xml_UserDefinedAttributesSupplier_idl_
43cdf0e10cSrcweir#include <com/sun/star/xml/UserDefinedAttributesSupplier.idl>
44cdf0e10cSrcweir#endif
45cdf0e10cSrcweir
46cdf0e10cSrcweir
47cdf0e10cSrcweir//=============================================================================
48cdf0e10cSrcweir
49cdf0e10cSrcweir module com {  module sun {  module star {  module style {
50cdf0e10cSrcweir
51cdf0e10cSrcweir//=============================================================================
52cdf0e10cSrcweir
53cdf0e10cSrcweir/** This service specifies a single style sheet.
54cdf0e10cSrcweir */
55cdf0e10cSrcweirpublished service Style
56cdf0e10cSrcweir{
57cdf0e10cSrcweir    //-------------------------------------------------------------------------
58cdf0e10cSrcweir    /** contains user defined attributes.
59cdf0e10cSrcweir
60cdf0e10cSrcweir        @see    <type scope="com::sun::star::xml">UserDefinedAttributesSupplier</type>
61cdf0e10cSrcweir     */
62cdf0e10cSrcweir    [optional] service com::sun::star::xml::UserDefinedAttributesSupplier;
63cdf0e10cSrcweir
64cdf0e10cSrcweir    //-------------------------------------------------------------------------
65cdf0e10cSrcweir
66cdf0e10cSrcweir    interface com::sun::star::style::XStyle;
67cdf0e10cSrcweir
68cdf0e10cSrcweir        interface com::sun::star::beans::XPropertySet;
69cdf0e10cSrcweir
70cdf0e10cSrcweir        [optional] interface com::sun::star::beans::XMultiPropertySet;
71cdf0e10cSrcweir
72cdf0e10cSrcweir	/* This optional interface is available as an optimisation, allowing users
73cdf0e10cSrcweir	   to use 'setAllPropertiesToDefault', for example. */
74cdf0e10cSrcweir    //-------------------------------------------------------------------------
75cdf0e10cSrcweir
76cdf0e10cSrcweir    [optional] interface com::sun::star::beans::XMultiPropertyStates;
77cdf0e10cSrcweir
78cdf0e10cSrcweir    //-------------------------------------------------------------------------
79cdf0e10cSrcweir
80cdf0e10cSrcweir	/** determines if a style is physically created.
81cdf0e10cSrcweir
82cdf0e10cSrcweir		<p> Built in styles may not be created until they are needed.
83cdf0e10cSrcweir		To prevent standard style properties from being exported, it may be
84cdf0e10cSrcweir		useful to check if the style is created first.
85cdf0e10cSrcweir		</p>
86cdf0e10cSrcweir	 */
87cdf0e10cSrcweir	[optional, readonly, property] boolean IsPhysical;
88cdf0e10cSrcweir	//-------------------------------------------------------------------------
89cdf0e10cSrcweir
90cdf0e10cSrcweir	/** contains the name of the style that is applied to the next paragraph.
91cdf0e10cSrcweir
92cdf0e10cSrcweir		<p> This property is usually available at paragraph styles only. </p>
93cdf0e10cSrcweir	 */
94cdf0e10cSrcweir    [optional, property] string FollowStyle;
95cdf0e10cSrcweir	//-------------------------------------------------------------------------
96cdf0e10cSrcweir
97cdf0e10cSrcweir	/** contains the name of the style as it is displayed in the user interface.
98cdf0e10cSrcweir
99cdf0e10cSrcweir		<p> The names of the styles at the API are language independent. The user interface
100cdf0e10cSrcweir		names are localised.</p>
101cdf0e10cSrcweir	 */
102cdf0e10cSrcweir	[optional, readonly, property] string DisplayName;
103cdf0e10cSrcweir	//-------------------------------------------------------------------------
104cdf0e10cSrcweir
105cdf0e10cSrcweir	/** determines if a style is automatically updated, if the properties of an object
106cdf0e10cSrcweir		that the style is applied to are changed.
107cdf0e10cSrcweir
108cdf0e10cSrcweir		<p> For example, if the style is applied to a paragraph and the properties of the paragraph
109cdf0e10cSrcweir		are changed then the style will be updated accordingly.</p>
110cdf0e10cSrcweir	 */
111cdf0e10cSrcweir	[optional, property] string IsAutoUpdate;
112cdf0e10cSrcweir    //-------------------------------------------------------------------------
113cdf0e10cSrcweir
114cdf0e10cSrcweir    /** defines the context and styles for conditional paragraphs.
115cdf0e10cSrcweir
116cdf0e10cSrcweir        <p>This property is only available if the style is a conditional
117cdf0e10cSrcweir        paragraph style.</p>
118cdf0e10cSrcweir
119cdf0e10cSrcweir        <p>The sequence consists of pairs where the name part of the pair
120cdf0e10cSrcweir        defines the context where it should be applied and the value part
121cdf0e10cSrcweir        is a string naming the style to be used in that context.</p>
122cdf0e10cSrcweir
123cdf0e10cSrcweir        <p>Assigning an empty string to the style name will disable
124cdf0e10cSrcweir        the conditional style for that context.</p>
125cdf0e10cSrcweir
126cdf0e10cSrcweir        <p>The alowed strings (contexts) for the name part of an entry
127cdf0e10cSrcweir        of the sequence are:</p>
128cdf0e10cSrcweir
129cdf0e10cSrcweir        <ul>
130cdf0e10cSrcweir            <li>TableHeader</li>
131cdf0e10cSrcweir            <li>Table</li>
132cdf0e10cSrcweir            <li>Frame</li>
133cdf0e10cSrcweir            <li>Section</li>
134cdf0e10cSrcweir            <li>Footnote</li>
135cdf0e10cSrcweir            <li>Endnote</li>
136cdf0e10cSrcweir            <li>Header</li>
137cdf0e10cSrcweir            <li>Footer</li>
138cdf0e10cSrcweir            <li>OutlineLevel1</li>
139cdf0e10cSrcweir            <li>OutlineLevel2</li>
140cdf0e10cSrcweir            <li>OutlineLevel3</li>
141cdf0e10cSrcweir            <li>OutlineLevel4</li>
142cdf0e10cSrcweir            <li>OutlineLevel5</li>
143cdf0e10cSrcweir            <li>OutlineLevel6</li>
144cdf0e10cSrcweir            <li>OutlineLevel7</li>
145cdf0e10cSrcweir            <li>OutlineLevel8</li>
146cdf0e10cSrcweir            <li>OutlineLevel9</li>
147cdf0e10cSrcweir            <li>OutlineLevel10</li>
148cdf0e10cSrcweir            <li>NumberingLevel1</li>
149cdf0e10cSrcweir            <li>NumberingLevel2</li>
150cdf0e10cSrcweir            <li>NumberingLevel3</li>
151cdf0e10cSrcweir            <li>NumberingLevel4</li>
152cdf0e10cSrcweir            <li>NumberingLevel5</li>
153cdf0e10cSrcweir            <li>NumberingLevel6</li>
154cdf0e10cSrcweir            <li>NumberingLevel7</li>
155cdf0e10cSrcweir            <li>NumberingLevel8</li>
156cdf0e10cSrcweir            <li>NumberingLevel9</li>
157cdf0e10cSrcweir            <li>NumberingLevel10</li>
158cdf0e10cSrcweir        </ul>
159cdf0e10cSrcweir
160cdf0e10cSrcweir
161*96af39f7SJürgen Schmidt        @since OpenOffice 2.0.1
162cdf0e10cSrcweir     */
163cdf0e10cSrcweir    [optional, property] sequence< com::sun::star::beans::NamedValue > ParaStyleConditions;
164cdf0e10cSrcweir
165cdf0e10cSrcweir};
166cdf0e10cSrcweir
167cdf0e10cSrcweir//=============================================================================
168cdf0e10cSrcweir
169cdf0e10cSrcweir}; }; }; };
170cdf0e10cSrcweir#endif
171