LibreOffice Module sw (master)  1
poolfmt.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_POOLFMT_HXX
20 #define INCLUDED_SW_INC_POOLFMT_HXX
21 
22 #include <limits.h>
23 #include <editeng/frmdir.hxx>
24 #include <i18nlangtag/lang.h>
25 
57 
59 const sal_uInt16 POOLGRP_NOCOLLID = (1 << 10);
60 
62 
63 const sal_uInt16 USER_FMT = (1 << 15);
64 
65 const sal_uInt16 COLL_TEXT_BITS = (1 << 11);
66 const sal_uInt16 COLL_LISTS_BITS = (2 << 11);
67 const sal_uInt16 COLL_EXTRA_BITS = (3 << 11);
68 const sal_uInt16 COLL_REGISTER_BITS = (4 << 11);
69 const sal_uInt16 COLL_DOC_BITS = (5 << 11);
70 const sal_uInt16 COLL_HTML_BITS = (6 << 11);
71 const sal_uInt16 COLL_GET_RANGE_BITS = (15 << 11);
72 
74 
75 const sal_uInt16 POOLGRP_CHARFMT = (0 << 11) + POOLGRP_NOCOLLID;
76 const sal_uInt16 POOLGRP_FRAMEFMT = (1 << 11) + POOLGRP_NOCOLLID;
77 const sal_uInt16 POOLGRP_PAGEDESC = (2 << 11) + POOLGRP_NOCOLLID;
78 const sal_uInt16 POOLGRP_NUMRULE = (3 << 11) + POOLGRP_NOCOLLID;
79 const sal_uInt16 POOLGRP_TABSTYLE = (4 << 11) + POOLGRP_NOCOLLID;
80 const sal_uInt16 POOLGRP_CELLSTYLE = (5 << 11) + POOLGRP_NOCOLLID;
81 
83 const sal_uInt16 POOL_IDUSER_FMT =
85 
86 inline bool IsPoolUserFormat( sal_uInt16 nId )
87 {
89 }
90 
93 {
99 
103 };
104 
106 
109 {
112 
119 
131 
133 
145 
147 };
148 
151 {
153 
161 
163 };
164 
167 {
169 
180 
182 };
183 
184 // IDs for list styles.
186 {
199 };
200 
201 // IDs for table styles.
203 {
206 // 16 old styles
223 // 10 new styles since LibreOffice 6.0
235 };
236 
238 {
241 };
242 
243 // IDs for paragraph styles.
245 {
246 // Group text.
248 
258 
271 
273 
276 
278 
300 
322 
324 
327 
333 
338 
342 
349 
356 
359 
362 
364 
371 
379 
387 
393 
397 
401 
405 
409 
416 
418 
421 
425 
427 
430 
436 
438 
440 };
441 
446 sal_uInt16 GetPoolParent( sal_uInt16 nId );
447 
449 
450 bool IsConditionalByPoolId(sal_uInt16 nId);
451 
452 #endif
453 
454 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
End 1st level.
Definition: poolfmt.hxx:282
NumRule Numbering abc.
Definition: poolfmt.hxx:190
Subgroup labels.
Definition: poolfmt.hxx:344
RES_POOL_PAGEFMT_TYPE
IDs for page styles.
Definition: poolfmt.hxx:166
bool IsConditionalByPoolId(sal_uInt16 nId)
const sal_uInt16 COLL_LISTS_BITS
Definition: poolfmt.hxx:66
const sal_uInt16 COLL_DOC_BITS
Definition: poolfmt.hxx:69
Group HTML-styles.
Definition: poolfmt.hxx:429
Subgroup numberings.
Definition: poolfmt.hxx:280
Footnote at end of document.
Definition: poolfmt.hxx:177
const sal_uInt16 POOLGRP_CELLSTYLE
Definition: poolfmt.hxx:80
Group chapter / document.
Definition: poolfmt.hxx:420
Start 3rd level.
Definition: poolfmt.hxx:288
const sal_uInt16 COLL_GET_RANGE_BITS
Definition: poolfmt.hxx:71
Header Left.
Definition: poolfmt.hxx:331
Pages/field.
Definition: poolfmt.hxx:114
NumRule Bullets 1.
Definition: poolfmt.hxx:193
End of text styles collection.
Definition: poolfmt.hxx:437
Main entry in indices.
Definition: poolfmt.hxx:126
RES_POOL_TABLESTYLE_TYPE
Definition: poolfmt.hxx:202
Subgroup user indices.
Definition: poolfmt.hxx:381
NumRule Bullets 3.
Definition: poolfmt.hxx:195
Doc. subtitle.
Definition: poolfmt.hxx:423
Special ranges.
Definition: poolfmt.hxx:326
const sal_uInt16 COLL_HTML_BITS
Definition: poolfmt.hxx:70
Objects all levels.
Definition: poolfmt.hxx:400
Start 2nd level.
Definition: poolfmt.hxx:306
Vertical numbering symbols.
Definition: poolfmt.hxx:130
Content 1st level.
Definition: poolfmt.hxx:374
bool IsPoolUserFormat(sal_uInt16 nId)
Definition: poolfmt.hxx:86
SvxFrameDirection
Tables all levels.
Definition: poolfmt.hxx:404
Landscape page style.
Definition: poolfmt.hxx:179
Content 5th level.
Definition: poolfmt.hxx:378
Subgroup header.
Definition: poolfmt.hxx:329
No numbering.
Definition: poolfmt.hxx:291
Content 6th level.
Definition: poolfmt.hxx:388
RES_POOL_FRMFMT_TYPE
IDs for frame styles.
Definition: poolfmt.hxx:150
NumRule Numbering ivx.
Definition: poolfmt.hxx:192
Numbering symbols.
Definition: poolfmt.hxx:117
Content 2nd level.
Definition: poolfmt.hxx:375
Text body indent.
Definition: poolfmt.hxx:253
const sal_uInt16 COLL_REGISTER_BITS
Definition: poolfmt.hxx:68
Authorities all levels.
Definition: poolfmt.hxx:408
const sal_uInt16 POOLGRP_NOCOLLID
POOLCOLL-IDs: +-—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+ !User! Range ! 0 ! Offset ! +-—+—+...
Definition: poolfmt.hxx:59
Other stuff.
Definition: poolfmt.hxx:351
Content 3rd level.
Definition: poolfmt.hxx:376
object index.
Definition: poolfmt.hxx:399
Table of Contents - heading.
Definition: poolfmt.hxx:341
NumRule Bullets 2.
Definition: poolfmt.hxx:194
const sal_uInt16 POOL_IDUSER_FMT
Recognize whether it's a user defined style or not:
Definition: poolfmt.hxx:83
Start 3rd level.
Definition: poolfmt.hxx:310
Footnote anchor.
Definition: poolfmt.hxx:127
HTML-styles.
Definition: poolfmt.hxx:134
Complimentary close.
Definition: poolfmt.hxx:254
Internet visited.
Definition: poolfmt.hxx:121
SvxFrameDirection GetDefaultFrameDirection(LanguageType nLanguage)
Return the AutoCollection by its Id.
Definition: poolfmt.cxx:77
No numbering.
Definition: poolfmt.hxx:287
End 5th level.
Definition: poolfmt.hxx:298
No numbering.
Definition: poolfmt.hxx:295
Marginalia.
Definition: poolfmt.hxx:158
First page.
Definition: poolfmt.hxx:171
Subgroup headings.
Definition: poolfmt.hxx:260
Subgroup footer.
Definition: poolfmt.hxx:335
NumRule Numbering IVX.
Definition: poolfmt.hxx:191
End 2nd level.
Definition: poolfmt.hxx:286
Text body.
Definition: poolfmt.hxx:250
NumRule Numbering ABC.
Definition: poolfmt.hxx:189
Jump from index.
Definition: poolfmt.hxx:123
End 4th level.
Definition: poolfmt.hxx:294
sal_uInt16 GetPoolParent(sal_uInt16 nId)
Query defined parent of a POOL-ID Returns 0 if standard USHRT_MAX if no parent the parent in all othe...
Definition: poolfmt.cxx:143
Internet normal.
Definition: poolfmt.hxx:120
Header Left&Right.
Definition: poolfmt.hxx:330
const sal_uInt16 POOLGRP_PAGEDESC
Definition: poolfmt.hxx:77
RES_POOL_NUMRULE_TYPE
Definition: poolfmt.hxx:185
Header Right.
Definition: poolfmt.hxx:332
Endnote anchor.
Definition: poolfmt.hxx:128
Label drawing objects.
Definition: poolfmt.hxx:357
Subgroup bullets.
Definition: poolfmt.hxx:302
RES_POOLFMT
IDs for the ranges.
Definition: poolfmt.hxx:92
RES_POOL_CHRFMT_TYPE
Ranges for the IDs of the formats.
Definition: poolfmt.hxx:108
Left page.
Definition: poolfmt.hxx:172
Start 4th level.
Definition: poolfmt.hxx:292
Illustrations all levels.
Definition: poolfmt.hxx:396
Text body first line indent.
Definition: poolfmt.hxx:251
const sal_uInt16 POOLGRP_FRAMEFMT
Definition: poolfmt.hxx:76
user index 6..10.
Definition: poolfmt.hxx:411
Endnote page.
Definition: poolfmt.hxx:178
illustrations index.
Definition: poolfmt.hxx:395
const sal_uInt16 USER_FMT
POLLCOLL-groups:
Definition: poolfmt.hxx:63
RES_POOL_CELLSTYLE_TYPE
Definition: poolfmt.hxx:237
Content 9th level.
Definition: poolfmt.hxx:391
Doc. appendix.
Definition: poolfmt.hxx:424
Start 5th level.
Definition: poolfmt.hxx:318
NumRule Numbering 123.
Definition: poolfmt.hxx:188
const o3tl::enumarray< SvxAdjust, unsigned short > aSvxToUnoAdjust USHRT_MAX
Definition: unosett.cxx:254
Right page.
Definition: poolfmt.hxx:173
Marginalia.
Definition: poolfmt.hxx:257
const sal_uInt16 POOLGRP_NUMRULE
Definition: poolfmt.hxx:78
Content 4th level.
Definition: poolfmt.hxx:377
Start 2nd level.
Definition: poolfmt.hxx:284
RES_POOL_COLLFMT_TYPE
Definition: poolfmt.hxx:244
Content 10th level.
Definition: poolfmt.hxx:392
Content 8th level.
Definition: poolfmt.hxx:390
NumRule Bullets 4.
Definition: poolfmt.hxx:196
Start 5th level.
Definition: poolfmt.hxx:296
Label illustration.
Definition: poolfmt.hxx:345
tables index.
Definition: poolfmt.hxx:403
const sal_uInt16 POOLGRP_TABSTYLE
Definition: poolfmt.hxx:79
Start 4th level.
Definition: poolfmt.hxx:314
No numbering.
Definition: poolfmt.hxx:299
Footer Left.
Definition: poolfmt.hxx:336
Line numbering.
Definition: poolfmt.hxx:125
Content 7th level.
Definition: poolfmt.hxx:389
No numbering.
Definition: poolfmt.hxx:283
Subgroup index tables.
Definition: poolfmt.hxx:366
Text body hanging indent.
Definition: poolfmt.hxx:252
Subgroup table of contents.
Definition: poolfmt.hxx:373
const sal_uInt16 COLL_TEXT_BITS
Definition: poolfmt.hxx:65
End 3rd level.
Definition: poolfmt.hxx:290
Subgroup table.
Definition: poolfmt.hxx:340
index of authorities.
Definition: poolfmt.hxx:407
Standard page.
Definition: poolfmt.hxx:170
const sal_uInt16 POOLGRP_CHARFMT
Other groups:
Definition: poolfmt.hxx:75
NumRule Bullets 5.
Definition: poolfmt.hxx:197
Footer Right.
Definition: poolfmt.hxx:337
const sal_uInt16 COLL_EXTRA_BITS
Definition: poolfmt.hxx:67
Placeholder.
Definition: poolfmt.hxx:122