LibreOffice Module sw (master) 1
DocumentStylePoolManager.cxx
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 */
20#include <SwStyleNameMapper.hxx>
21#include <doc.hxx>
23#include <IDocumentState.hxx>
24#include <IDocumentUndoRedo.hxx>
25#include <fmtanchr.hxx>
26#include <fmtfsize.hxx>
27#include <paratr.hxx>
28#include <poolfmt.hxx>
29#include <fmtornt.hxx>
30#include <charfmt.hxx>
31#include <fmtsrnd.hxx>
32#include <docary.hxx>
33#include <pagedesc.hxx>
34#include <frmfmt.hxx>
35#include <fmtline.hxx>
36#include <numrule.hxx>
37#include <hints.hxx>
38#include <editeng/paperinf.hxx>
39#include <editeng/wghtitem.hxx>
40#include <editeng/fontitem.hxx>
41#include <editeng/fhgtitem.hxx>
42#include <editeng/tstpitem.hxx>
43#include <editeng/lrspitem.hxx>
44#include <editeng/ulspitem.hxx>
45#include <editeng/lspcitem.hxx>
47#include <editeng/postitem.hxx>
48#include <editeng/keepitem.hxx>
49#include <editeng/opaqitem.hxx>
50#include <editeng/boxitem.hxx>
51#include <editeng/cmapitem.hxx>
52#include <editeng/udlnitem.hxx>
53#include <editeng/colritem.hxx>
54#include <editeng/protitem.hxx>
56#include <editeng/langitem.hxx>
61#include <svx/strings.hrc>
62#include <svx/dialmgr.hxx>
63#include <sal/log.hxx>
64#include <osl/diagnose.h>
65#include <strings.hrc>
66#include <frmatr.hxx>
67#include <frameformats.hxx>
68#include <com/sun/star/text/VertOrientation.hpp>
69#include <com/sun/star/text/RelOrientation.hpp>
70#include <com/sun/star/text/HoriOrientation.hpp>
73#include <comphelper/lok.hxx>
74
75using namespace ::editeng;
76using namespace ::com::sun::star;
77
78bool IsConditionalByPoolId(sal_uInt16 nId)
79{
80 // TODO: why is this style conditional?
81 // If it is changed to no longer be conditional, then a style "Text Body"
82 // will be imported without its conditions from ODF.
83 return RES_POOLCOLL_TEXT == nId;
84}
85
86namespace
87{
88 const sal_uInt16 PT_3 = 3 * 20; // 3 pt
89 const sal_uInt16 PT_6 = 6 * 20; // 6 pt
90 const sal_uInt16 PT_7 = 7 * 20; // 7 pt
91 const sal_uInt16 PT_9 = 9 * 20; // 9 pt
92 const sal_uInt16 PT_10 = 10 * 20; // 10 pt
93 const sal_uInt16 PT_12 = 12 * 20; // 12 pt
94 const sal_uInt16 PT_13 = 13 * 20; // 13 pt
95 const sal_uInt16 PT_14 = 14 * 20; // 14 pt
96 const sal_uInt16 PT_16 = 16 * 20; // 16 pt
97 const sal_uInt16 PT_18 = 18 * 20; // 18 pt
98 const sal_uInt16 PT_24 = 24 * 20; // 24 pt
99 const sal_uInt16 PT_28 = 28 * 20; // 28 pt
100
102
103 const sal_uInt16 aHeadlineSizes[ 2 * MAXLEVEL ] = {
104 // we do everything percentual now:
105 PT_18, PT_16, PT_14, PT_13, PT_12,
106 PT_12, PT_10, PT_10, PT_9, PT_9, // normal
107
108 PT_24, PT_18, PT_14, PT_12, PT_10,
109 PT_7, PT_7, PT_7, PT_7, PT_7 // HTML mode
110 };
111
112 tools::Long lcl_GetRightMargin( SwDoc& rDoc )
113 {
114 // Make sure that the printer settings are taken over to the standard
115 // page style
116 const SwFrameFormat& rPgDscFormat = rDoc.GetPageDesc( 0 ).GetMaster();
117 const SvxLRSpaceItem& rLR = rPgDscFormat.GetLRSpace();
118 const tools::Long nLeft = rLR.GetLeft();
119 const tools::Long nRight = rLR.GetRight();
120 const tools::Long nWidth = rPgDscFormat.GetFrameSize().GetWidth();
121 return nWidth - nLeft - nRight;
122 }
123
124 void lcl_SetDfltFont( DefaultFontType nFntType, SfxItemSet& rSet )
125 {
126 static struct {
127 sal_uInt16 nResLngId;
128 sal_uInt16 nResFntId;
129 } aArr[ 3 ] = {
133 };
134 for(const auto & n : aArr)
135 {
136 LanguageType nLng = static_cast<const SvxLanguageItem&>(rSet.GetPool()->GetDefaultItem(
137 n.nResLngId )).GetLanguage();
139 nLng, GetDefaultFontFlags::OnlyOne ) );
140
141 rSet.Put( SvxFontItem( aFnt.GetFamilyType(), aFnt.GetFamilyName(),
142 OUString(), aFnt.GetPitch(),
143 aFnt.GetCharSet(), n.nResFntId ));
144 }
145 }
146
147 void lcl_SetDfltFont( DefaultFontType nLatinFntType, DefaultFontType nCJKFntType,
148 DefaultFontType nCTLFntType, SfxItemSet& rSet )
149 {
150 static struct {
151 sal_uInt16 nResLngId;
152 sal_uInt16 nResFntId;
153 DefaultFontType nFntType;
154 } aArr[ 3 ] = {
158 };
159 aArr[0].nFntType = nLatinFntType;
160 aArr[1].nFntType = nCJKFntType;
161 aArr[2].nFntType = nCTLFntType;
162
163 for(const auto & n : aArr)
164 {
165 LanguageType nLng = static_cast<const SvxLanguageItem&>(rSet.GetPool()->GetDefaultItem(
166 n.nResLngId )).GetLanguage();
168 nLng, GetDefaultFontFlags::OnlyOne ) );
169
170 rSet.Put( SvxFontItem( aFnt.GetFamilyType(), aFnt.GetFamilyName(),
171 OUString(), aFnt.GetPitch(),
172 aFnt.GetCharSet(), n.nResFntId ));
173 }
174 }
175
176 void lcl_SetHeadline( SwDoc& rDoc, SwTextFormatColl* pColl,
177 SfxItemSet& rSet,
178 sal_uInt16 nOutLvlBits, sal_uInt8 nLevel, bool bItalic )
179 {
180 SetAllScriptItem( rSet, SvxWeightItem( WEIGHT_BOLD, RES_CHRATR_WEIGHT ) );
181 SvxFontHeightItem aHItem(240, 100, RES_CHRATR_FONTSIZE);
182 const bool bHTMLMode = rDoc.GetDocumentSettingManager().get(DocumentSettingId::HTML_MODE);
183 if( bHTMLMode )
184 aHItem.SetHeight( aHeadlineSizes[ MAXLEVEL + nLevel ] );
185 else
186 aHItem.SetHeight( aHeadlineSizes[ nLevel ] );
187 SetAllScriptItem( rSet, aHItem );
188
189 if( bItalic && !bHTMLMode )
190 SetAllScriptItem( rSet, SvxPostureItem( ITALIC_NORMAL, RES_CHRATR_POSTURE ) );
191
192 if( bHTMLMode )
193 {
194 lcl_SetDfltFont( DefaultFontType::LATIN_TEXT, DefaultFontType::CJK_TEXT,
195 DefaultFontType::CTL_TEXT, rSet );
196 }
197
198 if( !pColl )
199 return;
200
201 if( !( nOutLvlBits & ( 1 << nLevel )) )
202 {
203 pColl->AssignToListLevelOfOutlineStyle(nLevel);
204 if( !bHTMLMode )
205 {
206 SwNumRule * pOutlineRule = rDoc.GetOutlineNumRule();
207 const SwNumFormat& rNFormat = pOutlineRule->Get( nLevel );
208
209 if ( rNFormat.GetPositionAndSpaceMode() ==
211 ( rNFormat.GetAbsLSpace() || rNFormat.GetFirstLineOffset() ) )
212 {
214 aLR.SetTextFirstLineOffsetValue( rNFormat.GetFirstLineOffset() );
215 //TODO: overflow
216 aLR.SetTextLeft( rNFormat.GetAbsLSpace() );
217 pColl->SetFormatAttr( aLR );
218 }
219
220 // All paragraph styles, which are assigned to a level of the
221 // outline style has to have the outline style set as its list style.
222 SwNumRuleItem aItem(pOutlineRule->GetName());
223 pColl->SetFormatAttr(aItem);
224 }
225 }
227 }
228
229 void lcl_SetRegister( SwDoc& rDoc, SfxItemSet& rSet, sal_uInt16 nFact,
230 bool bHeader, bool bTab )
231 {
233 sal_uInt16 nLeft = o3tl::convert(5 * nFact, o3tl::Length::mm, o3tl::Length::twip);
234 aLR.SetTextLeft( nLeft );
235
236 rSet.Put( aLR );
237 if( bHeader )
238 {
239 SetAllScriptItem( rSet, SvxWeightItem( WEIGHT_BOLD, RES_CHRATR_WEIGHT ) );
241 }
242 if( bTab )
243 {
244 tools::Long nRightMargin = lcl_GetRightMargin( rDoc );
245 SvxTabStopItem aTStops( 0, 0, SvxTabAdjust::Default, RES_PARATR_TABSTOP );
246 aTStops.Insert( SvxTabStop( nRightMargin - nLeft,
247 SvxTabAdjust::Right,
248 cDfltDecimalChar, '.' ));
249 rSet.Put( aTStops );
250 }
251 }
252
253 void lcl_SetNumBul( SwDoc& rDoc, SwTextFormatColl* pColl,
254 SfxItemSet& rSet,
255 sal_uInt16 nNxt, SwTwips nEZ, SwTwips nLeft,
256 SwTwips nUpper, SwTwips nLower )
257 {
258
261 aLR.SetTextFirstLineOffset( sal_uInt16(nEZ) );
262 aLR.SetTextLeft( sal_uInt16(nLeft) );
263 aUL.SetUpper( sal_uInt16(nUpper) );
264 aUL.SetLower( sal_uInt16(nLower) );
265 rSet.Put( aLR );
266 rSet.Put( aUL );
267
268 if( pColl )
270 }
271
272 void lcl_PutStdPageSizeIntoItemSet( SwDoc& rDoc, SfxItemSet& rSet )
273 {
275 SwFormatFrameSize aFrameSz( pStdPgDsc->GetMaster().GetFrameSize() );
276 if( pStdPgDsc->GetLandscape() )
277 {
278 SwTwips nTmp = aFrameSz.GetHeight();
279 aFrameSz.SetHeight( aFrameSz.GetWidth() );
280 aFrameSz.SetWidth( nTmp );
281 }
282 rSet.Put( aFrameSz );
283 }
284}
285
287{
288 // Category Text
289 STR_POOLCOLL_STANDARD,
290 STR_POOLCOLL_TEXT,
291 STR_POOLCOLL_TEXT_IDENT,
292 STR_POOLCOLL_TEXT_NEGIDENT,
293 STR_POOLCOLL_TEXT_MOVE,
294 STR_POOLCOLL_GREETING,
295 STR_POOLCOLL_SIGNATURE,
296 STR_POOLCOLL_CONFRONTATION,
297 STR_POOLCOLL_MARGINAL,
298 // Subcategory Headlines
299 STR_POOLCOLL_HEADLINE_BASE,
300 STR_POOLCOLL_HEADLINE1,
301 STR_POOLCOLL_HEADLINE2,
302 STR_POOLCOLL_HEADLINE3,
303 STR_POOLCOLL_HEADLINE4,
304 STR_POOLCOLL_HEADLINE5,
305 STR_POOLCOLL_HEADLINE6,
306 STR_POOLCOLL_HEADLINE7,
307 STR_POOLCOLL_HEADLINE8,
308 STR_POOLCOLL_HEADLINE9,
309 STR_POOLCOLL_HEADLINE10
310};
311
313{
314 // Category Lists
315 STR_POOLCOLL_NUMBER_BULLET_BASE,
316 // Subcategory Numbering
317 STR_POOLCOLL_NUM_LEVEL1S,
318 STR_POOLCOLL_NUM_LEVEL1,
319 STR_POOLCOLL_NUM_LEVEL1E,
320 STR_POOLCOLL_NUM_NONUM1,
321 STR_POOLCOLL_NUM_LEVEL2S,
322 STR_POOLCOLL_NUM_LEVEL2,
323 STR_POOLCOLL_NUM_LEVEL2E,
324 STR_POOLCOLL_NUM_NONUM2,
325 STR_POOLCOLL_NUM_LEVEL3S,
326 STR_POOLCOLL_NUM_LEVEL3,
327 STR_POOLCOLL_NUM_LEVEL3E,
328 STR_POOLCOLL_NUM_NONUM3,
329 STR_POOLCOLL_NUM_LEVEL4S,
330 STR_POOLCOLL_NUM_LEVEL4,
331 STR_POOLCOLL_NUM_LEVEL4E,
332 STR_POOLCOLL_NUM_NONUM4,
333 STR_POOLCOLL_NUM_LEVEL5S,
334 STR_POOLCOLL_NUM_LEVEL5,
335 STR_POOLCOLL_NUM_LEVEL5E,
336 STR_POOLCOLL_NUM_NONUM5,
337
338 // Subcategory Enumeration
339 STR_POOLCOLL_BULLET_LEVEL1S,
340 STR_POOLCOLL_BULLET_LEVEL1,
341 STR_POOLCOLL_BULLET_LEVEL1E,
342 STR_POOLCOLL_BULLET_NONUM1,
343 STR_POOLCOLL_BULLET_LEVEL2S,
344 STR_POOLCOLL_BULLET_LEVEL2,
345 STR_POOLCOLL_BULLET_LEVEL2E,
346 STR_POOLCOLL_BULLET_NONUM2,
347 STR_POOLCOLL_BULLET_LEVEL3S,
348 STR_POOLCOLL_BULLET_LEVEL3,
349 STR_POOLCOLL_BULLET_LEVEL3E,
350 STR_POOLCOLL_BULLET_NONUM3,
351 STR_POOLCOLL_BULLET_LEVEL4S,
352 STR_POOLCOLL_BULLET_LEVEL4,
353 STR_POOLCOLL_BULLET_LEVEL4E,
354 STR_POOLCOLL_BULLET_NONUM4,
355 STR_POOLCOLL_BULLET_LEVEL5S,
356 STR_POOLCOLL_BULLET_LEVEL5,
357 STR_POOLCOLL_BULLET_LEVEL5E,
358 STR_POOLCOLL_BULLET_NONUM5
359};
360
361// Special Areas
363{
364 // Subcategory Header
365 STR_POOLCOLL_HEADERFOOTER,
366 STR_POOLCOLL_HEADER,
367 STR_POOLCOLL_HEADERL,
368 STR_POOLCOLL_HEADERR,
369 // Subcategory Footer
370 STR_POOLCOLL_FOOTER,
371 STR_POOLCOLL_FOOTERL,
372 STR_POOLCOLL_FOOTERR,
373 // Subcategory Table
374 STR_POOLCOLL_TABLE,
375 STR_POOLCOLL_TABLE_HDLN,
376 // Subcategory Labels
377 STR_POOLCOLL_LABEL,
378 STR_POOLCOLL_LABEL_ABB,
379 STR_POOLCOLL_LABEL_TABLE,
380 STR_POOLCOLL_LABEL_FRAME,
381 STR_POOLCOLL_LABEL_FIGURE,
382 // Miscellaneous
383 STR_POOLCOLL_FRAME,
384 STR_POOLCOLL_FOOTNOTE,
385 STR_POOLCOLL_ENVELOPE_ADDRESS,
386 STR_POOLCOLL_SEND_ADDRESS,
387 STR_POOLCOLL_ENDNOTE,
388 STR_POOLCOLL_LABEL_DRAWING
389};
390
392{
393 // Category Directories
394 STR_POOLCOLL_REGISTER_BASE,
395 // Subcategory Index-Directories
396 STR_POOLCOLL_TOX_IDXH,
397 STR_POOLCOLL_TOX_IDX1,
398 STR_POOLCOLL_TOX_IDX2,
399 STR_POOLCOLL_TOX_IDX3,
400 STR_POOLCOLL_TOX_IDXBREAK,
401 // Subcategory Tables of Contents
402 STR_POOLCOLL_TOX_CNTNTH,
403 STR_POOLCOLL_TOX_CNTNT1,
404 STR_POOLCOLL_TOX_CNTNT2,
405 STR_POOLCOLL_TOX_CNTNT3,
406 STR_POOLCOLL_TOX_CNTNT4,
407 STR_POOLCOLL_TOX_CNTNT5,
408 // Subcategory User-Directories:
409 STR_POOLCOLL_TOX_USERH,
410 STR_POOLCOLL_TOX_USER1,
411 STR_POOLCOLL_TOX_USER2,
412 STR_POOLCOLL_TOX_USER3,
413 STR_POOLCOLL_TOX_USER4,
414 STR_POOLCOLL_TOX_USER5,
415 // Subcategory Table of Contents more Levels 5 - 10
416 STR_POOLCOLL_TOX_CNTNT6,
417 STR_POOLCOLL_TOX_CNTNT7,
418 STR_POOLCOLL_TOX_CNTNT8,
419 STR_POOLCOLL_TOX_CNTNT9,
420 STR_POOLCOLL_TOX_CNTNT10,
421 // Illustrations Index
422 STR_POOLCOLL_TOX_ILLUSH,
423 STR_POOLCOLL_TOX_ILLUS1,
424 // Object Index
425 STR_POOLCOLL_TOX_OBJECTH,
426 STR_POOLCOLL_TOX_OBJECT1,
427 // Tables Index
428 STR_POOLCOLL_TOX_TABLESH,
429 STR_POOLCOLL_TOX_TABLES1,
430 // Index of Authorities
431 STR_POOLCOLL_TOX_AUTHORITIESH,
432 STR_POOLCOLL_TOX_AUTHORITIES1,
433 // Subcategory User-Directories more Levels 5 - 10
434 STR_POOLCOLL_TOX_USER6,
435 STR_POOLCOLL_TOX_USER7,
436 STR_POOLCOLL_TOX_USER8,
437 STR_POOLCOLL_TOX_USER9,
438 STR_POOLCOLL_TOX_USER10
439};
440
442{
443 // Category Chapter/Document
444 STR_POOLCOLL_DOC_TITLE,
445 STR_POOLCOLL_DOC_SUBTITLE,
446 STR_POOLCOLL_DOC_APPENDIX
447};
448
450{
451 // Category HTML-Templates
452 STR_POOLCOLL_HTML_BLOCKQUOTE,
453 STR_POOLCOLL_HTML_PRE,
454 STR_POOLCOLL_HTML_HR,
455 STR_POOLCOLL_HTML_DD,
456 STR_POOLCOLL_HTML_DT
457};
458
460{
461 STR_POOLCHR_FOOTNOTE,
462 STR_POOLCHR_PAGENO,
463 STR_POOLCHR_LABEL,
464 STR_POOLCHR_DROPCAPS,
465 STR_POOLCHR_NUM_LEVEL,
466 STR_POOLCHR_BULLET_LEVEL,
467 STR_POOLCHR_INET_NORMAL,
468 STR_POOLCHR_INET_VISIT,
469 STR_POOLCHR_JUMPEDIT,
470 STR_POOLCHR_TOXJUMP,
471 STR_POOLCHR_ENDNOTE,
472 STR_POOLCHR_LINENUM,
473 STR_POOLCHR_IDX_MAIN_ENTRY,
474 STR_POOLCHR_FOOTNOTE_ANCHOR,
475 STR_POOLCHR_ENDNOTE_ANCHOR,
476 STR_POOLCHR_RUBYTEXT,
477 STR_POOLCHR_VERT_NUM
478};
479
481{
482 STR_POOLCHR_HTML_EMPHASIS,
483 STR_POOLCHR_HTML_CITATION,
484 STR_POOLCHR_HTML_STRONG,
485 STR_POOLCHR_HTML_CODE,
486 STR_POOLCHR_HTML_SAMPLE,
487 STR_POOLCHR_HTML_KEYBOARD,
488 STR_POOLCHR_HTML_VARIABLE,
489 STR_POOLCHR_HTML_DEFINSTANCE,
490 STR_POOLCHR_HTML_TELETYPE
491};
492
494{
495 STR_POOLFRM_FRAME,
496 STR_POOLFRM_GRAPHIC,
497 STR_POOLFRM_OLE,
498 STR_POOLFRM_FORMEL,
499 STR_POOLFRM_MARGINAL,
500 STR_POOLFRM_WATERSIGN,
501 STR_POOLFRM_LABEL
502};
503
505{
506 // Page styles
507 STR_POOLPAGE_STANDARD,
508 STR_POOLPAGE_FIRST,
509 STR_POOLPAGE_LEFT,
510 STR_POOLPAGE_RIGHT,
511 STR_POOLPAGE_ENVELOPE,
512 STR_POOLPAGE_REGISTER,
513 STR_POOLPAGE_HTML,
514 STR_POOLPAGE_FOOTNOTE,
515 STR_POOLPAGE_ENDNOTE,
516 STR_POOLPAGE_LANDSCAPE
517};
518
520{
521 // Numbering styles
522 STR_POOLNUMRULE_NOLIST,
523 STR_POOLNUMRULE_NUM1,
524 STR_POOLNUMRULE_NUM2,
525 STR_POOLNUMRULE_NUM3,
526 STR_POOLNUMRULE_NUM4,
527 STR_POOLNUMRULE_NUM5,
528 STR_POOLNUMRULE_BUL1,
529 STR_POOLNUMRULE_BUL2,
530 STR_POOLNUMRULE_BUL3,
531 STR_POOLNUMRULE_BUL4,
532 STR_POOLNUMRULE_BUL5
533};
534
535// XXX MUST match the entries of TableStyleProgNameTable in
536// sw/source/core/doc/SwStyleNameMapper.cxx and MUST match the order of
537// RES_POOL_TABLESTYLE_TYPE in sw/inc/poolfmt.hxx
539{
540 // XXX MUST be in order, Writer first, then Svx old, then Svx new
541 // 1 Writer resource string
542 STR_TABSTYLE_DEFAULT,
543 // 16 old styles Svx resource strings
544 RID_SVXSTR_TBLAFMT_3D,
545 RID_SVXSTR_TBLAFMT_BLACK1,
546 RID_SVXSTR_TBLAFMT_BLACK2,
547 RID_SVXSTR_TBLAFMT_BLUE,
548 RID_SVXSTR_TBLAFMT_BROWN,
549 RID_SVXSTR_TBLAFMT_CURRENCY,
550 RID_SVXSTR_TBLAFMT_CURRENCY_3D,
551 RID_SVXSTR_TBLAFMT_CURRENCY_GRAY,
552 RID_SVXSTR_TBLAFMT_CURRENCY_LAVENDER,
553 RID_SVXSTR_TBLAFMT_CURRENCY_TURQUOISE,
554 RID_SVXSTR_TBLAFMT_GRAY,
555 RID_SVXSTR_TBLAFMT_GREEN,
556 RID_SVXSTR_TBLAFMT_LAVENDER,
557 RID_SVXSTR_TBLAFMT_RED,
558 RID_SVXSTR_TBLAFMT_TURQUOISE,
559 RID_SVXSTR_TBLAFMT_YELLOW,
560 // 10 new styles since LibreOffice 6.0 Svx resource strings
561 RID_SVXSTR_TBLAFMT_LO6_ACADEMIC,
562 RID_SVXSTR_TBLAFMT_LO6_BOX_LIST_BLUE,
563 RID_SVXSTR_TBLAFMT_LO6_BOX_LIST_GREEN,
564 RID_SVXSTR_TBLAFMT_LO6_BOX_LIST_RED,
565 RID_SVXSTR_TBLAFMT_LO6_BOX_LIST_YELLOW,
566 RID_SVXSTR_TBLAFMT_LO6_ELEGANT,
567 RID_SVXSTR_TBLAFMT_LO6_FINANCIAL,
568 RID_SVXSTR_TBLAFMT_LO6_SIMPLE_GRID_COLUMNS,
569 RID_SVXSTR_TBLAFMT_LO6_SIMPLE_GRID_ROWS,
570 RID_SVXSTR_TBLAFMT_LO6_SIMPLE_LIST_SHADED
571};
572
573namespace sw
574{
575
577{
578}
579
581{
582 OSL_ENSURE(
589 "Wrong AutoFormat Id" );
590
591 SwTextFormatColl* pNewColl;
592 sal_uInt16 nOutLvlBits = 0;
593
594 for (size_t n = 0, nSize = m_rDoc.GetTextFormatColls()->size(); n < nSize; ++n)
595 {
596 pNewColl = (*m_rDoc.GetTextFormatColls())[ n ];
597 if( nId == pNewColl->GetPoolFormatId() )
598 {
599 // in online we can have multiple languages, use translated name
601 {
602 OUString aName;
604 if (!aName.isEmpty())
605 pNewColl->SetFormatName(aName);
606 }
607
608 return pNewColl;
609 }
610
612 nOutLvlBits |= ( 1 << pNewColl->GetAssignedOutlineStyleLevel() );
613 }
614
615 // Didn't find it until here -> create anew
616 TranslateId pResId;
618 {
619 static_assert(SAL_N_ELEMENTS(STR_POOLCOLL_TEXT_ARY) == RES_POOLCOLL_TEXT_END - RES_POOLCOLL_TEXT_BEGIN, "### unexpected size!");
621 }
623 {
626 }
628 {
631 }
633 {
636 }
638 {
639 static_assert(SAL_N_ELEMENTS(STR_POOLCOLL_DOC_ARY) == RES_POOLCOLL_DOC_END - RES_POOLCOLL_DOC_BEGIN, "### unexpected size!");
641 }
643 {
644 static_assert(SAL_N_ELEMENTS(STR_POOLCOLL_HTML_ARY) == RES_POOLCOLL_HTML_END - RES_POOLCOLL_HTML_BEGIN, "### unexpected size!");
646 }
647
648 OSL_ENSURE(pResId, "Invalid Pool ID");
649 if (!pResId)
651
652 OUString aNm(SwResId(pResId));
653
654 // A Set for all to-be-set Attributes
656 sal_uInt16 nParent = GetPoolParent( nId );
657
658 {
659
660//FEATURE::CONDCOLL
662 pNewColl = new SwConditionTextFormatColl( m_rDoc.GetAttrPool(), aNm, !nParent
664 : GetTextCollFromPool( nParent ));
665 else
666//FEATURE::CONDCOLL
667 pNewColl = new SwTextFormatColl( m_rDoc.GetAttrPool(), aNm, !nParent
669 : GetTextCollFromPool( nParent ));
670 pNewColl->SetPoolFormatId( nId );
671 m_rDoc.GetTextFormatColls()->push_back( pNewColl );
672 }
673
675 if ( !bNoDefault )
676 {
677 switch( nId )
678 {
679 // General content forms
681 /* koreans do not like SvxScriptItem(TRUE) */
682 if (bRegardLanguage)
683 {
684 LanguageType nAppLanguage = GetAppLanguage();
685 if (GetDefaultFrameDirection(nAppLanguage) ==
686 SvxFrameDirection::Horizontal_RL_TB)
687 {
688 SvxAdjustItem aAdjust(SvxAdjust::Right, RES_PARATR_ADJUST );
689 aSet.Put(aAdjust);
690 }
691 if (nAppLanguage == LANGUAGE_KOREAN)
692 {
693 SvxScriptSpaceItem aScriptSpace(false, RES_PARATR_SCRIPTSPACE);
694 aSet.Put(aScriptSpace);
695 }
696 }
697 break;
698
699 case RES_POOLCOLL_TEXT: // Text body
700 {
702 SvxULSpaceItem aUL( 0, PT_7, RES_UL_SPACE );
703 aLSpc.SetPropLineSpace( 115 );
705 aSet.Put( aUL );
706 aSet.Put( aLSpc );
707 }
708 break;
709 case RES_POOLCOLL_TEXT_IDENT: // Text body indentation
710 {
713 aSet.Put( aLR );
714 }
715 break;
716 case RES_POOLCOLL_TEXT_NEGIDENT: // Text body neg. indentation
717 {
722 aTStops.Insert( SvxTabStop( 0 ));
723
724 aSet.Put( aLR );
725 aSet.Put( aTStops );
726 }
727 break;
728 case RES_POOLCOLL_TEXT_MOVE: // Text body move
729 {
732 aSet.Put( aLR );
733 }
734 break;
735
736 case RES_POOLCOLL_CONFRONTATION: // Text body confrontation
737 {
743 aTStops.Insert( SvxTabStop( 0 ));
744
745 aSet.Put( aLR );
746 aSet.Put( aTStops );
747 }
748 break;
749 case RES_POOLCOLL_MARGINAL: // Text body marginal
750 {
753 aSet.Put( aLR );
754 }
755 break;
756
757 case RES_POOLCOLL_HEADLINE_BASE: // Base headline
758 {
759 static const sal_uInt16 aFontWhich[] =
763 };
764 static const sal_uInt16 aLangTypes[] =
765 {
769 };
770 static const LanguageType aLangs[] =
771 {
775 };
776 static const DefaultFontType nFontTypes[] =
777 {
778 DefaultFontType::LATIN_HEADING,
779 DefaultFontType::CJK_HEADING,
780 DefaultFontType::CTL_HEADING
781 };
782
783 for( int i = 0; i < 3; ++i )
784 {
785 LanguageType nLng = static_cast<const SvxLanguageItem&>(m_rDoc.GetDefault( aLangTypes[i] )).GetLanguage();
786 if( LANGUAGE_DONTKNOW == nLng )
787 nLng = aLangs[i];
788
789 vcl::Font aFnt( OutputDevice::GetDefaultFont( nFontTypes[i],
790 nLng, GetDefaultFontFlags::OnlyOne ) );
791
792 aSet.Put( SvxFontItem( aFnt.GetFamilyType(), aFnt.GetFamilyName(),
793 OUString(), aFnt.GetPitch(),
794 aFnt.GetCharSet(), aFontWhich[i] ));
795 }
796
797 SvxFontHeightItem aFntSize( PT_14, 100, RES_CHRATR_FONTSIZE );
798 SvxULSpaceItem aUL( PT_12, PT_6, RES_UL_SPACE );
800 aUL.SetLower( HTML_PARSPACE );
801 aSet.Put( SvxFormatKeepItem( true, RES_KEEP ));
802
804
805 aSet.Put( aUL );
806 SetAllScriptItem( aSet, aFntSize );
807 }
808 break;
809
810 case RES_POOLCOLL_NUMBER_BULLET_BASE: // Base Numbering
811 break;
812
813 case RES_POOLCOLL_GREETING: // Greeting
814 case RES_POOLCOLL_REGISTER_BASE: // Base indexes
815 case RES_POOLCOLL_SIGNATURE: // Signatures
816 case RES_POOLCOLL_TABLE: // Table content
817 {
819 aLN.SetCountLines( false );
820 aSet.Put( aLN );
821 if (nId == RES_POOLCOLL_TABLE)
822 {
823 aSet.Put( SvxWidowsItem( 0, RES_PARATR_WIDOWS ) );
825 }
826 }
827 break;
828
829 case RES_POOLCOLL_HEADLINE1: // Heading 1
830 {
831 SvxULSpaceItem aUL( PT_12, PT_6, RES_UL_SPACE );
832 aSet.Put( aUL );
833 lcl_SetHeadline( m_rDoc, pNewColl, aSet, nOutLvlBits, 0, false );
834 }
835 break;
836 case RES_POOLCOLL_HEADLINE2: // Heading 2
837 {
838 SvxULSpaceItem aUL( PT_10, PT_6, RES_UL_SPACE );
839 aSet.Put( aUL );
840 lcl_SetHeadline( m_rDoc, pNewColl, aSet, nOutLvlBits, 1, false );
841 }
842 break;
843 case RES_POOLCOLL_HEADLINE3: // Heading 3
844 {
845 SvxULSpaceItem aUL( PT_7, PT_6, RES_UL_SPACE );
846 aSet.Put( aUL );
847 lcl_SetHeadline( m_rDoc, pNewColl, aSet, nOutLvlBits, 2, false );
848 }
849 break;
850 case RES_POOLCOLL_HEADLINE4: // Heading 4
851 {
852 SvxULSpaceItem aUL( PT_6, PT_6, RES_UL_SPACE );
853 aSet.Put( aUL );
854 lcl_SetHeadline( m_rDoc, pNewColl, aSet, nOutLvlBits, 3, true );
855 }
856 break;
857 case RES_POOLCOLL_HEADLINE5: // Heading 5
858 {
859 SvxULSpaceItem aUL( PT_6, PT_3, RES_UL_SPACE );
860 aSet.Put( aUL );
861 lcl_SetHeadline( m_rDoc, pNewColl, aSet, nOutLvlBits, 4, false );
862 }
863 break;
864 case RES_POOLCOLL_HEADLINE6: // Heading 6
865 {
866 SvxULSpaceItem aUL( PT_3, PT_3, RES_UL_SPACE );
867 aSet.Put( aUL );
868 lcl_SetHeadline( m_rDoc, pNewColl, aSet, nOutLvlBits, 5, true );
869 }
870 break;
871 case RES_POOLCOLL_HEADLINE7: // Heading 7
872 {
873 SvxULSpaceItem aUL( PT_3, PT_3, RES_UL_SPACE );
874 aSet.Put( aUL );
875 lcl_SetHeadline( m_rDoc, pNewColl, aSet, nOutLvlBits, 6, false );
876 }
877 break;
878 case RES_POOLCOLL_HEADLINE8: // Heading 8
879 {
880 SvxULSpaceItem aUL( PT_3, PT_3, RES_UL_SPACE );
881 aSet.Put( aUL );
882 lcl_SetHeadline( m_rDoc, pNewColl, aSet, nOutLvlBits, 7, true );
883 }
884 break;
885 case RES_POOLCOLL_HEADLINE9: // Heading 9
886 {
887 SvxULSpaceItem aUL( PT_3, PT_3, RES_UL_SPACE );
888 aSet.Put( aUL );
889 lcl_SetHeadline( m_rDoc, pNewColl, aSet, nOutLvlBits, 8, false );
890 }
891 break;
892 case RES_POOLCOLL_HEADLINE10: // Heading 10
893 {
894 SvxULSpaceItem aUL( PT_3, PT_3, RES_UL_SPACE );
895 aSet.Put( aUL );
896 lcl_SetHeadline( m_rDoc, pNewColl, aSet, nOutLvlBits, 9, false );
897 }
898 break;
899
900 // Special sections:
901 // Header
906 // Footer
910 {
912 aLN.SetCountLines( false );
913 aSet.Put( aLN );
914
915 tools::Long nRightMargin = lcl_GetRightMargin( m_rDoc );
916
917 SvxTabStopItem aTStops( 0, 0, SvxTabAdjust::Default, RES_PARATR_TABSTOP );
918 aTStops.Insert( SvxTabStop( nRightMargin / 2, SvxTabAdjust::Center ) );
919 aTStops.Insert( SvxTabStop( nRightMargin, SvxTabAdjust::Right ) );
920
921 aSet.Put( aTStops );
922
924 SvxAdjustItem aAdjust(SvxAdjust::Right, RES_PARATR_ADJUST );
925 aSet.Put(aAdjust);
926 }
927 }
928 break;
929
931 {
933 aSet.Put( SvxAdjustItem( SvxAdjust::Center, RES_PARATR_ADJUST ) );
935 aLN.SetCountLines( false );
936 aSet.Put( aLN );
937 }
938 break;
939
940 case RES_POOLCOLL_FOOTNOTE: // paragraph style Footnote
941 case RES_POOLCOLL_ENDNOTE: // paragraph style Endnote
942 {
947 aSet.Put( aLR );
949 aLN.SetCountLines( false );
950 aSet.Put( aLN );
951 }
952 break;
953
954 case RES_POOLCOLL_LABEL: // basic caption
955 {
957 aUL.SetUpper( PT_6 );
958 aUL.SetLower( PT_6 );
959 aSet.Put( aUL );
963 aLN.SetCountLines( false );
964 aSet.Put( aLN );
965 }
966 break;
967
968 case RES_POOLCOLL_FRAME: // Frame content
969 case RES_POOLCOLL_LABEL_ABB: // caption image
970 case RES_POOLCOLL_LABEL_TABLE: // caption table
971 case RES_POOLCOLL_LABEL_FRAME: // caption frame
972 case RES_POOLCOLL_LABEL_DRAWING: // caption drawing
974 break;
975
976 case RES_POOLCOLL_ENVELOPE_ADDRESS: // envelope address
977 {
979 aUL.SetLower( PT_3 );
980 aSet.Put( aUL );
982 aLN.SetCountLines( false );
983 aSet.Put( aLN );
984 }
985 break;
986
987 case RES_POOLCOLL_SEND_ADDRESS: // Sender address
988 {
991 else
992 {
993 SvxULSpaceItem aUL( RES_UL_SPACE ); aUL.SetLower( PT_3 );
994 aSet.Put( aUL );
995 }
997 aLN.SetCountLines( false );
998 aSet.Put( aLN );
999 }
1000 break;
1001 // User defined indexes:
1002 case RES_POOLCOLL_TOX_USERH: // Header
1003 lcl_SetRegister( m_rDoc, aSet, 0, true, false );
1004 {
1006 aLN.SetCountLines( false );
1007 aSet.Put( aLN );
1008 }
1009 break;
1010 case RES_POOLCOLL_TOX_USER1: // 1st level
1011 lcl_SetRegister( m_rDoc, aSet, 0, false, true );
1012 break;
1013 case RES_POOLCOLL_TOX_USER2: // 2nd level
1014 lcl_SetRegister( m_rDoc, aSet, 1, false, true );
1015 break;
1016 case RES_POOLCOLL_TOX_USER3: // 3rd level
1017 lcl_SetRegister( m_rDoc, aSet, 2, false, true );
1018 break;
1019 case RES_POOLCOLL_TOX_USER4: // 4th level
1020 lcl_SetRegister( m_rDoc, aSet, 3, false, true );
1021 break;
1022 case RES_POOLCOLL_TOX_USER5: // 5th level
1023 lcl_SetRegister( m_rDoc, aSet, 4, false, true );
1024 break;
1025 case RES_POOLCOLL_TOX_USER6: // 6th level
1026 lcl_SetRegister( m_rDoc, aSet, 5, false, true );
1027 break;
1028 case RES_POOLCOLL_TOX_USER7: // 7th level
1029 lcl_SetRegister( m_rDoc, aSet, 6, false, true );
1030 break;
1031 case RES_POOLCOLL_TOX_USER8: // 8th level
1032 lcl_SetRegister( m_rDoc, aSet, 7, false, true );
1033 break;
1034 case RES_POOLCOLL_TOX_USER9: // 9th level
1035 lcl_SetRegister( m_rDoc, aSet, 8, false, true );
1036 break;
1037 case RES_POOLCOLL_TOX_USER10: // 10th level
1038 lcl_SetRegister( m_rDoc, aSet, 9, false, true );
1039 break;
1040
1041 // Index
1042 case RES_POOLCOLL_TOX_IDXH: // Header
1043 lcl_SetRegister( m_rDoc, aSet, 0, true, false );
1044 {
1046 aLN.SetCountLines( false );
1047 aSet.Put( aLN );
1048 }
1049 break;
1050 case RES_POOLCOLL_TOX_IDX1: // 1st level
1051 lcl_SetRegister( m_rDoc, aSet, 0, false, false );
1052 break;
1053 case RES_POOLCOLL_TOX_IDX2: // 2nd level
1054 lcl_SetRegister( m_rDoc, aSet, 1, false, false );
1055 break;
1056 case RES_POOLCOLL_TOX_IDX3: // 3rd level
1057 lcl_SetRegister( m_rDoc, aSet, 2, false, false );
1058 break;
1059 case RES_POOLCOLL_TOX_IDXBREAK: // Separator
1060 lcl_SetRegister( m_rDoc, aSet, 0, false, false );
1061 break;
1062
1063 // Table of Content
1064 case RES_POOLCOLL_TOX_CNTNTH: // Header
1065 lcl_SetRegister( m_rDoc, aSet, 0, true, false );
1066 {
1068 aLN.SetCountLines( false );
1069 aSet.Put( aLN );
1070 }
1071 break;
1072 case RES_POOLCOLL_TOX_CNTNT1: // 1st level
1073 lcl_SetRegister( m_rDoc, aSet, 0, false, true );
1074 break;
1075 case RES_POOLCOLL_TOX_CNTNT2: // 2nd level
1076 lcl_SetRegister( m_rDoc, aSet, 1, false, true );
1077 break;
1078 case RES_POOLCOLL_TOX_CNTNT3: // 3rd level
1079 lcl_SetRegister( m_rDoc, aSet, 2, false, true );
1080 break;
1081 case RES_POOLCOLL_TOX_CNTNT4: // 4th level
1082 lcl_SetRegister( m_rDoc, aSet, 3, false, true );
1083 break;
1084 case RES_POOLCOLL_TOX_CNTNT5: // 5th level
1085 lcl_SetRegister( m_rDoc, aSet, 4, false, true );
1086 break;
1087 case RES_POOLCOLL_TOX_CNTNT6: // 6th level
1088 lcl_SetRegister( m_rDoc, aSet, 5, false, true );
1089 break;
1090 case RES_POOLCOLL_TOX_CNTNT7: // 7th level
1091 lcl_SetRegister( m_rDoc, aSet, 6, false, true );
1092 break;
1093 case RES_POOLCOLL_TOX_CNTNT8: // 8th level
1094 lcl_SetRegister( m_rDoc, aSet, 7, false, true );
1095 break;
1096 case RES_POOLCOLL_TOX_CNTNT9: // 9th level
1097 lcl_SetRegister( m_rDoc, aSet, 8, false, true );
1098 break;
1099 case RES_POOLCOLL_TOX_CNTNT10: // 10th level
1100 lcl_SetRegister( m_rDoc, aSet, 9, false, true );
1101 break;
1102
1107 lcl_SetRegister( m_rDoc, aSet, 0, true, false );
1108 {
1110 aLN.SetCountLines( false );
1111 aSet.Put( aLN );
1112 }
1113 break;
1118 lcl_SetRegister( m_rDoc, aSet, 0, false, true );
1119 break;
1120
1122 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL1,
1124 PT_12, PT_6 );
1125 break;
1127 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL1,
1129 0, PT_6 );
1130 break;
1132 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL1,
1134 0, PT_12 );
1135 break;
1137 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_NONUM1,
1138 0, SwNumRule::GetNumIndent( 0 ), 0, PT_6 );
1139 break;
1141 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL2,
1143 PT_12, PT_6 );
1144 break;
1146 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL2,
1148 0, PT_6 );
1149 break;
1151 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL2,
1153 0, PT_12 );
1154 break;
1156 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_NONUM2,
1157 0, SwNumRule::GetNumIndent( 1 ), 0, PT_6 );
1158 break;
1160 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL3,
1162 PT_12, PT_6 );
1163 break;
1165 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL3,
1167 0, PT_6 );
1168 break;
1170 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL3,
1172 0, PT_12 );
1173 break;
1175 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_NONUM3,
1176 0, SwNumRule::GetNumIndent( 2 ), 0, PT_6 );
1177 break;
1179 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL4,
1181 PT_12, PT_6 );
1182 break;
1184 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL4,
1186 0, PT_6 );
1187 break;
1189 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL4,
1191 0, PT_12 );
1192 break;
1194 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_NONUM4,
1195 0, SwNumRule::GetNumIndent( 3 ), 0, PT_6 );
1196 break;
1198 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL5,
1200 PT_12, PT_6 );
1201 break;
1203 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL5,
1205 0, PT_6 );
1206 break;
1208 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL5,
1210 0, PT_12 );
1211 break;
1213 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_NUM_NONUM5,
1214 0, SwNumRule::GetNumIndent( 4 ), 0, PT_6 );
1215 break;
1216
1218 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_LEVEL1,
1220 PT_12, PT_6 );
1221 break;
1223 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_LEVEL1,
1225 0, PT_6 );
1226 break;
1228 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_LEVEL1,
1230 0, PT_12 );
1231 break;
1233 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_NONUM1,
1234 0, SwNumRule::GetBullIndent( 0 ), 0, PT_6 );
1235 break;
1237 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_LEVEL2,
1239 PT_12, PT_6 );
1240 break;
1242 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_LEVEL2,
1244 0, PT_6 );
1245 break;
1247 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_LEVEL2,
1249 0, PT_12 );
1250 break;
1252 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_NONUM2,
1253 0, SwNumRule::GetBullIndent( 1 ), 0, PT_6 );
1254 break;
1256 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_LEVEL3,
1258 PT_12, PT_6 );
1259 break;
1261 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_LEVEL3,
1263 0, PT_6 );
1264 break;
1266 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_LEVEL3,
1268 0, PT_12 );
1269 break;
1271 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_NONUM3,
1272 0, SwNumRule::GetBullIndent( 2 ), 0, PT_6 );
1273 break;
1275 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_LEVEL4,
1277 PT_12, PT_6 );
1278 break;
1280 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_LEVEL4,
1282 0, PT_6 );
1283 break;
1285 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_LEVEL4,
1287 0, PT_12 );
1288 break;
1290 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_NONUM4,
1291 0, SwNumRule::GetBullIndent( 3 ), 0, PT_6 );
1292 break;
1294 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_LEVEL5,
1296 PT_12, PT_6 );
1297 break;
1299 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_LEVEL5,
1301 0, PT_6 );
1302 break;
1304 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_LEVEL5,
1306 0, PT_12 );
1307 break;
1309 lcl_SetNumBul( m_rDoc, pNewColl, aSet, RES_POOLCOLL_BULLET_NONUM5,
1310 0, SwNumRule::GetBullIndent( 4 ), 0, PT_6 );
1311 break;
1312
1313 case RES_POOLCOLL_DOC_TITLE: // Document Title
1314 {
1317
1318 aSet.Put( SvxAdjustItem( SvxAdjust::Center, RES_PARATR_ADJUST ) );
1319
1321 }
1322 break;
1323
1324 case RES_POOLCOLL_DOC_SUBTITLE: // Document subtitle
1325 {
1326 SvxULSpaceItem aUL( PT_3, PT_6, RES_UL_SPACE );
1327 aSet.Put( aUL );
1329
1330 aSet.Put( SvxAdjustItem( SvxAdjust::Center, RES_PARATR_ADJUST ));
1331
1333 }
1334 break;
1335
1336 case RES_POOLCOLL_DOC_APPENDIX: // Document Appendix tdf#114090
1337 {
1340
1341 aSet.Put( SvxAdjustItem( SvxAdjust::Center, RES_PARATR_ADJUST ) );
1342
1344 }
1345 break;
1346
1348 {
1352 aSet.Put( aLR );
1353 std::unique_ptr<SvxULSpaceItem> aUL(pNewColl->GetULSpace().Clone());
1354 aUL->SetLower( HTML_PARSPACE );
1355 aSet.Put(std::move(aUL));
1356 }
1357 break;
1358
1360 {
1361 ::lcl_SetDfltFont( DefaultFontType::FIXED, aSet );
1362
1363 // WORKAROUND: Set PRE to 10pt
1365
1366 // The lower paragraph distance is set explicitly (makes
1367 // assigning hard attributes easier)
1368 std::unique_ptr<SvxULSpaceItem> aULSpaceItem(pNewColl->GetULSpace().Clone());
1369 aULSpaceItem->SetLower( 0 );
1370 aSet.Put(std::move(aULSpaceItem));
1371 }
1372 break;
1373
1375 {
1376 SvxBoxItem aBox( RES_BOX );
1377 Color aColor( COL_GRAY );
1378 SvxBorderLine aNew(&aColor, 3, SvxBorderLineStyle::DOUBLE);
1379 aBox.SetLine( &aNew, SvxBoxItemLine::BOTTOM );
1380
1381 aSet.Put( aBox );
1382 aSet.Put( SwParaConnectBorderItem( false ) );
1384
1385 std::unique_ptr<SvxULSpaceItem> aUL;
1386 {
1388 aUL.reset(pNewColl->GetULSpace().Clone());
1389 }
1390 aUL->SetLower( HTML_PARSPACE );
1391 aSet.Put(std::move(aUL));
1393 aLN.SetCountLines( false );
1394 aSet.Put( aLN );
1395 }
1396 break;
1397
1399 {
1400 std::unique_ptr<SvxLRSpaceItem> aLR(pNewColl->GetLRSpace().Clone());
1401 // We indent by 1 cm. The IDs are always 2 away from each other!
1403 aSet.Put(std::move(aLR));
1404 }
1405 break;
1407 {
1408 std::unique_ptr<SvxLRSpaceItem> aLR;
1409 {
1411 aLR.reset(pNewColl->GetLRSpace().Clone());
1412 }
1413 // We indent by 0 cm. The IDs are always 2 away from each other!
1414 aLR->SetLeft( 0 );
1415 aSet.Put( std::move(aLR) );
1416 }
1417 break;
1418 }
1419 }
1420
1421 if( aSet.Count() )
1422 pNewColl->SetFormatAttr( aSet );
1423 return pNewColl;
1424}
1425
1429{
1430 SwFormat *pNewFormat = nullptr;
1431 SwFormat *pDeriveFormat = nullptr;
1432
1433 SwFormatsBase* pArray[ 2 ];
1434 sal_uInt16 nArrCnt = 1;
1435 TranslateId pRCId;
1436 WhichRangesContainer const* pWhichRange;
1437
1439 {
1440 case POOLGRP_CHARFMT:
1441 {
1442 pArray[0] = m_rDoc.GetCharFormats();
1443 pDeriveFormat = m_rDoc.GetDfltCharFormat();
1444 pWhichRange = &aCharFormatSetRange;
1445
1450 else
1451 {
1452 // Fault: unknown Format, but a CharFormat -> return the first one
1453 OSL_ENSURE( false, "invalid Id" );
1454 pRCId = STR_POOLCHR_ARY[0];
1455 }
1456 }
1457 break;
1458 case POOLGRP_FRAMEFMT:
1459 {
1460 pArray[0] = m_rDoc.GetFrameFormats();
1461 pArray[1] = m_rDoc.GetSpzFrameFormats();
1462 pDeriveFormat = m_rDoc.GetDfltFrameFormat();
1463 nArrCnt = 2;
1464 pWhichRange = &aFrameFormatSetRange;
1465
1466 // Fault: unknown Format, but a FrameFormat
1467 // -> return the first one
1469 {
1470 OSL_ENSURE( false, "invalid Id" );
1472 }
1473
1475 }
1476 break;
1477
1478 default:
1479 // Fault, unknown Format
1480 OSL_ENSURE( nId, "invalid Id" );
1481 return nullptr;
1482 }
1483 OSL_ENSURE(pRCId, "invalid Id");
1484
1485 while( nArrCnt-- )
1486 for( size_t n = 0; n < (*pArray[nArrCnt]).GetFormatCount(); ++n )
1487 {
1488 pNewFormat = (*pArray[ nArrCnt ] ).GetFormat( n );
1489 if( nId == pNewFormat->GetPoolFormatId() )
1490 {
1491 return pNewFormat;
1492 }
1493 }
1494
1495 OUString aNm(SwResId(pRCId));
1496 SwAttrSet aSet(m_rDoc.GetAttrPool(), *pWhichRange);
1497
1498 {
1499 bool bIsModified = m_rDoc.getIDocumentState().IsModified();
1500
1501 {
1502 ::sw::UndoGuard const undoGuard(m_rDoc.GetIDocumentUndoRedo());
1504 {
1505 case POOLGRP_CHARFMT:
1506 pNewFormat = m_rDoc.MakeCharFormat_(aNm, pDeriveFormat, false, true);
1507 break;
1508 case POOLGRP_FRAMEFMT:
1509 pNewFormat = m_rDoc.MakeFrameFormat_(aNm, pDeriveFormat, false, true);
1510 break;
1511 default:
1512 break;
1513 }
1514 }
1515
1516 if( !bIsModified )
1518 pNewFormat->SetPoolFormatId( nId );
1519 pNewFormat->SetAuto(false); // no AutoFormat
1520 }
1521
1522 switch( nId )
1523 {
1524 case RES_POOLCHR_FOOTNOTE: // Footnote
1525 case RES_POOLCHR_PAGENO: // Page/Field
1526 case RES_POOLCHR_LABEL: // Label
1527 case RES_POOLCHR_DROPCAPS: // Dropcaps
1528 case RES_POOLCHR_NUM_LEVEL: // Numbering level
1529 case RES_POOLCHR_TOXJUMP: // Table of contents jump
1530 case RES_POOLCHR_ENDNOTE: // Endnote
1531 case RES_POOLCHR_LINENUM: // Line numbering
1532 break;
1533
1534 case RES_POOLCHR_ENDNOTE_ANCHOR: // Endnote anchor
1535 case RES_POOLCHR_FOOTNOTE_ANCHOR: // Footnote anchor
1536 {
1538 }
1539 break;
1540
1541 case RES_POOLCHR_BULLET_LEVEL: // Bullet character
1542 {
1543 const vcl::Font& rBulletFont = numfunc::GetDefBulletFont();
1544 SetAllScriptItem( aSet, SvxFontItem( rBulletFont.GetFamilyType(),
1545 rBulletFont.GetFamilyName(), rBulletFont.GetStyleName(),
1546 rBulletFont.GetPitch(), rBulletFont.GetCharSet(), RES_CHRATR_FONT ));
1547 }
1548 break;
1549
1551 {
1554 }
1555 break;
1557 {
1560 }
1561 break;
1563 {
1566 aSet.Put( SvxCaseMapItem( SvxCaseMap::SmallCaps, RES_CHRATR_CASEMAP ) );
1567 }
1568 break;
1569
1571 {
1572 tools::Long nH = GetDfltAttr( RES_CHRATR_CJK_FONTSIZE )->GetHeight() / 2;
1575 aSet.Put(SvxEmphasisMarkItem( FontEmphasisMark::NONE, RES_CHRATR_EMPHASIS_MARK) );
1576 }
1577 break;
1578
1582 {
1584 }
1585 break;
1586
1589 {
1591 }
1592 break;
1593
1598 {
1599 ::lcl_SetDfltFont( DefaultFontType::FIXED, aSet );
1600 }
1601 break;
1603 aSet.Put( SvxCharRotateItem( 900_deg10, false, RES_CHRATR_ROTATE ) );
1604 break;
1605
1606 case RES_POOLFRM_FRAME:
1607 {
1609 {
1610 aSet.Put( SwFormatAnchor( RndStdIds::FLY_AS_CHAR ));
1611 aSet.Put( SwFormatVertOrient( 0, text::VertOrientation::LINE_CENTER, text::RelOrientation::PRINT_AREA ) );
1612 aSet.Put( SwFormatSurround( css::text::WrapTextMode_NONE ) );
1613 }
1614 else
1615 {
1616 aSet.Put( SwFormatAnchor( RndStdIds::FLY_AT_PARA ));
1617 aSet.Put( SwFormatSurround( css::text::WrapTextMode_PARALLEL ) );
1618 aSet.Put( SwFormatHoriOrient( 0, text::HoriOrientation::CENTER, text::RelOrientation::PRINT_AREA ) );
1619 aSet.Put( SwFormatVertOrient( 0, text::VertOrientation::TOP, text::RelOrientation::PRINT_AREA ) );
1620 Color aCol( COL_BLACK );
1621 SvxBorderLine aLine( &aCol, SvxBorderLineWidth::Hairline );
1622 SvxBoxItem aBox( RES_BOX );
1623 aBox.SetLine( &aLine, SvxBoxItemLine::TOP );
1624 aBox.SetLine( &aLine, SvxBoxItemLine::BOTTOM );
1625 aBox.SetLine( &aLine, SvxBoxItemLine::LEFT );
1626 aBox.SetLine( &aLine, SvxBoxItemLine::RIGHT );
1627 aBox.SetAllDistances( 85 );
1628 aSet.Put( aBox );
1629 aSet.Put( SvxLRSpaceItem( 114, 114, 0, 0, RES_LR_SPACE ) );
1630 aSet.Put( SvxULSpaceItem( 114, 114, RES_UL_SPACE ) );
1631 }
1632
1633 // for styles of FlyFrames do not set the FillStyle to make it a derived attribute
1635 }
1636 break;
1638 case RES_POOLFRM_OLE:
1639 {
1640 aSet.Put( SwFormatAnchor( RndStdIds::FLY_AT_PARA ));
1641 aSet.Put( SwFormatHoriOrient( 0, text::HoriOrientation::CENTER, text::RelOrientation::FRAME ));
1642 aSet.Put( SwFormatVertOrient( 0, text::VertOrientation::TOP, text::RelOrientation::FRAME ));
1643 aSet.Put( SwFormatSurround( css::text::WrapTextMode_DYNAMIC ));
1644 }
1645 break;
1646 case RES_POOLFRM_FORMEL:
1647 {
1648 aSet.Put( SwFormatAnchor( RndStdIds::FLY_AS_CHAR ) );
1649 aSet.Put( SwFormatVertOrient( 0, text::VertOrientation::CHAR_CENTER, text::RelOrientation::FRAME ) );
1650 aSet.Put( SvxLRSpaceItem( 0, 0, 0, 0, RES_LR_SPACE ) );
1651 }
1652 break;
1654 {
1655 aSet.Put( SwFormatAnchor( RndStdIds::FLY_AT_PARA ));
1656 aSet.Put( SwFormatHoriOrient( 0, text::HoriOrientation::LEFT, text::RelOrientation::FRAME ));
1657 aSet.Put( SwFormatVertOrient( 0, text::VertOrientation::TOP, text::RelOrientation::FRAME ));
1658 aSet.Put( SwFormatSurround( css::text::WrapTextMode_PARALLEL ));
1659 // Set the default width to 3.5 cm, use the minimum value for the height
1663 }
1664 break;
1666 {
1667 aSet.Put( SwFormatAnchor( RndStdIds::FLY_AT_PAGE ));
1668 aSet.Put( SwFormatHoriOrient( 0, text::HoriOrientation::CENTER, text::RelOrientation::FRAME ));
1669 aSet.Put( SwFormatVertOrient( 0, text::VertOrientation::CENTER, text::RelOrientation::FRAME ));
1670 aSet.Put( SvxOpaqueItem( RES_OPAQUE, false ));
1671 aSet.Put( SwFormatSurround( css::text::WrapTextMode_THROUGH ));
1672 }
1673 break;
1674 case RES_POOLFRM_LABEL:
1675 {
1676 aSet.Put( SwFormatAnchor( RndStdIds::FLY_AS_CHAR ) );
1677 aSet.Put( SwFormatVertOrient( 0, text::VertOrientation::TOP, text::RelOrientation::FRAME ) );
1678 aSet.Put( SvxLRSpaceItem( 114, 114, 0, 0, RES_LR_SPACE ) );
1679
1680 SvxProtectItem aProtect( RES_PROTECT );
1681 aProtect.SetSizeProtect( true );
1682 aProtect.SetPosProtect( true );
1683 aSet.Put( aProtect );
1684
1685 pNewFormat->SetAutoUpdateFormat();
1686 }
1687 break;
1688 }
1689 if( aSet.Count() )
1690 {
1691 pNewFormat->SetFormatAttr( aSet );
1692 }
1693 return pNewFormat;
1694}
1695
1697{
1698 return static_cast<SwFrameFormat*>(GetFormatFromPool( nId ));
1699}
1700
1702{
1703 return static_cast<SwCharFormat*>(GetFormatFromPool( nId ));
1704}
1705
1706SwPageDesc* DocumentStylePoolManager::GetPageDescFromPool( sal_uInt16 nId, bool bRegardLanguage )
1707{
1708 OSL_ENSURE( RES_POOLPAGE_BEGIN <= nId && nId < RES_POOLPAGE_END,
1709 "Wrong AutoFormat Id" );
1710
1711 for( size_t n = 0; n < m_rDoc.GetPageDescCnt(); ++n )
1712 {
1714 {
1715 return &m_rDoc.GetPageDesc(n);
1716 }
1717 }
1718
1720 {
1721 // unknown page pool ID
1722 OSL_ENSURE( false, "<SwDoc::GetPageDescFromPool(..)> - unknown page pool ID" );
1724 }
1725
1726 SwPageDesc* pNewPgDsc = nullptr;
1727 {
1728 static_assert(SAL_N_ELEMENTS(STR_POOLPAGE_ARY) == RES_POOLPAGE_END - RES_POOLPAGE_BEGIN, "### unexpected size!");
1729 const OUString aNm(SwResId(STR_POOLPAGE_ARY[nId - RES_POOLPAGE_BEGIN]));
1730 const bool bIsModified = m_rDoc.getIDocumentState().IsModified();
1731
1732 {
1733 ::sw::UndoGuard const undoGuard(m_rDoc.GetIDocumentUndoRedo());
1734 pNewPgDsc = m_rDoc.MakePageDesc(aNm, nullptr, bRegardLanguage);
1735 }
1736
1737 pNewPgDsc->SetPoolFormatId( nId );
1738 if ( !bIsModified )
1739 {
1741 }
1742 }
1743
1745 {
1747 aLR.SetRight( aLR.GetLeft() );
1748 }
1750 {
1751 aUL.SetUpper( o3tl::narrowing<sal_uInt16>(aLR.GetLeft()) );
1752 aUL.SetLower( o3tl::narrowing<sal_uInt16>(aLR.GetLeft()) );
1753 }
1754
1756 bool bSetLeft = true;
1757
1758 switch( nId )
1759 {
1760 case RES_POOLPAGE_STANDARD: // "Default"
1761 {
1762 aSet.Put( aLR );
1763 aSet.Put( aUL );
1765 }
1766 break;
1767
1768 case RES_POOLPAGE_FIRST: // "First Page"
1769 case RES_POOLPAGE_REGISTER: // "Index"
1770 {
1771 lcl_PutStdPageSizeIntoItemSet( m_rDoc, aSet );
1772 aSet.Put( aLR );
1773 aSet.Put( aUL );
1774 pNewPgDsc->SetUseOn( UseOnPage::All );
1775 if( RES_POOLPAGE_FIRST == nId )
1777 }
1778 break;
1779
1780 case RES_POOLPAGE_LEFT: // "Left Page"
1781 {
1782 lcl_PutStdPageSizeIntoItemSet( m_rDoc, aSet );
1783 aSet.Put( aLR );
1784 aSet.Put( aUL );
1785 bSetLeft = false;
1786 pNewPgDsc->SetUseOn( UseOnPage::Left );
1787 // this relies on GetPageDescFromPool() not going into infinite recursion
1788 // (by this point RES_POOLPAGE_LEFT will not reach this place again)
1790 }
1791 break;
1792 case RES_POOLPAGE_RIGHT: // "Right Page"
1793 {
1794 lcl_PutStdPageSizeIntoItemSet( m_rDoc, aSet );
1795 aSet.Put( aLR );
1796 aSet.Put( aUL );
1797 bSetLeft = false;
1798 pNewPgDsc->SetUseOn( UseOnPage::Right );
1800 }
1801 break;
1802
1803 case RES_POOLPAGE_ENVELOPE: // "Envelope"
1804 {
1806 LandscapeSwap( aPSize );
1807 aSet.Put( SwFormatFrameSize( SwFrameSize::Fixed, aPSize.Width(), aPSize.Height() ));
1808 aLR.SetLeft( 0 ); aLR.SetRight( 0 );
1809 aUL.SetUpper( 0 ); aUL.SetLower( 0 );
1810 aSet.Put( aLR );
1811 aSet.Put( aUL );
1812
1813 pNewPgDsc->SetUseOn( UseOnPage::All );
1814 pNewPgDsc->SetLandscape( true );
1815 }
1816 break;
1817
1818 case RES_POOLPAGE_HTML: // "HTML"
1819 {
1820 lcl_PutStdPageSizeIntoItemSet( m_rDoc, aSet );
1822 aUL.SetUpper( o3tl::narrowing<sal_uInt16>(aLR.GetRight()) );
1823 aUL.SetLower( o3tl::narrowing<sal_uInt16>(aLR.GetRight()) );
1824 aSet.Put( aLR );
1825 aSet.Put( aUL );
1826
1827 pNewPgDsc->SetUseOn( UseOnPage::All );
1828 }
1829 break;
1830
1831 case RES_POOLPAGE_FOOTNOTE: // "Footnote"
1832 case RES_POOLPAGE_ENDNOTE: // "Endnote"
1833 {
1834 lcl_PutStdPageSizeIntoItemSet( m_rDoc, aSet );
1835 aSet.Put( aLR );
1836 aSet.Put( aUL );
1837 pNewPgDsc->SetUseOn( UseOnPage::All );
1838 SwPageFootnoteInfo aInf( pNewPgDsc->GetFootnoteInfo() );
1839 aInf.SetLineWidth( 0 );
1840 aInf.SetTopDist( 0 );
1841 aInf.SetBottomDist( 0 );
1842 pNewPgDsc->SetFootnoteInfo( aInf );
1843 }
1844 break;
1845
1846 case RES_POOLPAGE_LANDSCAPE: // "Landscape"
1847 {
1849 SwFormatFrameSize aFrameSz( pStdPgDsc->GetMaster().GetFrameSize() );
1850 if ( !pStdPgDsc->GetLandscape() )
1851 {
1852 const SwTwips nTmp = aFrameSz.GetHeight();
1853 aFrameSz.SetHeight( aFrameSz.GetWidth() );
1854 aFrameSz.SetWidth( nTmp );
1855 }
1856 aSet.Put( aFrameSz );
1857 aSet.Put( aLR );
1858 aSet.Put( aUL );
1859 pNewPgDsc->SetUseOn( UseOnPage::All );
1860 pNewPgDsc->SetLandscape( true );
1861 }
1862 break;
1863
1864 }
1865
1866 if( aSet.Count() )
1867 {
1868 if( bSetLeft )
1869 {
1870 pNewPgDsc->GetLeft().SetFormatAttr( aSet );
1871 pNewPgDsc->GetFirstLeft().SetFormatAttr( aSet );
1872 }
1873 pNewPgDsc->GetMaster().SetFormatAttr( aSet );
1874 pNewPgDsc->GetFirstMaster().SetFormatAttr( aSet );
1875 }
1876 return pNewPgDsc;
1877}
1878
1880{
1882 "Wrong AutoFormat Id" );
1883
1884 SwNumRule* pNewRule;
1885
1886 for (size_t n = 0; n < m_rDoc.GetNumRuleTable().size(); ++n )
1887 {
1888 pNewRule = m_rDoc.GetNumRuleTable()[ n ];
1889 if (nId == pNewRule->GetPoolFormatId())
1890 {
1891 return pNewRule;
1892 }
1893 }
1894
1895 // error: unknown Pool style
1897 {
1898 OSL_ENSURE( false, "invalid Id" );
1900 }
1901
1902 static_assert(SAL_N_ELEMENTS(STR_POOLNUMRULE_NUM_ARY) == RES_POOLNUMRULE_END - RES_POOLNUMRULE_BEGIN, "### unexpected size!");
1904
1905 SwCharFormat *pNumCFormat = nullptr, *pBullCFormat = nullptr;
1906
1907 const SvxNumberFormat::SvxNumPositionAndSpaceMode eNumberFormatPositionAndSpaceMode
1909 {
1910 bool bIsModified = m_rDoc.getIDocumentState().IsModified();
1911
1912 sal_uInt16 n = m_rDoc.MakeNumRule( aNm, nullptr, false, eNumberFormatPositionAndSpaceMode );
1913
1914 pNewRule = m_rDoc.GetNumRuleTable()[ n ];
1915 pNewRule->SetPoolFormatId( nId );
1916 pNewRule->SetAutoRule( false );
1917
1920
1924
1925 if( !bIsModified )
1927 }
1928
1929 switch( nId )
1930 {
1932 {
1933 SwNumFormat aFormat;
1934 aFormat.SetPositionAndSpaceMode( eNumberFormatPositionAndSpaceMode );
1936 aFormat.SetCharFormat( pNumCFormat );
1937 aFormat.SetStart( 1 );
1938 aFormat.SetIncludeUpperLevels( 1 );
1939
1940 static const sal_uInt16 aAbsSpace[ MAXLEVEL ] =
1941 {
1942// cm: 0.7 cm intervals, with 1 cm = 567
1943 397, 794, 1191, 1588, 1985, 2381, 2778, 3175, 3572, 3969
1944 };
1945 const sal_uInt16* pArr = aAbsSpace;
1946
1947 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
1948 {
1949 aFormat.SetFirstLineOffset( - (*pArr) );
1950 }
1951 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
1952 {
1954 aFormat.SetFirstLineIndent( - (*pArr) );
1955 }
1956
1957 for (sal_uInt16 n = 0; n < MAXLEVEL; ++n, ++pArr)
1958 {
1959 aFormat.SetListFormat("", ".", n);
1960 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
1961 {
1962 aFormat.SetAbsLSpace( *pArr + 357 ); // 357 is indent of 0.63 cm
1963 }
1964 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
1965 {
1966 aFormat.SetListtabPos( *pArr );
1967 aFormat.SetIndentAt( *pArr + 357 );
1968 }
1969
1970 pNewRule->Set( n, aFormat );
1971 }
1972 }
1973 break;
1974
1976 {
1977 static const sal_uInt16 aAbsSpace[ MAXLEVEL ] =
1978 {
1979 397, 397, 397, 397, // 0.70 cm intervals
1980 397, 397, 397, 397,
1981 397, 397
1982 };
1983
1984 const sal_uInt16* pArr = aAbsSpace;
1985 SwNumFormat aFormat;
1986
1987 aFormat.SetPositionAndSpaceMode( eNumberFormatPositionAndSpaceMode );
1989 aFormat.SetCharFormat( pNumCFormat );
1990 aFormat.SetStart( 1 );
1991 aFormat.SetIncludeUpperLevels( 1 );
1992
1993 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
1994 {
1996 }
1997
1998 sal_uInt16 nSpace = 357; // indent of 0.63 cm
1999 for (sal_uInt16 n = 0; n < MAXLEVEL; ++n)
2000 {
2001 aFormat.SetListFormat("", ".", n);
2002 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2003 {
2004 nSpace += pArr[ n ];
2005 aFormat.SetAbsLSpace( nSpace );
2006 aFormat.SetFirstLineOffset( - pArr[ n ] );
2007 }
2008 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2009 {
2010 nSpace += pArr[ n ];
2011 aFormat.SetListtabPos( nSpace );
2012 aFormat.SetIndentAt( nSpace );
2013 aFormat.SetFirstLineIndent( - pArr[ n ] );
2014 }
2015
2016 pNewRule->Set( n, aFormat );
2017 }
2018 }
2019 break;
2021 {
2022 SwNumFormat aFormat;
2023
2024 aFormat.SetPositionAndSpaceMode( eNumberFormatPositionAndSpaceMode );
2026 aFormat.SetCharFormat( pNumCFormat );
2027 aFormat.SetStart( 1 );
2028 aFormat.SetIncludeUpperLevels( 1 );
2029
2030 tools::Long const nOffs = 397; // 0.70 cm
2031
2032 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2033 {
2034 aFormat.SetFirstLineOffset( - nOffs );
2035 }
2036 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2037 {
2039 aFormat.SetFirstLineIndent( - nOffs );
2040 }
2041
2042 for (sal_uInt16 n = 0; n < MAXLEVEL; ++n)
2043 {
2044 aFormat.SetListFormat("", ".", n);
2045 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2046 {
2047 aFormat.SetAbsLSpace( (n+1) * nOffs + 357 ); // 357 is indent of 0.63 cm
2048 }
2049 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2050 {
2051 tools::Long nPos = (n+1) * nOffs;
2052 aFormat.SetListtabPos(nPos + 357);
2053 aFormat.SetIndentAt(nPos + 357);
2054 }
2055
2056 pNewRule->Set( n, aFormat );
2057 }
2058 }
2059 break;
2061 {
2062 SwNumFormat aFormat;
2063
2064 aFormat.SetPositionAndSpaceMode( eNumberFormatPositionAndSpaceMode );
2066 aFormat.SetCharFormat( pNumCFormat );
2067 aFormat.SetStart( 1 );
2068 aFormat.SetIncludeUpperLevels( 1 );
2069 aFormat.SetNumAdjust( SvxAdjust::Right );
2070
2071 static const sal_uInt16 aAbsSpace[ MAXLEVEL ] =
2072 {
2073// cm: 1.33 cm intervals
2074 754, 1508, 1191, 2262, 3016, 3771, 4525, 5279, 6033, 6787
2075 };
2076 const sal_uInt16* pArr = aAbsSpace;
2077
2078 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2079 {
2080 aFormat.SetFirstLineOffset( 580 - (*pArr) ); // 1 cm space
2081 }
2082 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2083 {
2085 aFormat.SetFirstLineIndent( 580 - (*pArr) );
2086 }
2087
2088 for (sal_uInt16 n = 0; n < MAXLEVEL; ++n, ++pArr)
2089 {
2090 aFormat.SetListFormat("", ".", n);
2091 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2092 {
2093 aFormat.SetAbsLSpace( *pArr );
2094 }
2095 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2096 {
2097 aFormat.SetListtabPos( *pArr );
2098 aFormat.SetIndentAt( *pArr );
2099 }
2100
2101 pNewRule->Set( n, aFormat );
2102 }
2103 }
2104 break;
2106 {
2107 // [ First, LSpace ]
2108 static const sal_uInt16 aAbsSpace0to2[] =
2109 {
2110 174, 754, // 0.33, 1.33,
2111 567, 1151, // 1.03, 2.03,
2112 397, 1548 // 2.03, 2.73
2113 };
2114
2115 const sal_uInt16* pArr0to2 = aAbsSpace0to2;
2116 SwNumFormat aFormat;
2117
2118 aFormat.SetPositionAndSpaceMode( eNumberFormatPositionAndSpaceMode );
2120 aFormat.SetStart( 1 );
2121 aFormat.SetIncludeUpperLevels( 1 );
2122 aFormat.SetNumAdjust( SvxAdjust::Right );
2123 aFormat.SetListFormat("", ".", 0);
2124
2125 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2126 {
2128 }
2129
2130 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2131 {
2132 aFormat.SetFirstLineOffset( -pArr0to2[0] ); // == 0.33 cm
2133 aFormat.SetAbsLSpace( pArr0to2[1] ); // == 1.33 cm
2134 }
2135 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2136 {
2137 aFormat.SetFirstLineIndent( -pArr0to2[0] );
2138 aFormat.SetListtabPos( pArr0to2[1] );
2139 aFormat.SetIndentAt( pArr0to2[1] );
2140 }
2141
2142 aFormat.SetCharFormat( pNumCFormat );
2143 pNewRule->Set( 0, aFormat );
2144
2145 aFormat.SetIncludeUpperLevels( 1 );
2146 aFormat.SetStart( 1 );
2147 aFormat.SetListFormat("", ".", 1);
2148
2149 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2150 {
2151 aFormat.SetFirstLineOffset( -pArr0to2[2] ); // == 1.03 cm
2152 aFormat.SetAbsLSpace( pArr0to2[3] ); // == 2.03 cm
2153 }
2154 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2155 {
2156 aFormat.SetFirstLineIndent( -pArr0to2[2] );
2157 aFormat.SetListtabPos( pArr0to2[3] );
2158 aFormat.SetIndentAt( pArr0to2[3] );
2159 }
2160
2161 pNewRule->Set( 1, aFormat );
2162
2164 aFormat.SetIncludeUpperLevels( 1 );
2165 aFormat.SetStart( 3 );
2166 aFormat.SetListFormat("", u")", 2);
2167
2168 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2169 {
2170 aFormat.SetFirstLineOffset( - pArr0to2[4] ); // == 2.03 cm
2171 aFormat.SetAbsLSpace( pArr0to2[5] ); // == 2.73 cm
2172 }
2173 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2174 {
2175 aFormat.SetFirstLineIndent( -pArr0to2[4] );
2176 aFormat.SetListtabPos( pArr0to2[5] );
2177 aFormat.SetIndentAt( pArr0to2[5] );
2178 }
2179
2180 pNewRule->Set( 2, aFormat );
2181
2183 aFormat.SetCharFormat( pBullCFormat );
2185 aFormat.SetBulletChar( cBulletChar );
2186 sal_Int16 nOffs = o3tl::convert(4, o3tl::Length::mm, o3tl::Length::twip),
2188
2189 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2190 {
2191 aFormat.SetFirstLineOffset( - nOffs );
2192 }
2193 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2194 {
2195 aFormat.SetFirstLineIndent( - nOffs );
2196 }
2197
2198 for (sal_uInt16 n = 3; n < MAXLEVEL; ++n)
2199 {
2200 aFormat.SetStart( n+1 );
2201 aFormat.SetListFormat("", "", n);
2202
2203 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2204 {
2205 aFormat.SetAbsLSpace( nOffs2 + ((n-3) * nOffs) );
2206 }
2207 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2208 {
2209 tools::Long nPos = nOffs2 + ((n-3) * static_cast<tools::Long>(nOffs));
2210 aFormat.SetListtabPos(nPos);
2211 aFormat.SetIndentAt(nPos);
2212 }
2213
2214 pNewRule->Set( n, aFormat );
2215 }
2216 }
2217 break;
2218
2220 {
2221 SwNumFormat aFormat;
2222
2223 aFormat.SetPositionAndSpaceMode( eNumberFormatPositionAndSpaceMode );
2225 aFormat.SetCharFormat( pBullCFormat );
2226 aFormat.SetStart( 1 );
2227 aFormat.SetIncludeUpperLevels( 1 );
2229 aFormat.SetBulletChar( cBulletChar );
2230
2231 static const sal_uInt16 aAbsSpace[ MAXLEVEL ] =
2232 {
2233// cm: 0,4 0,8 1,2 1,6 2,0 2,4 2,8 3,2 3,6 4,0
2234 227, 454, 680, 907, 1134, 1361, 1587, 1814, 2041, 2268
2235 };
2236 const sal_uInt16* pArr = aAbsSpace;
2237
2238 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2239 {
2240 aFormat.SetFirstLineOffset( - (*pArr) );
2241 }
2242 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2243 {
2245 aFormat.SetFirstLineIndent( - (*pArr) );
2246 }
2247
2248 for (sal_uInt16 n = 0; n < MAXLEVEL; ++n, ++pArr)
2249 {
2250 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2251 {
2252 aFormat.SetAbsLSpace( *pArr );
2253 }
2254 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2255 {
2256 aFormat.SetListtabPos( *pArr );
2257 aFormat.SetIndentAt( *pArr );
2258 }
2259
2260 pNewRule->Set( n, aFormat );
2261 }
2262 }
2263 break;
2265 {
2266 SwNumFormat aFormat;
2267
2268 aFormat.SetPositionAndSpaceMode( eNumberFormatPositionAndSpaceMode );
2270 aFormat.SetCharFormat( pBullCFormat );
2271 aFormat.SetStart( 1 );
2272 aFormat.SetIncludeUpperLevels( 1 );
2274 aFormat.SetBulletChar( 0x2013 );
2275
2276 static const sal_uInt16 aAbsSpace[ MAXLEVEL ] =
2277 {
2278// cm: 0,3 0,6 0,9 1,2 1,5 1,8 2,1 2,4 2,7 3,0
2279 170, 340, 510, 680, 850, 1020, 1191, 1361, 1531, 1701
2280 };
2281 const sal_uInt16* pArr = aAbsSpace;
2282
2283 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2284 {
2285 aFormat.SetFirstLineOffset( - (*pArr) );
2286 }
2287 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2288 {
2290 aFormat.SetFirstLineIndent( - (*pArr) );
2291 }
2292
2293 for (sal_uInt16 n = 0; n < MAXLEVEL; ++n, ++pArr)
2294 {
2295 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2296 {
2297 aFormat.SetAbsLSpace( *pArr );
2298 }
2299 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2300 {
2301 aFormat.SetListtabPos( *pArr );
2302 aFormat.SetIndentAt( *pArr );
2303 }
2304
2305 pNewRule->Set( n, aFormat );
2306 }
2307 }
2308 break;
2310 {
2311 SwNumFormat aFormat;
2312
2313 aFormat.SetPositionAndSpaceMode( eNumberFormatPositionAndSpaceMode );
2314
2316 aFormat.SetCharFormat( pBullCFormat );
2317 aFormat.SetStart( 1 );
2318 aFormat.SetIncludeUpperLevels( 1 );
2320
2321 sal_uInt16 nOffs = o3tl::convert(4, o3tl::Length::mm, o3tl::Length::twip);
2322
2323 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2324 {
2325 aFormat.SetFirstLineOffset( - nOffs );
2326 }
2327 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2328 {
2330 aFormat.SetFirstLineIndent( - nOffs );
2331 }
2332
2333 for (sal_uInt16 n = 0; n < MAXLEVEL; ++n)
2334 {
2335 aFormat.SetBulletChar( (n & 1) ? 0x25a1 : 0x2611 );
2336
2337 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2338 {
2339 aFormat.SetAbsLSpace( ((n & 1) +1) * nOffs );
2340 }
2341 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2342 {
2343 tools::Long nPos = ((n & 1) +1) * static_cast<tools::Long>(nOffs);
2344 aFormat.SetListtabPos(nPos);
2345 aFormat.SetIndentAt(nPos);
2346 }
2347
2348 pNewRule->Set( n, aFormat );
2349 }
2350 }
2351 break;
2353 {
2354 SwNumFormat aFormat;
2355
2356 aFormat.SetPositionAndSpaceMode( eNumberFormatPositionAndSpaceMode );
2358 aFormat.SetCharFormat( pBullCFormat );
2359 aFormat.SetStart( 1 );
2360 aFormat.SetIncludeUpperLevels( 1 );
2362
2363 static const sal_uInt16 aAbsSpace[ MAXLEVEL ] =
2364 {
2365// cm: 0,4 0,8 1,2 1,6 2,0 2,4 2,8 3,2 3,6 4,0
2366 227, 454, 680, 907, 1134, 1361, 1587, 1814, 2041, 2268
2367 };
2368
2369 const sal_uInt16* pArr = aAbsSpace;
2370
2371 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2372 {
2373 aFormat.SetFirstLineOffset( - (*pArr) );
2374 }
2375 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2376 {
2378 aFormat.SetFirstLineIndent( - (*pArr) );
2379 }
2380
2381 for (sal_uInt16 n = 0; n < MAXLEVEL; ++n, ++pArr)
2382 {
2383 switch( n )
2384 {
2385 case 0: aFormat.SetBulletChar( 0x27a2 ); break;
2386 case 1: aFormat.SetBulletChar( 0xE006 ); break;
2387 default: aFormat.SetBulletChar( 0xE004 ); break;
2388 }
2389
2390 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2391 {
2392 aFormat.SetAbsLSpace( *pArr );
2393 }
2394 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2395 {
2396 aFormat.SetListtabPos( *pArr );
2397 aFormat.SetIndentAt( *pArr );
2398 }
2399
2400 pNewRule->Set( n, aFormat );
2401 }
2402 }
2403 break;
2405 {
2406 SwNumFormat aFormat;
2407
2408 aFormat.SetPositionAndSpaceMode( eNumberFormatPositionAndSpaceMode );
2410 aFormat.SetCharFormat( pBullCFormat );
2411 aFormat.SetStart( 1 );
2412 aFormat.SetIncludeUpperLevels( 1 );
2413 aFormat.SetBulletChar( 0x2717 );
2415
2416 static const sal_uInt16 aAbsSpace[ MAXLEVEL ] =
2417 {
2418// cm: 0,4 0,8 1,2 1,6 2,0 2,4 2,8 3,2 3,6 4,0
2419 227, 454, 680, 907, 1134, 1361, 1587, 1814, 2041, 2268
2420 };
2421 const sal_uInt16* pArr = aAbsSpace;
2422
2423 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2424 {
2425 aFormat.SetFirstLineOffset( - (*pArr) );
2426 }
2427 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2428 {
2430 aFormat.SetFirstLineIndent( - (*pArr) );
2431 }
2432
2433 for (sal_uInt16 n = 0; n < MAXLEVEL; ++n, ++pArr)
2434 {
2435 if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
2436 {
2437 aFormat.SetAbsLSpace( *pArr );
2438 }
2439 else if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_ALIGNMENT )
2440 {
2441 aFormat.SetListtabPos( *pArr );
2442 aFormat.SetIndentAt( *pArr );
2443 }
2444
2445 pNewRule->Set( n, aFormat );
2446 }
2447 }
2448 break;
2449 }
2450
2451 return pNewRule;
2452}
2453
2456{
2457 OSL_ENSURE(
2464 "Wrong AutoFormat Id" );
2465
2466 SwTextFormatColl* pNewColl = nullptr;
2467 bool bFnd = false;
2468 for( SwTextFormatColls::size_type n = 0; !bFnd && n < m_rDoc.GetTextFormatColls()->size(); ++n )
2469 {
2470 pNewColl = (*m_rDoc.GetTextFormatColls())[ n ];
2471 if( nId == pNewColl->GetPoolFormatId() )
2472 bFnd = true;
2473 }
2474
2475 if( !bFnd || !pNewColl->HasWriterListeners() )
2476 return false;
2477
2479 return !pNewColl->GetInfo( aGetHt );
2480}
2481
2484{
2485 const SwFormat *pNewFormat = nullptr;
2486 const SwFormatsBase* pArray[ 2 ];
2487 sal_uInt16 nArrCnt = 1;
2488 bool bFnd = true;
2489
2491 {
2492 pArray[0] = m_rDoc.GetCharFormats();
2493 }
2494 else if (RES_POOLFRM_BEGIN <= nId && nId < RES_POOLFRM_END)
2495 {
2496 pArray[0] = m_rDoc.GetFrameFormats();
2497 pArray[1] = m_rDoc.GetSpzFrameFormats();
2498 nArrCnt = 2;
2499 }
2500 else
2501 {
2502 SAL_WARN("sw.core", "Invalid Pool Id: " << nId << " should be within "
2503 "[" << int(RES_POOLCHR_BEGIN) << "," << int(RES_POOLCHR_END) << ") or "
2504 "[" << int(RES_POOLFRM_BEGIN) << "," << int(RES_POOLFRM_END) << ")");
2505 bFnd = false;
2506 }
2507
2508 if( bFnd )
2509 {
2510 bFnd = false;
2511 while( nArrCnt-- && !bFnd )
2512 for( size_t n = 0; !bFnd && n < (*pArray[nArrCnt]).GetFormatCount(); ++n )
2513 {
2514 pNewFormat = (*pArray[ nArrCnt ] ).GetFormat( n );
2515 if( nId == pNewFormat->GetPoolFormatId() )
2516 bFnd = true;
2517 }
2518 }
2519
2520 // Not found or no dependencies?
2521 if( bFnd && pNewFormat->HasWriterListeners() )
2522 {
2523 // Check if we have dependent ContentNodes in the Nodes array
2524 // (also indirect ones for derived Formats)
2526 bFnd = !pNewFormat->GetInfo( aGetHt );
2527 }
2528 else
2529 bFnd = false;
2530
2531 return bFnd;
2532}
2533
2536{
2537 OSL_ENSURE( RES_POOLPAGE_BEGIN <= nId && nId < RES_POOLPAGE_END,
2538 "Wrong AutoFormat Id" );
2539 SwPageDesc *pNewPgDsc = nullptr;
2540 bool bFnd = false;
2541 for( size_t n = 0; !bFnd && n < m_rDoc.GetPageDescCnt(); ++n )
2542 {
2543 pNewPgDsc = &m_rDoc.GetPageDesc(n);
2544 if( nId == pNewPgDsc->GetPoolFormatId() )
2545 bFnd = true;
2546 }
2547
2548 // Not found or no dependencies?
2549 if( !bFnd || !pNewPgDsc->HasWriterListeners() ) // ??????
2550 return false;
2551
2552 // Check if we have dependent ContentNodes in the Nodes array
2553 // (also indirect ones for derived Formats)
2555 return !pNewPgDsc->GetInfo( aGetHt );
2556}
2557
2559{
2560}
2561
2562}
2563
2564static std::vector<OUString>
2565lcl_NewUINameArray(const TranslateId* pIds, const size_t nLen, const size_t nSvxIds = 0)
2566{
2567 assert(nSvxIds <= nLen);
2568 const size_t nWriterIds = nLen - nSvxIds;
2569 std::vector<OUString> aNameArray;
2570 aNameArray.reserve(nLen);
2571 for (size_t i = 0; i < nWriterIds; ++i)
2572 aNameArray.push_back(SwResId(pIds[i]));
2573 for (size_t i = nWriterIds; i < nLen; ++i)
2574 aNameArray.push_back(SvxResId(pIds[i]));
2575 return aNameArray;
2576}
2577
2578const std::vector<OUString>& SwStyleNameMapper::GetTextUINameArray()
2579{
2580 SvtSysLocale aSysLocale;
2581 const LanguageTag& rCurrentLanguage = aSysLocale.GetUILanguageTag();
2582 static std::map<LanguageTag, std::vector<OUString>> s_aTextUINameArray;
2583
2584 auto it = s_aTextUINameArray.find(rCurrentLanguage);
2585 if (it == s_aTextUINameArray.end())
2586 it = s_aTextUINameArray.emplace(rCurrentLanguage,
2588
2589 return it->second;
2590}
2591
2592const std::vector<OUString>& SwStyleNameMapper::GetListsUINameArray()
2593{
2594 SvtSysLocale aSysLocale;
2595 const LanguageTag& rCurrentLanguage = aSysLocale.GetUILanguageTag();
2596 static std::map<LanguageTag, std::vector<OUString>> s_aListsUINameArray;
2597
2598 auto it = s_aListsUINameArray.find(rCurrentLanguage);
2599 if (it == s_aListsUINameArray.end())
2600 it = s_aListsUINameArray.emplace(rCurrentLanguage,
2602
2603 return it->second;
2604}
2605
2606const std::vector<OUString>& SwStyleNameMapper::GetExtraUINameArray()
2607{
2608 SvtSysLocale aSysLocale;
2609 const LanguageTag& rCurrentLanguage = aSysLocale.GetUILanguageTag();
2610 static std::map<LanguageTag, std::vector<OUString>> s_aExtraUINameArray;
2611
2612 auto it = s_aExtraUINameArray.find(rCurrentLanguage);
2613 if (it == s_aExtraUINameArray.end())
2614 it = s_aExtraUINameArray.emplace(rCurrentLanguage,
2616
2617 return it->second;
2618}
2619
2620const std::vector<OUString>& SwStyleNameMapper::GetRegisterUINameArray()
2621{
2622 SvtSysLocale aSysLocale;
2623 const LanguageTag& rCurrentLanguage = aSysLocale.GetUILanguageTag();
2624 static std::map<LanguageTag, std::vector<OUString>> s_aRegisterUINameArray;
2625
2626 auto it = s_aRegisterUINameArray.find(rCurrentLanguage);
2627 if (it == s_aRegisterUINameArray.end())
2628 it = s_aRegisterUINameArray.emplace(rCurrentLanguage,
2630
2631 return it->second;
2632}
2633
2634const std::vector<OUString>& SwStyleNameMapper::GetDocUINameArray()
2635{
2636 SvtSysLocale aSysLocale;
2637 const LanguageTag& rCurrentLanguage = aSysLocale.GetUILanguageTag();
2638 static std::map<LanguageTag, std::vector<OUString>> s_aDocUINameArray;
2639
2640 auto it = s_aDocUINameArray.find(rCurrentLanguage);
2641 if (it == s_aDocUINameArray.end())
2642 it = s_aDocUINameArray.emplace(rCurrentLanguage,
2644
2645 return it->second;
2646}
2647
2648const std::vector<OUString>& SwStyleNameMapper::GetHTMLUINameArray()
2649{
2650 SvtSysLocale aSysLocale;
2651 const LanguageTag& rCurrentLanguage = aSysLocale.GetUILanguageTag();
2652 static std::map<LanguageTag, std::vector<OUString>> s_aHTMLUINameArray;
2653
2654 auto it = s_aHTMLUINameArray.find(rCurrentLanguage);
2655 if (it == s_aHTMLUINameArray.end())
2656 it = s_aHTMLUINameArray.emplace(rCurrentLanguage,
2658
2659 return it->second;
2660}
2661
2663{
2664 SvtSysLocale aSysLocale;
2665 const LanguageTag& rCurrentLanguage = aSysLocale.GetUILanguageTag();
2666 static std::map<LanguageTag, std::vector<OUString>> s_aFrameFormatUINameArray;
2667
2668 auto it = s_aFrameFormatUINameArray.find(rCurrentLanguage);
2669 if (it == s_aFrameFormatUINameArray.end())
2670 it = s_aFrameFormatUINameArray.emplace(rCurrentLanguage,
2672
2673 return it->second;
2674}
2675
2677{
2678 SvtSysLocale aSysLocale;
2679 const LanguageTag& rCurrentLanguage = aSysLocale.GetUILanguageTag();
2680 static std::map<LanguageTag, std::vector<OUString>> s_aChrFormatUINameArray;
2681
2682 auto it = s_aChrFormatUINameArray.find(rCurrentLanguage);
2683 if (it == s_aChrFormatUINameArray.end())
2684 it = s_aChrFormatUINameArray.emplace(rCurrentLanguage,
2686
2687 return it->second;
2688}
2689
2691{
2692 SvtSysLocale aSysLocale;
2693 const LanguageTag& rCurrentLanguage = aSysLocale.GetUILanguageTag();
2694 static std::map<LanguageTag, std::vector<OUString>> s_aHTMLChrFormatUINameArray;
2695
2696 auto it = s_aHTMLChrFormatUINameArray.find(rCurrentLanguage);
2697 if (it == s_aHTMLChrFormatUINameArray.end())
2698 it = s_aHTMLChrFormatUINameArray.emplace(rCurrentLanguage,
2700
2701 return it->second;
2702}
2703
2704const std::vector<OUString>& SwStyleNameMapper::GetPageDescUINameArray()
2705{
2706 SvtSysLocale aSysLocale;
2707 const LanguageTag& rCurrentLanguage = aSysLocale.GetUILanguageTag();
2708 static std::map<LanguageTag, std::vector<OUString>> s_aPageDescUINameArray;
2709
2710 auto it = s_aPageDescUINameArray.find(rCurrentLanguage);
2711 if (it == s_aPageDescUINameArray.end())
2712 it = s_aPageDescUINameArray.emplace(rCurrentLanguage,
2714
2715 return it->second;
2716}
2717
2718const std::vector<OUString>& SwStyleNameMapper::GetNumRuleUINameArray()
2719{
2720 SvtSysLocale aSysLocale;
2721 const LanguageTag& rCurrentLanguage = aSysLocale.GetUILanguageTag();
2722 static std::map<LanguageTag, std::vector<OUString>> s_aNumRuleUINameArray;
2723
2724 auto it = s_aNumRuleUINameArray.find(rCurrentLanguage);
2725 if (it == s_aNumRuleUINameArray.end())
2726 it = s_aNumRuleUINameArray.emplace(rCurrentLanguage,
2728
2729 return it->second;
2730}
2731
2733{
2734 SvtSysLocale aSysLocale;
2735 const LanguageTag& rCurrentLanguage = aSysLocale.GetUILanguageTag();
2736 static std::map<LanguageTag, std::vector<OUString>> s_aTableStyleUINameArray;
2737
2738 auto it = s_aTableStyleUINameArray.find(rCurrentLanguage);
2739 if (it == s_aTableStyleUINameArray.end())
2740 it = s_aTableStyleUINameArray.emplace(rCurrentLanguage,
2741 // 1 Writer resource string (XXX if this ever changes rather use offset math)
2743 static_cast<size_t>(SAL_N_ELEMENTS(STR_TABSTYLE_ARY) - 1))).first;
2744
2745 return it->second;
2746}
2747
2748/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const TranslateId STR_POOLCHR_ARY[]
const TranslateId STR_POOLCOLL_EXTRA_ARY[]
const TranslateId STR_TABSTYLE_ARY[]
static std::vector< OUString > lcl_NewUINameArray(const TranslateId *pIds, const size_t nLen, const size_t nSvxIds=0)
bool IsConditionalByPoolId(sal_uInt16 nId)
const TranslateId STR_POOLCOLL_REGISTER_ARY[]
const TranslateId STR_POOLCOLL_HTML_ARY[]
const TranslateId STR_POOLCOLL_DOC_ARY[]
const TranslateId STR_POOLCOLL_TEXT_ARY[]
const TranslateId STR_POOLCOLL_LISTS_ARY[]
const TranslateId STR_POOLNUMRULE_NUM_ARY[]
const TranslateId STR_POOLPAGE_ARY[]
const TranslateId STR_POOLFRM_ARY[]
const TranslateId STR_POOLCHR_HTML_ARY[]
virtual void ResetModified()=0
virtual bool IsModified() const =0
Changes of document?
virtual SwPageDesc * GetPageDescFromPool(sal_uInt16 nId, bool bRegardLanguage=true)=0
Return required automatic page style.
virtual SwTextFormatColl * GetTextCollFromPool(sal_uInt16 nId, bool bRegardLanguage=true)=0
Return "Auto-Collection with ID.
static vcl::Font GetDefaultFont(DefaultFontType nType, LanguageType eLang, GetDefaultFontFlags nFlags, const OutputDevice *pOutDev=nullptr)
const SfxPoolItem & GetDefaultItem(sal_uInt16 nWhich) const
SfxItemPool * GetPool() const
sal_uInt16 Count() const
sal_uInt16 ClearItem(sal_uInt16 nWhich=0)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
constexpr tools::Long Height() const
constexpr tools::Long Width() const
const LanguageTag & GetUILanguageTag() const
static const sal_Int16 Hairline
void SetLine(const editeng::SvxBorderLine *pNew, SvxBoxItemLine nLine)
void SetAllDistances(sal_Int16 nNew)
void SetRight(const tools::Long nR, const sal_uInt16 nProp=100)
tools::Long GetRight() const
virtual SvxLRSpaceItem * Clone(SfxItemPool *pPool=nullptr) const override
void SetTextLeft(const tools::Long nL, const sal_uInt16 nProp=100)
tools::Long GetLeft() const
void SetTextFirstLineOffset(const short nF, const sal_uInt16 nProp=100)
void SetLeft(const tools::Long nL, const sal_uInt16 nProp=100)
void SetPropLineSpace(const sal_uInt16 nProp)
void SetStart(sal_uInt16 nSet)
void SetAbsLSpace(sal_Int32 nSet)
void SetPositionAndSpaceMode(SvxNumPositionAndSpaceMode ePositionAndSpaceMode)
void SetFirstLineIndent(const tools::Long nFirstLineIndent)
void SetBulletFont(const vcl::Font *pFont)
sal_Int32 GetFirstLineOffset() const
sal_Int32 GetAbsLSpace() const
void SetListFormat(const OUString &rPrefix, const OUString &rSuffix, int nLevel)
void SetNumAdjust(SvxAdjust eSet)
void SetIncludeUpperLevels(sal_uInt8 nSet)
void SetIndentAt(const tools::Long nIndentAt)
void SetFirstLineOffset(sal_Int32 nSet)
SvxNumPositionAndSpaceMode GetPositionAndSpaceMode() const
void SetBulletChar(sal_UCS4 cSet)
void SetLabelFollowedBy(const LabelFollowedBy eLabelFollowedBy)
void SetListtabPos(const tools::Long nListtabPos)
void SetNumberingType(SvxNumType nSet)
static Size GetPaperSize(Paper ePaper, MapUnit eUnit=MapUnit::MapTwip)
void SetSizeProtect(bool bNew)
void SetPosProtect(bool bNew)
tools::Long GetHeight() const
tools::Long GetWidth() const
void SetHeight(tools::Long n)
void SetWidth(tools::Long n)
bool Insert(const SvxTabStop &rTab)
void SetLower(const sal_uInt16 nL, const sal_uInt16 nProp=100)
void SetUpper(const sal_uInt16 nU, const sal_uInt16 nProp=100)
virtual SvxULSpaceItem * Clone(SfxItemPool *pPool=nullptr) const override
Represents the style of a text portion.
Definition: charfmt.hxx:27
Definition: doc.hxx:194
SwFormat * MakeFrameFormat_(const OUString &, SwFormat *, bool, bool)
Definition: docfmt.cxx:845
IDocumentState const & getIDocumentState() const
Definition: doc.cxx:400
const SwCharFormat * GetDfltCharFormat() const
Definition: doc.hxx:761
size_t GetPageDescCnt() const
Definition: doc.hxx:888
const SwNumRuleTable & GetNumRuleTable() const
Definition: doc.hxx:1074
SwNumRule * GetOutlineNumRule() const
Definition: doc.hxx:1032
const SwCharFormats * GetCharFormats() const
Definition: doc.hxx:748
IDocumentUndoRedo & GetIDocumentUndoRedo()
Definition: doc.cxx:150
SwNodes & GetNodes()
Definition: doc.hxx:417
SwPageDesc * MakePageDesc(const OUString &rName, const SwPageDesc *pCpy=nullptr, bool bRegardLanguage=true, bool bBroadcast=false)
Definition: docdesc.cxx:765
const SfxPoolItem & GetDefault(sal_uInt16 nFormatHint) const
Get the default attribute in this document.
Definition: docfmt.cxx:664
const SwTextFormatColls * GetTextFormatColls() const
Definition: doc.hxx:786
IDocumentStylePoolAccess const & getIDocumentStylePoolAccess() const
Definition: doc.cxx:432
const SwTextFormatColl * GetDfltTextFormatColl() const
Definition: doc.hxx:784
const SwFrameFormats * GetFrameFormats() const
Definition: doc.hxx:746
const SwAttrPool & GetAttrPool() const
Definition: doc.hxx:1326
const SwFrameFormat * GetDfltFrameFormat() const
Definition: doc.hxx:755
SwFormat * MakeCharFormat_(const OUString &, SwFormat *, bool, bool)
Definition: docfmt.cxx:878
const SwFrameFormats * GetSpzFrameFormats() const
Definition: doc.hxx:752
::sw::DocumentSettingManager & GetDocumentSettingManager()
Definition: doc.cxx:192
const SwPageDesc & GetPageDesc(const size_t i) const
Definition: doc.hxx:889
sal_uInt16 MakeNumRule(const OUString &rName, const SwNumRule *pCpy=nullptr, bool bBroadcast=false, const SvxNumberFormat::SvxNumPositionAndSpaceMode eDefaultNumberFormatPositionAndSpaceMode=SvxNumberFormat::LABEL_WIDTH_AND_POSITION)
Definition: docnum.cxx:2475
FlyAnchors.
Definition: fmtanchr.hxx:37
Defines the horizontal position of a fly frame.
Definition: fmtornt.hxx:73
void SetCountLines(bool b)
Definition: fmtline.hxx:61
Defines the vertical position of a fly frame.
Definition: fmtornt.hxx:37
Base class for various Writer styles.
Definition: format.hxx:47
sal_uInt16 GetPoolFormatId() const
Get and set Pool style IDs.
Definition: format.hxx:163
const SwFormatFrameSize & GetFrameSize(bool=true) const
Definition: fmtfsize.hxx:104
void SetPoolFormatId(sal_uInt16 nId)
Definition: format.hxx:164
const SvxLRSpaceItem & GetLRSpace(bool=true) const
Definition: frmatr.hxx:74
virtual void SetFormatName(const OUString &rNewName, bool bBroadcast=false)
Definition: format.cxx:145
void SetAutoUpdateFormat(bool bNew=true)
Definition: format.hxx:189
void SetAuto(bool bNew)
Definition: format.hxx:179
const SfxPoolItem & GetFormatAttr(sal_uInt16 nWhich, bool bInParents=true) const
If bInParents is FALSE, search only in this format for attribute.
Definition: format.cxx:366
virtual bool SetFormatAttr(const SfxPoolItem &rAttr)
Definition: format.cxx:447
const SvxULSpaceItem & GetULSpace(bool=true) const
Definition: frmatr.hxx:76
provides some methods for generic operations on lists that contain SwFormat* subclasses.
Definition: docary.hxx:44
Style of a layout element.
Definition: frmfmt.hxx:62
bool HasWriterListeners() const
Definition: calbck.hxx:204
virtual bool GetInfo(SfxPoolItem &) const override
Definition: calbck.cxx:161
void SetCharFormat(SwCharFormat *)
Definition: number.cxx:281
void SetAutoRule(bool bFlag)
Definition: numrule.hxx:230
static sal_uInt16 GetBullIndent(sal_uInt8 nLvl)
Definition: number.cxx:175
const SwNumFormat & Get(sal_uInt16 i) const
Definition: number.cxx:87
void Set(sal_uInt16 i, const SwNumFormat *)
Definition: number.cxx:618
const OUString & GetName() const
Definition: numrule.hxx:224
sal_uInt16 GetPoolFormatId() const
Query and set PoolFormat IDs.
Definition: numrule.hxx:250
void SetPoolFormatId(sal_uInt16 nId)
Definition: numrule.hxx:251
static sal_uInt16 GetNumIndent(sal_uInt8 nLvl)
Definition: number.cxx:169
sal_uInt16 GetPoolFormatId() const
Query and set PoolFormat-Id.
Definition: pagedesc.hxx:275
void SetFollow(const SwPageDesc *pNew)
Definition: pagedesc.hxx:314
SwFrameFormat & GetMaster()
Definition: pagedesc.hxx:238
SwFrameFormat & GetFirstLeft()
Definition: pagedesc.hxx:241
SwFrameFormat & GetFirstMaster()
Definition: pagedesc.hxx:240
void SetPoolFormatId(sal_uInt16 const nId)
Definition: pagedesc.hxx:276
bool GetLandscape() const
Definition: pagedesc.hxx:199
void SetFootnoteInfo(const SwPageFootnoteInfo &rNew)
Definition: pagedesc.hxx:207
SwFrameFormat & GetLeft()
Definition: pagedesc.hxx:239
const SwPageFootnoteInfo & GetFootnoteInfo() const
Definition: pagedesc.hxx:205
virtual bool GetInfo(SfxPoolItem &) const override
Query information from Client.
Definition: pagedesc.cxx:199
void SetUseOn(UseOnPage eNew)
Same as WriteUseOn(), but the >= HeaderShare part of the bitfield is not modified.
Definition: pagedesc.hxx:341
void SetLandscape(bool bNew)
Definition: pagedesc.hxx:200
Footnote information.
Definition: pagedesc.hxx:49
void SetBottomDist(SwTwips const nNew)
Definition: pagedesc.hxx:77
void SetLineWidth(sal_uLong const nSet)
Definition: pagedesc.hxx:71
void SetTopDist(SwTwips const nNew)
Definition: pagedesc.hxx:76
static const std::vector< OUString > & GetChrFormatUINameArray()
static const std::vector< OUString > & GetTableStyleUINameArray()
static const std::vector< OUString > & GetExtraUINameArray()
static const std::vector< OUString > & GetHTMLUINameArray()
static const std::vector< OUString > & GetListsUINameArray()
static const std::vector< OUString > & GetPageDescUINameArray()
static const std::vector< OUString > & GetNumRuleUINameArray()
static const OUString & GetUIName(const OUString &rName, SwGetPoolIdFromName)
static const std::vector< OUString > & GetHTMLChrFormatUINameArray()
static const std::vector< OUString > & GetFrameFormatUINameArray()
static const std::vector< OUString > & GetTextUINameArray()
static const std::vector< OUString > & GetRegisterUINameArray()
static const std::vector< OUString > & GetDocUINameArray()
Represents the style of a paragraph.
Definition: fmtcol.hxx:59
bool IsAssignedToListLevelOfOutlineStyle() const
Definition: fmtcol.hxx:120
virtual bool SetFormatAttr(const SfxPoolItem &rAttr) override
Override to recognize changes on the <SwNumRuleItem> and register/unregister the paragragh style at t...
Definition: fmtcol.cxx:347
void AssignToListLevelOfOutlineStyle(const int nAssignedListLevel)
Definition: fmtcol.cxx:624
void SetNextTextFormatColl(SwTextFormatColl &rNext)
Inline implementations.
Definition: fmtcol.hxx:263
int GetAssignedOutlineStyleLevel() const
Definition: fmtcol.cxx:617
std::vector< SwTextFormatColl * >::size_type size_type
Definition: docary.hxx:66
size_t size() const
Definition: docary.hxx:87
void push_back(Value const &rVal)
Definition: docary.hxx:101
virtual bool get(DocumentSettingId id) const override
Return the specified document setting.
virtual SwFrameFormat * GetFrameFormatFromPool(sal_uInt16 nId) override
Return required automatic format.
virtual SwNumRule * GetNumRuleFromPool(sal_uInt16 nId) override
virtual SwPageDesc * GetPageDescFromPool(sal_uInt16 nId, bool bRegardLanguage=true) override
Return required automatic page style.
virtual bool IsPoolPageDescUsed(sal_uInt16 nId) const override
Check if this AutoCollection is already/still in use in this Document.
virtual bool IsPoolFormatUsed(sal_uInt16 nId) const override
Check if this AutoCollection is already/still in use.
virtual SwTextFormatColl * GetTextCollFromPool(sal_uInt16 nId, bool bRegardLanguage=true) override
Return "Auto-Collection with ID.
virtual SwFormat * GetFormatFromPool(sal_uInt16 nId) override
Return the AutomaticFormat with the supplied Id.
virtual bool IsPoolTextCollUsed(sal_uInt16 nId) const override
Check if this AutoCollection is already/still in use in this Document.
virtual SwCharFormat * GetCharFormatFromPool(sal_uInt16 nId) override
FontFamily GetFamilyType()
const OUString & GetStyleName() const
const OUString & GetFamilyName() const
FontPitch GetPitch()
rtl_TextEncoding GetCharSet() const
constexpr ::Color COL_GRAY(0x80, 0x80, 0x80)
constexpr ::Color COL_RED(0x80, 0x00, 0x00)
constexpr ::Color COL_CYAN(0x00, 0x80, 0x80)
constexpr ::Color COL_BLUE(0x00, 0x00, 0x80)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
SVXCORE_DLLPUBLIC OUString SvxResId(TranslateId aId)
virtual SotClipboardFormatId GetFormat(const TransferableDataHelper &aHelper) override
SwDoc & m_rDoc
Definition: docbm.cxx:1202
float u
#define DFLT_ESC_PROP
#define DFLT_ESC_AUTO_SUPER
@ Fixed
Frame cannot be moved in Var-direction.
@ Minimum
Value in Var-direction gives minimum (can be exceeded but not be less).
DefaultFontType
LINESTYLE_SINGLE
LINESTYLE_NONE
LINESTYLE_DOTTED
ITALIC_NORMAL
WEIGHT_BOLD
constexpr TypedWhichId< SvxOpaqueItem > RES_OPAQUE(99)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_CJK_FONT(22)
constexpr TypedWhichId< SvxUnderlineItem > RES_CHRATR_UNDERLINE(14)
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_FONTSIZE(8)
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_LANGUAGE(10)
constexpr TypedWhichId< SvxWeightItem > RES_CHRATR_WEIGHT(15)
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_CTL_LANGUAGE(29)
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_CJK_FONTSIZE(23)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_CTL_FONT(27)
constexpr TypedWhichId< SvxAdjustItem > RES_PARATR_ADJUST(64)
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_CJK_LANGUAGE(24)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(92)
constexpr TypedWhichId< SvxEscapementItem > RES_CHRATR_ESCAPEMENT(6)
constexpr TypedWhichId< SvxTabStopItem > RES_PARATR_TABSTOP(68)
constexpr TypedWhichId< SvxCaseMapItem > RES_CHRATR_CASEMAP(RES_CHRATR_BEGIN)
constexpr TypedWhichId< SvxLineSpacingItem > RES_PARATR_LINESPACING(RES_PARATR_BEGIN)
constexpr TypedWhichId< SvxOrphansItem > RES_PARATR_ORPHANS(66)
constexpr TypedWhichId< SvxEmphasisMarkItem > RES_CHRATR_EMPHASIS_MARK(33)
constexpr TypedWhichId< SvxPostureItem > RES_CHRATR_POSTURE(11)
constexpr TypedWhichId< SvxWidowsItem > RES_PARATR_WIDOWS(67)
constexpr TypedWhichId< SvxCharRotateItem > RES_CHRATR_ROTATE(32)
constexpr TypedWhichId< SvxProtectItem > RES_PROTECT(100)
constexpr TypedWhichId< SvxScriptSpaceItem > RES_PARATR_SCRIPTSPACE(73)
constexpr TypedWhichId< SvxFormatKeepItem > RES_KEEP(110)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_FONT(7)
constexpr TypedWhichId< SvxBoxItem > RES_BOX(106)
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(91)
constexpr TypedWhichId< SvxColorItem > RES_CHRATR_COLOR(3)
const SfxPoolItem * GetDfltAttr(sal_uInt16 nWhich)
Get the default attribute from corresponding default attribute table.
Definition: hints.cxx:159
WhichRangesContainer const aCharFormatSetRange(svl::Items< RES_CHRATR_BEGIN, RES_CHRATR_END-1, RES_UNKNOWNATR_BEGIN, RES_UNKNOWNATR_END-1 >)
WhichRangesContainer const aPgFrameFormatSetRange(svl::Items< RES_FRMATR_BEGIN, RES_FRMATR_END-1, RES_UNKNOWNATR_BEGIN, RES_UNKNOWNATR_END-1 >)
WhichRangesContainer const aTextFormatCollSetRange(svl::Items< RES_CHRATR_BEGIN, RES_CHRATR_END-1, RES_PARATR_BEGIN, RES_PARATR_END-1, RES_PARATR_LIST_LEVEL, RES_PARATR_LIST_LEVEL, RES_FRMATR_BEGIN, RES_FRMATR_END-1, RES_UNKNOWNATR_BEGIN, RES_UNKNOWNATR_END-1, XATTR_FILL_FIRST, XATTR_FILL_LAST >)
WhichRangesContainer const aFrameFormatSetRange(svl::Items< RES_FRMATR_BEGIN, RES_FRMATR_END-1, RES_UNKNOWNATR_BEGIN, RES_UNKNOWNATR_END-1, XATTR_FILL_FIRST, XATTR_FILL_LAST >)
LanguageType GetAppLanguage()
Definition: init.cxx:725
OUString aName
sal_Int64 n
#define LANGUAGE_KOREAN
#define LANGUAGE_ARABIC_SAUDI_ARABIA
#define LANGUAGE_DONTKNOW
#define LANGUAGE_ENGLISH_US
sal_uInt16 nPos
#define SAL_WARN(area, stream)
#define LINE_SPACE_DEFAULT_HEIGHT
#define SAL_N_ELEMENTS(arr)
LanguageType GetLanguage(SfxItemSet const &aSet, sal_uInt16 nLangWhichId)
Definition: langhelper.cxx:390
tools::Long const nRightMargin
size
int i
SvxNumberFormat::SvxNumPositionAndSpaceMode GetDefaultPositionAndSpaceMode()
Definition: number.cxx:1561
const vcl::Font & GetDefBulletFont()
retrieve font used for the default bullet list characters
Definition: number.cxx:1395
constexpr auto toTwips(N number, Length from)
constexpr Point convert(const Point &rPoint, o3tl::Length eFrom, o3tl::Length eTo)
const SvxPageUsage aArr[]
Dialog to specify the properties of date form field.
long Long
const sal_Unicode cBulletChar
Character for lists.
Definition: numrule.hxx:48
sal_Int16 nId
PAPER_ENV_C65
Size & LandscapeSwap(Size &rSize)
void SetAllScriptItem(SfxItemSet &rSet, const SfxPoolItem &rItem)
Definition: poolfmt.cxx:41
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:150
SvxFrameDirection GetDefaultFrameDirection(LanguageType nLanguage)
Return the AutoCollection by its Id.
Definition: poolfmt.cxx:79
@ RES_POOLCOLL_BULLET_LEVEL1E
End 1st level.
Definition: poolfmt.hxx:305
@ RES_POOLCOLL_LABEL_DRAWING
Label drawing objects.
Definition: poolfmt.hxx:358
@ RES_POOLCOLL_BULLET_LEVEL2
2nd level.
Definition: poolfmt.hxx:308
@ RES_POOLCOLL_REGISTER_BEGIN
Group indices.
Definition: poolfmt.hxx:362
@ RES_POOLCOLL_NUM_LEVEL5
5th level.
Definition: poolfmt.hxx:298
@ RES_POOLCOLL_TOX_AUTHORITIES1
Authorities all levels.
Definition: poolfmt.hxx:409
@ RES_POOLCOLL_BULLET_NONUM2
No numbering.
Definition: poolfmt.hxx:310
@ RES_POOLCOLL_HTML_BEGIN
Group HTML-styles.
Definition: poolfmt.hxx:430
@ RES_POOLCOLL_NUM_LEVEL1E
End 1st level.
Definition: poolfmt.hxx:283
@ RES_POOLCOLL_HEADLINE5
Heading 5.
Definition: poolfmt.hxx:266
@ RES_POOLCOLL_HTML_END
End of text styles collection.
Definition: poolfmt.hxx:438
@ RES_POOLCOLL_TEXT
Text body.
Definition: poolfmt.hxx:251
@ RES_POOLCOLL_NUM_LEVEL2E
End 2nd level.
Definition: poolfmt.hxx:287
@ RES_POOLCOLL_STANDARD
Standard.
Definition: poolfmt.hxx:250
@ RES_POOLCOLL_GREETING
Complimentary close.
Definition: poolfmt.hxx:255
@ RES_POOLCOLL_HEADLINE6
Heading 6.
Definition: poolfmt.hxx:267
@ RES_POOLCOLL_TOX_USER5
5th level.
Definition: poolfmt.hxx:387
@ RES_POOLCOLL_TOX_CNTNT4
Content 4th level.
Definition: poolfmt.hxx:378
@ RES_POOLCOLL_HEADERFOOTER
Subgroup header.
Definition: poolfmt.hxx:330
@ RES_POOLCOLL_HEADLINE10
Heading 10.
Definition: poolfmt.hxx:271
@ RES_POOLCOLL_TEXT_END
Definition: poolfmt.hxx:273
@ RES_POOLCOLL_NUM_LEVEL4E
End 4th level.
Definition: poolfmt.hxx:295
@ RES_POOLCOLL_SIGNATURE
Signature.
Definition: poolfmt.hxx:256
@ RES_POOLCOLL_TOX_USERH
Subgroup user indices.
Definition: poolfmt.hxx:382
@ RES_POOLCOLL_TOX_TABLES1
Tables all levels.
Definition: poolfmt.hxx:405
@ RES_POOLCOLL_BULLET_LEVEL4
4th level.
Definition: poolfmt.hxx:316
@ RES_POOLCOLL_TEXT_BEGIN
Definition: poolfmt.hxx:248
@ RES_POOLCOLL_HTML_BLOCKQUOTE
Definition: poolfmt.hxx:432
@ RES_POOLCOLL_EXTRA_BEGIN
Special ranges.
Definition: poolfmt.hxx:327
@ RES_POOLCOLL_TOX_IDX3
3rd level.
Definition: poolfmt.hxx:370
@ RES_POOLCOLL_TOX_USER6
user index 6..10.
Definition: poolfmt.hxx:412
@ RES_POOLCOLL_BULLET_LEVEL3S
Start 3rd level.
Definition: poolfmt.hxx:311
@ RES_POOLCOLL_REGISTER_BASE
Base index.
Definition: poolfmt.hxx:364
@ RES_POOLCOLL_BULLET_LEVEL3E
End 3rd level.
Definition: poolfmt.hxx:313
@ RES_POOLCOLL_MARGINAL
Marginalia.
Definition: poolfmt.hxx:258
@ RES_POOLCOLL_TOX_CNTNTH
Subgroup table of contents.
Definition: poolfmt.hxx:374
@ RES_POOLCOLL_TOX_OBJECT1
Objects all levels.
Definition: poolfmt.hxx:401
@ RES_POOLCOLL_LABEL
Subgroup labels.
Definition: poolfmt.hxx:345
@ RES_POOLCOLL_BULLET_LEVEL1
1st level.
Definition: poolfmt.hxx:304
@ RES_POOLCOLL_TOX_TABLESH
tables index.
Definition: poolfmt.hxx:404
@ RES_POOLCOLL_TEXT_NEGIDENT
Text body hanging indent.
Definition: poolfmt.hxx:253
@ RES_POOLCOLL_NUMBER_BULLET_BASE
Base list.
Definition: poolfmt.hxx:278
@ RES_POOLCOLL_LABEL_FRAME
Label frame.
Definition: poolfmt.hxx:348
@ RES_POOLCOLL_TOX_IDXH
Subgroup index tables.
Definition: poolfmt.hxx:367
@ RES_POOLCOLL_LABEL_FIGURE
Label figure.
Definition: poolfmt.hxx:349
@ RES_POOLCOLL_NUM_NONUM5
No numbering.
Definition: poolfmt.hxx:300
@ RES_POOLCOLL_BULLET_LEVEL5E
End 5th Level.
Definition: poolfmt.hxx:321
@ RES_POOLCOLL_NUM_LEVEL5S
Start 5th level.
Definition: poolfmt.hxx:297
@ RES_POOLCOLL_HEADLINE8
Heading 8.
Definition: poolfmt.hxx:269
@ RES_POOLCOLL_TOX_USER4
4th level.
Definition: poolfmt.hxx:386
@ RES_POOLCOLL_HTML_DD
Definition: poolfmt.hxx:435
@ RES_POOLCOLL_TOX_USER3
3rd level.
Definition: poolfmt.hxx:385
@ RES_POOLCOLL_NUM_NONUM2
No numbering.
Definition: poolfmt.hxx:288
@ RES_POOLCOLL_TOX_OBJECTH
object index.
Definition: poolfmt.hxx:400
@ RES_POOLCOLL_DOC_APPENDIX
Doc. appendix.
Definition: poolfmt.hxx:425
@ RES_POOLCOLL_ENVELOPE_ADDRESS
Addressee.
Definition: poolfmt.hxx:354
@ RES_POOLCOLL_TABLE
Subgroup table.
Definition: poolfmt.hxx:341
@ RES_POOLCOLL_TOX_IDX2
2nd level.
Definition: poolfmt.hxx:369
@ RES_POOLCOLL_BULLET_NONUM1
No numbering.
Definition: poolfmt.hxx:306
@ RES_POOLCOLL_NUM_LEVEL2S
Start 2nd level.
Definition: poolfmt.hxx:285
@ RES_POOLCOLL_TOX_USER1
1st level.
Definition: poolfmt.hxx:383
@ RES_POOLCOLL_CONFRONTATION
List indent.
Definition: poolfmt.hxx:257
@ RES_POOLCOLL_FOOTERR
Footer Right.
Definition: poolfmt.hxx:338
@ RES_POOLCOLL_TOX_USER2
2nd level.
Definition: poolfmt.hxx:384
@ RES_POOLCOLL_HEADER
Header Left&Right.
Definition: poolfmt.hxx:331
@ RES_POOLCOLL_NUM_NONUM4
No numbering.
Definition: poolfmt.hxx:296
@ RES_POOLCOLL_BULLET_LEVEL4S
Start 4th level.
Definition: poolfmt.hxx:315
@ RES_POOLCOLL_BULLET_LEVEL4E
End 4th level.
Definition: poolfmt.hxx:317
@ RES_POOLCOLL_TOX_CNTNT6
Content 6th level.
Definition: poolfmt.hxx:389
@ RES_POOLCOLL_TOX_USER9
9th level.
Definition: poolfmt.hxx:415
@ RES_POOLCOLL_NUM_LEVEL4
4th level.
Definition: poolfmt.hxx:294
@ RES_POOLCOLL_DOC_TITLE
Doc. title.
Definition: poolfmt.hxx:423
@ RES_POOLCOLL_NUM_NONUM3
No numbering.
Definition: poolfmt.hxx:292
@ RES_POOLCOLL_TOX_CNTNT3
Content 3rd level.
Definition: poolfmt.hxx:377
@ RES_POOLCOLL_TOX_ILLUSH
illustrations index.
Definition: poolfmt.hxx:396
@ RES_POOLCOLL_BULLET_NONUM5
No numbering.
Definition: poolfmt.hxx:322
@ RES_POOLCOLL_TOX_CNTNT10
Content 10th level.
Definition: poolfmt.hxx:393
@ RES_POOLCOLL_TOX_CNTNT5
Content 5th level.
Definition: poolfmt.hxx:379
@ RES_POOLCOLL_HEADLINE9
Heading 9.
Definition: poolfmt.hxx:270
@ RES_POOLCOLL_FOOTERL
Footer Left.
Definition: poolfmt.hxx:337
@ RES_POOLCOLL_FRAME
Other stuff.
Definition: poolfmt.hxx:352
@ RES_POOLCOLL_TOX_CNTNT2
Content 2nd level.
Definition: poolfmt.hxx:376
@ RES_POOLCOLL_HTML_DT
Definition: poolfmt.hxx:436
@ RES_POOLCOLL_REGISTER_END
Definition: poolfmt.hxx:418
@ RES_POOLCOLL_BULLET_NONUM3
No numbering.
Definition: poolfmt.hxx:314
@ RES_POOLCOLL_NUM_LEVEL3E
End 3rd level.
Definition: poolfmt.hxx:291
@ RES_POOLCOLL_LABEL_TABLE
Label table.
Definition: poolfmt.hxx:347
@ RES_POOLCOLL_TOX_IDX1
1st level.
Definition: poolfmt.hxx:368
@ RES_POOLCOLL_NUM_LEVEL3
3rd level.
Definition: poolfmt.hxx:290
@ RES_POOLCOLL_NUM_NONUM1
No numbering.
Definition: poolfmt.hxx:284
@ RES_POOLCOLL_BULLET_LEVEL1S
Subgroup bullets.
Definition: poolfmt.hxx:303
@ RES_POOLCOLL_HTML_HR
Definition: poolfmt.hxx:434
@ RES_POOLCOLL_NUM_LEVEL5E
End 5th level.
Definition: poolfmt.hxx:299
@ RES_POOLCOLL_TOX_CNTNT1
Content 1st level.
Definition: poolfmt.hxx:375
@ RES_POOLCOLL_BULLET_LEVEL3
3rd Level.
Definition: poolfmt.hxx:312
@ RES_POOLCOLL_LABEL_ABB
Label illustration.
Definition: poolfmt.hxx:346
@ RES_POOLCOLL_TEXT_MOVE
Text body indent.
Definition: poolfmt.hxx:254
@ RES_POOLCOLL_HEADLINE_BASE
Subgroup headings.
Definition: poolfmt.hxx:261
@ RES_POOLCOLL_SEND_ADDRESS
Sender.
Definition: poolfmt.hxx:355
@ RES_POOLCOLL_DOC_END
Definition: poolfmt.hxx:427
@ RES_POOLCOLL_LISTS_BEGIN
Group lists.
Definition: poolfmt.hxx:276
@ RES_POOLCOLL_NUM_LEVEL2
2nd level.
Definition: poolfmt.hxx:286
@ RES_POOLCOLL_NUM_LEVEL1
1st level.
Definition: poolfmt.hxx:282
@ RES_POOLCOLL_TOX_ILLUS1
Illustrations all levels.
Definition: poolfmt.hxx:397
@ RES_POOLCOLL_HEADERL
Header Left.
Definition: poolfmt.hxx:332
@ RES_POOLCOLL_TOX_USER7
7th level.
Definition: poolfmt.hxx:413
@ RES_POOLCOLL_HEADLINE2
Heading 2.
Definition: poolfmt.hxx:263
@ RES_POOLCOLL_TOX_CNTNT7
Content 7th level.
Definition: poolfmt.hxx:390
@ RES_POOLCOLL_TOX_CNTNT8
Content 8th level.
Definition: poolfmt.hxx:391
@ RES_POOLCOLL_TOX_USER10
10th level.
Definition: poolfmt.hxx:416
@ RES_POOLCOLL_DOC_SUBTITLE
Doc. subtitle.
Definition: poolfmt.hxx:424
@ RES_POOLCOLL_TOX_IDXBREAK
Separator.
Definition: poolfmt.hxx:371
@ RES_POOLCOLL_TOX_CNTNT9
Content 9th level.
Definition: poolfmt.hxx:392
@ RES_POOLCOLL_BULLET_LEVEL2S
Start 2nd level.
Definition: poolfmt.hxx:307
@ RES_POOLCOLL_HEADLINE4
Heading 4.
Definition: poolfmt.hxx:265
@ RES_POOLCOLL_BULLET_NONUM4
No numbering.
Definition: poolfmt.hxx:318
@ RES_POOLCOLL_FOOTNOTE
Footnotes.
Definition: poolfmt.hxx:353
@ RES_POOLCOLL_TOX_AUTHORITIESH
index of authorities.
Definition: poolfmt.hxx:408
@ RES_POOLCOLL_HEADLINE7
Heading 7.
Definition: poolfmt.hxx:268
@ RES_POOLCOLL_NUM_LEVEL4S
Start 4th level.
Definition: poolfmt.hxx:293
@ RES_POOLCOLL_HTML_PRE
Definition: poolfmt.hxx:433
@ RES_POOLCOLL_TOX_USER8
8th level.
Definition: poolfmt.hxx:414
@ RES_POOLCOLL_NUM_LEVEL3S
Start 3rd level.
Definition: poolfmt.hxx:289
@ RES_POOLCOLL_BULLET_LEVEL5
5th level.
Definition: poolfmt.hxx:320
@ RES_POOLCOLL_NUM_LEVEL1S
Subgroup numberings.
Definition: poolfmt.hxx:281
@ RES_POOLCOLL_HEADLINE1
Heading 1.
Definition: poolfmt.hxx:262
@ RES_POOLCOLL_BULLET_LEVEL2E
End 2nd level.
Definition: poolfmt.hxx:309
@ RES_POOLCOLL_LISTS_END
Definition: poolfmt.hxx:324
@ RES_POOLCOLL_HEADERR
Header Right.
Definition: poolfmt.hxx:333
@ RES_POOLCOLL_TABLE_HDLN
Table of Contents - heading.
Definition: poolfmt.hxx:342
@ RES_POOLCOLL_BULLET_LEVEL5S
Start 5th level.
Definition: poolfmt.hxx:319
@ RES_POOLCOLL_FOOTER
Subgroup footer.
Definition: poolfmt.hxx:336
@ RES_POOLCOLL_EXTRA_END
Definition: poolfmt.hxx:359
@ RES_POOLCOLL_DOC_BEGIN
Group chapter / document.
Definition: poolfmt.hxx:421
@ RES_POOLCOLL_TEXT_IDENT
Text body first line indent.
Definition: poolfmt.hxx:252
@ RES_POOLCOLL_HEADLINE3
Heading 3.
Definition: poolfmt.hxx:264
@ RES_POOLCOLL_ENDNOTE
Endnotes.
Definition: poolfmt.hxx:356
const sal_uInt16 POOLGRP_FRAMEFMT
Definition: poolfmt.hxx:76
@ RES_POOLNUMRULE_BUL5
NumRule Bullets 5.
Definition: poolfmt.hxx:198
@ RES_POOLNUMRULE_BUL2
NumRule Bullets 2.
Definition: poolfmt.hxx:195
@ RES_POOLNUMRULE_BEGIN
Definition: poolfmt.hxx:187
@ RES_POOLNUMRULE_BUL4
NumRule Bullets 4.
Definition: poolfmt.hxx:197
@ RES_POOLNUMRULE_NUM2
NumRule Numbering ABC.
Definition: poolfmt.hxx:190
@ RES_POOLNUMRULE_NUM1
NumRule Numbering 123.
Definition: poolfmt.hxx:189
@ RES_POOLNUMRULE_END
Definition: poolfmt.hxx:199
@ RES_POOLNUMRULE_NUM5
NumRule Numbering ivx.
Definition: poolfmt.hxx:193
@ RES_POOLNUMRULE_BUL3
NumRule Bullets 3.
Definition: poolfmt.hxx:196
@ RES_POOLNUMRULE_NUM3
NumRule Numbering abc.
Definition: poolfmt.hxx:191
@ RES_POOLNUMRULE_NUM4
NumRule Numbering IVX.
Definition: poolfmt.hxx:192
@ RES_POOLNUMRULE_BUL1
NumRule Bullets 1.
Definition: poolfmt.hxx:194
@ RES_POOLPAGE_ENVELOPE
Envelope.
Definition: poolfmt.hxx:174
@ RES_POOLPAGE_REGISTER
Index.
Definition: poolfmt.hxx:175
@ RES_POOLPAGE_END
Definition: poolfmt.hxx:181
@ RES_POOLPAGE_LEFT
Left page.
Definition: poolfmt.hxx:172
@ RES_POOLPAGE_ENDNOTE
Endnote page.
Definition: poolfmt.hxx:178
@ RES_POOLPAGE_HTML
HTML.
Definition: poolfmt.hxx:176
@ RES_POOLPAGE_FOOTNOTE
Footnote at end of document.
Definition: poolfmt.hxx:177
@ RES_POOLPAGE_BEGIN
Definition: poolfmt.hxx:168
@ RES_POOLPAGE_LANDSCAPE
Landscape page style.
Definition: poolfmt.hxx:179
@ RES_POOLPAGE_FIRST
First page.
Definition: poolfmt.hxx:171
@ RES_POOLPAGE_RIGHT
Right page.
Definition: poolfmt.hxx:173
@ RES_POOLPAGE_STANDARD
Standard page.
Definition: poolfmt.hxx:170
@ RES_POOLCHR_TOXJUMP
Jump from index.
Definition: poolfmt.hxx:123
@ RES_POOLCHR_HTML_TELETYPE
Definition: poolfmt.hxx:143
@ RES_POOLCHR_INET_VISIT
Internet visited.
Definition: poolfmt.hxx:121
@ RES_POOLCHR_BULLET_LEVEL
Bullets.
Definition: poolfmt.hxx:118
@ RES_POOLCHR_NORMAL_END
Definition: poolfmt.hxx:132
@ RES_POOLCHR_NUM_LEVEL
Numbering symbols.
Definition: poolfmt.hxx:117
@ RES_POOLCHR_HTML_CODE
Definition: poolfmt.hxx:138
@ RES_POOLCHR_BEGIN
Definition: poolfmt.hxx:110
@ RES_POOLCHR_HTML_SAMPLE
Definition: poolfmt.hxx:139
@ RES_POOLCHR_HTML_CITATION
Definition: poolfmt.hxx:136
@ RES_POOLCHR_FOOTNOTE
Footnote.
Definition: poolfmt.hxx:113
@ RES_POOLCHR_HTML_EMPHASIS
Definition: poolfmt.hxx:135
@ RES_POOLCHR_DROPCAPS
Dropcaps.
Definition: poolfmt.hxx:116
@ RES_POOLCHR_ENDNOTE
Endnote.
Definition: poolfmt.hxx:124
@ RES_POOLCHR_ENDNOTE_ANCHOR
Endnote anchor.
Definition: poolfmt.hxx:128
@ RES_POOLCHR_LABEL
Label.
Definition: poolfmt.hxx:115
@ RES_POOLCHR_PAGENO
Pages/field.
Definition: poolfmt.hxx:114
@ RES_POOLCHR_JUMPEDIT
Placeholder.
Definition: poolfmt.hxx:122
@ RES_POOLCHR_INET_NORMAL
Internet normal.
Definition: poolfmt.hxx:120
@ RES_POOLCHR_HTML_KEYBOARD
Definition: poolfmt.hxx:140
@ RES_POOLCHR_HTML_STRONG
Definition: poolfmt.hxx:137
@ RES_POOLCHR_HTML_END
Definition: poolfmt.hxx:144
@ RES_POOLCHR_LINENUM
Line numbering.
Definition: poolfmt.hxx:125
@ RES_POOLCHR_HTML_BEGIN
HTML-styles.
Definition: poolfmt.hxx:134
@ RES_POOLCHR_FOOTNOTE_ANCHOR
Footnote anchor.
Definition: poolfmt.hxx:127
@ RES_POOLCHR_HTML_VARIABLE
Definition: poolfmt.hxx:141
@ RES_POOLCHR_NORMAL_BEGIN
Definition: poolfmt.hxx:111
@ RES_POOLCHR_END
Definition: poolfmt.hxx:146
@ RES_POOLCHR_RUBYTEXT
Rubytext.
Definition: poolfmt.hxx:129
@ RES_POOLCHR_IDX_MAIN_ENTRY
Main entry in indices.
Definition: poolfmt.hxx:126
@ RES_POOLCHR_VERT_NUM
Vertical numbering symbols.
Definition: poolfmt.hxx:130
const sal_uInt16 POOLGRP_NOCOLLID
POOLCOLL-IDs: +-—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+ !User! Range ! 0 ! Offset ! +-—+—+—+—+—+—+—+—+—+—+—+...
Definition: poolfmt.hxx:59
const sal_uInt16 COLL_GET_RANGE_BITS
Definition: poolfmt.hxx:71
const sal_uInt16 POOLGRP_CHARFMT
Other groups:
Definition: poolfmt.hxx:75
@ RES_POOLFRM_LABEL
Labels.
Definition: poolfmt.hxx:160
@ RES_POOLFRM_FORMEL
Formula.
Definition: poolfmt.hxx:157
@ RES_POOLFRM_FRAME
Frame.
Definition: poolfmt.hxx:154
@ RES_POOLFRM_END
Definition: poolfmt.hxx:162
@ RES_POOLFRM_WATERSIGN
Watermark.
Definition: poolfmt.hxx:159
@ RES_POOLFRM_OLE
OLE.
Definition: poolfmt.hxx:156
@ RES_POOLFRM_MARGINAL
Marginalia.
Definition: poolfmt.hxx:158
@ RES_POOLFRM_BEGIN
Definition: poolfmt.hxx:152
@ RES_POOLFRM_GRAPHIC
Graphics.
Definition: poolfmt.hxx:155
static SfxItemSet & rSet
SVX_NUM_CHARS_LOWER_LETTER
SVX_NUM_CHARS_UPPER_LETTER
SVX_NUM_ROMAN_UPPER
SVX_NUM_ROMAN_LOWER
SVX_NUM_ARABIC
SVX_NUM_CHAR_SPECIAL
OUString SwResId(TranslateId aId)
Definition: swmodule.cxx:165
tools::Long SwTwips
Definition: swtypes.hxx:51
constexpr short lNumberFirstLineOffset
Definition: swtypes.hxx:101
constexpr short lBulletFirstLineOffset
Definition: swtypes.hxx:99
constexpr sal_uInt8 MAXLEVEL
Definition: swtypes.hxx:92
unsigned char sal_uInt8
#define HTML_PARSPACE
Definition: wrthtml.hxx:70
constexpr TypedWhichId< XFillStyleItem > XATTR_FILLSTYLE(XATTR_FILL_FIRST)