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_graphic_XPrimitiveFactory2D_idl__
24#define __com_sun_star_graphic_XPrimitiveFactory2D_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_beans_PropertyValue_idl__
30#include <com/sun/star/beans/PropertyValue.idl>
31#endif
32
33//////////////////////////////////////////////////////////////////////////////
34// predefines
35
36module com {  module sun {  module star {  module drawing {
37	interface XShape;
38	interface XDrawPage;
39}; }; }; };
40
41//////////////////////////////////////////////////////////////////////////////
42
43module com {  module sun {  module star {  module graphic {
44
45interface XPrimitive2D;
46
47/** XPrimitiveFactory2D interface
48
49    Use this interface to generate XPrimitive2D instances
50 */
51interface XPrimitiveFactory2D : ::com::sun::star::uno::XInterface
52{
53    /** Create primitives from <type>::com::sun::star::drawing::XShape</type>
54
55        @param xShape
56        The XShape, for which the primitives are to be
57        generated. Specifying an invalid or empty shape here will
58        result in an empty return value.
59
60        @param aParms
61        Sequence of factory parameters, whose semantics depend on the
62        shape to be generated.
63
64        @return a sequence of primitives, that consists of the
65        geometrical representation from the given XShape.
66     */
67    sequence< XPrimitive2D > createPrimitivesFromXShape(
68		[in] ::com::sun::star::drawing::XShape xShape,
69        [in] sequence< ::com::sun::star::beans::PropertyValue > aParms );
70
71    /** Create primitives from <type>::com::sun::star::drawing::XDrawPage</type>
72
73        @param xDrawPage
74        The XDrawPage, for which the primitives are to be
75        generated. Specifying an invalid or empty page here will
76        result in an empty return value.
77
78        @param aParms
79        Sequence of factory parameters, whose semantics depend on the
80        page to be generated.
81
82        @return a sequence of primitives, that consists of the
83        geometrical representation for the given XDrawPage.
84     */
85    sequence< XPrimitive2D > createPrimitivesFromXDrawPage(
86		[in] ::com::sun::star::drawing::XDrawPage xDrawPage,
87        [in] sequence< ::com::sun::star::beans::PropertyValue > aParms );
88
89};
90
91}; }; }; };
92
93//////////////////////////////////////////////////////////////////////////////
94
95#endif
96
97// eof
98