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 const sal_uInt16 POOL_FMT = (0 << 15);
65 
66 const sal_uInt16 COLL_TEXT_BITS = (1 << 11);
67 const sal_uInt16 COLL_LISTS_BITS = (2 << 11);
68 const sal_uInt16 COLL_EXTRA_BITS = (3 << 11);
69 const sal_uInt16 COLL_REGISTER_BITS = (4 << 11);
70 const sal_uInt16 COLL_DOC_BITS = (5 << 11);
71 const sal_uInt16 COLL_HTML_BITS = (6 << 11);
72 const sal_uInt16 COLL_GET_RANGE_BITS = (15 << 11);
73 
75 
76 const sal_uInt16 POOLGRP_CHARFMT = (0 << 11) + POOLGRP_NOCOLLID;
77 const sal_uInt16 POOLGRP_FRAMEFMT = (1 << 11) + POOLGRP_NOCOLLID;
78 const sal_uInt16 POOLGRP_PAGEDESC = (2 << 11) + POOLGRP_NOCOLLID;
79 const sal_uInt16 POOLGRP_NUMRULE = (3 << 11) + POOLGRP_NOCOLLID;
80 const sal_uInt16 POOLGRP_TABSTYLE = (4 << 11) + POOLGRP_NOCOLLID;
81 const sal_uInt16 POOLGRP_CELLSTYLE = (5 << 11) + POOLGRP_NOCOLLID;
82 
84 const sal_uInt16 POOL_IDUSER_FMT =
86 
87 inline bool IsPoolUserFormat( sal_uInt16 nId )
88 {
90 }
91 
94 {
100 
104 };
105 
107 
110 {
113 
120 
132 
134 
146 
148 };
149 
152 {
154 
162 
164 };
165 
168 {
170 
181 
183 };
184 
185 // IDs for list styles.
187 {
200 };
201 
202 // IDs for table styles.
204 {
207 // 16 old styles
224 // 10 new styles since LibreOffice 6.0
236 };
237 
239 {
242 };
243 
244 // IDs for paragraph styles.
246 {
247 // Group text.
249 
259 
272 
274 
277 
279 
301 
323 
325 
328 
334 
339 
343 
350 
357 
360 
363 
365 
372 
380 
388 
394 
398 
402 
406 
410 
417 
419 
422 
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:283
NumRule Numbering abc.
Definition: poolfmt.hxx:191
Subgroup labels.
Definition: poolfmt.hxx:345
RES_POOL_PAGEFMT_TYPE
IDs for page styles.
Definition: poolfmt.hxx:167
bool IsConditionalByPoolId(sal_uInt16 nId)
const sal_uInt16 COLL_LISTS_BITS
Definition: poolfmt.hxx:67
const sal_uInt16 COLL_DOC_BITS
Definition: poolfmt.hxx:70
Group HTML-styles.
Definition: poolfmt.hxx:429
Subgroup numberings.
Definition: poolfmt.hxx:281
Footnote at end of document.
Definition: poolfmt.hxx:178
No numbering.
Definition: poolfmt.hxx:306
const sal_uInt16 POOLGRP_CELLSTYLE
Definition: poolfmt.hxx:81
Group chapter / document.
Definition: poolfmt.hxx:421
Start 3rd level.
Definition: poolfmt.hxx:289
const sal_uInt16 COLL_GET_RANGE_BITS
Definition: poolfmt.hxx:72
End 1st level.
Definition: poolfmt.hxx:305
Header Left.
Definition: poolfmt.hxx:332
Pages/field.
Definition: poolfmt.hxx:115
NumRule Bullets 1.
Definition: poolfmt.hxx:194
End of text styles collection.
Definition: poolfmt.hxx:437
Main entry in indices.
Definition: poolfmt.hxx:127
Subgroup user indices.
Definition: poolfmt.hxx:382
NumRule Bullets 3.
Definition: poolfmt.hxx:196
No numbering.
Definition: poolfmt.hxx:310
Special ranges.
Definition: poolfmt.hxx:327
const sal_uInt16 COLL_HTML_BITS
Definition: poolfmt.hxx:71
Objects all levels.
Definition: poolfmt.hxx:401
Vertical numbering symbols.
Definition: poolfmt.hxx:131
Content 1st level.
Definition: poolfmt.hxx:375
bool IsPoolUserFormat(sal_uInt16 nId)
Definition: poolfmt.hxx:87
SvxFrameDirection
Tables all levels.
Definition: poolfmt.hxx:405
Landscape page style.
Definition: poolfmt.hxx:180
Content 5th level.
Definition: poolfmt.hxx:379
End 3rd level.
Definition: poolfmt.hxx:313
Subgroup header.
Definition: poolfmt.hxx:330
No numbering.
Definition: poolfmt.hxx:292
Content 6th level.
Definition: poolfmt.hxx:389
RES_POOL_FRMFMT_TYPE
IDs for frame styles.
Definition: poolfmt.hxx:151
NumRule Numbering ivx.
Definition: poolfmt.hxx:193
Numbering symbols.
Definition: poolfmt.hxx:118
Content 2nd level.
Definition: poolfmt.hxx:376
Text body indent.
Definition: poolfmt.hxx:254
const sal_uInt16 COLL_REGISTER_BITS
Definition: poolfmt.hxx:69
Authorities all levels.
Definition: poolfmt.hxx:409
const sal_uInt16 POOLGRP_NOCOLLID
POOLCOLL-IDs: +-—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+ !User! Range ! 0 ! Offset ! +-—+—+...
Definition: poolfmt.hxx:59
Other stuff.
Definition: poolfmt.hxx:352
RES_POOL_TABSTYLE_TYPE
Definition: poolfmt.hxx:203
Subgroup bullets.
Definition: poolfmt.hxx:303
Content 3rd level.
Definition: poolfmt.hxx:377
object index.
Definition: poolfmt.hxx:400
Table of Contents - heading.
Definition: poolfmt.hxx:342
NumRule Bullets 2.
Definition: poolfmt.hxx:195
const sal_uInt16 POOL_IDUSER_FMT
Recognize whether it's a user defined style or not:
Definition: poolfmt.hxx:84
Footnote anchor.
Definition: poolfmt.hxx:128
HTML-styles.
Definition: poolfmt.hxx:135
Complimentary close.
Definition: poolfmt.hxx:255
Internet visited.
Definition: poolfmt.hxx:122
SvxFrameDirection GetDefaultFrameDirection(LanguageType nLanguage)
Return the AutoCollection by its Id.
Definition: poolfmt.cxx:77
No numbering.
Definition: poolfmt.hxx:288
End 5th level.
Definition: poolfmt.hxx:299
No numbering.
Definition: poolfmt.hxx:296
Marginalia.
Definition: poolfmt.hxx:159
First page.
Definition: poolfmt.hxx:172
Subgroup headings.
Definition: poolfmt.hxx:261
Subgroup footer.
Definition: poolfmt.hxx:336
NumRule Numbering IVX.
Definition: poolfmt.hxx:192
End 2nd level.
Definition: poolfmt.hxx:287
No numbering.
Definition: poolfmt.hxx:322
Text body.
Definition: poolfmt.hxx:251
NumRule Numbering ABC.
Definition: poolfmt.hxx:190
Jump from index.
Definition: poolfmt.hxx:124
End 4th level.
Definition: poolfmt.hxx:295
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:121
Header Left&Right.
Definition: poolfmt.hxx:331
const sal_uInt16 POOLGRP_PAGEDESC
Definition: poolfmt.hxx:78
No numbering.
Definition: poolfmt.hxx:314
RES_POOL_NUMRULE_TYPE
Definition: poolfmt.hxx:186
Header Right.
Definition: poolfmt.hxx:333
End 4th level.
Definition: poolfmt.hxx:317
Endnote anchor.
Definition: poolfmt.hxx:129
Label drawing objects.
Definition: poolfmt.hxx:358
RES_POOLFMT
IDs for the ranges.
Definition: poolfmt.hxx:93
No numbering.
Definition: poolfmt.hxx:318
Start 5th level.
Definition: poolfmt.hxx:319
RES_POOL_CHRFMT_TYPE
Ranges for the IDs of the formats.
Definition: poolfmt.hxx:109
Left page.
Definition: poolfmt.hxx:173
Start 4th level.
Definition: poolfmt.hxx:293
Illustrations all levels.
Definition: poolfmt.hxx:397
Text body first line indent.
Definition: poolfmt.hxx:252
const sal_uInt16 POOLGRP_FRAMEFMT
Definition: poolfmt.hxx:77
user index 6..10.
Definition: poolfmt.hxx:412
Endnote page.
Definition: poolfmt.hxx:179
End 5th Level.
Definition: poolfmt.hxx:321
illustrations index.
Definition: poolfmt.hxx:396
const sal_uInt16 USER_FMT
POLLCOLL-groups:
Definition: poolfmt.hxx:63
RES_POOL_CELLSTYLE_TYPE
Definition: poolfmt.hxx:238
Content 9th level.
Definition: poolfmt.hxx:392
End 2nd level.
Definition: poolfmt.hxx:309
NumRule Numbering 123.
Definition: poolfmt.hxx:189
Start 2nd level.
Definition: poolfmt.hxx:307
const o3tl::enumarray< SvxAdjust, unsigned short > aSvxToUnoAdjust USHRT_MAX
Definition: unosett.cxx:261
Right page.
Definition: poolfmt.hxx:174
Marginalia.
Definition: poolfmt.hxx:258
const sal_uInt16 POOLGRP_NUMRULE
Definition: poolfmt.hxx:79
Start 4th level.
Definition: poolfmt.hxx:315
Content 4th level.
Definition: poolfmt.hxx:378
Start 2nd level.
Definition: poolfmt.hxx:285
RES_POOL_COLLFMT_TYPE
Definition: poolfmt.hxx:245
Content 10th level.
Definition: poolfmt.hxx:393
Content 8th level.
Definition: poolfmt.hxx:391
NumRule Bullets 4.
Definition: poolfmt.hxx:197
Start 5th level.
Definition: poolfmt.hxx:297
Label illustration.
Definition: poolfmt.hxx:346
tables index.
Definition: poolfmt.hxx:404
const sal_uInt16 POOLGRP_TABSTYLE
Definition: poolfmt.hxx:80
No numbering.
Definition: poolfmt.hxx:300
Footer Left.
Definition: poolfmt.hxx:337
Line numbering.
Definition: poolfmt.hxx:126
Content 7th level.
Definition: poolfmt.hxx:390
No numbering.
Definition: poolfmt.hxx:284
Subgroup index tables.
Definition: poolfmt.hxx:367
Text body hanging indent.
Definition: poolfmt.hxx:253
Subgroup table of contents.
Definition: poolfmt.hxx:374
const sal_uInt16 COLL_TEXT_BITS
Definition: poolfmt.hxx:66
End 3rd level.
Definition: poolfmt.hxx:291
Subgroup table.
Definition: poolfmt.hxx:341
index of authorities.
Definition: poolfmt.hxx:408
Envelope.
Definition: poolfmt.hxx:175
Standard page.
Definition: poolfmt.hxx:171
const sal_uInt16 POOLGRP_CHARFMT
Other groups:
Definition: poolfmt.hxx:76
NumRule Bullets 5.
Definition: poolfmt.hxx:198
Footer Right.
Definition: poolfmt.hxx:338
const sal_uInt16 POOL_FMT
Definition: poolfmt.hxx:64
const sal_uInt16 COLL_EXTRA_BITS
Definition: poolfmt.hxx:68
Doc. subtitle.
Definition: poolfmt.hxx:424
Start 3rd level.
Definition: poolfmt.hxx:311
Placeholder.
Definition: poolfmt.hxx:123