LibreOffice Module sw (master)
1
sw
source
filter
inc
wwstyles.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
20
#ifndef INCLUDED_SW_SOURCE_FILTER_INC_WWSTYLES_HXX
21
#define INCLUDED_SW_SOURCE_FILTER_INC_WWSTYLES_HXX
22
23
#include <
sal/types.h
>
24
25
namespace
ww
26
{
27
// When changing, make sure to update GetStiNames in sw/source/filter/ww8/styles.cxx accordingly
28
enum
sti
: sal_uInt16
29
{
30
stiNormal
= 0,
// 0x0000
31
stiLev1
= 1,
// 0x0001
32
stiLev2
= 2,
// 0x0002
33
stiLev3
= 3,
// 0x0003
34
stiLev4
= 4,
// 0x0004
35
stiLev5
= 5,
// 0x0005
36
stiLev6
= 6,
// 0x0006
37
stiLev7
= 7,
// 0x0007
38
stiLev8
= 8,
// 0x0008
39
stiLev9
= 9,
// 0x0009
40
stiLevFirst
=
stiLev1
,
41
stiLevLast
=
stiLev9
,
42
stiIndex1
= 10,
// 0x000A
43
stiIndex2
= 11,
// 0x000B
44
stiIndex3
= 12,
// 0x000C
45
stiIndex4
= 13,
// 0x000D
46
stiIndex5
= 14,
// 0x000E
47
stiIndex6
= 15,
// 0x000F
48
stiIndex7
= 16,
// 0x0010
49
stiIndex8
= 17,
// 0x0011
50
stiIndex9
= 18,
// 0x0012
51
stiIndexFirst
=
stiIndex1
,
52
stiIndexLast
=
stiIndex9
,
53
stiToc1
= 19,
// 0x0013
54
stiToc2
= 20,
// 0x0014
55
stiToc3
= 21,
// 0x0015
56
stiToc4
= 22,
// 0x0016
57
stiToc5
= 23,
// 0x0017
58
stiToc6
= 24,
// 0x0018
59
stiToc7
= 25,
// 0x0019
60
stiToc8
= 26,
// 0x001A
61
stiToc9
= 27,
// 0x001B
62
stiTocFirst
=
stiToc1
,
63
stiTocLast
=
stiToc9
,
64
stiNormIndent
= 28,
// 0x001C
65
stiFootnoteText
= 29,
// 0x001D
66
stiAtnText
= 30,
// 0x001E
67
stiHeader
= 31,
// 0x001F
68
stiFooter
= 32,
// 0x0020
69
stiIndexHeading
= 33,
// 0x0021
70
stiCaption
= 34,
// 0x0022
71
stiToCaption
= 35,
// 0x0023
72
stiEnvAddr
= 36,
// 0x0024
73
stiEnvRet
= 37,
// 0x0025
74
stiFootnoteRef
= 38,
// 0x0026 char style
75
stiAtnRef
= 39,
// 0x0027 char style
76
stiLnn
= 40,
// 0x0028 char style
77
stiPgn
= 41,
// 0x0029 char style
78
stiEdnRef
= 42,
// 0x002A char style
79
stiEdnText
= 43,
// 0x002B
80
stiToa
= 44,
// 0x002C
81
stiMacro
= 45,
// 0x002D
82
stiToaHeading
= 46,
// 0x002E
83
stiList
= 47,
// 0x002F
84
stiListBullet
= 48,
// 0x0030
85
stiListNumber
= 49,
// 0x0031
86
stiList2
= 50,
// 0x0032
87
stiList3
= 51,
// 0x0033
88
stiList4
= 52,
// 0x0034
89
stiList5
= 53,
// 0x0035
90
stiListBullet2
= 54,
// 0x0036
91
stiListBullet3
= 55,
// 0x0037
92
stiListBullet4
= 56,
// 0x0038
93
stiListBullet5
= 57,
// 0x0039
94
stiListNumber2
= 58,
// 0x003A
95
stiListNumber3
= 59,
// 0x003B
96
stiListNumber4
= 60,
// 0x003C
97
stiListNumber5
= 61,
// 0x003D
98
stiTitle
= 62,
// 0x003E
99
stiClosing
= 63,
// 0x003F
100
stiSignature
= 64,
// 0x0040
101
stiNormalChar
= 65,
// 0x0041 char style
102
stiBodyText
= 66,
// 0x0042
103
/*
104
stiBodyTextInd1 was orig stiBodyText2 in documentation, but that
105
collides with the other stiBodyText2 and this seems more reasonable.
106
cmc@openoffice.org
107
*/
108
stiBodyTextInd1
= 67,
// 0x0043
109
stiListCont
= 68,
// 0x0044
110
stiListCont2
= 69,
// 0x0045
111
stiListCont3
= 70,
// 0x0046
112
stiListCont4
= 71,
// 0x0047
113
stiListCont5
= 72,
// 0x0048
114
stiMsgHeader
= 73,
// 0x0049
115
stiSubtitle
= 74,
// 0x004A
116
stiSalutation
= 75,
// 0x004B
117
stiDate
= 76,
// 0X004C
118
stiBodyText1I
= 77,
// 0x004D
119
stiBodyText1I2
= 78,
// 0x004E
120
stiNoteHeading
= 79,
// 0x004F
121
stiBodyText2
= 80,
// 0x0050
122
stiBodyText3
= 81,
// 0x0051
123
stiBodyTextInd2
= 82,
// 0x0052
124
stiBodyTextInd3
= 83,
// 0x0053
125
stiBlockQuote
= 84,
// 0x0054
126
stiHyperlink
= 85,
// 0x0055 char style
127
stiHyperlinkFollowed
= 86,
// 0x0056 char style
128
stiStrong
= 87,
// 0x0057 char style
129
stiEmphasis
= 88,
// 0x0058 char style
130
stiNavPane
= 89,
// 0x0059 char style
131
stiPlainText
= 90,
// 0x005A
132
stiMax
= 91,
// number of defined sti's
133
stiUser
= 0x0ffe,
// user styles are distinguished by name
134
stiNil
= 0x0fff
// max for 12 bits
135
};
136
151
sti
GetCanonicalStiFromStc
(
sal_uInt8
stc)
noexcept
;
152
163
const
char
*
GetEnglishNameFromSti
(
sti
eSti)
noexcept
;
164
172
bool
StandardStiIsCharStyle
(
sti
eSti)
noexcept
;
173
}
// namespace ww
174
175
#endif
176
177
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ww
@HTML
ww::GetEnglishNameFromSti
const char * GetEnglishNameFromSti(sti eSti) noexcept
Find the WinWord english name from a sti index.
Definition:
styles.cxx:133
ww::sti
sti
Definition:
wwstyles.hxx:29
ww::stiToc6
@ stiToc6
Definition:
wwstyles.hxx:58
ww::stiIndexLast
@ stiIndexLast
Definition:
wwstyles.hxx:52
ww::stiListNumber5
@ stiListNumber5
Definition:
wwstyles.hxx:97
ww::stiNoteHeading
@ stiNoteHeading
Definition:
wwstyles.hxx:120
ww::stiLev7
@ stiLev7
Definition:
wwstyles.hxx:37
ww::stiBodyText3
@ stiBodyText3
Definition:
wwstyles.hxx:122
ww::stiListBullet2
@ stiListBullet2
Definition:
wwstyles.hxx:90
ww::stiDate
@ stiDate
Definition:
wwstyles.hxx:117
ww::stiNormal
@ stiNormal
Definition:
wwstyles.hxx:30
ww::stiAtnText
@ stiAtnText
Definition:
wwstyles.hxx:66
ww::stiLev4
@ stiLev4
Definition:
wwstyles.hxx:34
ww::stiIndex1
@ stiIndex1
Definition:
wwstyles.hxx:42
ww::stiListCont3
@ stiListCont3
Definition:
wwstyles.hxx:111
ww::stiIndexFirst
@ stiIndexFirst
Definition:
wwstyles.hxx:51
ww::stiListCont5
@ stiListCont5
Definition:
wwstyles.hxx:113
ww::stiLev2
@ stiLev2
Definition:
wwstyles.hxx:32
ww::stiUser
@ stiUser
Definition:
wwstyles.hxx:133
ww::stiHyperlink
@ stiHyperlink
Definition:
wwstyles.hxx:126
ww::stiNormIndent
@ stiNormIndent
Definition:
wwstyles.hxx:64
ww::stiListBullet5
@ stiListBullet5
Definition:
wwstyles.hxx:93
ww::stiBodyTextInd2
@ stiBodyTextInd2
Definition:
wwstyles.hxx:123
ww::stiToCaption
@ stiToCaption
Definition:
wwstyles.hxx:71
ww::stiMax
@ stiMax
Definition:
wwstyles.hxx:132
ww::stiListNumber2
@ stiListNumber2
Definition:
wwstyles.hxx:94
ww::stiLev3
@ stiLev3
Definition:
wwstyles.hxx:33
ww::stiNormalChar
@ stiNormalChar
Definition:
wwstyles.hxx:101
ww::stiIndex2
@ stiIndex2
Definition:
wwstyles.hxx:43
ww::stiIndexHeading
@ stiIndexHeading
Definition:
wwstyles.hxx:69
ww::stiLevFirst
@ stiLevFirst
Definition:
wwstyles.hxx:40
ww::stiToc7
@ stiToc7
Definition:
wwstyles.hxx:59
ww::stiLev9
@ stiLev9
Definition:
wwstyles.hxx:39
ww::stiList2
@ stiList2
Definition:
wwstyles.hxx:86
ww::stiListNumber4
@ stiListNumber4
Definition:
wwstyles.hxx:96
ww::stiFootnoteText
@ stiFootnoteText
Definition:
wwstyles.hxx:65
ww::stiTocLast
@ stiTocLast
Definition:
wwstyles.hxx:63
ww::stiToc8
@ stiToc8
Definition:
wwstyles.hxx:60
ww::stiIndex7
@ stiIndex7
Definition:
wwstyles.hxx:48
ww::stiIndex6
@ stiIndex6
Definition:
wwstyles.hxx:47
ww::stiLevLast
@ stiLevLast
Definition:
wwstyles.hxx:41
ww::stiListCont4
@ stiListCont4
Definition:
wwstyles.hxx:112
ww::stiListNumber3
@ stiListNumber3
Definition:
wwstyles.hxx:95
ww::stiEdnRef
@ stiEdnRef
Definition:
wwstyles.hxx:78
ww::stiIndex8
@ stiIndex8
Definition:
wwstyles.hxx:49
ww::stiListNumber
@ stiListNumber
Definition:
wwstyles.hxx:85
ww::stiBodyText1I
@ stiBodyText1I
Definition:
wwstyles.hxx:118
ww::stiCaption
@ stiCaption
Definition:
wwstyles.hxx:70
ww::stiClosing
@ stiClosing
Definition:
wwstyles.hxx:99
ww::stiListCont2
@ stiListCont2
Definition:
wwstyles.hxx:110
ww::stiToaHeading
@ stiToaHeading
Definition:
wwstyles.hxx:82
ww::stiBodyText
@ stiBodyText
Definition:
wwstyles.hxx:102
ww::stiLev5
@ stiLev5
Definition:
wwstyles.hxx:35
ww::stiBodyText1I2
@ stiBodyText1I2
Definition:
wwstyles.hxx:119
ww::stiIndex3
@ stiIndex3
Definition:
wwstyles.hxx:44
ww::stiHeader
@ stiHeader
Definition:
wwstyles.hxx:67
ww::stiFooter
@ stiFooter
Definition:
wwstyles.hxx:68
ww::stiToc1
@ stiToc1
Definition:
wwstyles.hxx:53
ww::stiMacro
@ stiMacro
Definition:
wwstyles.hxx:81
ww::stiBodyTextInd1
@ stiBodyTextInd1
Definition:
wwstyles.hxx:108
ww::stiMsgHeader
@ stiMsgHeader
Definition:
wwstyles.hxx:114
ww::stiLnn
@ stiLnn
Definition:
wwstyles.hxx:76
ww::stiEnvAddr
@ stiEnvAddr
Definition:
wwstyles.hxx:72
ww::stiTitle
@ stiTitle
Definition:
wwstyles.hxx:98
ww::stiEdnText
@ stiEdnText
Definition:
wwstyles.hxx:79
ww::stiToc5
@ stiToc5
Definition:
wwstyles.hxx:57
ww::stiToc3
@ stiToc3
Definition:
wwstyles.hxx:55
ww::stiEmphasis
@ stiEmphasis
Definition:
wwstyles.hxx:129
ww::stiListBullet
@ stiListBullet
Definition:
wwstyles.hxx:84
ww::stiToc2
@ stiToc2
Definition:
wwstyles.hxx:54
ww::stiIndex9
@ stiIndex9
Definition:
wwstyles.hxx:50
ww::stiLev6
@ stiLev6
Definition:
wwstyles.hxx:36
ww::stiLev8
@ stiLev8
Definition:
wwstyles.hxx:38
ww::stiList3
@ stiList3
Definition:
wwstyles.hxx:87
ww::stiList5
@ stiList5
Definition:
wwstyles.hxx:89
ww::stiSubtitle
@ stiSubtitle
Definition:
wwstyles.hxx:115
ww::stiTocFirst
@ stiTocFirst
Definition:
wwstyles.hxx:62
ww::stiToc9
@ stiToc9
Definition:
wwstyles.hxx:61
ww::stiLev1
@ stiLev1
Definition:
wwstyles.hxx:31
ww::stiSalutation
@ stiSalutation
Definition:
wwstyles.hxx:116
ww::stiListCont
@ stiListCont
Definition:
wwstyles.hxx:109
ww::stiNavPane
@ stiNavPane
Definition:
wwstyles.hxx:130
ww::stiIndex5
@ stiIndex5
Definition:
wwstyles.hxx:46
ww::stiStrong
@ stiStrong
Definition:
wwstyles.hxx:128
ww::stiBodyText2
@ stiBodyText2
Definition:
wwstyles.hxx:121
ww::stiBodyTextInd3
@ stiBodyTextInd3
Definition:
wwstyles.hxx:124
ww::stiSignature
@ stiSignature
Definition:
wwstyles.hxx:100
ww::stiBlockQuote
@ stiBlockQuote
Definition:
wwstyles.hxx:125
ww::stiToc4
@ stiToc4
Definition:
wwstyles.hxx:56
ww::stiPgn
@ stiPgn
Definition:
wwstyles.hxx:77
ww::stiToa
@ stiToa
Definition:
wwstyles.hxx:80
ww::stiIndex4
@ stiIndex4
Definition:
wwstyles.hxx:45
ww::stiListBullet3
@ stiListBullet3
Definition:
wwstyles.hxx:91
ww::stiFootnoteRef
@ stiFootnoteRef
Definition:
wwstyles.hxx:74
ww::stiAtnRef
@ stiAtnRef
Definition:
wwstyles.hxx:75
ww::stiList
@ stiList
Definition:
wwstyles.hxx:83
ww::stiListBullet4
@ stiListBullet4
Definition:
wwstyles.hxx:92
ww::stiPlainText
@ stiPlainText
Definition:
wwstyles.hxx:131
ww::stiEnvRet
@ stiEnvRet
Definition:
wwstyles.hxx:73
ww::stiList4
@ stiList4
Definition:
wwstyles.hxx:88
ww::stiNil
@ stiNil
Definition:
wwstyles.hxx:134
ww::stiHyperlinkFollowed
@ stiHyperlinkFollowed
Definition:
wwstyles.hxx:127
ww::StandardStiIsCharStyle
bool StandardStiIsCharStyle(sti eSti) noexcept
Determine if the WinWord sti is standard Character Style.
Definition:
styles.cxx:141
ww::GetCanonicalStiFromStc
sti GetCanonicalStiFromStc(sal_uInt8 stc) noexcept
Find the WinWord sti index of an old <= Word2 stc (style code)
Definition:
styles.cxx:157
types.h
sal_uInt8
unsigned char sal_uInt8
Generated on Sun Jul 30 2023 04:29:17 for LibreOffice Module sw (master) by
1.9.3