summaryrefslogtreecommitdiff
path: root/offapi/com/sun/star/rendering/XParametricPolyPolygon2DFactory.idl
blob: 2471849864a1d55930a7ad49584ffae4f268a639 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/*************************************************************************
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * Copyright 2000, 2010 Oracle and/or its affiliates.
 *
 * OpenOffice.org - a multi-platform office productivity suite
 *
 * This file is part of OpenOffice.org.
 *
 * OpenOffice.org is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License version 3
 * only, as published by the Free Software Foundation.
 *
 * OpenOffice.org is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License version 3 for more details
 * (a copy is included in the LICENSE file that accompanied this code).
 *
 * You should have received a copy of the GNU Lesser General Public License
 * version 3 along with OpenOffice.org.  If not, see
 * <http://www.openoffice.org/license.html>
 * for a copy of the LGPLv3 License.
 *
 ************************************************************************/
#ifndef __com_sun_star_rendering_XParametricPolyPolygon2DFactory_idl__
#define __com_sun_star_rendering_XParametricPolyPolygon2DFactory_idl__

#ifndef __com_sun_star_uno_XInterface_idl__
#include <com/sun/star/uno/XInterface.idl>
#endif
#ifndef __com_sun_star_lang_IllegalArgumentException_idl__
#include <com/sun/star/lang/IllegalArgumentException.idl>
#endif
#ifndef __com_sun_star_geometry_RealRectangle2D_idl__
#include <com/sun/star/geometry/RealRectangle2D.idl>
#endif
#ifndef __com_sun_star_rendering_XColorSpace_idl__
#include <com/sun/star/rendering/XColorSpace.idl>
#endif


module com { module sun { module star { module rendering {

interface XParametricPolyPolygon2D;

/** This interface provides factory methods to generate various
    ready-made XParametricPolyPolygon2Ds
 */
interface XParametricPolyPolygon2DFactory : ::com::sun::star::uno::XInterface
{
    /** Create a linear gradient.

        The gradient varies linearly between colors. the color positions on <0, 1> interval are given by stops values
        in the x direction, and has constant color for fixed x
        coordinate value in y direction
     */
    XParametricPolyPolygon2D    createLinearHorizontalGradient( [in] sequence<Color> colors, [in] sequence<double> stops )
        raises (com::sun::star::lang::IllegalArgumentException);

    /** Create an axial gradient.

        The gradient has middleColor in the middle, and varies
        linearly between middleColor and endColor to both sides in the
        x direction. For fixed x coordinate, the gradient has constant
        color value in y direction.
     */
    XParametricPolyPolygon2D    createAxialHorizontalGradient( [in] sequence<Color> colors, [in] sequence<double> stops )
        raises (com::sun::star::lang::IllegalArgumentException);

    /** Create an elliptical gradient.

        The gradient has centerColor in the middle, and varies
        linearly between center and endColor via concentric ellipses
        around the center point. Note that the absolute size of the
        rectangle given at this method does not matter, only it's
        aspect ratio: if this aspect ratio is 1, the gradient is
        circular. If it's not 1, the gradient is elliptical, with the
        special twist that the aspect ratio is maintained also for the
        center color: the gradient will not collapse into a single
        point, but become a line of center color.
     */
    XParametricPolyPolygon2D    createEllipticalGradient( [in] sequence<Color> colors, [in] sequence<double> stops, [in] ::com::sun::star::geometry::RealRectangle2D boundRect )
        raises (com::sun::star::lang::IllegalArgumentException);

    /** Create a rectangular gradient.

        The gradient has centerColor in the middle, and varies
        linearly between center and endColor via rectangular boxes
        around the center point. Note that the absolute size of the
        rectangle given at this method does not matter, only it's
        aspect ratio: if this aspect ratio is 1, the gradient is
        quadratic. If it's not 1, the gradient is rectangular, with
        the special twist that the aspect ratio is maintained also for
        the center color: the gradient will not collapse into a single
        point, but become a line of center color.
     */
    XParametricPolyPolygon2D    createRectangularGradient( [in] sequence<Color> colors, [in] sequence<double> stops, [in] ::com::sun::star::geometry::RealRectangle2D boundRect )
        raises (com::sun::star::lang::IllegalArgumentException);

    /** Create a line hash of vertical lines.

        The hashing consists of vertical lines, with colors varying
        linearly between leftColor and rightColor, when going from
        left to right
     */
    XParametricPolyPolygon2D    createVerticalLinesHatch( [in] sequence<ColorComponent> leftColor, [in] sequence<ColorComponent> rightColor )
        raises (com::sun::star::lang::IllegalArgumentException);

    /** Create a line hash of orthogonally crossing lines.

        The hashing consists of vertical and horizontal lines, with
        colors varying linearly between leftTopColor and
        rightBottomColor, when going from left to right (for the
        vertical lines) and from top tzo bottom (for the horizontal
        lines).
     */
    XParametricPolyPolygon2D    createOrthogonalLinesHatch( [in] sequence<ColorComponent> leftTopColor, [in] sequence<ColorComponent> rightBottomColor )
        raises (com::sun::star::lang::IllegalArgumentException);

    /** Create a repeating line hash pattern of three crossing lines.

        The hashing consists of vertical and horizontal lines plus
        diagonal lines from left, top to bottom, right. Each of the
        three groups of lines varies the line color of distinct lines
        linearly from startColor to endColor, starting at the leftmost
        or topmost position.
     */
    XParametricPolyPolygon2D    createThreeCrossingLinesHatch( [in] sequence<ColorComponent> startColor, [in] sequence<ColorComponent> endColor )
        raises (com::sun::star::lang::IllegalArgumentException);

    /** Create a repeating line hash pattern of four crossing lines.

        The hashing consists of vertical and horizontal lines plus
        diagonal lines in both directions. Each of the four groups of
        lines varies the line color of distinct lines linearly from
        startColor to endColor, starting at the leftmost or topmost
        position.
     */
    XParametricPolyPolygon2D    createFourCrossingLinesHatch( [in] sequence<ColorComponent> startColor, [in] sequence<ColorComponent> endColor )
        raises (com::sun::star::lang::IllegalArgumentException);
};

//=============================================================================

/// Service providing a <type>XParametricPolyPolygon2DFactory</type> service
service ParametricPolyPolygon2DFactory: XParametricPolyPolygon2DFactory;

}; }; }; };

#endif