1*cdf0e10cSrcweir/************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir#ifndef __com_sun_star_drawing_GenericDrawPage_idl__ 28*cdf0e10cSrcweir#define __com_sun_star_drawing_GenericDrawPage_idl__ 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir#ifndef __com_sun_star_drawing_XShapes_idl__ 31*cdf0e10cSrcweir#include <com/sun/star/drawing/XShapes.idl> 32*cdf0e10cSrcweir#endif 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir#ifndef __com_sun_star_drawing_XShapeGrouper_idl__ 35*cdf0e10cSrcweir#include <com/sun/star/drawing/XShapeGrouper.idl> 36*cdf0e10cSrcweir#endif 37*cdf0e10cSrcweir 38*cdf0e10cSrcweir#ifndef __com_sun_star_drawing_XShapeCombiner_idl__ 39*cdf0e10cSrcweir#include <com/sun/star/drawing/XShapeCombiner.idl> 40*cdf0e10cSrcweir#endif 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir#ifndef __com_sun_star_drawing_XShapeBinder_idl__ 43*cdf0e10cSrcweir#include <com/sun/star/drawing/XShapeBinder.idl> 44*cdf0e10cSrcweir#endif 45*cdf0e10cSrcweir 46*cdf0e10cSrcweir#ifndef __com_sun_star_container_XNamed_idl__ 47*cdf0e10cSrcweir#include <com/sun/star/container/XNamed.idl> 48*cdf0e10cSrcweir#endif 49*cdf0e10cSrcweir 50*cdf0e10cSrcweir#ifndef __com_sun_star_lang_XServiceInfo_idl__ 51*cdf0e10cSrcweir#include <com/sun/star/lang/XServiceInfo.idl> 52*cdf0e10cSrcweir#endif 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertySet_idl__ 55*cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl> 56*cdf0e10cSrcweir#endif 57*cdf0e10cSrcweir 58*cdf0e10cSrcweir#ifndef __com_sun_star_view_PaperOrientation_idl__ 59*cdf0e10cSrcweir#include <com/sun/star/view/PaperOrientation.idl> 60*cdf0e10cSrcweir#endif 61*cdf0e10cSrcweir 62*cdf0e10cSrcweir#ifndef __com_sun_star_container_XNameContainer_idl__ 63*cdf0e10cSrcweir#include <com/sun/star/container/XNameContainer.idl> 64*cdf0e10cSrcweir#endif 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir//============================================================================= 67*cdf0e10cSrcweir 68*cdf0e10cSrcweir module com { module sun { module star { module drawing { 69*cdf0e10cSrcweir 70*cdf0e10cSrcweir//============================================================================= 71*cdf0e10cSrcweir 72*cdf0e10cSrcweir// DocMerge from xml: service com::sun::star::drawing::GenericDrawPage 73*cdf0e10cSrcweir/** This abstract service is implemented by every page of a 74*cdf0e10cSrcweir <type>DrawingDocument</type>. 75*cdf0e10cSrcweir 76*cdf0e10cSrcweir 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir @example create and insert a couple of <type>LineShape</type>s: 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir <listing> 81*cdf0e10cSrcweir xPage = xDoc.DrawPages(0) 82*cdf0e10cSrcweir for x% = 0 to 200 83*cdf0e10cSrcweir xShape = xProv.createInstance( "com::sun::star::drawing::LineShape" ) 84*cdf0e10cSrcweir xShape.LineColor = rgb( 255, 0, n%+20 ) 85*cdf0e10cSrcweir xShape.LineWidth = 20 86*cdf0e10cSrcweir xShape.Position = Point( x%, 2*x% ) 87*cdf0e10cSrcweir xShape.Size = Size( 300-x%, 20 ) 88*cdf0e10cSrcweir xPage.add( xShape ) 89*cdf0e10cSrcweir next x% 90*cdf0e10cSrcweir </listing> 91*cdf0e10cSrcweir */ 92*cdf0e10cSrcweirpublished service GenericDrawPage 93*cdf0e10cSrcweir{ 94*cdf0e10cSrcweir 95*cdf0e10cSrcweir 96*cdf0e10cSrcweir // DocMerge from xml: service com::sun::star::drawing::GenericDrawPage: interface com::sun::star::drawing::XShapes 97*cdf0e10cSrcweir /** manages the <type>Shape</type>s of this page. 98*cdf0e10cSrcweir 99*cdf0e10cSrcweir <p>It also lets you add new <type>Shape</type>s. The program currently 100*cdf0e10cSrcweir requires that these <type>Shape</type>s be created by the factory of 101*cdf0e10cSrcweir the document. 102*cdf0e10cSrcweir 103*cdf0e10cSrcweir @see <type>DrawingDocument</type> 104*cdf0e10cSrcweir */ 105*cdf0e10cSrcweir interface com::sun::star::drawing::XShapes; 106*cdf0e10cSrcweir 107*cdf0e10cSrcweir 108*cdf0e10cSrcweir // DocMerge from xml: service com::sun::star::drawing::GenericDrawPage: interface com::sun::star::drawing::XShapeGrouper 109*cdf0e10cSrcweir /** With this interface you can group/ungroup a collection of 110*cdf0e10cSrcweir <type>Shape</type>s. 111*cdf0e10cSrcweir */ 112*cdf0e10cSrcweir interface com::sun::star::drawing::XShapeGrouper; 113*cdf0e10cSrcweir 114*cdf0e10cSrcweir 115*cdf0e10cSrcweir // DocMerge from xml: service com::sun::star::drawing::GenericDrawPage: interface com::sun::star::drawing::XShapeCombiner 116*cdf0e10cSrcweir /** With this interface you can combine/split a collection of 117*cdf0e10cSrcweir <type>Shape</type>s. 118*cdf0e10cSrcweir */ 119*cdf0e10cSrcweir [optional] interface com::sun::star::drawing::XShapeCombiner; 120*cdf0e10cSrcweir 121*cdf0e10cSrcweir 122*cdf0e10cSrcweir // DocMerge from xml: service com::sun::star::drawing::GenericDrawPage: interface com::sun::star::drawing::XShapeBinder 123*cdf0e10cSrcweir /** With this interface you can bind/unbind a collection of 124*cdf0e10cSrcweir <type>Shape</type>s. 125*cdf0e10cSrcweir */ 126*cdf0e10cSrcweir [optional] interface com::sun::star::drawing::XShapeBinder; 127*cdf0e10cSrcweir 128*cdf0e10cSrcweir 129*cdf0e10cSrcweir // DocMerge from xml: service com::sun::star::drawing::GenericDrawPage: interface com::sun::star::container::XNamed 130*cdf0e10cSrcweir /** Gets or sets the name of this page. 131*cdf0e10cSrcweir 132*cdf0e10cSrcweir <p>Duplicated pagenames inside a document are not allowed. 133*cdf0e10cSrcweir */ 134*cdf0e10cSrcweir [optional] interface com::sun::star::container::XNamed; 135*cdf0e10cSrcweir 136*cdf0e10cSrcweir 137*cdf0e10cSrcweir // DocMerge from xml: service com::sun::star::drawing::GenericDrawPage: interface com::sun::star::lang::XServiceInfo 138*cdf0e10cSrcweir /** returns the services implemented by this 139*cdf0e10cSrcweir instance. 140*cdf0e10cSrcweir */ 141*cdf0e10cSrcweir interface com::sun::star::lang::XServiceInfo; 142*cdf0e10cSrcweir 143*cdf0e10cSrcweir 144*cdf0e10cSrcweir // DocMerge from xml: service com::sun::star::drawing::GenericDrawPage: interface com::sun::star::beans::XPropertySet 145*cdf0e10cSrcweir /** gives you access to the properties of this 146*cdf0e10cSrcweir <type>DrawPage</type>. 147*cdf0e10cSrcweir */ 148*cdf0e10cSrcweir [optional] interface com::sun::star::beans::XPropertySet; 149*cdf0e10cSrcweir 150*cdf0e10cSrcweir //------------------------------------------------------------------------- 151*cdf0e10cSrcweir 152*cdf0e10cSrcweir // DocMerge from xml: property com::sun::star::drawing::GenericDrawPage::BorderBottom 153*cdf0e10cSrcweir /** This is the border at the bottom. 154*cdf0e10cSrcweir */ 155*cdf0e10cSrcweir [optional, property] long BorderBottom; 156*cdf0e10cSrcweir 157*cdf0e10cSrcweir //------------------------------------------------------------------------- 158*cdf0e10cSrcweir 159*cdf0e10cSrcweir // DocMerge from xml: property com::sun::star::drawing::GenericDrawPage::BorderLeft 160*cdf0e10cSrcweir /** This is the border at the left. 161*cdf0e10cSrcweir */ 162*cdf0e10cSrcweir [optional, property] long BorderLeft; 163*cdf0e10cSrcweir 164*cdf0e10cSrcweir //------------------------------------------------------------------------- 165*cdf0e10cSrcweir 166*cdf0e10cSrcweir // DocMerge from xml: property com::sun::star::drawing::GenericDrawPage::BorderRight 167*cdf0e10cSrcweir /** This is the border at the right. 168*cdf0e10cSrcweir */ 169*cdf0e10cSrcweir [optional, property] long BorderRight; 170*cdf0e10cSrcweir 171*cdf0e10cSrcweir //------------------------------------------------------------------------- 172*cdf0e10cSrcweir 173*cdf0e10cSrcweir // DocMerge from xml: property com::sun::star::drawing::GenericDrawPage::BorderTop 174*cdf0e10cSrcweir /** This is the border at the top. 175*cdf0e10cSrcweir */ 176*cdf0e10cSrcweir [optional, property] long BorderTop; 177*cdf0e10cSrcweir 178*cdf0e10cSrcweir //------------------------------------------------------------------------- 179*cdf0e10cSrcweir 180*cdf0e10cSrcweir // DocMerge from xml: property com::sun::star::drawing::GenericDrawPage::Height 181*cdf0e10cSrcweir /** This is the height. 182*cdf0e10cSrcweir */ 183*cdf0e10cSrcweir [optional, property] long Height; 184*cdf0e10cSrcweir 185*cdf0e10cSrcweir //------------------------------------------------------------------------- 186*cdf0e10cSrcweir 187*cdf0e10cSrcweir // DocMerge from xml: property com::sun::star::drawing::GenericDrawPage::Width 188*cdf0e10cSrcweir /** This is the width. 189*cdf0e10cSrcweir */ 190*cdf0e10cSrcweir [optional, property] long Width; 191*cdf0e10cSrcweir 192*cdf0e10cSrcweir //------------------------------------------------------------------------- 193*cdf0e10cSrcweir 194*cdf0e10cSrcweir // DocMerge from xml: property com::sun::star::drawing::GenericDrawPage::Number 195*cdf0e10cSrcweir /** This is the number of this page, starting with 1. 196*cdf0e10cSrcweir */ 197*cdf0e10cSrcweir [optional, readonly, property] short Number; 198*cdf0e10cSrcweir 199*cdf0e10cSrcweir //------------------------------------------------------------------------- 200*cdf0e10cSrcweir 201*cdf0e10cSrcweir // DocMerge from xml: property com::sun::star::drawing::GenericDrawPage::Orientation 202*cdf0e10cSrcweir /** This is the orientation of this page. 203*cdf0e10cSrcweir */ 204*cdf0e10cSrcweir [optional, property] com::sun::star::view::PaperOrientation Orientation; 205*cdf0e10cSrcweir 206*cdf0e10cSrcweir //------------------------------------------------------------------------- 207*cdf0e10cSrcweir 208*cdf0e10cSrcweir /** this property stores xml attributes. 209*cdf0e10cSrcweir They will be saved to and restored from automatic styles inside xml files. 210*cdf0e10cSrcweir 211*cdf0e10cSrcweir @see com::sun::star::xml::AttributeContainer 212*cdf0e10cSrcweir */ 213*cdf0e10cSrcweir [optional, property] com::sun::star::container::XNameContainer UserDefinedAttributes; 214*cdf0e10cSrcweir 215*cdf0e10cSrcweir //------------------------------------------------------------------------- 216*cdf0e10cSrcweir 217*cdf0e10cSrcweir /** this property is true if the avveraged background filling colors luminance 218*cdf0e10cSrcweir is belove an application specified threshold value. This can be used to 219*cdf0e10cSrcweir determine the actuall value of an auto color. 220*cdf0e10cSrcweir */ 221*cdf0e10cSrcweir [readonly, optional, property] boolean IsBackgroundDark; 222*cdf0e10cSrcweir 223*cdf0e10cSrcweir //------------------------------------------------------------------------- 224*cdf0e10cSrcweir 225*cdf0e10cSrcweir /** this index access defines a navigation order for the top level shapes 226*cdf0e10cSrcweir inside this page. 227*cdf0e10cSrcweir By default this is equal to the index access of the slide itself, 228*cdf0e10cSrcweir making the z-order the default navigation order for top level shapes. 229*cdf0e10cSrcweir */ 230*cdf0e10cSrcweir [optional, property] com::sun::star::container::XIndexAccess NavigationOrder; 231*cdf0e10cSrcweir}; 232*cdf0e10cSrcweir 233*cdf0e10cSrcweir//============================================================================= 234*cdf0e10cSrcweir 235*cdf0e10cSrcweir}; }; }; }; 236*cdf0e10cSrcweir 237*cdf0e10cSrcweir#endif 238*cdf0e10cSrcweir 239