LibreOffice Module sw (master)
1
sw
inc
toxe.hxx
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
* This file is part of the LibreOffice project.
4
*
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/.
8
*
9
* This file incorporates work covered by the following license notice:
10
*
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 .
18
*/
19
#ifndef INCLUDED_SW_INC_TOXE_HXX
20
#define INCLUDED_SW_INC_TOXE_HXX
21
22
enum
SwTOXSearch
23
{
24
TOX_NXT
,
25
TOX_PRV
,
26
TOX_SAME_NXT
,
27
TOX_SAME_PRV
28
};
29
30
enum
SwTOIKeyType
31
{
32
TOI_PRIMARY
,
33
TOI_SECONDARY
34
};
35
36
// Somewhat redundantly fix TOXType's underlying type to int, so that
37
// SwTOXEntryTabPage (sw/source/ui/index/cnttab.cxx) can initialize
38
// aLastTOXType.eType to (TOXTypes)USHRT_MAX without causing -fsanitize=enum:
39
enum
TOXTypes
:
int
40
{
41
TOX_INDEX
,
42
TOX_USER
,
43
TOX_CONTENT
,
44
TOX_ILLUSTRATIONS
,
45
TOX_OBJECTS
,
46
TOX_TABLES
,
47
TOX_AUTHORITIES
,
48
TOX_BIBLIOGRAPHY
,
49
TOX_CITATION
50
};
51
// this enum contains all types of sources
52
enum
ToxAuthorityType
53
{
54
//BiBTeX - fields
55
AUTH_TYPE_ARTICLE
,
56
AUTH_TYPE_BOOK
,
57
AUTH_TYPE_BOOKLET
,
58
AUTH_TYPE_CONFERENCE
,
59
AUTH_TYPE_INBOOK
,
60
AUTH_TYPE_INCOLLECTION
,
61
AUTH_TYPE_INPROCEEDINGS
,
62
AUTH_TYPE_JOURNAL
,
63
AUTH_TYPE_MANUAL
,
64
AUTH_TYPE_MASTERSTHESIS
,
65
AUTH_TYPE_MISC
,
66
AUTH_TYPE_PHDTHESIS
,
67
AUTH_TYPE_PROCEEDINGS
,
68
AUTH_TYPE_TECHREPORT
,
69
AUTH_TYPE_UNPUBLISHED
,
70
//additional types
71
AUTH_TYPE_EMAIL
,
72
AUTH_TYPE_WWW
,
73
AUTH_TYPE_CUSTOM1
,
74
AUTH_TYPE_CUSTOM2
,
75
AUTH_TYPE_CUSTOM3
,
76
AUTH_TYPE_CUSTOM4
,
77
AUTH_TYPE_CUSTOM5
,
78
AUTH_TYPE_END
79
};
80
81
//this enum contains the fields of an authority entry
82
enum
ToxAuthorityField
83
{
84
AUTH_FIELD_IDENTIFIER
,
85
AUTH_FIELD_AUTHORITY_TYPE
,
//ToxAuthorityType
86
//BibTex types
87
AUTH_FIELD_ADDRESS
,
88
AUTH_FIELD_ANNOTE
,
89
AUTH_FIELD_AUTHOR
,
90
AUTH_FIELD_BOOKTITLE
,
91
AUTH_FIELD_CHAPTER
,
92
AUTH_FIELD_EDITION
,
93
AUTH_FIELD_EDITOR
,
94
AUTH_FIELD_HOWPUBLISHED
,
95
AUTH_FIELD_INSTITUTION
,
96
AUTH_FIELD_JOURNAL
,
97
AUTH_FIELD_MONTH
,
98
AUTH_FIELD_NOTE
,
99
AUTH_FIELD_NUMBER
,
100
AUTH_FIELD_ORGANIZATIONS
,
101
AUTH_FIELD_PAGES
,
102
AUTH_FIELD_PUBLISHER
,
103
AUTH_FIELD_SCHOOL
,
104
AUTH_FIELD_SERIES
,
105
AUTH_FIELD_TITLE
,
106
AUTH_FIELD_REPORT_TYPE
,
107
AUTH_FIELD_VOLUME
,
108
AUTH_FIELD_YEAR
,
109
//additional types
110
AUTH_FIELD_URL
,
111
AUTH_FIELD_CUSTOM1
,
112
AUTH_FIELD_CUSTOM2
,
113
AUTH_FIELD_CUSTOM3
,
114
AUTH_FIELD_CUSTOM4
,
115
AUTH_FIELD_CUSTOM5
,
116
AUTH_FIELD_ISBN
,
117
AUTH_FIELD_LOCAL_URL
,
118
AUTH_FIELD_TARGET_TYPE
,
119
AUTH_FIELD_TARGET_URL
,
120
121
AUTH_FIELD_END
122
};
123
124
#endif
125
126
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SwTOIKeyType
SwTOIKeyType
Definition:
toxe.hxx:31
TOI_SECONDARY
@ TOI_SECONDARY
Definition:
toxe.hxx:33
TOI_PRIMARY
@ TOI_PRIMARY
Definition:
toxe.hxx:32
ToxAuthorityField
ToxAuthorityField
Definition:
toxe.hxx:83
AUTH_FIELD_SCHOOL
@ AUTH_FIELD_SCHOOL
Definition:
toxe.hxx:103
AUTH_FIELD_JOURNAL
@ AUTH_FIELD_JOURNAL
Definition:
toxe.hxx:96
AUTH_FIELD_CUSTOM4
@ AUTH_FIELD_CUSTOM4
Definition:
toxe.hxx:114
AUTH_FIELD_CHAPTER
@ AUTH_FIELD_CHAPTER
Definition:
toxe.hxx:91
AUTH_FIELD_PAGES
@ AUTH_FIELD_PAGES
Definition:
toxe.hxx:101
AUTH_FIELD_SERIES
@ AUTH_FIELD_SERIES
Definition:
toxe.hxx:104
AUTH_FIELD_PUBLISHER
@ AUTH_FIELD_PUBLISHER
Definition:
toxe.hxx:102
AUTH_FIELD_TITLE
@ AUTH_FIELD_TITLE
Definition:
toxe.hxx:105
AUTH_FIELD_CUSTOM5
@ AUTH_FIELD_CUSTOM5
Definition:
toxe.hxx:115
AUTH_FIELD_IDENTIFIER
@ AUTH_FIELD_IDENTIFIER
Definition:
toxe.hxx:84
AUTH_FIELD_EDITOR
@ AUTH_FIELD_EDITOR
Definition:
toxe.hxx:93
AUTH_FIELD_CUSTOM1
@ AUTH_FIELD_CUSTOM1
Definition:
toxe.hxx:111
AUTH_FIELD_AUTHOR
@ AUTH_FIELD_AUTHOR
Definition:
toxe.hxx:89
AUTH_FIELD_HOWPUBLISHED
@ AUTH_FIELD_HOWPUBLISHED
Definition:
toxe.hxx:94
AUTH_FIELD_ISBN
@ AUTH_FIELD_ISBN
Definition:
toxe.hxx:116
AUTH_FIELD_CUSTOM2
@ AUTH_FIELD_CUSTOM2
Definition:
toxe.hxx:112
AUTH_FIELD_LOCAL_URL
@ AUTH_FIELD_LOCAL_URL
Definition:
toxe.hxx:117
AUTH_FIELD_TARGET_TYPE
@ AUTH_FIELD_TARGET_TYPE
Definition:
toxe.hxx:118
AUTH_FIELD_ADDRESS
@ AUTH_FIELD_ADDRESS
Definition:
toxe.hxx:87
AUTH_FIELD_INSTITUTION
@ AUTH_FIELD_INSTITUTION
Definition:
toxe.hxx:95
AUTH_FIELD_NOTE
@ AUTH_FIELD_NOTE
Definition:
toxe.hxx:98
AUTH_FIELD_VOLUME
@ AUTH_FIELD_VOLUME
Definition:
toxe.hxx:107
AUTH_FIELD_AUTHORITY_TYPE
@ AUTH_FIELD_AUTHORITY_TYPE
Definition:
toxe.hxx:85
AUTH_FIELD_ORGANIZATIONS
@ AUTH_FIELD_ORGANIZATIONS
Definition:
toxe.hxx:100
AUTH_FIELD_NUMBER
@ AUTH_FIELD_NUMBER
Definition:
toxe.hxx:99
AUTH_FIELD_URL
@ AUTH_FIELD_URL
Definition:
toxe.hxx:110
AUTH_FIELD_ANNOTE
@ AUTH_FIELD_ANNOTE
Definition:
toxe.hxx:88
AUTH_FIELD_MONTH
@ AUTH_FIELD_MONTH
Definition:
toxe.hxx:97
AUTH_FIELD_BOOKTITLE
@ AUTH_FIELD_BOOKTITLE
Definition:
toxe.hxx:90
AUTH_FIELD_REPORT_TYPE
@ AUTH_FIELD_REPORT_TYPE
Definition:
toxe.hxx:106
AUTH_FIELD_EDITION
@ AUTH_FIELD_EDITION
Definition:
toxe.hxx:92
AUTH_FIELD_TARGET_URL
@ AUTH_FIELD_TARGET_URL
Definition:
toxe.hxx:119
AUTH_FIELD_END
@ AUTH_FIELD_END
Definition:
toxe.hxx:121
AUTH_FIELD_CUSTOM3
@ AUTH_FIELD_CUSTOM3
Definition:
toxe.hxx:113
AUTH_FIELD_YEAR
@ AUTH_FIELD_YEAR
Definition:
toxe.hxx:108
TOXTypes
TOXTypes
Definition:
toxe.hxx:40
TOX_USER
@ TOX_USER
Definition:
toxe.hxx:42
TOX_CONTENT
@ TOX_CONTENT
Definition:
toxe.hxx:43
TOX_TABLES
@ TOX_TABLES
Definition:
toxe.hxx:46
TOX_INDEX
@ TOX_INDEX
Definition:
toxe.hxx:41
TOX_OBJECTS
@ TOX_OBJECTS
Definition:
toxe.hxx:45
TOX_AUTHORITIES
@ TOX_AUTHORITIES
Definition:
toxe.hxx:47
TOX_ILLUSTRATIONS
@ TOX_ILLUSTRATIONS
Definition:
toxe.hxx:44
TOX_BIBLIOGRAPHY
@ TOX_BIBLIOGRAPHY
Definition:
toxe.hxx:48
TOX_CITATION
@ TOX_CITATION
Definition:
toxe.hxx:49
ToxAuthorityType
ToxAuthorityType
Definition:
toxe.hxx:53
AUTH_TYPE_END
@ AUTH_TYPE_END
Definition:
toxe.hxx:78
AUTH_TYPE_CUSTOM2
@ AUTH_TYPE_CUSTOM2
Definition:
toxe.hxx:74
AUTH_TYPE_MASTERSTHESIS
@ AUTH_TYPE_MASTERSTHESIS
Definition:
toxe.hxx:64
AUTH_TYPE_UNPUBLISHED
@ AUTH_TYPE_UNPUBLISHED
Definition:
toxe.hxx:69
AUTH_TYPE_CUSTOM5
@ AUTH_TYPE_CUSTOM5
Definition:
toxe.hxx:77
AUTH_TYPE_BOOKLET
@ AUTH_TYPE_BOOKLET
Definition:
toxe.hxx:57
AUTH_TYPE_INCOLLECTION
@ AUTH_TYPE_INCOLLECTION
Definition:
toxe.hxx:60
AUTH_TYPE_EMAIL
@ AUTH_TYPE_EMAIL
Definition:
toxe.hxx:71
AUTH_TYPE_INPROCEEDINGS
@ AUTH_TYPE_INPROCEEDINGS
Definition:
toxe.hxx:61
AUTH_TYPE_BOOK
@ AUTH_TYPE_BOOK
Definition:
toxe.hxx:56
AUTH_TYPE_ARTICLE
@ AUTH_TYPE_ARTICLE
Definition:
toxe.hxx:55
AUTH_TYPE_CUSTOM3
@ AUTH_TYPE_CUSTOM3
Definition:
toxe.hxx:75
AUTH_TYPE_MISC
@ AUTH_TYPE_MISC
Definition:
toxe.hxx:65
AUTH_TYPE_MANUAL
@ AUTH_TYPE_MANUAL
Definition:
toxe.hxx:63
AUTH_TYPE_PROCEEDINGS
@ AUTH_TYPE_PROCEEDINGS
Definition:
toxe.hxx:67
AUTH_TYPE_CUSTOM1
@ AUTH_TYPE_CUSTOM1
Definition:
toxe.hxx:73
AUTH_TYPE_TECHREPORT
@ AUTH_TYPE_TECHREPORT
Definition:
toxe.hxx:68
AUTH_TYPE_WWW
@ AUTH_TYPE_WWW
Definition:
toxe.hxx:72
AUTH_TYPE_PHDTHESIS
@ AUTH_TYPE_PHDTHESIS
Definition:
toxe.hxx:66
AUTH_TYPE_INBOOK
@ AUTH_TYPE_INBOOK
Definition:
toxe.hxx:59
AUTH_TYPE_JOURNAL
@ AUTH_TYPE_JOURNAL
Definition:
toxe.hxx:62
AUTH_TYPE_CONFERENCE
@ AUTH_TYPE_CONFERENCE
Definition:
toxe.hxx:58
AUTH_TYPE_CUSTOM4
@ AUTH_TYPE_CUSTOM4
Definition:
toxe.hxx:76
SwTOXSearch
SwTOXSearch
Definition:
toxe.hxx:23
TOX_SAME_PRV
@ TOX_SAME_PRV
Definition:
toxe.hxx:27
TOX_PRV
@ TOX_PRV
Definition:
toxe.hxx:25
TOX_SAME_NXT
@ TOX_SAME_NXT
Definition:
toxe.hxx:26
TOX_NXT
@ TOX_NXT
Definition:
toxe.hxx:24
Generated on Sun Jul 30 2023 04:28:05 for LibreOffice Module sw (master) by
1.9.3