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_style_Style_idl__ 28*cdf0e10cSrcweir#define __com_sun_star_style_Style_idl__ 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir#ifndef __com_sun_star_style_XStyle_idl__ 31*cdf0e10cSrcweir#include <com/sun/star/style/XStyle.idl> 32*cdf0e10cSrcweir#endif 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertySet_idl__ 35*cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl> 36*cdf0e10cSrcweir#endif 37*cdf0e10cSrcweir#ifndef __com_sun_star_beans_XMultiPropertySet_idl__ 38*cdf0e10cSrcweir#include <com/sun/star/beans/XMultiPropertySet.idl> 39*cdf0e10cSrcweir#endif 40*cdf0e10cSrcweir#ifndef __com_sun_star_beans_XMultiPropertyStates_idl__ 41*cdf0e10cSrcweir#include <com/sun/star/beans/XMultiPropertyStates.idl> 42*cdf0e10cSrcweir#endif 43*cdf0e10cSrcweir#ifndef __com_sun_star_beans_NamedValue_idl__ 44*cdf0e10cSrcweir#include <com/sun/star/beans/NamedValue.idl> 45*cdf0e10cSrcweir#endif 46*cdf0e10cSrcweir#ifndef _com_sun_star_xml_UserDefinedAttributesSupplier_idl_ 47*cdf0e10cSrcweir#include <com/sun/star/xml/UserDefinedAttributesSupplier.idl> 48*cdf0e10cSrcweir#endif 49*cdf0e10cSrcweir 50*cdf0e10cSrcweir 51*cdf0e10cSrcweir//============================================================================= 52*cdf0e10cSrcweir 53*cdf0e10cSrcweir module com { module sun { module star { module style { 54*cdf0e10cSrcweir 55*cdf0e10cSrcweir//============================================================================= 56*cdf0e10cSrcweir 57*cdf0e10cSrcweir/** This service specifies a single style sheet. 58*cdf0e10cSrcweir */ 59*cdf0e10cSrcweirpublished service Style 60*cdf0e10cSrcweir{ 61*cdf0e10cSrcweir //------------------------------------------------------------------------- 62*cdf0e10cSrcweir /** contains user defined attributes. 63*cdf0e10cSrcweir 64*cdf0e10cSrcweir @see <type scope="com::sun::star::xml">UserDefinedAttributesSupplier</type> 65*cdf0e10cSrcweir */ 66*cdf0e10cSrcweir [optional] service com::sun::star::xml::UserDefinedAttributesSupplier; 67*cdf0e10cSrcweir 68*cdf0e10cSrcweir //------------------------------------------------------------------------- 69*cdf0e10cSrcweir 70*cdf0e10cSrcweir interface com::sun::star::style::XStyle; 71*cdf0e10cSrcweir 72*cdf0e10cSrcweir interface com::sun::star::beans::XPropertySet; 73*cdf0e10cSrcweir 74*cdf0e10cSrcweir [optional] interface com::sun::star::beans::XMultiPropertySet; 75*cdf0e10cSrcweir 76*cdf0e10cSrcweir /* This optional interface is available as an optimisation, allowing users 77*cdf0e10cSrcweir to use 'setAllPropertiesToDefault', for example. */ 78*cdf0e10cSrcweir //------------------------------------------------------------------------- 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir [optional] interface com::sun::star::beans::XMultiPropertyStates; 81*cdf0e10cSrcweir 82*cdf0e10cSrcweir //------------------------------------------------------------------------- 83*cdf0e10cSrcweir 84*cdf0e10cSrcweir /** determines if a style is physically created. 85*cdf0e10cSrcweir 86*cdf0e10cSrcweir <p> Built in styles may not be created until they are needed. 87*cdf0e10cSrcweir To prevent standard style properties from being exported, it may be 88*cdf0e10cSrcweir useful to check if the style is created first. 89*cdf0e10cSrcweir </p> 90*cdf0e10cSrcweir */ 91*cdf0e10cSrcweir [optional, readonly, property] boolean IsPhysical; 92*cdf0e10cSrcweir //------------------------------------------------------------------------- 93*cdf0e10cSrcweir 94*cdf0e10cSrcweir /** contains the name of the style that is applied to the next paragraph. 95*cdf0e10cSrcweir 96*cdf0e10cSrcweir <p> This property is usually available at paragraph styles only. </p> 97*cdf0e10cSrcweir */ 98*cdf0e10cSrcweir [optional, property] string FollowStyle; 99*cdf0e10cSrcweir //------------------------------------------------------------------------- 100*cdf0e10cSrcweir 101*cdf0e10cSrcweir /** contains the name of the style as it is displayed in the user interface. 102*cdf0e10cSrcweir 103*cdf0e10cSrcweir <p> The names of the styles at the API are language independent. The user interface 104*cdf0e10cSrcweir names are localised.</p> 105*cdf0e10cSrcweir */ 106*cdf0e10cSrcweir [optional, readonly, property] string DisplayName; 107*cdf0e10cSrcweir //------------------------------------------------------------------------- 108*cdf0e10cSrcweir 109*cdf0e10cSrcweir /** determines if a style is automatically updated, if the properties of an object 110*cdf0e10cSrcweir that the style is applied to are changed. 111*cdf0e10cSrcweir 112*cdf0e10cSrcweir <p> For example, if the style is applied to a paragraph and the properties of the paragraph 113*cdf0e10cSrcweir are changed then the style will be updated accordingly.</p> 114*cdf0e10cSrcweir */ 115*cdf0e10cSrcweir [optional, property] string IsAutoUpdate; 116*cdf0e10cSrcweir //------------------------------------------------------------------------- 117*cdf0e10cSrcweir 118*cdf0e10cSrcweir /** defines the context and styles for conditional paragraphs. 119*cdf0e10cSrcweir 120*cdf0e10cSrcweir <p>This property is only available if the style is a conditional 121*cdf0e10cSrcweir paragraph style.</p> 122*cdf0e10cSrcweir 123*cdf0e10cSrcweir <p>The sequence consists of pairs where the name part of the pair 124*cdf0e10cSrcweir defines the context where it should be applied and the value part 125*cdf0e10cSrcweir is a string naming the style to be used in that context.</p> 126*cdf0e10cSrcweir 127*cdf0e10cSrcweir <p>Assigning an empty string to the style name will disable 128*cdf0e10cSrcweir the conditional style for that context.</p> 129*cdf0e10cSrcweir 130*cdf0e10cSrcweir <p>The alowed strings (contexts) for the name part of an entry 131*cdf0e10cSrcweir of the sequence are:</p> 132*cdf0e10cSrcweir 133*cdf0e10cSrcweir <ul> 134*cdf0e10cSrcweir <li>TableHeader</li> 135*cdf0e10cSrcweir <li>Table</li> 136*cdf0e10cSrcweir <li>Frame</li> 137*cdf0e10cSrcweir <li>Section</li> 138*cdf0e10cSrcweir <li>Footnote</li> 139*cdf0e10cSrcweir <li>Endnote</li> 140*cdf0e10cSrcweir <li>Header</li> 141*cdf0e10cSrcweir <li>Footer</li> 142*cdf0e10cSrcweir <li>OutlineLevel1</li> 143*cdf0e10cSrcweir <li>OutlineLevel2</li> 144*cdf0e10cSrcweir <li>OutlineLevel3</li> 145*cdf0e10cSrcweir <li>OutlineLevel4</li> 146*cdf0e10cSrcweir <li>OutlineLevel5</li> 147*cdf0e10cSrcweir <li>OutlineLevel6</li> 148*cdf0e10cSrcweir <li>OutlineLevel7</li> 149*cdf0e10cSrcweir <li>OutlineLevel8</li> 150*cdf0e10cSrcweir <li>OutlineLevel9</li> 151*cdf0e10cSrcweir <li>OutlineLevel10</li> 152*cdf0e10cSrcweir <li>NumberingLevel1</li> 153*cdf0e10cSrcweir <li>NumberingLevel2</li> 154*cdf0e10cSrcweir <li>NumberingLevel3</li> 155*cdf0e10cSrcweir <li>NumberingLevel4</li> 156*cdf0e10cSrcweir <li>NumberingLevel5</li> 157*cdf0e10cSrcweir <li>NumberingLevel6</li> 158*cdf0e10cSrcweir <li>NumberingLevel7</li> 159*cdf0e10cSrcweir <li>NumberingLevel8</li> 160*cdf0e10cSrcweir <li>NumberingLevel9</li> 161*cdf0e10cSrcweir <li>NumberingLevel10</li> 162*cdf0e10cSrcweir </ul> 163*cdf0e10cSrcweir 164*cdf0e10cSrcweir 165*cdf0e10cSrcweir @since OOo 2.0.1 166*cdf0e10cSrcweir */ 167*cdf0e10cSrcweir [optional, property] sequence< com::sun::star::beans::NamedValue > ParaStyleConditions; 168*cdf0e10cSrcweir 169*cdf0e10cSrcweir}; 170*cdf0e10cSrcweir 171*cdf0e10cSrcweir//============================================================================= 172*cdf0e10cSrcweir 173*cdf0e10cSrcweir}; }; }; }; 174*cdf0e10cSrcweir#endif 175