1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#ifndef __com_sun_star_sheet_SpreadsheetDrawPage_idl__
28#define __com_sun_star_sheet_SpreadsheetDrawPage_idl__
29
30#ifndef __com_sun_star_drawing_XDrawPage_idl__
31#include <com/sun/star/drawing/XDrawPage.idl>
32#endif
33
34#ifndef __com_sun_star_drawing_XShapeGrouper_idl__
35#include <com/sun/star/drawing/XShapeGrouper.idl>
36#endif
37
38#ifndef __com_sun_star_lang_XServiceInfo_idl__
39#include <com/sun/star/lang/XServiceInfo.idl>
40#endif
41
42//=============================================================================
43
44 module com {  module sun {  module star {  module sheet {
45
46//=============================================================================
47
48/** This abstract service is implemented by every page of a
49	<type>SpreadsheetDocument</type>.
50
51	@example create and insert a couple of <type scope="com::sun::star::drawing">LineShape</type>s:
52
53	<listing>
54	xPage = xDoc.DrawPages(0)
55	for x% = 0 to 200
56    xShape = xProv.createInstance( "com.sun.star.drawing.LineShape" )
57	xShape.LineColor = rgb( 255, 0, n%+20 )
58	xShape.LineWidth = 20
59	xShape.Position = Point( x%, 2*x% )
60	xShape.Size = Size( 300-x%, 20 )
61	xPage.add( xShape )
62	next x%
63	</listing>
64
65    @since OOo 1.1.2
66 */
67published service SpreadsheetDrawPage
68{
69
70
71	/** manages the <type scope="com::sun::star::drawing">Shape</type>s of this page.
72
73				<p>It also lets you add new <type scope="com::sun::star::drawing">Shape</type>s. The program currently
74				requires that these <type scope="com::sun::star::drawing">Shape</type>s be created by the factory of
75				the	document.
76
77				@see SpreadsheetDocument
78	 */
79	interface com::sun::star::drawing::XDrawPage;
80
81
82	/** With this interface you can group/ungroup a collection of
83				<type scope="com::sun::star::drawing">Shape</type>s.
84	 */
85	interface com::sun::star::drawing::XShapeGrouper;
86
87
88	/** returns the services implemented by this instance.
89	 */
90	interface com::sun::star::lang::XServiceInfo;
91};
92
93//=============================================================================
94
95}; }; }; };
96
97#endif
98