1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef com_sun_star_style_XStyleSupplier_idl
24#define com_sun_star_style_XStyleSupplier_idl
25
26#ifndef __com_sun_star_uno_XInterface_idl__
27#include <com/sun/star/uno/XInterface.idl>
28#endif
29#ifndef __com_sun_star_style_XStyle_idl__
30#include <com/sun/star/style/XStyle.idl>
31#endif
32#ifndef __com_sun_star_lang_IllegalArgumentException_idl__
33#include <com/sun/star/lang/IllegalArgumentException.idl>
34#endif
35
36module com
37{
38module sun
39{
40module star
41{
42module style
43{
44
45interface XStyleSupplier : ::com::sun::star::uno::XInterface
46{
47    /** get the currently set style.
48
49        @return the style.  If no style was set, the returned object
50                may be empty (null).  Otherwise, the returned object
51                must support the service
52                <type>PropertyTemplate</type>.
53     */
54    ::com::sun::star::style::XStyle getStyle();
55
56    /** @param xStyle If you want to remove an existing style, you can
57               set an empty (null) object.  Otherwise, the object
58               given must support the service
59               <type>PropertyTemplate</type>.
60     */
61    void setStyle( [in] ::com::sun::star::style::XStyle xStyle )
62        raises( com::sun::star::lang::IllegalArgumentException );
63};
64
65} ; // style
66} ; // com
67} ; // sun
68} ; // star
69
70
71#endif
72