61 #include <svx/strings.hrc>
64 #include <osl/diagnose.h>
65 #include <strings.hrc>
68 #include <com/sun/star/text/VertOrientation.hpp>
69 #include <com/sun/star/text/RelOrientation.hpp>
70 #include <com/sun/star/text/HoriOrientation.hpp>
88 const sal_uInt16 PT_3 = 3 * 20;
89 const sal_uInt16 PT_6 = 6 * 20;
90 const sal_uInt16 PT_7 = 7 * 20;
91 const sal_uInt16 PT_10 = 10 * 20;
92 const sal_uInt16 PT_12 = 12 * 20;
93 const sal_uInt16 PT_14 = 14 * 20;
94 const sal_uInt16 PT_16 = 16 * 20;
95 const sal_uInt16 PT_18 = 18 * 20;
96 const sal_uInt16 PT_24 = 24 * 20;
97 const sal_uInt16 PT_28 = 28 * 20;
99 #define HTML_PARSPACE GetMetricVal( CM_05 )
101 const sal_uInt16 aHeadlineSizes[ 2 *
MAXLEVEL ] = {
103 130, 115, 101, 95, 85,
105 PT_24, PT_18, PT_14, PT_12, PT_10,
106 PT_7, PT_7, PT_7, PT_7, PT_7
118 return nWidth - nLeft - nRight;
124 sal_uInt16 nResLngId;
125 sal_uInt16 nResFntId;
131 for(
const auto & n :
aArr)
136 nLng, GetDefaultFontFlags::OnlyOne ) );
138 rSet.
Put(
SvxFontItem( aFnt.GetFamilyType(), aFnt.GetFamilyName(),
139 OUString(), aFnt.GetPitch(),
140 aFnt.GetCharSet(),
n.nResFntId ));
148 sal_uInt16 nResLngId;
149 sal_uInt16 nResFntId;
156 aArr[0].nFntType = nLatinFntType;
157 aArr[1].nFntType = nCJKFntType;
158 aArr[2].nFntType = nCTLFntType;
160 for(
const auto & n : aArr)
165 nLng, GetDefaultFontFlags::OnlyOne ) );
167 rSet.
Put(
SvxFontItem( aFnt.GetFamilyType(), aFnt.GetFamilyName(),
168 OUString(), aFnt.GetPitch(),
169 aFnt.GetCharSet(),
n.nResFntId ));
175 sal_uInt16 nOutLvlBits,
sal_uInt8 nLevel,
bool bItalic )
181 aHItem.SetHeight( aHeadlineSizes[
MAXLEVEL + nLevel ] );
183 aHItem.SetHeight( PT_14, aHeadlineSizes[ nLevel ] );
186 if( bItalic && !bHTMLMode )
191 lcl_SetDfltFont( DefaultFontType::LATIN_TEXT, DefaultFontType::CJK_TEXT,
192 DefaultFontType::CTL_TEXT, rSet );
198 if( !( nOutLvlBits & ( 1 << nLevel )) )
227 bool bHeader,
bool bTab )
231 aLR.SetTextLeft( nLeft );
243 aTStops.Insert(
SvxTabStop( nRightMargin - nLeft,
245 cDfltDecimalChar,
'.' ));
258 aLR.SetTextFirstLineOffset( sal_uInt16(nEZ) );
259 aLR.SetTextLeft( sal_uInt16(nLeft) );
260 aUL.SetUpper( sal_uInt16(nUpper) );
261 aUL.SetLower( sal_uInt16(nLower) );
276 aFrameSz.SetHeight( aFrameSz.GetWidth() );
277 aFrameSz.SetWidth( nTmp );
279 rSet.
Put( aFrameSz );
286 STR_POOLCOLL_STANDARD,
288 STR_POOLCOLL_TEXT_IDENT,
289 STR_POOLCOLL_TEXT_NEGIDENT,
290 STR_POOLCOLL_TEXT_MOVE,
291 STR_POOLCOLL_GREETING,
292 STR_POOLCOLL_SIGNATURE,
293 STR_POOLCOLL_CONFRONTATION,
294 STR_POOLCOLL_MARGINAL,
296 STR_POOLCOLL_HEADLINE_BASE,
297 STR_POOLCOLL_HEADLINE1,
298 STR_POOLCOLL_HEADLINE2,
299 STR_POOLCOLL_HEADLINE3,
300 STR_POOLCOLL_HEADLINE4,
301 STR_POOLCOLL_HEADLINE5,
302 STR_POOLCOLL_HEADLINE6,
303 STR_POOLCOLL_HEADLINE7,
304 STR_POOLCOLL_HEADLINE8,
305 STR_POOLCOLL_HEADLINE9,
306 STR_POOLCOLL_HEADLINE10
309 static const char* STR_POOLCOLL_LISTS_ARY[]
362 STR_POOLCOLL_HEADERFOOTER,
364 STR_POOLCOLL_HEADERL,
365 STR_POOLCOLL_HEADERR,
368 STR_POOLCOLL_FOOTERL,
369 STR_POOLCOLL_FOOTERR,
372 STR_POOLCOLL_TABLE_HDLN,
375 STR_POOLCOLL_LABEL_ABB,
376 STR_POOLCOLL_LABEL_TABLE,
377 STR_POOLCOLL_LABEL_FRAME,
378 STR_POOLCOLL_LABEL_FIGURE,
381 STR_POOLCOLL_FOOTNOTE,
382 STR_POOLCOLL_ENVELOPE_ADDRESS,
383 STR_POOLCOLL_SEND_ADDRESS,
384 STR_POOLCOLL_ENDNOTE,
385 STR_POOLCOLL_LABEL_DRAWING
391 STR_POOLCOLL_REGISTER_BASE,
393 STR_POOLCOLL_TOX_IDXH,
394 STR_POOLCOLL_TOX_IDX1,
395 STR_POOLCOLL_TOX_IDX2,
396 STR_POOLCOLL_TOX_IDX3,
397 STR_POOLCOLL_TOX_IDXBREAK,
399 STR_POOLCOLL_TOX_CNTNTH,
400 STR_POOLCOLL_TOX_CNTNT1,
401 STR_POOLCOLL_TOX_CNTNT2,
402 STR_POOLCOLL_TOX_CNTNT3,
403 STR_POOLCOLL_TOX_CNTNT4,
404 STR_POOLCOLL_TOX_CNTNT5,
406 STR_POOLCOLL_TOX_USERH,
407 STR_POOLCOLL_TOX_USER1,
408 STR_POOLCOLL_TOX_USER2,
409 STR_POOLCOLL_TOX_USER3,
410 STR_POOLCOLL_TOX_USER4,
411 STR_POOLCOLL_TOX_USER5,
413 STR_POOLCOLL_TOX_CNTNT6,
414 STR_POOLCOLL_TOX_CNTNT7,
415 STR_POOLCOLL_TOX_CNTNT8,
416 STR_POOLCOLL_TOX_CNTNT9,
417 STR_POOLCOLL_TOX_CNTNT10,
419 STR_POOLCOLL_TOX_ILLUSH,
420 STR_POOLCOLL_TOX_ILLUS1,
422 STR_POOLCOLL_TOX_OBJECTH,
423 STR_POOLCOLL_TOX_OBJECT1,
425 STR_POOLCOLL_TOX_TABLESH,
426 STR_POOLCOLL_TOX_TABLES1,
428 STR_POOLCOLL_TOX_AUTHORITIESH,
429 STR_POOLCOLL_TOX_AUTHORITIES1,
431 STR_POOLCOLL_TOX_USER6,
432 STR_POOLCOLL_TOX_USER7,
433 STR_POOLCOLL_TOX_USER8,
434 STR_POOLCOLL_TOX_USER9,
435 STR_POOLCOLL_TOX_USER10
441 STR_POOLCOLL_DOC_TITLE,
442 STR_POOLCOLL_DOC_SUBTITLE,
443 STR_POOLCOLL_DOC_APPENDIX
449 STR_POOLCOLL_HTML_BLOCKQUOTE,
450 STR_POOLCOLL_HTML_PRE,
451 STR_POOLCOLL_HTML_HR,
452 STR_POOLCOLL_HTML_DD,
458 STR_POOLCHR_FOOTNOTE,
461 STR_POOLCHR_DROPCAPS,
462 STR_POOLCHR_NUM_LEVEL,
463 STR_POOLCHR_BULLET_LEVEL,
464 STR_POOLCHR_INET_NORMAL,
465 STR_POOLCHR_INET_VISIT,
466 STR_POOLCHR_JUMPEDIT,
470 STR_POOLCHR_IDX_MAIN_ENTRY,
471 STR_POOLCHR_FOOTNOTE_ANCHOR,
472 STR_POOLCHR_ENDNOTE_ANCHOR,
473 STR_POOLCHR_RUBYTEXT,
479 STR_POOLCHR_HTML_EMPHASIS,
480 STR_POOLCHR_HTML_CITATION,
481 STR_POOLCHR_HTML_STRONG,
482 STR_POOLCHR_HTML_CODE,
483 STR_POOLCHR_HTML_SAMPLE,
484 STR_POOLCHR_HTML_KEYBOARD,
485 STR_POOLCHR_HTML_VARIABLE,
486 STR_POOLCHR_HTML_DEFINSTANCE,
487 STR_POOLCHR_HTML_TELETYPE
496 STR_POOLFRM_MARGINAL,
497 STR_POOLFRM_WATERSIGN,
504 STR_POOLPAGE_STANDARD,
508 STR_POOLPAGE_ENVELOPE,
509 STR_POOLPAGE_REGISTER,
511 STR_POOLPAGE_FOOTNOTE,
512 STR_POOLPAGE_ENDNOTE,
513 STR_POOLPAGE_LANDSCAPE
519 STR_POOLNUMRULE_NUM1,
520 STR_POOLNUMRULE_NUM2,
521 STR_POOLNUMRULE_NUM3,
522 STR_POOLNUMRULE_NUM4,
523 STR_POOLNUMRULE_NUM5,
524 STR_POOLNUMRULE_BUL1,
525 STR_POOLNUMRULE_BUL2,
526 STR_POOLNUMRULE_BUL3,
527 STR_POOLNUMRULE_BUL4,
538 STR_TABSTYLE_DEFAULT,
540 RID_SVXSTR_TBLAFMT_3D,
541 RID_SVXSTR_TBLAFMT_BLACK1,
542 RID_SVXSTR_TBLAFMT_BLACK2,
543 RID_SVXSTR_TBLAFMT_BLUE,
544 RID_SVXSTR_TBLAFMT_BROWN,
545 RID_SVXSTR_TBLAFMT_CURRENCY,
546 RID_SVXSTR_TBLAFMT_CURRENCY_3D,
547 RID_SVXSTR_TBLAFMT_CURRENCY_GRAY,
548 RID_SVXSTR_TBLAFMT_CURRENCY_LAVENDER,
549 RID_SVXSTR_TBLAFMT_CURRENCY_TURQUOISE,
550 RID_SVXSTR_TBLAFMT_GRAY,
551 RID_SVXSTR_TBLAFMT_GREEN,
552 RID_SVXSTR_TBLAFMT_LAVENDER,
553 RID_SVXSTR_TBLAFMT_RED,
554 RID_SVXSTR_TBLAFMT_TURQUOISE,
555 RID_SVXSTR_TBLAFMT_YELLOW,
557 RID_SVXSTR_TBLAFMT_LO6_ACADEMIC,
558 RID_SVXSTR_TBLAFMT_LO6_BOX_LIST_BLUE,
559 RID_SVXSTR_TBLAFMT_LO6_BOX_LIST_GREEN,
560 RID_SVXSTR_TBLAFMT_LO6_BOX_LIST_RED,
561 RID_SVXSTR_TBLAFMT_LO6_BOX_LIST_YELLOW,
562 RID_SVXSTR_TBLAFMT_LO6_ELEGANT,
563 RID_SVXSTR_TBLAFMT_LO6_FINANCIAL,
564 RID_SVXSTR_TBLAFMT_LO6_SIMPLE_GRID_COLUMNS,
565 RID_SVXSTR_TBLAFMT_LO6_SIMPLE_GRID_ROWS,
566 RID_SVXSTR_TBLAFMT_LO6_SIMPLE_LIST_SHADED
585 "Wrong AutoFormat Id" );
588 sal_uInt16 nOutLvlBits = 0;
600 if (!aName.isEmpty())
612 const char* pResId =
nullptr;
644 OSL_ENSURE(pResId,
"Invalid Pool ID");
682 SvxFrameDirection::Horizontal_RL_TB)
690 aSet.Put(aScriptSpace);
755 static const sal_uInt16 aFontWhich[] =
760 static const sal_uInt16 aLangTypes[] =
774 DefaultFontType::LATIN_HEADING,
775 DefaultFontType::CJK_HEADING,
776 DefaultFontType::CTL_HEADING
779 for(
int i = 0;
i < 3; ++
i )
786 nLng, GetDefaultFontFlags::OnlyOne ) );
829 lcl_SetHeadline(
m_rDoc, pNewColl, aSet, nOutLvlBits, 0,
false );
836 lcl_SetHeadline(
m_rDoc, pNewColl, aSet, nOutLvlBits, 1,
false );
843 lcl_SetHeadline(
m_rDoc, pNewColl, aSet, nOutLvlBits, 2,
false );
850 lcl_SetHeadline(
m_rDoc, pNewColl, aSet, nOutLvlBits, 3,
true );
857 lcl_SetHeadline(
m_rDoc, pNewColl, aSet, nOutLvlBits, 4,
false );
864 lcl_SetHeadline(
m_rDoc, pNewColl, aSet, nOutLvlBits, 5,
true );
871 lcl_SetHeadline(
m_rDoc, pNewColl, aSet, nOutLvlBits, 6,
false );
878 lcl_SetHeadline(
m_rDoc, pNewColl, aSet, nOutLvlBits, 7,
true );
885 lcl_SetHeadline(
m_rDoc, pNewColl, aSet, nOutLvlBits, 8,
false );
892 lcl_SetHeadline(
m_rDoc, pNewColl, aSet, nOutLvlBits, 9,
false );
1000 lcl_SetRegister(
m_rDoc, aSet, 0,
true,
false );
1008 lcl_SetRegister(
m_rDoc, aSet, 0,
false,
true );
1011 lcl_SetRegister(
m_rDoc, aSet, 1,
false,
true );
1014 lcl_SetRegister(
m_rDoc, aSet, 2,
false,
true );
1017 lcl_SetRegister(
m_rDoc, aSet, 3,
false,
true );
1020 lcl_SetRegister(
m_rDoc, aSet, 4,
false,
true );
1023 lcl_SetRegister(
m_rDoc, aSet, 5,
false,
true );
1026 lcl_SetRegister(
m_rDoc, aSet, 6,
false,
true );
1029 lcl_SetRegister(
m_rDoc, aSet, 7,
false,
true );
1032 lcl_SetRegister(
m_rDoc, aSet, 8,
false,
true );
1035 lcl_SetRegister(
m_rDoc, aSet, 9,
false,
true );
1040 lcl_SetRegister(
m_rDoc, aSet, 0,
true,
false );
1048 lcl_SetRegister(
m_rDoc, aSet, 0,
false,
false );
1051 lcl_SetRegister(
m_rDoc, aSet, 1,
false,
false );
1054 lcl_SetRegister(
m_rDoc, aSet, 2,
false,
false );
1057 lcl_SetRegister(
m_rDoc, aSet, 0,
false,
false );
1062 lcl_SetRegister(
m_rDoc, aSet, 0,
true,
false );
1070 lcl_SetRegister(
m_rDoc, aSet, 0,
false,
true );
1073 lcl_SetRegister(
m_rDoc, aSet, 1,
false,
true );
1076 lcl_SetRegister(
m_rDoc, aSet, 2,
false,
true );
1079 lcl_SetRegister(
m_rDoc, aSet, 3,
false,
true );
1082 lcl_SetRegister(
m_rDoc, aSet, 4,
false,
true );
1085 lcl_SetRegister(
m_rDoc, aSet, 5,
false,
true );
1088 lcl_SetRegister(
m_rDoc, aSet, 6,
false,
true );
1091 lcl_SetRegister(
m_rDoc, aSet, 7,
false,
true );
1094 lcl_SetRegister(
m_rDoc, aSet, 8,
false,
true );
1097 lcl_SetRegister(
m_rDoc, aSet, 9,
false,
true );
1104 lcl_SetRegister(
m_rDoc, aSet, 0,
true,
false );
1115 lcl_SetRegister(
m_rDoc, aSet, 0,
false,
true );
1352 aSet.Put(std::move(aUL));
1358 ::lcl_SetDfltFont( DefaultFontType::FIXED, aSet );
1365 std::unique_ptr<SvxULSpaceItem> aULSpaceItem(pNewColl->
GetULSpace().
Clone());
1366 aULSpaceItem->SetLower( 0 );
1367 aSet.Put(std::move(aULSpaceItem));
1375 SvxBorderLine aNew(&aColor, 3, SvxBorderLineStyle::DOUBLE);
1376 aBox.
SetLine( &aNew, SvxBoxItemLine::BOTTOM );
1382 std::unique_ptr<SvxULSpaceItem> aUL;
1388 aSet.Put(std::move(aUL));
1400 aSet.Put(std::move(aLR));
1405 std::unique_ptr<SvxLRSpaceItem> aLR;
1412 aSet.Put( std::move(aLR) );
1431 sal_uInt16 nArrCnt = 1;
1432 const char* pRCId =
nullptr;
1433 sal_uInt16
const * pWhichRange =
nullptr;
1450 OSL_ENSURE(
false,
"invalid Id" );
1451 pRCId = STR_POOLCHR_ARY[0];
1467 OSL_ENSURE(
false,
"invalid Id" );
1477 OSL_ENSURE( nId,
"invalid Id" );
1480 OSL_ENSURE(pRCId,
"invalid Id");
1483 for(
size_t n = 0;
n < (*pArray[nArrCnt]).GetFormatCount(); ++
n )
1485 pNewFormat = (*pArray[ nArrCnt ] ).GetFormat(
n );
1603 ::lcl_SetDfltFont( DefaultFontType::FIXED, aSet );
1615 aSet.Put(
SwFormatVertOrient( 0, text::VertOrientation::LINE_CENTER, text::RelOrientation::PRINT_AREA ) );
1622 aSet.Put(
SwFormatHoriOrient( 0, text::HoriOrientation::CENTER, text::RelOrientation::PRINT_AREA ) );
1623 aSet.Put(
SwFormatVertOrient( 0, text::VertOrientation::TOP, text::RelOrientation::PRINT_AREA ) );
1627 aBox.
SetLine( &aLine, SvxBoxItemLine::TOP );
1628 aBox.
SetLine( &aLine, SvxBoxItemLine::BOTTOM );
1629 aBox.
SetLine( &aLine, SvxBoxItemLine::LEFT );
1630 aBox.
SetLine( &aLine, SvxBoxItemLine::RIGHT );
1645 aSet.Put(
SwFormatHoriOrient( 0, text::HoriOrientation::CENTER, text::RelOrientation::FRAME ));
1646 aSet.Put(
SwFormatVertOrient( 0, text::VertOrientation::TOP, text::RelOrientation::FRAME ));
1653 aSet.Put(
SwFormatVertOrient( 0, text::VertOrientation::CHAR_CENTER, text::RelOrientation::FRAME ) );
1660 aSet.Put(
SwFormatHoriOrient( 0, text::HoriOrientation::LEFT, text::RelOrientation::FRAME ));
1661 aSet.Put(
SwFormatVertOrient( 0, text::VertOrientation::TOP, text::RelOrientation::FRAME ));
1672 aSet.Put(
SwFormatHoriOrient( 0, text::HoriOrientation::CENTER, text::RelOrientation::FRAME ));
1673 aSet.Put(
SwFormatVertOrient( 0, text::VertOrientation::CENTER, text::RelOrientation::FRAME ));
1681 aSet.Put(
SwFormatVertOrient( 0, text::VertOrientation::TOP, text::RelOrientation::FRAME ) );
1687 aSet.Put( aProtect );
1713 "Wrong AutoFormat Id" );
1726 OSL_ENSURE(
false,
"<SwDoc::GetPageDescFromPool(..)> - unknown page pool ID" );
1760 bool bSetLeft =
true;
1775 lcl_PutStdPageSizeIntoItemSet(
m_rDoc, aSet );
1786 lcl_PutStdPageSizeIntoItemSet(
m_rDoc, aSet );
1798 lcl_PutStdPageSizeIntoItemSet(
m_rDoc, aSet );
1824 lcl_PutStdPageSizeIntoItemSet(
m_rDoc, aSet );
1838 lcl_PutStdPageSizeIntoItemSet(
m_rDoc, aSet );
1844 aInf.SetTopDist( 0 );
1845 aInf.SetBottomDist( 0 );
1857 aFrameSz.SetHeight( aFrameSz.GetWidth() );
1858 aFrameSz.SetWidth( nTmp );
1860 aSet.Put( aFrameSz );
1886 "Wrong AutoFormat Id" );
1902 OSL_ENSURE(
false,
"invalid Id" );
1909 SwCharFormat *pNumCFormat =
nullptr, *pBullCFormat =
nullptr;
1916 sal_uInt16
n =
m_rDoc.
MakeNumRule( aNm,
nullptr,
false, eNumberFormatPositionAndSpaceMode );
1945 static const sal_uInt16 aAbsSpace[
MAXLEVEL ] =
1948 397, 794, 1191, 1588, 1985, 2381, 2778, 3175, 3572, 3969
1950 const sal_uInt16* pArr = aAbsSpace;
1974 pNewRule->
Set(
n, aFormat );
1981 static const sal_uInt16 aAbsSpace[
MAXLEVEL ] =
1988 const sal_uInt16* pArr = aAbsSpace;
2003 sal_uInt16 nSpace = 357;
2008 nSpace += pArr[
n ];
2014 nSpace += pArr[
n ];
2020 pNewRule->
Set(
n, aFormat );
2060 pNewRule->
Set(
n, aFormat );
2076 static const sal_uInt16 aAbsSpace[
MAXLEVEL ] =
2079 754, 1508, 1191, 2262, 3016, 3771, 4525, 5279, 6033, 6787
2081 const sal_uInt16* pArr = aAbsSpace;
2106 pNewRule->
Set(
n, aFormat );
2113 static const sal_uInt16 aAbsSpace0to2[] =
2120 const sal_uInt16* pArr0to2 = aAbsSpace0to2;
2148 pNewRule->
Set( 0, aFormat );
2165 pNewRule->
Set( 1, aFormat );
2184 pNewRule->
Set( 2, aFormat );
2218 pNewRule->
Set(
n, aFormat );
2235 static const sal_uInt16 aAbsSpace[
MAXLEVEL ] =
2238 227, 454, 680, 907, 1134, 1361, 1587, 1814, 2041, 2268
2240 const sal_uInt16* pArr = aAbsSpace;
2264 pNewRule->
Set(
n, aFormat );
2280 static const sal_uInt16 aAbsSpace[
MAXLEVEL ] =
2283 170, 340, 510, 680, 850, 1020, 1191, 1361, 1531, 1701
2285 const sal_uInt16* pArr = aAbsSpace;
2309 pNewRule->
Set(
n, aFormat );
2352 pNewRule->
Set(
n, aFormat );
2367 static const sal_uInt16 aAbsSpace[
MAXLEVEL ] =
2370 227, 454, 680, 907, 1134, 1361, 1587, 1814, 2041, 2268
2373 const sal_uInt16* pArr = aAbsSpace;
2404 pNewRule->
Set(
n, aFormat );
2420 static const sal_uInt16 aAbsSpace[
MAXLEVEL ] =
2423 227, 454, 680, 907, 1134, 1361, 1587, 1814, 2041, 2268
2425 const sal_uInt16* pArr = aAbsSpace;
2449 pNewRule->
Set(
n, aFormat );
2468 "Wrong AutoFormat Id" );
2483 return !pNewColl->
GetInfo( aGetHt );
2489 const SwFormat *pNewFormat =
nullptr;
2491 sal_uInt16 nArrCnt = 1;
2506 SAL_WARN(
"sw.core",
"Invalid Pool Id: " << nId <<
" should be within "
2515 while( nArrCnt-- && !bFnd )
2516 for(
size_t n = 0; !bFnd &&
n < (*pArray[nArrCnt]).GetFormatCount(); ++n )
2518 pNewFormat = (*pArray[ nArrCnt ] ).GetFormat( n );
2530 bFnd = !pNewFormat->
GetInfo( aGetHt );
2542 "Wrong AutoFormat Id" );
2559 return !pNewPgDsc->
GetInfo( aGetHt );
2568 static std::vector<OUString>
2572 const size_t nWriterIds = nLen - nSvxIds;
2573 std::vector<OUString> aNameArray;
2574 aNameArray.reserve(nLen);
2575 for (
size_t i = 0;
i < nWriterIds; ++
i)
2576 aNameArray.push_back(
SwResId(pIds[
i]));
2577 for (
size_t i = nWriterIds; i < nLen; ++i)
2578 aNameArray.push_back(
SvxResId(pIds[i]));
2585 static std::map<LanguageTag, std::vector<OUString>> s_aTextUINameArray;
2587 auto aFound = s_aTextUINameArray.find(aCurrentLanguage);
2588 if (aFound == s_aTextUINameArray.end()) {
2589 s_aTextUINameArray[aCurrentLanguage] =
2593 return s_aTextUINameArray[aCurrentLanguage];
2599 static std::map<LanguageTag, std::vector<OUString>> s_aListsUINameArray;
2601 auto aFound = s_aListsUINameArray.find(aCurrentLanguage);
2602 if (aFound == s_aListsUINameArray.end()) {
2603 s_aListsUINameArray[aCurrentLanguage] =
2607 return s_aListsUINameArray[aCurrentLanguage];
2613 static std::map<LanguageTag, std::vector<OUString>> s_aExtraUINameArray;
2615 auto aFound = s_aExtraUINameArray.find(aCurrentLanguage);
2616 if (aFound == s_aExtraUINameArray.end()) {
2617 s_aExtraUINameArray[aCurrentLanguage] =
2621 return s_aExtraUINameArray[aCurrentLanguage];
2627 static std::map<LanguageTag, std::vector<OUString>> s_aRegisterUINameArray;
2629 auto aFound = s_aRegisterUINameArray.find(aCurrentLanguage);
2630 if (aFound == s_aRegisterUINameArray.end()) {
2631 s_aRegisterUINameArray[aCurrentLanguage] =
2635 return s_aRegisterUINameArray[aCurrentLanguage];
2641 static std::map<LanguageTag, std::vector<OUString>> s_aDocUINameArray;
2643 auto aFound = s_aDocUINameArray.find(aCurrentLanguage);
2644 if (aFound == s_aDocUINameArray.end())
2645 s_aDocUINameArray[aCurrentLanguage] =
2648 return s_aDocUINameArray[aCurrentLanguage];
2654 static std::map<LanguageTag, std::vector<OUString>> s_aHTMLUINameArray;
2656 auto aFound = s_aHTMLUINameArray.find(aCurrentLanguage);
2657 if (aFound == s_aHTMLUINameArray.end()) {
2658 s_aHTMLUINameArray[aCurrentLanguage] =
2662 return s_aHTMLUINameArray[aCurrentLanguage];
2668 static std::map<LanguageTag, std::vector<OUString>> s_aFrameFormatUINameArray;
2670 auto aFound = s_aFrameFormatUINameArray.find(aCurrentLanguage);
2671 if (aFound == s_aFrameFormatUINameArray.end()) {
2672 s_aFrameFormatUINameArray[aCurrentLanguage] =
2676 return s_aFrameFormatUINameArray[aCurrentLanguage];
2682 static std::map<LanguageTag, std::vector<OUString>> s_aChrFormatUINameArray;
2684 auto aFound = s_aChrFormatUINameArray.find(aCurrentLanguage);
2685 if (aFound == s_aChrFormatUINameArray.end()) {
2686 s_aChrFormatUINameArray[aCurrentLanguage] =
2690 return s_aChrFormatUINameArray[aCurrentLanguage];
2696 static std::map<LanguageTag, std::vector<OUString>> s_aHTMLChrFormatUINameArray;
2698 auto aFound = s_aHTMLChrFormatUINameArray.find(aCurrentLanguage);
2699 if (aFound == s_aHTMLChrFormatUINameArray.end()) {
2700 s_aHTMLChrFormatUINameArray[aCurrentLanguage] =
2704 return s_aHTMLChrFormatUINameArray[aCurrentLanguage];
2710 static std::map<LanguageTag, std::vector<OUString>> s_aPageDescUINameArray;
2712 auto aFound = s_aPageDescUINameArray.find(aCurrentLanguage);
2713 if (aFound == s_aPageDescUINameArray.end()) {
2714 s_aPageDescUINameArray[aCurrentLanguage] =
2718 return s_aPageDescUINameArray[aCurrentLanguage];
2724 static std::map<LanguageTag, std::vector<OUString>> s_aNumRuleUINameArray;
2726 auto aFound = s_aNumRuleUINameArray.find(aCurrentLanguage);
2727 if (aFound == s_aNumRuleUINameArray.end()) {
2728 s_aNumRuleUINameArray[aCurrentLanguage] =
2732 return s_aNumRuleUINameArray[aCurrentLanguage];
2738 static std::map<LanguageTag, std::vector<OUString>> s_aTableStyleUINameArray;
2740 auto aFound = s_aTableStyleUINameArray.find(aCurrentLanguage);
2741 if (aFound == s_aTableStyleUINameArray.end()) {
2742 s_aTableStyleUINameArray[aCurrentLanguage] =
2748 return s_aTableStyleUINameArray[aCurrentLanguage];
constexpr TypedWhichId< SvxProtectItem > RES_PROTECT(100)
static const char * STR_POOLCOLL_HTML_ARY[]
virtual bool IsPoolPageDescUsed(sal_uInt16 nId) const override
Check if this AutoCollection is already/still in use in this Document.
tools::Long GetWidth() const
static vcl::Font GetDefaultFont(DefaultFontType nType, LanguageType eLang, GetDefaultFontFlags nFlags, const OutputDevice *pOutDev=nullptr)
bool Insert(const SvxTabStop &rTab)
virtual ~DocumentStylePoolManager() override
void SetUseOn(UseOnPage eNew)
Same as WriteUseOn(), but the >= HeaderShare part of the bitfield is not modified.
int GetAssignedOutlineStyleLevel() const
void SetRight(const tools::Long nR, const sal_uInt16 nProp=100)
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_LEVEL5S
Represents the style of a paragraph.
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_LEVEL3S
static sal_uInt16 GetBullIndent(sal_uInt8 nLvl)
constexpr TypedWhichId< SvxTabStopItem > RES_PARATR_TABSTOP(68)
static const std::vector< OUString > & GetListsUINameArray()
static const char * STR_POOLCOLL_EXTRA_ARY[]
Footnote at end of document.
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_CTL_FONT(27)
const OUString & GetFamilyName() const
constexpr TypedWhichId< SvxEscapementItem > RES_CHRATR_ESCAPEMENT(6)
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_LEVEL1S
SwFrameFormat & GetLeft()
#define LANGUAGE_ARABIC_SAUDI_ARABIA
#define LINE_SPACE_DEFAULT_HEIGHT
static const std::vector< OUString > & GetTableStyleUINameArray()
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_LEVEL1S
Group chapter / document.
#define LANGUAGE_ENGLISH_US
virtual bool get(DocumentSettingId id) const override
Return the specified document setting.
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_LEVEL3E
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_LEVEL3
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_LEVEL3E
void SetAutoRule(bool bFlag)
static const char * STR_POOLPAGE_ARY[]
const OUString & GetStyleName() const
static const std::vector< OUString > & GetFrameFormatUINameArray()
const LanguageTag & GetUILanguageTag() const
static const char * STR_POOLCHR_HTML_ARY[]
const sal_uInt16 COLL_GET_RANGE_BITS
virtual SwCharFormat * GetCharFormatFromPool(sal_uInt16 nId) override
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_LEVEL4E
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_NONUM5
constexpr TypedWhichId< SvxFormatKeepItem > RES_KEEP(110)
constexpr::Color COL_RED(0x80, 0x00, 0x00)
static const std::vector< OUString > & GetHTMLUINameArray()
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_LEVEL5S
End of text styles collection.
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_LANGUAGE(10)
tools::Long GetRight() const
const short lNumberFirstLineOffset
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_FONTSIZE(8)
constexpr TypedWhichId< XFillStyleItem > XATTR_FILLSTYLE(XATTR_FILL_FIRST)
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_LEVEL4S
LanguageType GetLanguage(SfxItemSet const &aSet, sal_uInt16 nLangWhichId)
SVX_NUM_CHARS_UPPER_LETTER
sal_uInt16 GetPoolFormatId() const
Query and set PoolFormat IDs.
SwFrameFormat & GetFirstMaster()
virtual SwTextFormatColl * GetTextCollFromPool(sal_uInt16 nId, bool bRegardLanguage=true) override
Return "Auto-Collection with ID.
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_LEVEL5E
Vertical numbering symbols.
const sal_Unicode cBulletChar
Character for lists.
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...
constexpr TypedWhichId< SvxUnderlineItem > RES_CHRATR_UNDERLINE(14)
const OUString & GetName() const
constexpr TypedWhichId< SvxOpaqueItem > RES_OPAQUE(99)
Dialog to specify the properties of date form field.
IDocumentUndoRedo & GetIDocumentUndoRedo()
SwFormat * MakeFrameFormat_(const OUString &, SwFormat *, bool, bool)
virtual bool SetFormatAttr(const SfxPoolItem &rAttr) override
Override to recognize changes on the and register/unregister the paragragh style at t...
bool HasWriterListeners() const
static const char * STR_POOLCOLL_REGISTER_ARY[]
virtual bool GetInfo(SfxPoolItem &) const override
static const char * STR_POOLCOLL_TEXT_ARY[]
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_FONT(7)
const SwFrameFormats * GetSpzFrameFormats() const
static const std::vector< OUString > & GetPageDescUINameArray()
sal_uInt16 const aTextFormatCollSetRange[]
Value in Var-direction gives minimum (can be exceeded but not be less).
void SetFollow(const SwPageDesc *pNew)
FontFamily GetFamilyType()
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_NONUM4
static const char * STR_POOLCHR_ARY[]
static const std::vector< OUString > & GetDocUINameArray()
constexpr TypedWhichId< SvxCaseMapItem > RES_CHRATR_CASEMAP(RES_CHRATR_BEGIN)
const SwPageFootnoteInfo & GetFootnoteInfo() const
bool IsAssignedToListLevelOfOutlineStyle() const
void SetTextLeft(const tools::Long nL, const sal_uInt16 nProp=100)
const SwCharFormat * GetDfltCharFormat() const
void SetPropLineSpace(const sal_uInt16 nProp)
void SetFootnoteInfo(const SwPageFootnoteInfo &rNew)
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_LEVEL5E
OUString SvxResId(const char *pId)
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUMBER_BULLET_BASE
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
sal_uInt16 GetPoolFormatId() const
Query and set PoolFormat-Id.
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_CTL_LANGUAGE(29)
IDocumentStylePoolAccess const & getIDocumentStylePoolAccess() const
const SwTextFormatColl * GetDfltTextFormatColl() const
void SetLandscape(bool bNew)
constexpr::Color COL_CYAN(0x00, 0x80, 0x80)
void SetNextTextFormatColl(SwTextFormatColl &rNext)
Inline implementations.
SwFormat * MakeCharFormat_(const OUString &, SwFormat *, bool, bool)
void SetAllScriptItem(SfxItemSet &rSet, const SfxPoolItem &rItem)
const SfxPoolItem & GetDefault(sal_uInt16 nFormatHint) const
Get the default attribute in this document.
DocumentStylePoolManager(SwDoc &i_rSwdoc)
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_LEVEL1E
#define DFLT_ESC_AUTO_SUPER
const SfxPoolItem * GetDfltAttr(sal_uInt16 nWhich)
Get the default attribute from corresponding default attribute table.
virtual SwNumRule * GetNumRuleFromPool(sal_uInt16 nId) override
void SetAllDistances(sal_uInt16 nNew)
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_NONUM1
const sal_uInt16 POOLGRP_NOCOLLID
POOLCOLL-IDs: +-—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+ !User! Range ! 0 ! Offset ! +-—+—+...
void SetPoolFormatId(sal_uInt16 nId)
void SetLower(const sal_uInt16 nL, const sal_uInt16 nProp=100)
virtual SwPageDesc * GetPageDescFromPool(sal_uInt16 nId, bool bRegardLanguage=true)=0
Return required automatic page style.
constexpr TypedWhichId< SvxWeightItem > RES_CHRATR_WEIGHT(15)
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_NONUM2
#define SAL_N_ELEMENTS(arr)
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_LEVEL2
Table of Contents - heading.
virtual SvxULSpaceItem * Clone(SfxItemPool *pPool=nullptr) const override
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_LEVEL2S
SVX_NUM_CHARS_LOWER_LETTER
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_LEVEL4
virtual SwPageDesc * GetPageDescFromPool(sal_uInt16 nId, bool bRegardLanguage=true) override
Return required automatic page style.
void SetTextFirstLineOffsetValue(const short nValue)
std::vector< SwTextFormatColl * >::size_type size_type
virtual bool IsModified() const =0
Changes of document?
const vcl::Font & GetDefBulletFont()
retrieve font used for the default bullet list characters
const SwPageDesc & GetPageDesc(const size_t i) const
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_LEVEL1
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_LEVEL1
bool GetLandscape() const
SwPageDesc * MakePageDesc(const OUString &rName, const SwPageDesc *pCpy=nullptr, bool bRegardLanguage=true, bool bBroadcast=false)
bool IsConditionalByPoolId(sal_uInt16 nId)
const short lBulletFirstLineOffset
tools::Long GetLeft() const
void SetTextFirstLineOffset(const short nF, const sal_uInt16 nProp=100)
tools::Long Width() const
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_GRAY
size_t GetPageDescCnt() const
IDocumentState const & getIDocumentState() const
#define LANGUAGE_DONTKNOW
constexpr TypedWhichId< SvxLineSpacingItem > RES_PARATR_LINESPACING(RES_PARATR_BEGIN)
static Size GetPaperSize(Paper ePaper, MapUnit eUnit=MapUnit::MapTwip)
OUString SwResId(const char *pId)
static sal_uInt16 GetNumIndent(sal_uInt8 nLvl)
void SetPoolFormatId(sal_uInt16 const nId)
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_LEVEL2
constexpr TypedWhichId< SvxEmphasisMarkItem > RES_CHRATR_EMPHASIS_MARK(33)
tools::Long GetHeight() const
const SfxPoolItem & GetDefaultItem(sal_uInt16 nWhich) const
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_LEVEL2E
SfxItemPool * GetPool() const
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_LEVEL1E
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_LEVEL2E
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_NONUM3
Illustrations all levels.
Frame cannot be moved in Var-direction.
Text body first line indent.
const sal_uInt16 POOLGRP_FRAMEFMT
void push_back(Value const &rVal)
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_NONUM2
const SwFrameFormat * GetDfltFrameFormat() const
void AssignToListLevelOfOutlineStyle(const int nAssignedListLevel)
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_LEVEL2S
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_LEVEL4E
Size & LandscapeSwap(Size &rSize)
sal_uInt16 const aFrameFormatSetRange[]
static const std::vector< OUString > & GetNumRuleUINameArray()
constexpr TypedWhichId< SvxColorItem > RES_CHRATR_COLOR(3)
constexpr TypedWhichId< SvxScriptSpaceItem > RES_PARATR_SCRIPTSPACE(73)
const SwNumFormat & Get(sal_uInt16 i) const
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_LEVEL3
virtual SwFrameFormat * GetFrameFormatFromPool(sal_uInt16 nId) override
Return required automatic format.
SwFrameFormat & GetMaster()
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
static const std::vector< OUString > & GetHTMLChrFormatUINameArray()
void SetSizeProtect(bool bNew)
static const std::vector< OUString > & GetChrFormatUINameArray()
void Set(sal_uInt16 i, const SwNumFormat *)
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_LEVEL5
static const std::vector< OUString > & GetExtraUINameArray()
constexpr TypedWhichId< SvxOrphansItem > RES_PARATR_ORPHANS(66)
const SwCharFormats * GetCharFormats() const
void SetPosProtect(bool bNew)
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_LEVEL4
SvxNumberFormat::SvxNumPositionAndSpaceMode GetDefaultPositionAndSpaceMode()
static const char * STR_POOLNUMRULE_NUM_ARY[]
void SetLeft(const tools::Long nL, const sal_uInt16 nProp=100)
const SwTextFormatColls * GetTextFormatColls() const
virtual bool GetInfo(SfxPoolItem &) const override
Query information from Client.
SwFrameFormat & GetFirstLeft()
const SwNumRuleTable & GetNumRuleTable() const
static std::vector< OUString > lcl_NewUINameArray(const char **pIds, const size_t nLen, const size_t nSvxIds=0)
static const char * STR_POOLCOLL_DOC_ARY[]
LanguageType GetAppLanguage()
virtual SwTextFormatColl * GetTextCollFromPool(sal_uInt16 nId, bool bRegardLanguage=true)=0
Return "Auto-Collection with ID.
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_CJK_FONT(22)
virtual SvxLRSpaceItem * Clone(SfxItemPool *pPool=nullptr) const override
static const std::vector< OUString > & GetRegisterUINameArray()
sal_uInt16 const aCharFormatSetRange[]
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_NONUM5
::sw::DocumentSettingManager & GetDocumentSettingManager()
tools::Long Height() const
static const OUString & GetUIName(const OUString &rName, SwGetPoolIdFromName)
sal_uInt16 MakeNumRule(const OUString &rName, const SwNumRule *pCpy=nullptr, bool bBroadcast=false, const SvxNumberFormat::SvxNumPositionAndSpaceMode eDefaultNumberFormatPositionAndSpaceMode=SvxNumberFormat::LABEL_WIDTH_AND_POSITION)
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_BLACK
tools::Long const nRightMargin
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(91)
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_LEVEL4S
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_NONUM4
virtual bool IsPoolTextCollUsed(sal_uInt16 nId) const override
Check if this AutoCollection is already/still in use in this Document.
constexpr TypedWhichId< SvxBoxItem > RES_BOX(106)
SvxFrameDirection GetDefaultFrameDirection(LanguageType nLanguage)
Return the AutoCollection by its Id.
static const char * STR_POOLFRM_ARY[]
virtual SwFormat * GetFormatFromPool(sal_uInt16 nId) override
Return the AutomaticFormat with the supplied Id.
#define SAL_WARN(area, stream)
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_NONUM1
constexpr::Color COL_BLUE(0x00, 0x00, 0x80)
Text body hanging indent.
constexpr TypedWhichId< SvxCharRotateItem > RES_CHRATR_ROTATE(32)
Subgroup table of contents.
sal_uInt16 const aPgFrameFormatSetRange[]
void SetNumberingType(SvxNumType nSet)
const SwFrameFormats * GetFrameFormats() const
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_BULLET_NONUM3
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_LEVEL3S
sal_uInt16 GetMetricVal(int n)
void SetUpper(const sal_uInt16 nU, const sal_uInt16 nProp=100)
const sal_uInt16 POOLGRP_CHARFMT
Other groups:
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_CJK_FONTSIZE(23)
static const char *STR_POOLCOLL_LISTS_ARY[] STR_POOLCOLL_NUM_LEVEL5
static const std::vector< OUString > & GetTextUINameArray()
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(92)
constexpr TypedWhichId< SvxPostureItem > RES_CHRATR_POSTURE(11)
constexpr TypedWhichId< SvxAdjustItem > RES_PARATR_ADJUST(64)
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_CJK_LANGUAGE(24)
static const char * STR_TABSTYLE_ARY[]
constexpr TypedWhichId< SvxWidowsItem > RES_PARATR_WIDOWS(67)
rtl_TextEncoding GetCharSet() const
const SwAttrPool & GetAttrPool() const
SwNumRule * GetOutlineNumRule() const
virtual bool IsPoolFormatUsed(sal_uInt16 nId) const override
Check if this AutoCollection is already/still in use.
virtual void ResetModified()=0
void SetLine(const editeng::SvxBorderLine *pNew, SvxBoxItemLine nLine)