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_ReferenceFieldPart_idl__ 28*cdf0e10cSrcweir#define __com_sun_star_text_ReferenceFieldPart_idl__ 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir//============================================================================= 32*cdf0e10cSrcweir 33*cdf0e10cSrcweirmodule com { module sun { module star { module text { 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir//============================================================================= 36*cdf0e10cSrcweir/** These constants define how the reference position is displayed in 37*cdf0e10cSrcweir reference text fields. 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir*/ 40*cdf0e10cSrcweirpublished constants ReferenceFieldPart 41*cdf0e10cSrcweir{ 42*cdf0e10cSrcweir //------------------------------------------------------------------------- 43*cdf0e10cSrcweir /** The page number is displayed using arabic numbers. 44*cdf0e10cSrcweir */ 45*cdf0e10cSrcweir const short PAGE = 0; 46*cdf0e10cSrcweir 47*cdf0e10cSrcweir //------------------------------------------------------------------------- 48*cdf0e10cSrcweir /** The number of the chapter is displayed. 49*cdf0e10cSrcweir */ 50*cdf0e10cSrcweir const short CHAPTER = 1; 51*cdf0e10cSrcweir 52*cdf0e10cSrcweir //------------------------------------------------------------------------- 53*cdf0e10cSrcweir /** The reference text is displayed. 54*cdf0e10cSrcweir <p>If the source of the reference is a sequence field, then the complete text 55*cdf0e10cSrcweir of the paragraph is displayed. This is useful to reference to captions. </p> 56*cdf0e10cSrcweir */ 57*cdf0e10cSrcweir const short TEXT = 2; 58*cdf0e10cSrcweir 59*cdf0e10cSrcweir //------------------------------------------------------------------------- 60*cdf0e10cSrcweir /** The reference is displayed as one of the (localized) words, "above" or "below". 61*cdf0e10cSrcweir */ 62*cdf0e10cSrcweir const short UP_DOWN = 3; 63*cdf0e10cSrcweir 64*cdf0e10cSrcweir //------------------------------------------------------------------------- 65*cdf0e10cSrcweir /** The page number is displayed using the numbering type defined in 66*cdf0e10cSrcweir the page style of the reference position. 67*cdf0e10cSrcweir */ 68*cdf0e10cSrcweir const short PAGE_DESC = 4; 69*cdf0e10cSrcweir //------------------------------------------------------------------------- 70*cdf0e10cSrcweir /** The category and the number of a caption is displayed. 71*cdf0e10cSrcweir <p>This option is only valid if the source of the reference is a sequence field.</p> 72*cdf0e10cSrcweir */ 73*cdf0e10cSrcweir const short CATEGORY_AND_NUMBER = 5; 74*cdf0e10cSrcweir //------------------------------------------------------------------------- 75*cdf0e10cSrcweir /** The caption text of a caption is displayed. 76*cdf0e10cSrcweir <p>This option is only valid if the source of the reference is a sequence field.</p> 77*cdf0e10cSrcweir */ 78*cdf0e10cSrcweir const short ONLY_CAPTION = 6; 79*cdf0e10cSrcweir //------------------------------------------------------------------------- 80*cdf0e10cSrcweir /** The number of a sequence field is displayed. 81*cdf0e10cSrcweir <p>This option is only valid if the source of the reference is a sequence field.</p> 82*cdf0e10cSrcweir */ 83*cdf0e10cSrcweir const short ONLY_SEQUENCE_NUMBER = 7; 84*cdf0e10cSrcweir //------------------------------------------------------------------------- 85*cdf0e10cSrcweir /** The numbering label and depending of the reference field context numbering lables of 86*cdf0e10cSrcweir superior list levels of the reference are displayed. 87*cdf0e10cSrcweir 88*cdf0e10cSrcweir <p>This option is only valid, if the source of the reference is a bookmark or a set reference.</p> 89*cdf0e10cSrcweir <p>The contents of the list label of the paragraph, at which the bookmark respectively the 90*cdf0e10cSrcweir set reference starts - named "referenced item" in the following - is displayed. To unambiguous 91*cdf0e10cSrcweir identify the referenced item at the document position of the reference text field, the content 92*cdf0e10cSrcweir of all needed superior levels are added in front. The needed superior levels of the referenced 93*cdf0e10cSrcweir item are the ones, which differ from the superior levels of the document position of the reference 94*cdf0e10cSrcweir text field. 95*cdf0e10cSrcweir Additional condition, which suppresses the addition of a superior level's list label content: 96*cdf0e10cSrcweir The list label of the referenced item can already contain numbers of a superior levels. Assume X 97*cdf0e10cSrcweir be the level of the most superior level, then no list label content of superior levels greater or 98*cdf0e10cSrcweir equal than X are added. 99*cdf0e10cSrcweir If the referenced item isn't numbered, nothing is displayed.</p> 100*cdf0e10cSrcweir 101*cdf0e10cSrcweir @since OOo 3.0 102*cdf0e10cSrcweir */ 103*cdf0e10cSrcweir const short NUMBER = 8; 104*cdf0e10cSrcweir //------------------------------------------------------------------------- 105*cdf0e10cSrcweir /** The numbering label of the reference is displayed. 106*cdf0e10cSrcweir 107*cdf0e10cSrcweir <p>This option is only valid, if the source of the reference is a bookmark or a set reference.</p> 108*cdf0e10cSrcweir <p>The contents of the list label of the paragraph, at which the bookmark respectively the 109*cdf0e10cSrcweir set reference starts, is displayed. If this paragraph isn't numbered, nothing is displayed.</p> 110*cdf0e10cSrcweir 111*cdf0e10cSrcweir @since OOo 3.0 112*cdf0e10cSrcweir */ 113*cdf0e10cSrcweir const short NUMBER_NO_CONTEXT = 9; 114*cdf0e10cSrcweir //------------------------------------------------------------------------- 115*cdf0e10cSrcweir /** The numbering label and numbering lables of superior list levels of the reference are displayed. 116*cdf0e10cSrcweir 117*cdf0e10cSrcweir <p>This option is only valid, if the source of the reference is a bookmark or a set reference.</p> 118*cdf0e10cSrcweir <p>The contents of the list label of the paragraph, at which the bookmark respectively the 119*cdf0e10cSrcweir set reference starts - named "referenced item" in the following - is displayed and the contents 120*cdf0e10cSrcweir of all list labels of superior levels are added in front of it. 121*cdf0e10cSrcweir Additional condition, which suppresses the addition of a superior level's list label content: 122*cdf0e10cSrcweir The list label of the referenced item can already contain numbers of a superior levels. Assume X 123*cdf0e10cSrcweir be the level of the most superior level, then no list label content of superior levels greater or 124*cdf0e10cSrcweir equal than X are added. 125*cdf0e10cSrcweir If the referenced item is numbered nothing is displayed.</p> 126*cdf0e10cSrcweir 127*cdf0e10cSrcweir @since OOo 3.0 128*cdf0e10cSrcweir */ 129*cdf0e10cSrcweir const short NUMBER_FULL_CONTEXT = 10; 130*cdf0e10cSrcweir}; 131*cdf0e10cSrcweir 132*cdf0e10cSrcweir//============================================================================= 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir}; }; }; }; 135*cdf0e10cSrcweir 136*cdf0e10cSrcweir#endif 137