25#include <rtl/tencinfo.h>
87#include <lineinfo.hxx>
121 static const Color eSwWW8ColA[] =
130 "ico " << sal_uInt32(nIco) <<
" >= " <<
SAL_N_ELEMENTS(eSwWW8ColA));
154 sal_uInt16 nVal = (
pS && aRes.
nRemainingData >= 2) ? SVBT16ToUInt16(
pS) : nDefaultVal;
172 OSL_ENSURE(
false,
"Unknown layout type");
175 meDir=SvxFrameDirection::Horizontal_LR_TB;
178 meDir=SvxFrameDirection::Vertical_RL_TB;
185 meDir=SvxFrameDirection::Vertical_RL_TB;
189 meDir=SvxFrameDirection::Vertical_RL_TB;
193 meDir=SvxFrameDirection::Horizontal_LR_TB;
198 if ((
meDir == SvxFrameDirection::Horizontal_LR_TB) && bRTLPgn)
199 meDir = SvxFrameDirection::Horizontal_RL_TB;
204 return meDir == SvxFrameDirection::Vertical_RL_TB ||
meDir == SvxFrameDirection::Vertical_LR_TB;
228 nTextareaWidth -= rLR.
GetLeft();
232 std::swap(nTextareaHeight, nTextareaWidth);
245 OSL_ENSURE(
false,
"Unknown grid type");
268 bool bSquaredMode =
false;
273 sal_uInt32 nCharWidth=240;
274 for (sal_uInt16 nI = 0; nI <
m_xStyles->GetCount(); ++nI)
277 m_vColl[nI].IsWW8BuiltInDefaultStyle())
281 nCharWidth = rFontHeightItem.
GetHeight();
291 sal_Int32 nMain = (nCharSpace & 0xFFFFF000);
293 nCharWidth += nMain*20;
295 int nFraction = (nCharSpace & 0x00000FFF);
296 nFraction = (nFraction*20)/0xFFF;
297 nCharWidth += nFraction;
300 aGrid.
SetBaseWidth( writer_cast<sal_uInt16>(nCharWidth));
304 if (nLinePitch >= 1 && nLinePitch <= 31680)
306 aGrid.
SetLines(writer_cast<sal_uInt16>(nTextareaHeight/nLinePitch));
320 m_xPlcxMan->GetPap()->nRelativeJustify = bRel ? 1 : 0;
338 bRet = nRelative > 0;
342 sal_Int16 nRelative =
m_xPlcxMan->GetPap()->nRelativeJustify;
349 bRet = nRelative > 0;
359 &&
"pointless to search styles if relative justify is impossible");
363 rVisitedStyles.
insert(nColl);
365 sal_Int16 nRelative =
m_vColl[nColl].m_nRelativeJustify;
366 if ( nColl == 0 || nRelative >= 0 )
367 bRet = nRelative > 0;
368 else if (rVisitedStyles.
find(
m_vColl[nColl].m_nBase) == rVisitedStyles.
end())
382 *
pData ? SvxFrameDirection::Horizontal_RL_TB : SvxFrameDirection::Horizontal_LR_TB;
390 bBiDiSwap = (eDir == SvxFrameDirection::Horizontal_RL_TB && !bParentRTL)
391 || (eDir == SvxFrameDirection::Horizontal_LR_TB && bParentRTL);
400 if ( eDir == SvxFrameDirection::Horizontal_LR_TB )
409 if ( eJustify == SvxAdjust::Left )
411 else if ( eJustify == SvxAdjust::Right )
424 sal_uInt32 nNetWidth)
427 const sal_Int16 nCols = rSection.
NoCols();
432 const sal_uInt16 nNetWriterWidth = writer_cast<sal_uInt16>(nNetWidth);
433 if (nNetWriterWidth == 0)
452 aCol.
Init(nCols, writer_cast<sal_uInt16>(nColSpace), nNetWriterWidth);
459 for (sal_uInt16
i = 0, nIdx = 1;
i < nCols && nIdx < maxIdx;
i++, nIdx+=2 )
466 pCol->
SetWishWidth(writer_cast<sal_uInt16>(nWishWidth));
467 pCol->
SetLeft(writer_cast<sal_uInt16>(nLeft));
468 pCol->
SetRight(writer_cast<sal_uInt16>(nRight));
518 const wwSection &rSection,
bool bIgnoreCols)
547 sal_Int32 nNewMargin = nMSMargin;
564 short aSizeArray[5]={0};
571 aLR.
SetLeft(SetBorderDistance(bFromEdge, aBox, SvxBoxItemLine::LEFT, aLR.
GetLeft()));
572 aLR.
SetRight(SetBorderDistance(bFromEdge, aBox, SvxBoxItemLine::RIGHT, aLR.
GetRight()));
573 aUL.
SetUpper(SetBorderDistance(bFromEdge, aBox, SvxBoxItemLine::TOP, aUL.
GetUpper()));
574 aUL.
SetLower(SetBorderDistance(bFromEdge, aBox, SvxBoxItemLine::BOTTOM, aUL.
GetLower()));
617 rData.
nSwUp = nWWHTop;
622 rData.
nSwHLo = nWWUp - nWWHTop;
636 rData.
nSwLo = nWWFBot;
640 rData.
nSwFUp = nWWLo - nWWFBot;
678 aHdUL.
SetLower(
static_cast< sal_uInt16
>(nHdLowerSpace) );
682 pHdFormat->SetFormatAttr(aHdUL);
705 aFtUL.
SetUpper(
static_cast< sal_uInt16
>(nFtUpperSpace) );
709 pFtFormat->SetFormatAttr(aFtUL);
728 bRTLPgn ? SvxFrameDirection::Horizontal_RL_TB : SvxFrameDirection::Horizontal_LR_TB,
RES_FRAMEDIR));
739 OSL_ENSURE(rSection.
mpSection,
"section not inserted!");
745 [](
const wwSection& rSegment) { return rSegment.mpPage != nullptr; });
747 pPage = aIter->mpPage;
749 OSL_ENSURE(pPage,
"no page outside this section!");
755 OSL_ENSURE(pFormat,
"impossible");
765 if ((nSectionLeft != 0) || (nSectionRight != 0))
782 bool bRestartLnNumPerSection = (1 == rSection.
maSep.
lnc);
810 if ((0 < rSection.
maSep.
lnnMin) || bRestartLnNumPerSection)
832 , mnVerticalAdjustment(drawing::TextVerticalAdjust_TOP)
834 , mbHasFootnote(false)
869 OSL_ENSURE(pSep,
"impossible!");
879 if( txtNode->Len() == 0 )
891 pWkb->
Where() == nTextPos)
895 bool bSuccess = pWkb->
Get(nTest,
pData);
912 sal_uInt16 nLIdx = ( (
static_cast<sal_uInt16
>(
mrReader.
m_xWwFib->m_lid) & 0xff ) == 0x9 ) ? 1 : 0;
917 static const sal_uInt16 aVer2Ids0[] =
927 static const sal_uInt16 aVer67Ids0[] =
937 static const sal_uInt16 aVer8Ids0[] =
947 const sal_uInt16* pIds = eVer <=
ww::eWW2 ? aVer2Ids0 : eVer <=
ww::eWW7 ? aVer67Ids0 : aVer8Ids0;
1000 int nColumnDataIdx = 0;
1006 for (
sal_uInt8 nColumn = 0; nColumn < nColumnCount; ++nColumn )
1012 OSL_ENSURE( pSW,
"+Sprm 136 (resp. 0xF203) (ColWidth) missing" );
1013 sal_uInt16 nWidth = (pSW && aSWRes.
nRemainingData >= 3) ? SVBT16ToUInt16(pSW + 1) : 1440;
1017 if ( nColumn < nColumnCount - 1 )
1023 OSL_ENSURE( pSD,
"+Sprm 137 (resp. 0xF204) (Colspacing) missing" );
1026 nWidth = SVBT16ToUInt16(pSD + 1);
1034 static const sal_uInt16 aVer2Ids1[] =
1048 static const sal_uInt16 aVer67Ids1[] =
1062 static const sal_uInt16 aVer8Ids1[] =
1076 pIds = eVer <=
ww::eWW2 ? aVer2Ids1 : eVer <=
ww::eWW7 ? aVer67Ids1 : aVer8Ids1;
1088 static const sal_uInt16 nLef[] = {
MM_250, 1800 };
1089 static const sal_uInt16 nRig[] = {
MM_250, 1800 };
1131 aRes = pSep->
HasSprm(pIds[8]);
1136 aRes = pSep->
HasSprm(pIds[9]);
1141 static const sal_uInt16 nTop[] = {
MM_250, 1440 };
1142 static const sal_uInt16 nBot[] = {
MM_200, 1440 };
1144 static const sal_uInt16 aVer2Ids2[] =
1156 static const sal_uInt16 aVer67Ids2[] =
1167 static const sal_uInt16 aVer8Ids2[] =
1179 pIds = eVer <=
ww::eWW2 ? aVer2Ids2 : eVer <=
ww::eWW7 ? aVer67Ids2 : aVer8Ids2;
1239 for (
int nI = 0, nMask = 1; nI < 6; ++nI, nMask <<= 1)
1324 else if (nBrcVer == 8 && nLen >=
sizeof(
WW8_BRC))
1330 return nullptr !=
pS;
1349 a8Sprm[0], a8Sprm[1], a8Sprm[2], a8Sprm[3]))
1351 for(
int i = 0;
i < 4; ++
i )
1360 a9Sprm[0], a9Sprm[1], a9Sprm[2], a9Sprm[3]))
1362 for(
int i = 0;
i < 4; ++
i )
1370 static const sal_uInt16 aVer67Ids[5] = {
1378 static const sal_uInt16 aVer8Ids[5] = {
1386 static const sal_uInt16 aVer9Ids[5] = {
1398 for(
int i = 0;
i < 5; ++
i )
1406 for(
int i = 0;
i < 5; ++
i )
1412 for(
int i = 0;
i < 5; ++
i )
1423 for(
int i = 0;
i < 5; ++
i )
1431 for(
int i = 0;
i < 5; ++
i )
1437 for(
int i = 0;
i < 5; ++
i )
1445 OSL_ENSURE( pSty || pPap,
"WW8PLCFx_Cp_FKP and WW8RStyle "
1446 "and WW8PLCFx_SEPX is 0" );
1454 sal_uInt32 cv,
short nIdx,
SvxBoxItemLine nOOIndex, sal_uInt16 nWWIndex,
1458 if ( nIdx == 0x1A || nIdx == 0x1B )
1460 nIdx = (nIdx == 0x1A) ? 0x12 : 0x11;
1465 ::editeng::ConvertBorderStyleFromWord(nIdx));
1469 double const fConverted( (SvxBorderLineStyle::NONE == eStyle) ? 0.0 :
1470 ::editeng::ConvertBorderWidthFromWord(eStyle, nLineThickness, nIdx));
1479 pSize[nWWIndex] = fConverted + nSpace;
1481 rBox.
SetLine(&aLine, nOOIndex);
1487 sal_uInt16 nWWIndex,
short *pSize,
const bool bIgnoreSpace)
1492 GetLineIndex(rBox, nLineThickness, bIgnoreSpace ? 0 : nSpace,
1493 rBor.
cv(), rBor.
brcType(), nOOIndex, nWWIndex, pSize );
1512 short *pSizeArray,
sal_uInt8 nSetBorders)
1514 bool bChange =
false;
1515 static const std::pair<sal_uInt16, SvxBoxItemLine> aIdArr[] =
1517 {
WW8_TOP, SvxBoxItemLine::TOP },
1518 {
WW8_LEFT, SvxBoxItemLine::LEFT },
1520 {
WW8_BOT, SvxBoxItemLine::BOTTOM },
1521 {
WW8_BETW, SvxBoxItemLine::BOTTOM }
1524 for(
int i = 0;
i < 4; ++
i )
1533 else if ( nSetBorders & (1 << aIdArr[
i].
first) )
1546 rBox.
SetLine(
nullptr, aIdArr[
i ].second );
1565 rShadow.
SetLocation(SvxShadowLocation::BottomRight);
1575 pbrc[ 0 ].dptSpace() * 20,
1576 pbrc[ 3 ].dptSpace() * 20,
1577 pbrc[ 2 ].dptSpace() * 20 );
1583 bool bShadowed =
false;
1589 rFlySet.
Put( aBox );
1596 rFlySet.
Put( aShadow );
1605#define MAX_BORDER_SIZE 210
1606#define MAX_EMPTY_BORDER 10
1621 *pVar =
static_cast<sal_Int16
>(SVBT16ToUInt16(aS.
pSprm));
1622 return aS.
pSprm !=
nullptr;
1629 *pVar =
static_cast<sal_Int16
>(SVBT16ToUInt16(aS.
pSprm));
1630 return aS.
pSprm !=
nullptr;
1686 ((
nSp45 & 0x7fff) == (rSrc.
nSp45 & 0x7fff)) &&
1744 nSp29 = (nOrigSp29 & 0xCF) | 0x20;
1751 std::shared_ptr<WW8PLCFMan> xPlcxMan = pIo->
m_xPlcxMan;
1754 Read(nOrigSp29, pPap);
1765 xPlcxMan->GetPap()->Save( aSave );
1774 if( nText[0] != 0x01 || nText[1] != 0x0d )
1792 sal_uInt16 nColl = pPap->
GetIstd();
1795 ww::sti eSti = eVer < ww::eWW6 ? ww::GetCanonicalStiFromStc(nColl) : static_cast<ww::sti>(nColl);
1796 while (eSti !=
ww::stiNil &&
static_cast<size_t>(nColl) < pIo->
m_vColl.size() &&
nullptr == (pNowStyleApo = pIo->
m_vColl[nColl].m_xWWFly.get()))
1798 aSeenStyles.
insert(nColl);
1800 nColl = pIo->
m_vColl[nColl].m_nBase;
1802 if (aSeenStyles.
find(nColl) != aSeenStyles.
end())
1804 SAL_WARN(
"sw.ww8",
"loop in style chain");
1808 eSti = eVer < ww::eWW6 ? ww::GetCanonicalStiFromStc(nColl) : static_cast<ww::sti>(nColl);
1814 if( !( aF == *
this ) )
1820 xPlcxMan->GetPap()->Restore( aSave );
1872 nSp29 = (nOrigSp29 & 0xCF) | 0x20;
1885 OSL_ENSURE(aEmpty.
nSp37 == 2,
"this is not what we expect for nSp37");
1886 if (this->
nSp37 == 0)
1888 return aEmpty == *
this;
1895 const sal_uInt32 nWWPgTop,
1896 const sal_uInt32 nPgWidth,
1897 const sal_Int32 nIniFlyDx,
1898 const sal_Int32 nIniFlyDy ):
1907nNetWidth(rWW.nSp28),
1909eHRel(
text::RelOrientation::PAGE_FRAME),
1911eVAlign(
text::VertOrientation::
NONE),
1912eHAlign(
text::HoriOrientation::
NONE),
1913eSurround(( rWW.nSp37 > 1 ) ? css::
text::WrapTextMode_DYNAMIC : css::
text::WrapTextMode_NONE),
1914nXBind(( rWW.nSp29 & 0xc0 ) >> 6),
1915nYBind(( rWW.nSp29 & 0x30 ) >> 4),
1923 if (bIsTable && rWW.
nSp37 == 2)
1924 eSurround = css::text::WrapTextMode_PARALLEL;
1948 msword_cast<sal_Int16>(nPgWidth ? nPgWidth : 2268);
1970 eVRel = text::RelOrientation::PAGE_PRINT_AREA;
1973 eVRel = text::RelOrientation::PAGE_FRAME;
1984 eVAlign = text::VertOrientation::TOP;
1989 eVAlign = text::VertOrientation::CENTER;
1992 eVAlign = text::VertOrientation::BOTTOM;
1997 nYPos = rWW.
nSp27 +
static_cast<short>(nIniFlyDy);
2004 eHAlign = text::HoriOrientation::LEFT;
2008 eHAlign = text::HoriOrientation::CENTER;
2011 eHAlign = text::HoriOrientation::RIGHT;
2015 eHAlign = text::HoriOrientation::LEFT;
2019 eHAlign = text::HoriOrientation::RIGHT;
2023 nXPos = rWW.
nSp26 +
static_cast<short>(nIniFlyDx);
2031 eHRel = text::RelOrientation::FRAME;
2034 eHRel = text::RelOrientation::PAGE_PRINT_AREA;
2050 sal_Int16 nLeBorderMgn( 0 );
2055 nLeBorderMgn = nLeBorderMgn + nTemp;
2058 sal_Int16 nRiBorderMgn( 0 );
2063 nRiBorderMgn = nRiBorderMgn + nTemp;
2065 if ( !
bAutoWidth &&
eHAlign == text::HoriOrientation::LEFT &&
eHRel == text::RelOrientation::PAGE_FRAME )
2071 eHRel = text::RelOrientation::PAGE_PRINT_AREA;
2076 else if ( !
bAutoWidth &&
eHAlign == text::HoriOrientation::RIGHT &&
eHRel == text::RelOrientation::PAGE_FRAME )
2082 eHRel = text::RelOrientation::PAGE_RIGHT;
2083 nXPos = ( nRiBorderMgn - nLeBorderMgn ) + rWW.
nLeMgn;
2087 else if ( !
bAutoWidth &&
eHAlign == text::HoriOrientation::LEFT &&
eHRel == text::RelOrientation::PAGE_PRINT_AREA )
2092 eHRel = text::RelOrientation::PAGE_PRINT_AREA;
2093 nXPos = -nLeBorderMgn;
2097 else if ( !
bAutoWidth &&
eHAlign == text::HoriOrientation::RIGHT &&
eHRel == text::RelOrientation::PAGE_PRINT_AREA )
2102 eHRel = text::RelOrientation::PAGE_RIGHT;
2115 sal_Int16 nLeLMgn = 0;
2117 nLeLMgn = nLeLMgn + nTemp;
2121 if (
eHAlign == text::HoriOrientation::LEFT)
2132 eVRel = text::RelOrientation::PAGE_FRAME;
2133 nYPos =
static_cast< sal_Int16
>(
nYPos + nWWPgTop );
2179 sal_Int16 eHRel = pFS->
eHRel;
2193 if ( pFS->
eSurround == css::text::WrapTextMode_DYNAMIC )
2197 short aSizeArray[5]={0};
2205 text::WrapInfluenceOnPosition::ONCE_SUCCESSIVE ) );
2228 Init(rReader, pPaM);
2232 short aSizeArray[5]={0};
2243 for (
int i = 0;
i < 4;
i++)
2277 : m_pCtrlStck(pStack),
2278 m_aChrSet(rDoc.GetAttrPool()),
2279 m_aParSet(rDoc.GetAttrPool())
2284 for (
size_t i=0;
i < nCnt; ++
i)
2313 }
while ((pItem = aIter.
NextItem()));
2326 OSL_ENSURE( rContent.
GetContentIdx(),
"No content prepared." );
2361 if(aIdx.GetNode().IsTableNode())
2366 if ( (aIdx < aEnd) && aIdx.GetNode().IsTextNode() )
2370 if (aIdx == aEnd && pNd && pNd->
GetText().isEmpty())
2413 OSL_ENSURE(rApo.
HasFrame() || pTabPos,
2414 "If no frame found, *MUST* be in a table");
2422 pRet->ApplyTabPos(pTabPos);
2424 if (pRet->IsEmpty())
2452 short nDCS = SVBT16ToUInt16(aDCS.
pSprm);
2492 if (pTabPos && pTabPos->
bNoFly)
2503 OSL_ENSURE(
m_xSFlyPara->GetFlyFormat()->GetAnchor().GetAnchorId() ==
2513 m_xWWZOrder->InsertTextLayerObject(pOurNewObject);
2578 if (aLastAnchorPos == aToBeJoined)
2586 if (aDropCharPos == aToBeJoined)
2595 if (aOpenApoPos == aToBeJoined)
2648 OSL_ENSURE(
m_xSFlyPara->xMainTextPos,
"StopApo: xMainTextPos is nullptr");
2701 if (aLastAnchorPos == aToBeJoined)
2757 m_xSFlyPara->GetFlyFormat()->SetFormatAttr(aSize);
2780 OSL_ENSURE(
m_xWFlyPara,
" Where is my pWFlyPara ? ");
2800 const bool bFirstLineOfStSet,
2801 const bool bLeftIndentSet )
2823 if ( bFirstLineOfStSet )
2829 if ( bLeftIndentSet )
2952 else if (
m_pPaM !=
nullptr)
2990 reinterpret_cast<const char*
>(
pData+2), 1,
2991 RTL_TEXTENCODING_MS_1252).toChar();
3012 const int nContiguousWestern = 8;
3013 const int nWestern = nContiguousWestern + 1;
3014 const int nEastern = 2;
3016 const int nIds = nWestern + nEastern + nCTL;
3017 static const sal_uInt16 nEndIds[ nIds ] =
3036 nI = nContiguousWestern;
3048 sal_uInt16 nMask = 1 << nI;
3069 bool bOn = *
pData & 1;
3210 static const sal_uInt16 nEndIds[2] =
3224 OSL_ENSURE(nI <= 1,
"not happening");
3228 sal_uInt16 nMask = 1 << nI;
3236 bool bOn = *
pData & 1;
3251 && ( *
pData & 0x80 )
3296 OSL_ENSURE(
false,
"Unhandled unknown bidi toggle attribute");
3359 OSL_ENSURE(
false,
"Unhandled unknown toggle attribute");
3365 sal_uInt16 nNewStyle81Mask )
3367 sal_uInt16
i = 1, nToggleAttrFlags =
m_xCtrlStck->GetToggleAttrFlags();
3371 (
i & nToggleAttrFlags) &&
3372 ((
i & nOldStyle81Mask) != (
i & nNewStyle81Mask))
3381 sal_uInt16 nNewStyle81Mask )
3383 sal_uInt16
i = 1, nToggleAttrFlags =
m_xCtrlStck->GetToggleBiDiAttrFlags();
3387 (
i & nToggleAttrFlags) &&
3388 ((
i & nOldStyle81Mask) != (
i & nNewStyle81Mask))
3441 aBegin == aEnd && nBegin == nEnd - 1 &&
3466 bool bIsGraphicPlacementHack =
false;
3481 bIsGraphicPlacementHack =
true;
3484 return bIsGraphicPlacementHack;
3491 if (nLen < (eVersion <=
ww::eWW2 ? 1 : 2))
3508 short nPos = eVersion <= ww::eWW2 ? static_cast< sal_Int8 >( *
pData ) : SVBT16ToInt16(
pData );
3509 sal_Int32 nPos2 =
nPos * ( 10 * 100 );
3512 OSL_ENSURE(pF,
"Expected to have the fontheight available here");
3515 sal_Int32 nHeight = 240;
3516 if (pF !=
nullptr && pF->GetHeight() != 0)
3517 nHeight = pF->GetHeight();
3530 bool bWordLine =
false;
3539 case 2: bWordLine =
true;
3590 else if(
pData && 6 == nLen )
3597 switch( SVBT16ToUInt16(
pData+1 ) )
3599 case 1: cStt =
'('; cEnd =
')';
break;
3600 case 2: cStt =
'['; cEnd =
']';
break;
3601 case 3: cStt =
'<'; cEnd =
'>';
break;
3602 case 4: cStt =
'{'; cEnd =
'}';
break;
3610 bool bFitToLine = 0 != *(
pData+1);
3699 if (pUnderlineAttr && nLen >= 4)
3705 OUString& rName,
FontPitch& rePitch, rtl_TextEncoding& reCharSet )
3737 reCharSet = RTL_TEXTENCODING_DONTKNOW;
3739 reCharSet = rtl_getTextEncodingFromWindowsCharset(pF->
aFFNBase.
chs);
3746 if (rName.startsWithIgnoreAsciiCase(
"Tms Rmn") ||
3747 rName.startsWithIgnoreAsciiCase(
"Timmons") ||
3748 rName.startsWithIgnoreAsciiCase(
"CG Times") ||
3749 rName.startsWithIgnoreAsciiCase(
"MS Serif") ||
3750 rName.startsWithIgnoreAsciiCase(
"Garamond") ||
3751 rName.startsWithIgnoreAsciiCase(
"Times Roman") ||
3752 rName.startsWithIgnoreAsciiCase(
"Times New Roman"))
3756 else if (rName.startsWithIgnoreAsciiCase(
"Helv") ||
3757 rName.startsWithIgnoreAsciiCase(
"Arial") ||
3758 rName.startsWithIgnoreAsciiCase(
"Univers") ||
3759 rName.startsWithIgnoreAsciiCase(
"LinePrinter") ||
3760 rName.startsWithIgnoreAsciiCase(
"Lucida Sans") ||
3761 rName.startsWithIgnoreAsciiCase(
"Small Fonts") ||
3762 rName.startsWithIgnoreAsciiCase(
"MS Sans Serif"))
3780 rtl_TextEncoding eSrcCharSet;
3797 eSrcCharSet = RTL_TEXTENCODING_DONTKNOW;
3810 eSrcCharSet = RTL_TEXTENCODING_DONTKNOW;
3819 rtl_TextEncoding eDstCharSet = eSrcCharSet;
3821 SvxFontItem aFont( eFamily,
aName, OUString(), ePitch, eDstCharSet, nWhich);
3938 sal_uInt16 nFCode = SVBT16ToUInt16(
pData );
3968 if (nLen < (eVersion <=
ww::eWW2 ? 1 : 2))
4018 if (nfChsDiff && nLen >= 2)
4066 sal_uInt16
nId = SVBT16ToUInt16(
pData );
4095 sal_Int16 nKern = SVBT16ToUInt16(
pData );
4106 sal_Int16 nAutoKern = SVBT16ToUInt16(
pData );
4130 std::map<OUString, css::uno::Any>& rMap = aGrabBag.
GetGrabBag();
4131 rMap.insert(std::pair<OUString, css::uno::Any>(
"CharShadingMarker",
uno::Any(
true)));
4144 OSL_ENSURE(nLen == 10,
"Len of para back colour not 10!");
4152 std::map<OUString, css::uno::Any>& rMap = aGrabBag.
GetGrabBag();
4153 rMap.insert(std::pair<OUString, css::uno::Any>(
"CharShadingMarker",
uno::Any(
true)));
4220 short nPara = SVBT16ToUInt16(
pData );
4222 std::shared_ptr<SvxLRSpaceItem> aLR(std::make_shared<SvxLRSpaceItem>(
RES_LR_SPACE));
4276 bool bFirstLinOfstSet(
false );
4277 bool bLeftIndentSet(
false );
4285 aLR->SetTextLeft( nPara );
4290 bLeftIndentSet =
true;
4318 aLR->SetTextFirstLineOffset(nPara);
4328 aLR->SetTextLeft(pNumFormat->GetIndentAt());
4332 if ( pDefaultStopItem && pDefaultStopItem->
Count() > 0 )
4342 bFirstLinOfstSet =
true;
4348 aLR->SetRight( nPara );
4354 NewAttr( *aLR, bFirstLinOfstSet, bLeftIndentSet );
4366 if (nLen < (eVersion <=
ww::eWW2 ? 3 : 4))
4374 short nSpace = SVBT16ToUInt16(
pData );
4375 short nMulti = (eVersion <=
ww::eWW2) ? 1 : SVBT16ToUInt16(
pData + 2 );
4381 eLnSpc = SvxLineSpaceRule::Fix;
4384 eLnSpc = SvxLineSpaceRule::Min;
4396 sal_uInt16 nSpaceTw = 0;
4408 nSpaceTw = o3tl::narrowing<sal_uInt16>(
n * pH->
GetHeight() / 100 );
4413 nSpaceTw = o3tl::narrowing<sal_uInt16>(nSpace);
4425 if (fDontUseHTMLAutoSpacing)
4505 short nPara = SVBT16ToUInt16(
pData );
4548 if (!pText || !
nPos)
4607 bool bDistributed =
false;
4614 eAdjust = SvxAdjust::Center;
4617 eAdjust = SvxAdjust::Right;
4620 eAdjust = SvxAdjust::Block;
4623 eAdjust = SvxAdjust::Block;
4624 bDistributed =
true;
4642 bRTL = *aDir.
pSprm != 0;
4647 if (pItem && (pItem->GetValue() == SvxFrameDirection::Horizontal_RL_TB))
4668 bool bDistributed =
false;
4675 eAdjust = SvxAdjust::Center;
4678 eAdjust = SvxAdjust::Left;
4681 eAdjust = SvxAdjust::Block;
4684 eAdjust = SvxAdjust::Block;
4685 bDistributed =
true;
4711 OSL_ENSURE(
false,
"wrong Id" );
4720 pI->SetValue( 0 != *
pData );
4752 nVal = FontEmphasisMark::NONE;