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