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: XPrimitiveFactory2D.idl,v $
13 * This file is part of OpenOffice.org.
15 * OpenOffice.org is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License version 3
17 * only, as published by the Free Software Foundation.
19 * OpenOffice.org is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU Lesser General Public License version 3 for more details
23 * (a copy is included in the LICENSE file that accompanied this code).
25 * You should have received a copy of the GNU Lesser General Public License
26 * version 3 along with OpenOffice.org. If not, see
27 * <http://www.openoffice.org/license.html>
28 * for a copy of the LGPLv3 License.
30 ************************************************************************/
31 #ifndef __com_sun_star_graphic_XPrimitiveFactory2D_idl__
32 #define __com_sun_star_graphic_XPrimitiveFactory2D_idl__
34 #ifndef __com_sun_star_uno_XInterface_idl__
35 #include
<com
/sun
/star
/uno
/XInterface.idl
>
37 #ifndef __com_sun_star_beans_PropertyValue_idl__
38 #include
<com
/sun
/star
/beans
/PropertyValue.idl
>
41 //////////////////////////////////////////////////////////////////////////////
44 module com
{ module sun
{ module star
{ module drawing
{
49 //////////////////////////////////////////////////////////////////////////////
51 module com
{ module sun
{ module star
{ module graphic
{
53 interface XPrimitive2D
;
55 /** XPrimitiveFactory2D interface
57 Use this interface to generate XPrimitive2D instances
59 interface XPrimitiveFactory2D
: ::com
::sun
::star
::uno
::XInterface
61 /** Create primitives from <type>::com::sun::star::drawing::XShape</type>
64 The XShape, for which the primitives are to be
65 generated. Specifying an invalid or empty shape here will
66 result in an empty return value.
69 Sequence of factory parameters, whose semantics depend on the
70 shape to be generated.
72 @return a sequence of primitives, that consists of the
73 geometrical representation from the given XShape.
75 sequence
< XPrimitive2D
> createPrimitivesFromXShape
(
76 [in] ::com
::sun
::star
::drawing
::XShape xShape
,
77 [in] sequence
< ::com
::sun
::star
::beans
::PropertyValue
> aParms
);
79 /** Create primitives from <type>::com::sun::star::drawing::XDrawPage</type>
82 The XDrawPage, for which the primitives are to be
83 generated. Specifying an invalid or empty page here will
84 result in an empty return value.
87 Sequence of factory parameters, whose semantics depend on the
90 @return a sequence of primitives, that consists of the
91 geometrical representation for the given XDrawPage.
93 sequence
< XPrimitive2D
> createPrimitivesFromXDrawPage
(
94 [in] ::com
::sun
::star
::drawing
::XDrawPage xDrawPage
,
95 [in] sequence
< ::com
::sun
::star
::beans
::PropertyValue
> aParms
);
101 //////////////////////////////////////////////////////////////////////////////