1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __com_sun_star_text_ReferenceFieldPart_idl__
20 #define __com_sun_star_text_ReferenceFieldPart_idl__
24 module com
{ module sun
{ module star
{ module text
{
26 /** These constants define how the reference position is displayed in
27 reference text fields.
30 published constants ReferenceFieldPart
32 /** The page number is displayed using Arabic numbers.
36 /** The number of the chapter is displayed.
38 const short CHAPTER
= 1;
40 /** The reference text is displayed.
41 <p>If the source of the reference is a sequence field, then the complete text
42 of the paragraph is displayed. This is useful to reference to captions. </p>
46 /** The reference is displayed as one of the (localized) words, "above" or "below".
48 const short UP_DOWN
= 3;
50 /** The page number is displayed using the numbering type defined in
51 the page style of the reference position.
53 const short PAGE_DESC
= 4;
54 /** The category and the number of a caption is displayed.
55 <p>This option is only valid if the source of the reference is a sequence field.</p>
57 const short CATEGORY_AND_NUMBER
= 5;
58 /** The caption text of a caption is displayed.
59 <p>This option is only valid if the source of the reference is a sequence field.</p>
61 const short ONLY_CAPTION
= 6;
62 /** The number of a sequence field is displayed.
63 <p>This option is only valid if the source of the reference is a sequence field.</p>
65 const short ONLY_SEQUENCE_NUMBER
= 7;
66 /** The numbering label and depending of the reference field context numbering labels of
67 superior list levels of the reference are displayed.
69 <p>This option is only valid, if the source of the reference is a bookmark or a set reference.</p>
70 <p>The contents of the list label of the paragraph, at which the bookmark respectively the
71 set reference starts - named "referenced item" in the following - is displayed. To unambiguous
72 identify the referenced item at the document position of the reference text field, the content
73 of all needed superior levels are added in front. The needed superior levels of the referenced
74 item are the ones, which differ from the superior levels of the document position of the reference
76 Additional condition, which suppresses the addition of a superior level's list label content:
77 The list label of the referenced item can already contain numbers of a superior levels. Assume X
78 be the level of the most superior level, then no list label content of superior levels greater or
79 equal than X are added.
80 If the referenced item isn't numbered, nothing is displayed.</p>
84 const short NUMBER
= 8;
85 /** The numbering label of the reference is displayed.
87 <p>This option is only valid, if the source of the reference is a bookmark or a set reference.</p>
88 <p>The contents of the list label of the paragraph, at which the bookmark respectively the
89 set reference starts, is displayed. If this paragraph isn't numbered, nothing is displayed.</p>
93 const short NUMBER_NO_CONTEXT
= 9;
94 /** The numbering label and numbering labels of superior list levels of the reference are displayed.
96 <p>This option is only valid, if the source of the reference is a bookmark or a set reference.</p>
97 <p>The contents of the list label of the paragraph, at which the bookmark respectively the
98 set reference starts - named "referenced item" in the following - is displayed and the contents
99 of all list labels of superior levels are added in front of it.
100 Additional condition, which suppresses the addition of a superior level's list label content:
101 The list label of the referenced item can already contain numbers of a superior levels. Assume X
102 be the level of the most superior level, then no list label content of superior levels greater or
103 equal than X are added.
104 If the referenced item is numbered nothing is displayed.</p>
108 const short NUMBER_FULL_CONTEXT
= 10;
116 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */