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_text_TextSection_idl__ 28*cdf0e10cSrcweir#define __com_sun_star_text_TextSection_idl__ 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir#ifndef __com_sun_star_text_TextContent_idl__ 31*cdf0e10cSrcweir#include <com/sun/star/text/TextContent.idl> 32*cdf0e10cSrcweir#endif 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir#ifndef __com_sun_star_text_XTextSection_idl__ 35*cdf0e10cSrcweir#include <com/sun/star/text/XTextSection.idl> 36*cdf0e10cSrcweir#endif 37*cdf0e10cSrcweir 38*cdf0e10cSrcweir#ifndef __com_sun_star_container_XNamed_idl__ 39*cdf0e10cSrcweir#include <com/sun/star/container/XNamed.idl> 40*cdf0e10cSrcweir#endif 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertySet_idl__ 43*cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl> 44*cdf0e10cSrcweir#endif 45*cdf0e10cSrcweir 46*cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertyState_idl__ 47*cdf0e10cSrcweir#include <com/sun/star/beans/XPropertyState.idl> 48*cdf0e10cSrcweir#endif 49*cdf0e10cSrcweir 50*cdf0e10cSrcweir#ifndef __com_sun_star_text_SectionFileLink_idl__ 51*cdf0e10cSrcweir#include <com/sun/star/text/SectionFileLink.idl> 52*cdf0e10cSrcweir#endif 53*cdf0e10cSrcweir#ifndef __com_sun_star_style_GraphicLocation_idl__ 54*cdf0e10cSrcweir#include <com/sun/star/style/GraphicLocation.idl> 55*cdf0e10cSrcweir#endif 56*cdf0e10cSrcweir#ifndef __com_sun_star_text_XTextColumns_idl__ 57*cdf0e10cSrcweir#include <com/sun/star/text/XTextColumns.idl> 58*cdf0e10cSrcweir#endif 59*cdf0e10cSrcweir#ifndef _com_sun_star_xml_UserDefinedAttributesSupplier_idl_ 60*cdf0e10cSrcweir#include <com/sun/star/xml/UserDefinedAttributesSupplier.idl> 61*cdf0e10cSrcweir#endif 62*cdf0e10cSrcweir 63*cdf0e10cSrcweir 64*cdf0e10cSrcweir//============================================================================= 65*cdf0e10cSrcweir 66*cdf0e10cSrcweirmodule com { module sun { module star { module text { 67*cdf0e10cSrcweir 68*cdf0e10cSrcweir//============================================================================= 69*cdf0e10cSrcweir/** A <type>TextSection</type> is a range of complete paragraphs within a text. 70*cdf0e10cSrcweir 71*cdf0e10cSrcweir <p>The content of the section may be the content of a link into another 72*cdf0e10cSrcweir document, a link from the same document, or the result of a DDE 73*cdf0e10cSrcweir operation. 74*cdf0e10cSrcweir 75*cdf0e10cSrcweir <p><type>TextSection</type> instances can be linked from and to other 76*cdf0e10cSrcweir texts. 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir*/ 79*cdf0e10cSrcweirpublished service TextSection 80*cdf0e10cSrcweir{ 81*cdf0e10cSrcweir service com::sun::star::text::TextContent; 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir [optional] service com::sun::star::xml::UserDefinedAttributesSupplier; 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir interface com::sun::star::text::XTextSection; 86*cdf0e10cSrcweir interface com::sun::star::container::XNamed; 87*cdf0e10cSrcweir interface com::sun::star::beans::XPropertySet; 88*cdf0e10cSrcweir interface com::sun::star::beans::XPropertyState; 89*cdf0e10cSrcweir 90*cdf0e10cSrcweir //------------------------------------------------------------------------- 91*cdf0e10cSrcweir /** This property contains a conditional expression. 92*cdf0e10cSrcweir 93*cdf0e10cSrcweir <p>If the result of the conditional expression is <true/> and the property 94*cdf0e10cSrcweir <member>TextSection::IsVisible</member> is <false/>, then the section is hidden.</p> 95*cdf0e10cSrcweir */ 96*cdf0e10cSrcweir [property] string Condition; 97*cdf0e10cSrcweir 98*cdf0e10cSrcweir //------------------------------------------------------------------------- 99*cdf0e10cSrcweir /** If this property is <FALSE/>, the text section is hidden. 100*cdf0e10cSrcweir */ 101*cdf0e10cSrcweir [property] boolean IsVisible; 102*cdf0e10cSrcweir 103*cdf0e10cSrcweir //------------------------------------------------------------------------- 104*cdf0e10cSrcweir /** If this property is <TRUE/>, the text section is protected 105*cdf0e10cSrcweir and cannot be modified from the user interface. 106*cdf0e10cSrcweir */ 107*cdf0e10cSrcweir [property] boolean IsProtected; 108*cdf0e10cSrcweir 109*cdf0e10cSrcweir //------------------------------------------------------------------------- 110*cdf0e10cSrcweir /** If this property is set, then the content of the section is read 111*cdf0e10cSrcweir from the specified document. 112*cdf0e10cSrcweir 113*cdf0e10cSrcweir */ 114*cdf0e10cSrcweir [property] com::sun::star::text::SectionFileLink FileLink; 115*cdf0e10cSrcweir 116*cdf0e10cSrcweir //------------------------------------------------------------------------- 117*cdf0e10cSrcweir /** specifies the source of a file link in the document that is 118*cdf0e10cSrcweir specified in <member>TextSection::FileLink</member>. 119*cdf0e10cSrcweir 120*cdf0e10cSrcweir <p>The source may be a text section or a bookmark. 121*cdf0e10cSrcweir If <member>TextSection::FileLink</member> is empty, then the 122*cdf0e10cSrcweir current document is searched for the source. If this property 123*cdf0e10cSrcweir is empty and <member>TextSection::FileLink</member> is set, 124*cdf0e10cSrcweir then the complete document content is linked into this section.</p> 125*cdf0e10cSrcweir */ 126*cdf0e10cSrcweir [property] string LinkRegion; 127*cdf0e10cSrcweir 128*cdf0e10cSrcweir //------------------------------------------------------------------------- 129*cdf0e10cSrcweir /** specifies the type of the command string for a DDE operation. 130*cdf0e10cSrcweir <p>The type can be the name of the application that provides a DDE source.</p> 131*cdf0e10cSrcweir */ 132*cdf0e10cSrcweir [property] string DDECommandType; 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir //------------------------------------------------------------------------- 135*cdf0e10cSrcweir /** specifies the source file name of the command string for a DDE operation. 136*cdf0e10cSrcweir */ 137*cdf0e10cSrcweir [property] string DDECommandFile; 138*cdf0e10cSrcweir 139*cdf0e10cSrcweir //------------------------------------------------------------------------- 140*cdf0e10cSrcweir /** specifies the source element of the command string for a DDE operation. 141*cdf0e10cSrcweir <p>The element can be i.e. a name of a cell in a sheet or a bookmark.</p> 142*cdf0e10cSrcweir */ 143*cdf0e10cSrcweir [property] string DDECommandElement; 144*cdf0e10cSrcweir 145*cdf0e10cSrcweir //------------------------------------------------------------------------- 146*cdf0e10cSrcweir /** contains the URL for the background graphic. 147*cdf0e10cSrcweir */ 148*cdf0e10cSrcweir [property] string BackGraphicURL; 149*cdf0e10cSrcweir 150*cdf0e10cSrcweir //------------------------------------------------------------------------- 151*cdf0e10cSrcweir /** contains the name of the file filter for the background graphic. 152*cdf0e10cSrcweir */ 153*cdf0e10cSrcweir [property] string BackGraphicFilter; 154*cdf0e10cSrcweir 155*cdf0e10cSrcweir //------------------------------------------------------------------------- 156*cdf0e10cSrcweir /** determines the position of the background graphic. 157*cdf0e10cSrcweir 158*cdf0e10cSrcweir @see GraphicLocation 159*cdf0e10cSrcweir */ 160*cdf0e10cSrcweir [property] com::sun::star::style::GraphicLocation BackGraphicLocation; 161*cdf0e10cSrcweir /** determins whether footnotes inside the section are displayed at the end of the 162*cdf0e10cSrcweir section text. 163*cdf0e10cSrcweir */ 164*cdf0e10cSrcweir [property] boolean FootnoteIsCollectAtTextEnd; 165*cdf0e10cSrcweir //------------------------------------------------------------------------- 166*cdf0e10cSrcweir /** determins whether the footnotes numbering restarts within the section. 167*cdf0e10cSrcweir This is only valid if <code>FootnoteIsRestartNumbering</code> is set. 168*cdf0e10cSrcweir */ 169*cdf0e10cSrcweir [property] boolean FootnoteIsRestartNumbering; 170*cdf0e10cSrcweir //------------------------------------------------------------------------- 171*cdf0e10cSrcweir /** determins at which number the footnote numbering inside of the section starts. 172*cdf0e10cSrcweir This is only valid if <code>FootnoteIsRestartNumbering</code> is set. 173*cdf0e10cSrcweir */ 174*cdf0e10cSrcweir [property] short FootnoteRestartNumberingAt; 175*cdf0e10cSrcweir //------------------------------------------------------------------------- 176*cdf0e10cSrcweir /** determins whether the footnotes within the section use an own numbering format. 177*cdf0e10cSrcweir This is only valid if <code>FootnoteIsRestartNumbering</code> is set. 178*cdf0e10cSrcweir */ 179*cdf0e10cSrcweir [property] boolean FootnoteIsOwnNumbering; 180*cdf0e10cSrcweir //------------------------------------------------------------------------- 181*cdf0e10cSrcweir /** determins the numbering type of the footnote numbering as a value of 182*cdf0e10cSrcweir <type scope="com::sun::star::style">NumberingType</type>. 183*cdf0e10cSrcweir This is only valid if <code>FootnoteIsOwnNumbering</code> is set. 184*cdf0e10cSrcweir */ 185*cdf0e10cSrcweir [property] short FootnoteNumberingType; 186*cdf0e10cSrcweir //------------------------------------------------------------------------- 187*cdf0e10cSrcweir /** determins the prefix that is display before the footnote number. 188*cdf0e10cSrcweir This is only valid if <code>FootnoteIsOwnNumbering</code> is set. 189*cdf0e10cSrcweir */ 190*cdf0e10cSrcweir [property] string FootnoteNumberingPrefix; 191*cdf0e10cSrcweir //------------------------------------------------------------------------- 192*cdf0e10cSrcweir /** determins the suffix that is display after of the footnote number. 193*cdf0e10cSrcweir This is only valid if <code>FootnoteIsOwnNumbering</code> is set. 194*cdf0e10cSrcweir */ 195*cdf0e10cSrcweir [property] string FootnoteNumberingSuffix; 196*cdf0e10cSrcweir //------------------------------------------------------------------------- 197*cdf0e10cSrcweir /** determins whether endnotes inside the section are displayed at the end of the 198*cdf0e10cSrcweir section text. 199*cdf0e10cSrcweir */ 200*cdf0e10cSrcweir [property] boolean EndnoteIsCollectAtTextEnd; 201*cdf0e10cSrcweir //------------------------------------------------------------------------- 202*cdf0e10cSrcweir /** determins whether the endnotes numbering restarts within the section. 203*cdf0e10cSrcweir This is only valid if <code>EndnoteIsRestartNumbering</code> is set. 204*cdf0e10cSrcweir */ 205*cdf0e10cSrcweir [property] boolean EndnoteIsRestartNumbering; 206*cdf0e10cSrcweir //------------------------------------------------------------------------- 207*cdf0e10cSrcweir /** determins at which number the endnote numbering inside of the section starts. 208*cdf0e10cSrcweir This is only valid if <code>EndnoteIsRestartNumbering</code> is set. 209*cdf0e10cSrcweir */ 210*cdf0e10cSrcweir [property] short EndnoteRestartNumberingAt; 211*cdf0e10cSrcweir //------------------------------------------------------------------------- 212*cdf0e10cSrcweir /** determins whether the endnotes within the section use an own numbering format. 213*cdf0e10cSrcweir This is only valid if <code>EndnoteIsRestartNumbering</code> is set. 214*cdf0e10cSrcweir */ 215*cdf0e10cSrcweir [property] boolean EndnoteIsOwnNumbering; 216*cdf0e10cSrcweir //------------------------------------------------------------------------- 217*cdf0e10cSrcweir /** determins the numbering type of the endnote numbering as a value of 218*cdf0e10cSrcweir <type scope="com::sun::star::style">NumberingType</type>. 219*cdf0e10cSrcweir This is only valid if <code>EndoteIsOwnNumbering</code> is set. 220*cdf0e10cSrcweir */ 221*cdf0e10cSrcweir [property] short EndnoteNumberingType; 222*cdf0e10cSrcweir //------------------------------------------------------------------------- 223*cdf0e10cSrcweir /** determins the prefix that is display before the endnote number. 224*cdf0e10cSrcweir This is only valid if <code>EndnoteIsOwnNumbering</code> is set. 225*cdf0e10cSrcweir */ 226*cdf0e10cSrcweir [property] string EndnoteNumberingPrefix; 227*cdf0e10cSrcweir //------------------------------------------------------------------------- 228*cdf0e10cSrcweir /** determins the suffix that is display after the endnote number. 229*cdf0e10cSrcweir This is only valid if <code>EndnoteIsOwnNumbering</code> is set. 230*cdf0e10cSrcweir */ 231*cdf0e10cSrcweir [property] string EndnoteNumberingSuffix; 232*cdf0e10cSrcweir //------------------------------------------------------------------------- 233*cdf0e10cSrcweir /** determins if a DDE link is updated automatically. 234*cdf0e10cSrcweir */ 235*cdf0e10cSrcweir [property] boolean IsAutomaticUpdate; 236*cdf0e10cSrcweir //------------------------------------------------------------------------- 237*cdf0e10cSrcweir /** allows columns to be set into the text section 238*cdf0e10cSrcweir */ 239*cdf0e10cSrcweir [property] com::sun::star::text::XTextColumns TextColumns; 240*cdf0e10cSrcweir /** determins the left margin of the section 241*cdf0e10cSrcweir */ 242*cdf0e10cSrcweir [optional, property] long SectionLeftMargin; 243*cdf0e10cSrcweir //------------------------------------------------------------------------- 244*cdf0e10cSrcweir /** determins the left margin of the section 245*cdf0e10cSrcweir */ 246*cdf0e10cSrcweir [optional, property] long SectionRightMargin; 247*cdf0e10cSrcweir //------------------------------------------------------------------------- 248*cdf0e10cSrcweir}; 249*cdf0e10cSrcweir 250*cdf0e10cSrcweir//============================================================================= 251*cdf0e10cSrcweir 252*cdf0e10cSrcweir}; }; }; }; 253*cdf0e10cSrcweir 254*cdf0e10cSrcweir#endif 255