1*b1cdbd2cSJim Jagielski/**************************************************************
2*b1cdbd2cSJim Jagielski *
3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski *
11*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski *
13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski * under the License.
19*b1cdbd2cSJim Jagielski *
20*b1cdbd2cSJim Jagielski *************************************************************/
21*b1cdbd2cSJim Jagielski
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_text_ReferenceFieldPart_idl__
24*b1cdbd2cSJim Jagielski#define __com_sun_star_text_ReferenceFieldPart_idl__
25*b1cdbd2cSJim Jagielski
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim Jagielski//=============================================================================
28*b1cdbd2cSJim Jagielski
29*b1cdbd2cSJim Jagielskimodule com { module sun { module star { module text {
30*b1cdbd2cSJim Jagielski
31*b1cdbd2cSJim Jagielski//=============================================================================
32*b1cdbd2cSJim Jagielski/** These constants define how the reference position is displayed in
33*b1cdbd2cSJim Jagielski	reference text fields.
34*b1cdbd2cSJim Jagielski
35*b1cdbd2cSJim Jagielski*/
36*b1cdbd2cSJim Jagielskipublished constants ReferenceFieldPart
37*b1cdbd2cSJim Jagielski{
38*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
39*b1cdbd2cSJim Jagielski	/** The page number is displayed using arabic numbers.
40*b1cdbd2cSJim Jagielski	*/
41*b1cdbd2cSJim Jagielski	const short PAGE = 0;
42*b1cdbd2cSJim Jagielski
43*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
44*b1cdbd2cSJim Jagielski	/** The number of the chapter is displayed.
45*b1cdbd2cSJim Jagielski	*/
46*b1cdbd2cSJim Jagielski	const short CHAPTER = 1;
47*b1cdbd2cSJim Jagielski
48*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
49*b1cdbd2cSJim Jagielski	/** The reference text is displayed.
50*b1cdbd2cSJim Jagielski	 <p>If the source of the reference is a sequence field, then the complete text
51*b1cdbd2cSJim Jagielski	 	of the paragraph is displayed. This is useful to reference to captions. </p>
52*b1cdbd2cSJim Jagielski	*/
53*b1cdbd2cSJim Jagielski	const short TEXT = 2;
54*b1cdbd2cSJim Jagielski
55*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
56*b1cdbd2cSJim Jagielski	/** The reference is displayed as one of the (localized) words, "above" or "below".
57*b1cdbd2cSJim Jagielski	*/
58*b1cdbd2cSJim Jagielski	const short UP_DOWN = 3;
59*b1cdbd2cSJim Jagielski
60*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
61*b1cdbd2cSJim Jagielski	/** The page number is displayed using the numbering type defined in
62*b1cdbd2cSJim Jagielski		the page style of the reference position.
63*b1cdbd2cSJim Jagielski	*/
64*b1cdbd2cSJim Jagielski	const short PAGE_DESC = 4;
65*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
66*b1cdbd2cSJim Jagielski	/** The category and the number of a caption is displayed.
67*b1cdbd2cSJim Jagielski	 <p>This option is only valid if the source of the reference is a sequence field.</p>
68*b1cdbd2cSJim Jagielski	*/
69*b1cdbd2cSJim Jagielski	const short CATEGORY_AND_NUMBER = 5;
70*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
71*b1cdbd2cSJim Jagielski	/** The caption text of a caption is displayed.
72*b1cdbd2cSJim Jagielski	 <p>This option is only valid if the source of the reference is a sequence field.</p>
73*b1cdbd2cSJim Jagielski	*/
74*b1cdbd2cSJim Jagielski	const short ONLY_CAPTION = 6;
75*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
76*b1cdbd2cSJim Jagielski	/** The number of a sequence field is displayed.
77*b1cdbd2cSJim Jagielski	 <p>This option is only valid if the source of the reference is a sequence field.</p>
78*b1cdbd2cSJim Jagielski	*/
79*b1cdbd2cSJim Jagielski	const short ONLY_SEQUENCE_NUMBER = 7;
80*b1cdbd2cSJim Jagielski        //-------------------------------------------------------------------------
81*b1cdbd2cSJim Jagielski        /** The numbering label and depending of the reference field context numbering lables of
82*b1cdbd2cSJim Jagielski            superior list levels of the reference are displayed.
83*b1cdbd2cSJim Jagielski
84*b1cdbd2cSJim Jagielski            <p>This option is only valid, if the source of the reference is a bookmark or a set reference.</p>
85*b1cdbd2cSJim Jagielski            <p>The contents of the list label of the paragraph, at which the bookmark respectively the
86*b1cdbd2cSJim Jagielski            set reference starts - named "referenced item" in the following - is displayed. To unambiguous
87*b1cdbd2cSJim Jagielski            identify the referenced item at the document position of the reference text field, the content
88*b1cdbd2cSJim Jagielski            of all needed superior levels are added in front. The needed superior levels of the referenced
89*b1cdbd2cSJim Jagielski            item are the ones, which differ from the superior levels of the document position of the reference
90*b1cdbd2cSJim Jagielski            text field.
91*b1cdbd2cSJim Jagielski            Additional condition, which suppresses the addition of a superior level's list label content:
92*b1cdbd2cSJim Jagielski            The list label of the referenced item can already contain numbers of a superior levels. Assume X
93*b1cdbd2cSJim Jagielski            be the level of the most superior level, then no list label content of superior levels greater or
94*b1cdbd2cSJim Jagielski            equal than X are added.
95*b1cdbd2cSJim Jagielski            If the referenced item isn't numbered, nothing is displayed.</p>
96*b1cdbd2cSJim Jagielski
97*b1cdbd2cSJim Jagielski            @since OpenOffice 3.0
98*b1cdbd2cSJim Jagielski        */
99*b1cdbd2cSJim Jagielski        const short NUMBER = 8;
100*b1cdbd2cSJim Jagielski        //-------------------------------------------------------------------------
101*b1cdbd2cSJim Jagielski        /** The numbering label of the reference is displayed.
102*b1cdbd2cSJim Jagielski
103*b1cdbd2cSJim Jagielski            <p>This option is only valid, if the source of the reference is a bookmark or a set reference.</p>
104*b1cdbd2cSJim Jagielski            <p>The contents of the list label of the paragraph, at which the bookmark respectively the
105*b1cdbd2cSJim Jagielski            set reference starts, is displayed. If this paragraph isn't numbered, nothing is displayed.</p>
106*b1cdbd2cSJim Jagielski
107*b1cdbd2cSJim Jagielski            @since OpenOffice 3.0
108*b1cdbd2cSJim Jagielski        */
109*b1cdbd2cSJim Jagielski        const short NUMBER_NO_CONTEXT = 9;
110*b1cdbd2cSJim Jagielski        //-------------------------------------------------------------------------
111*b1cdbd2cSJim Jagielski        /** The numbering label and numbering lables of superior list levels of the reference are displayed.
112*b1cdbd2cSJim Jagielski
113*b1cdbd2cSJim Jagielski            <p>This option is only valid, if the source of the reference is a bookmark or a set reference.</p>
114*b1cdbd2cSJim Jagielski            <p>The contents of the list label of the paragraph, at which the bookmark respectively the
115*b1cdbd2cSJim Jagielski            set reference starts - named "referenced item" in the following - is displayed and the contents
116*b1cdbd2cSJim Jagielski            of all list labels of superior levels are added in front of it.
117*b1cdbd2cSJim Jagielski            Additional condition, which suppresses the addition of a superior level's list label content:
118*b1cdbd2cSJim Jagielski            The list label of the referenced item can already contain numbers of a superior levels. Assume X
119*b1cdbd2cSJim Jagielski            be the level of the most superior level, then no list label content of superior levels greater or
120*b1cdbd2cSJim Jagielski            equal than X are added.
121*b1cdbd2cSJim Jagielski            If the referenced item is numbered nothing is displayed.</p>
122*b1cdbd2cSJim Jagielski
123*b1cdbd2cSJim Jagielski            @since OpenOffice 3.0
124*b1cdbd2cSJim Jagielski        */
125*b1cdbd2cSJim Jagielski        const short NUMBER_FULL_CONTEXT = 10;
126*b1cdbd2cSJim Jagielski};
127*b1cdbd2cSJim Jagielski
128*b1cdbd2cSJim Jagielski//=============================================================================
129*b1cdbd2cSJim Jagielski
130*b1cdbd2cSJim Jagielski}; }; }; };
131*b1cdbd2cSJim Jagielski
132*b1cdbd2cSJim Jagielski#endif
133