20 #include <com/sun/star/text/WrapTextMode.hpp>
21 #include <com/sun/star/text/TextContentAnchorType.hpp>
22 #include <com/sun/star/container/XIndexContainer.hpp>
23 #include <com/sun/star/text/TextGridMode.hpp>
49 #include <section.hxx>
78 #include <strings.hrc>
84 #include <drawdoc.hxx>
102 switch (rOrientation)
104 case text::RelOrientation::CHAR:
105 case text::RelOrientation::FRAME:
106 rOrientation = text::RelOrientation::PAGE_FRAME;
108 case text::RelOrientation::PRINT_AREA:
109 if (isIgnorePrintArea)
115 rOrientation = text::RelOrientation::PAGE_PRINT_AREA;
118 case text::RelOrientation::FRAME_LEFT:
119 rOrientation = text::RelOrientation::PAGE_LEFT;
121 case text::RelOrientation::FRAME_RIGHT:
122 rOrientation = text::RelOrientation::PAGE_RIGHT;
135 sal_Int16 nVal = text::RelOrientation::FRAME;
136 if (!(rVal >>= nVal))
137 SAL_WARN(
"sw.core",
"lcl_IntToRelation: read from Any failed!");
146 pFormat->
Remove( pToRemove );
160 if (dynamic_cast<const SwFrame*>(pLast) ==
nullptr)
181 pNode = & aIdx.GetNode();
183 while ( aIdx < nEnd )
185 if ( pNode->IsContentNode() &&
196 pNode = & aIdx.GetNode();
205 OSL_ENSURE( pNode,
"A big problem." );
228 m_eFrameHeightType( eSize ),
231 m_nWidthPercent = m_eWidthPercentRelation = m_nHeightPercent = m_eHeightPercentRelation = 0;
236 assert(SfxPoolItem::operator==(rAttr));
239 SvxSizeItem::operator==(rAttr)&&
320 Size aTmp(aVal.Width, aVal.Height);
366 bool bSet = *o3tl::doAccess<bool>(rVal);
375 bool bSet = *o3tl::doAccess<bool>(rVal);
425 bool bSet = *o3tl::doAccess<bool>(rVal);
448 xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatFrameSize"));
449 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(Which()).getStr()));
451 std::stringstream aSize;
453 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"size"), BAD_CAST(aSize.str().c_str()));
455 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eFrameHeightType"), BAD_CAST(OString::number(static_cast<int>(
m_eFrameHeightType)).getStr()));
456 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eFrameWidthType"), BAD_CAST(OString::number(static_cast<int>(
m_eFrameWidthType)).getStr()));
457 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nWidthPercent"), BAD_CAST(OString::number(
m_nWidthPercent).getStr()));
458 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eWidthPercentRelation"), BAD_CAST(OString::number(
m_eWidthPercentRelation).getStr()));
459 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nHeightPercent"), BAD_CAST(OString::number(
m_nHeightPercent).getStr()));
460 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eHeightPercentRelation"), BAD_CAST(OString::number(
m_eHeightPercentRelation).getStr()));
462 xmlTextWriterEndElement(pWriter);
484 m_bActive( pHeaderFormat )
490 SwClient( const_cast<
sw::BroadcastingModify*>(static_cast<const
sw::BroadcastingModify*>(rCpy.GetRegisteredIn())) ),
491 m_bActive( rCpy.IsActive() )
510 assert(SfxPoolItem::operator==(rAttr));
529 m_bActive( pFooterFormat )
535 SwClient( const_cast<
sw::BroadcastingModify*>(static_cast<const
sw::BroadcastingModify*>(rCpy.GetRegisteredIn())) ),
536 m_bActive( rCpy.IsActive() )
560 assert(SfxPoolItem::operator==(rAttr));
595 assert(SfxPoolItem::operator==(rAttr));
599 return ( *m_pStartNode == *static_cast<const SwFormatContent&>(rAttr).
GetContentIdx() );
610 xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatContent"));
611 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
614 xmlTextWriterWriteAttribute(
615 pWriter, BAD_CAST(
"startNode"),
616 BAD_CAST(OString::number(
m_pStartNode->GetNode().GetIndex()).getStr()));
617 xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"startNodePtr"),
"%p",
620 xmlTextWriterEndElement(pWriter);
627 m_oNumOffset( rCpy.m_oNumOffset ),
628 m_pDefinedIn( nullptr )
635 m_pDefinedIn( nullptr )
661 assert(SfxPoolItem::operator==(rAttr));
674 if (
const SwPageDescHint* pHint = dynamic_cast<const SwPageDescHint*>(&rHint))
682 if(
auto pContentNode = dynamic_cast<const SwContentNode*>(pMod))
684 else if(
auto pFormat = dynamic_cast<const SwFormat*>(pMod))
685 const_cast<SwFormat*>(pFormat)->SetFormatAttr( aDfltDesc );
688 SAL_WARN(
"sw.core",
"SwFormatPageDesc registered at " <<
typeid(pMod).
name() <<
".");
696 else if(
auto pLegacy = dynamic_cast<const sw::LegacyModifyHint*>(&rHint))
723 rVal <<= static_cast<sal_Int16>(*oOffset);
746 OSL_ENSURE(
false,
"unknown MemberId" );
761 sal_Int16 nOffset = 0;
766 else if (rVal >>= nOffset)
779 OSL_ENSURE(
false,
"unknown MemberId" );
787 xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatPageDesc"));
788 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
790 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"oNumOffset"), BAD_CAST(OString::number(*m_oNumOffset).getStr()));
792 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"oNumOffset"), BAD_CAST(
"none"));
793 xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"pPageDesc"),
"%p",
GetPageDesc());
795 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"presentation"), BAD_CAST(pPageDesc->GetName().toUtf8().getStr()));
796 xmlTextWriterEndElement(pWriter);
818 xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwColumn"));
819 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nWish"), BAD_CAST(OString::number(
m_nWish).getStr()));
820 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nUpper"), BAD_CAST(OString::number(0).getStr()));
821 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nLower"), BAD_CAST(OString::number(0).getStr()));
822 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nLeft"), BAD_CAST(OString::number(
m_nLeft).getStr()));
823 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nRight"), BAD_CAST(OString::number(
m_nRight).getStr()));
824 xmlTextWriterEndElement(pWriter);
829 m_eLineStyle( rCpy.m_eLineStyle ),
830 m_nLineWidth( rCpy.m_nLineWidth),
831 m_aLineColor( rCpy.m_aLineColor),
832 m_nLineHeight( rCpy.GetLineHeight() ),
833 m_eAdj( rCpy.GetLineAdj() ),
834 m_nWidth( rCpy.GetWishWidth() ),
835 m_aWidthAdjustValue( rCpy.m_aWidthAdjustValue ),
836 m_bOrtho( rCpy.IsOrtho() )
874 m_nLineHeight( 100 ),
877 m_aWidthAdjustValue( 0 ),
884 assert(SfxPoolItem::operator==(rAttr));
947 sal_uInt16 nHalf = nNew / 2;
966 for ( sal_uInt16
i = 0;
i < nNumCols; ++
i )
973 Calc( nGutterWidth, nAct );
980 Calc( nGutterWidth, nAct );
991 return sal_uInt16(nW);
1002 nRet = nRet - pCol->
GetLeft();
1014 const sal_uInt16 nGutterHalf = nGutterWidth ? nGutterWidth / 2 : 0;
1017 sal_uInt16 nSpacings;
1018 bool bFail = o3tl::checked_multiply<sal_uInt16>(
GetNumCols() - 1, nGutterWidth, nSpacings);
1021 SAL_WARN(
"sw.core",
"SwFormatVertOrient::Calc: overflow");
1025 const sal_uInt16 nPrtWidth = (nAct - nSpacings) /
GetNumCols();
1026 sal_uInt16 nAvail = nAct;
1029 const sal_uInt16 nLeftWidth = nPrtWidth + nGutterHalf;
1034 nAvail = nAvail - nLeftWidth;
1037 const sal_uInt16 nMidWidth = nPrtWidth + nGutterWidth;
1045 nAvail = nAvail - nMidWidth;
1052 rLastCol.
SetLeft(nGutterHalf);
1061 rCol.SetWishWidth(sal_uInt16(nTmp));
1071 OSL_FAIL(
"not implemented");
1075 uno::Reference< text::XTextColumns > xCols =
new SwXTextColumns(*
this);
1088 OSL_FAIL(
"not implemented");
1092 uno::Reference< text::XTextColumns > xCols;
1096 uno::Sequence<text::TextColumn> aSetColumns = xCols->getColumns();
1097 const text::TextColumn* pArray = aSetColumns.getConstArray();
1100 sal_uInt16
nCount = std::min( static_cast<sal_uInt16>(aSetColumns.getLength()),
1101 sal_uInt16(0x3fff) );
1102 sal_uInt16 nWidthSum = 0;
1106 for(sal_uInt16
i = 0;
i < nCount;
i++)
1110 nWidthSum = nWidthSum + pArray[
i].Width;
1119 auto pSwColums = comphelper::getUnoTunnelImplementation<SwXTextColumns>(xCols);
1122 m_bOrtho = pSwColums->IsAutomaticWidth();
1126 switch ( pSwColums->GetSepLineStyle() )
1129 case 0:
m_eLineStyle = SvxBorderLineStyle::NONE;
break;
1130 case 1:
m_eLineStyle = SvxBorderLineStyle::SOLID;
break;
1131 case 2:
m_eLineStyle = SvxBorderLineStyle::DOTTED;
break;
1132 case 3:
m_eLineStyle = SvxBorderLineStyle::DASHED;
break;
1134 if(!pSwColums->GetSepLineIsOn())
1136 else switch(pSwColums->GetSepLineVertAlign())
1141 default: OSL_ENSURE(
false,
"unknown alignment" );
break;
1151 xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatCol"));
1152 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
1153 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eLineStyle"), BAD_CAST(OString::number(static_cast<sal_Int16>(
m_eLineStyle)).getStr()));
1154 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nLineWidth"), BAD_CAST(OString::number(
m_nLineWidth).getStr()));
1156 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nLineHeight"), BAD_CAST(OString::number(
m_nLineHeight).getStr()));
1157 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eAdj"), BAD_CAST(OString::number(
m_eAdj).getStr()));
1158 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nWidth"), BAD_CAST(OString::number(
m_nWidth).getStr()));
1159 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nWidthAdjustValue"), BAD_CAST(OString::number(
m_aWidthAdjustValue).getStr()));
1160 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"bOrtho"), BAD_CAST(OString::boolean(
m_bOrtho).getStr()));
1162 xmlTextWriterStartElement(pWriter, BAD_CAST(
"aColumns"));
1164 rColumn.dumpAsXml(pWriter);
1165 xmlTextWriterEndElement(pWriter);
1167 xmlTextWriterEndElement(pWriter);
1179 assert(SfxPoolItem::operator==(rAttr));
1180 return (
GetValue() == static_cast<const SwFormatSurround&>(rAttr).
GetValue() &&
1201 switch ( nMemberId )
1216 OSL_ENSURE(
false,
"unknown MemberId" );
1227 switch ( nMemberId )
1232 if( eVal >= css::text::WrapTextMode_NONE && eVal <= css::text::WrapTextMode_RIGHT )
1251 OSL_ENSURE(
false,
"unknown MemberId" );
1259 xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatSurround"));
1260 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
1261 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"), BAD_CAST(OString::number(static_cast<sal_Int32>(
GetValue())).getStr()));
1263 OUString aPresentation;
1265 GetPresentation(SfxItemPresentation::Nameless, MapUnit::Map100thMM, MapUnit::Map100thMM, aPresentation, aIntlWrapper);
1266 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"presentation"), BAD_CAST(aPresentation.toUtf8().getStr()));
1268 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"bAnchorOnly"), BAD_CAST(OString::boolean(
m_bAnchorOnly).getStr()));
1269 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"bContour"), BAD_CAST(OString::boolean(
m_bContour).getStr()));
1270 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"bOutside"), BAD_CAST(OString::boolean(
m_bOutside).getStr()));
1272 xmlTextWriterEndElement(pWriter);
1286 assert(SfxPoolItem::operator==(rAttr));
1287 return (
m_nYPos == static_cast<const SwFormatVertOrient&>(rAttr).
m_nYPos &&
1302 switch ( nMemberId )
1316 OSL_ENSURE(
false,
"unknown MemberId" );
1327 switch ( nMemberId )
1351 OSL_ENSURE(
false,
"unknown MemberId" );
1359 xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatVertOrient"));
1360 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
1361 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nYPos"), BAD_CAST(OString::number(
m_nYPos).getStr()));
1362 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eOrient"), BAD_CAST(OString::number(
m_eOrient).getStr()));
1363 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eRelation"), BAD_CAST(OString::number(
m_eRelation).getStr()));
1364 xmlTextWriterEndElement(pWriter);
1369 sal_Int16 eRel,
bool bPos )
1373 m_eRelation( eRel ),
1374 m_bPosToggle( bPos )
1379 assert(SfxPoolItem::operator==(rAttr));
1380 return (
m_nXPos == static_cast<const SwFormatHoriOrient&>(rAttr).
m_nXPos &&
1396 switch ( nMemberId )
1413 OSL_ENSURE(
false,
"unknown MemberId" );
1424 switch ( nMemberId )
1441 if(!(rVal >>= nVal))
1452 OSL_ENSURE(
false,
"unknown MemberId" );
1460 xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatHoriOrient"));
1461 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
1462 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nXPos"), BAD_CAST(OString::number(
m_nXPos).getStr()));
1463 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eOrient"), BAD_CAST(OString::number(
m_eOrient).getStr()));
1464 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eRelation"), BAD_CAST(OString::number(
m_eRelation).getStr()));
1465 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"bPosToggle"), BAD_CAST(OString::boolean(
m_bPosToggle).getStr()));
1466 xmlTextWriterEndElement(pWriter);
1472 m_eAnchorId( nRnd ),
1473 m_nPageNumber( nPage ),
1475 m_nOrder( ++s_nOrderCounter )
1480 , m_pContentAnchor( (rCpy.GetContentAnchor())
1481 ? new
SwPosition( *rCpy.GetContentAnchor() ) : nullptr )
1482 , m_eAnchorId( rCpy.GetAnchorId() )
1483 , m_nPageNumber( rCpy.GetPageNum() )
1485 , m_nOrder( ++s_nOrderCounter )
1513 if (
this != &rAnchor)
1529 assert(SfxPoolItem::operator==(rAttr));
1530 SwFormatAnchor const& rFormatAnchor(static_cast<SwFormatAnchor const&>(rAttr));
1556 switch ( nMemberId )
1560 text::TextContentAnchorType eRet;
1563 case RndStdIds::FLY_AT_CHAR:
1564 eRet = text::TextContentAnchorType_AT_CHARACTER;
1566 case RndStdIds::FLY_AT_PAGE:
1567 eRet = text::TextContentAnchorType_AT_PAGE;
1569 case RndStdIds::FLY_AT_FLY:
1570 eRet = text::TextContentAnchorType_AT_FRAME;
1572 case RndStdIds::FLY_AS_CHAR:
1573 eRet = text::TextContentAnchorType_AS_CHARACTER;
1577 eRet = text::TextContentAnchorType_AT_PARAGRAPH;
1582 rVal <<= static_cast<sal_Int16>(
GetPageNum());
1591 uno::Reference<text::XTextFrame>
const xRet(
1599 OSL_ENSURE(
false,
"unknown MemberId" );
1610 switch ( nMemberId )
1617 case text::TextContentAnchorType_AS_CHARACTER:
1618 eAnchor = RndStdIds::FLY_AS_CHAR;
1620 case text::TextContentAnchorType_AT_PAGE:
1621 eAnchor = RndStdIds::FLY_AT_PAGE;
1630 case text::TextContentAnchorType_AT_FRAME:
1631 eAnchor = RndStdIds::FLY_AT_FLY;
1633 case text::TextContentAnchorType_AT_CHARACTER:
1634 eAnchor = RndStdIds::FLY_AT_CHAR;
1638 eAnchor = RndStdIds::FLY_AT_PARA;
1647 if((rVal >>= nVal) && nVal > 0)
1667 OSL_ENSURE(
false,
"unknown MemberId" );
1675 xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatAnchor"));
1676 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
1680 std::stringstream aContentAnchor;
1682 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"m_pContentAnchor"), BAD_CAST(aContentAnchor.str().c_str()));
1685 xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"m_pContentAnchor"),
"%p",
m_pContentAnchor.get());
1686 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"m_eAnchorType"), BAD_CAST(OString::number(static_cast<int>(
m_eAnchorId)).getStr()));
1687 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"m_nPageNumber"), BAD_CAST(OString::number(
m_nPageNumber).getStr()));
1688 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"m_nOrder"), BAD_CAST(OString::number(
m_nOrder).getStr()));
1689 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"s_nOrderCounter"), BAD_CAST(OString::number(
s_nOrderCounter).getStr()));
1690 OUString aPresentation;
1692 GetPresentation(SfxItemPresentation::Nameless, MapUnit::Map100thMM, MapUnit::Map100thMM, aPresentation, aIntlWrapper);
1693 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"presentation"), BAD_CAST(aPresentation.toUtf8().getStr()));
1695 xmlTextWriterEndElement(pWriter);
1701 m_bIsServerMap( false )
1707 m_sTargetFrameName( rURL.GetTargetFrameName() ),
1710 m_bIsServerMap( rURL.IsServerMap() )
1722 assert(SfxPoolItem::operator==(rAttr));
1759 switch ( nMemberId )
1772 uno::Reference< uno::XInterface > xInt;
1782 uno::Reference< container::XIndexContainer > xCont(xInt, uno::UNO_QUERY);
1790 OSL_ENSURE(
false,
"unknown MemberId" );
1801 switch ( nMemberId )
1826 uno::Reference<container::XIndexContainer> xCont;
1829 else if(rVal >>= xCont)
1843 OSL_ENSURE(
false,
"unknown MemberId" );
1871 xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatNoBalancedColumns"));
1872 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
1873 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"), BAD_CAST(OString::boolean(
GetValue()).getStr()));
1874 xmlTextWriterEndElement(pWriter);
1923 default:
return false;
1936 bool bVal = *o3tl::doAccess<bool>(rVal);
1945 bool bVal = *o3tl::doAccess<bool>(rVal);
1964 bool bVal = *o3tl::doAccess<bool>(rVal);
1986 OUString sVal; rVal >>= sVal;
1992 OUString sVal; rVal >>= sVal;
1996 default: bRet =
false;
2019 assert(SfxPoolItem::operator==(rAttr));
2062 switch ( nMemberId )
2073 OSL_ENSURE(
false,
"unknown MemberId" );
2093 assert(SfxPoolItem::operator==(rAttr));
2109 switch ( nMemberId )
2118 OSL_ENSURE(
false,
"unknown MemberId" );
2129 switch ( nMemberId )
2144 OSL_ENSURE(
false,
"unknown MemberId" );
2152 , m_nBaseHeight( 400 ), m_nRubyHeight( 200 ), m_eGridType(
GRID_NONE )
2153 , m_bRubyTextBelow( false ), m_bPrintGrid( true ), m_bDisplayGrid( true )
2154 , m_nBaseWidth(400), m_bSnapToChars( true ), m_bSquaredMode(true)
2164 assert(SfxPoolItem::operator==(rAttr));
2165 SwTextGridItem const& rOther(static_cast<SwTextGridItem const&>(rAttr));
2207 "This value needs TWIPS-MM100 conversion" );
2211 OSL_ENSURE( (nMemberId & CONVERT_TWIPS) != 0,
2212 "This value needs TWIPS-MM100 conversion" );
2216 OSL_ENSURE( (nMemberId & CONVERT_TWIPS) != 0,
2217 "This value needs TWIPS-MM100 conversion" );
2227 rVal <<= text::TextGridMode::LINES;
2230 rVal <<= text::TextGridMode::LINES_AND_CHARS;
2233 OSL_FAIL(
"unknown SwTextGrid value");
2245 OSL_FAIL(
"Unknown SwTextGridItem member");
2261 bRet = (rVal >>= nTmp);
2269 bRet = (rVal >>= nTmp);
2270 if( bRet && (nTmp >= 0) )
2271 SetLines( static_cast<sal_uInt16>(nTmp) );
2290 "This value needs TWIPS-MM100 conversion" );
2292 bRet = (rVal >>= nTmp);
2299 #define MIN_TEXTGRID_SIZE 100
2320 bRet = (rVal >>= nTmp);
2328 case text::TextGridMode::LINES:
2331 case text::TextGridMode::LINES_AND_CHARS:
2346 bool bStandard = *o3tl::doAccess<bool>(rVal);
2351 OSL_FAIL(
"Unknown SwTextGridItem member");
2426 const char* pFormatNm,
2428 sal_uInt16 nFormatWhich,
2429 const sal_uInt16* pWhichRange)
2434 m_pOtherTextBoxFormat(nullptr)
2440 const OUString &rFormatNm,
2442 sal_uInt16 nFormatWhich,
2443 const sal_uInt16* pWhichRange)
2448 m_pOtherTextBoxFormat(nullptr)
2454 if( !
GetDoc()->IsInDtor())
2479 bool const renamed =
2495 if(
nullptr != pFormat )
2542 const sal_uInt16 nNewWhich = pLegacy->
m_pNew ? pLegacy->m_pNew->
Which() : 0;
2546 const SwPosition* pNewAnchorPosition =
nullptr;
2551 pNewAttrSetChg =
static_cast<const SwAttrSetChg*
>(pLegacy->m_pNew);
2559 for(
const SfxPoolItem* pItem = aIter.GetCurItem(); pItem; pItem = aIter.NextItem())
2572 assert(pNewAnchorPosition ==
nullptr ||
2591 pNewAnchorPosition =
static_cast<const SwFormatAnchor*
>(pLegacy->m_pNew)->GetContentAnchor();
2594 const sal_uInt16 nOldWhich = pLegacy->m_pOld ? pLegacy->m_pOld->
Which() : 0;
2595 const SwPosition* pOldAnchorPosition =
nullptr;
2601 pOldAttrSetChg =
static_cast<const SwAttrSetChg*
>(pLegacy->m_pOld);
2606 assert(pOldAnchorPosition ==
nullptr ||
2612 pOldAnchorPosition =
static_cast<const SwFormatAnchor*
>(pLegacy->m_pOld)->GetContentAnchor();
2615 SetXObject(uno::Reference<uno::XInterface>(
nullptr));
2619 assert(nOldWhich == nNewWhich || !nOldWhich || !nNewWhich);
2631 if(pOldAnchorPosition !=
nullptr && (pNewAnchorPosition ==
nullptr || pOldAnchorPosition->
nNode.
GetIndex() != pNewAnchorPosition->
nNode.
GetIndex()))
2633 if(pNewAnchorPosition !=
nullptr && (pOldAnchorPosition ==
nullptr || pOldAnchorPosition->
nNode.
GetIndex() != pNewAnchorPosition->
nNode.
GetIndex()))
2639 rFormat.
Add(
this );
2651 }
while(
nullptr != ( pLast = aIter.
Next() ));
2663 if(
auto pSectionFormat = dynamic_cast<const SwSectionFormat*>(
this ))
2670 pFrame = aTmp.NextFrame();
2672 if( pFrame && !pFrame->KnowsFormat(*
this) )
2680 aRet = pFrame->getFramePrintArea();
2683 aRet = pFrame->getFrameArea();
2684 aRet.
Pos().AdjustY( -1 );
2693 std::pair<Point, bool> tmp;
2696 tmp.first = *pPoint;
2699 pFrame =
::GetFrameOfModify(
nullptr, *
this, nFrameType,
nullptr, pPoint ? &tmp :
nullptr);
2717 std::pair<Point, bool>
const tmp(aNullPt,
false);
2748 for( n = 0; n < rFormats.
size(); ++n )
2752 if( pIdx && pFlyNd == &pIdx->
GetNode() )
2754 if( pFormat ==
this )
2758 if ((RndStdIds::FLY_AT_PAGE == pAnchor->
GetAnchorId()) ||
2769 if( n >= rFormats.
size() )
2771 OSL_ENSURE(
false,
"Fly section but no format found" );
2793 return text::PositionLayoutDir::PositionInLayoutDirOfAnchor;
2807 xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFrameFormat"));
2808 xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"ptr"),
"%p",
this);
2809 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"name"), BAD_CAST(
GetName().toUtf8().getStr()));
2810 xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"whichId"),
"%d",
Which());
2812 const char* pWhich =
nullptr;
2816 pWhich =
"fly frame format";
2819 pWhich =
"draw frame format";
2823 xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"which"), BAD_CAST(pWhich));
2827 xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"OtherTextBoxFormat"),
"%p",
m_pOtherTextBoxFormat);
2833 pSdrObject->dumpAsXml(pWriter);
2835 xmlTextWriterEndElement(pWriter);
2840 xmlTextWriterStartElement(pWriter, BAD_CAST(pName));
2842 pFormat->dumpAsXml(pWriter);
2843 xmlTextWriterEndElement(pWriter);
2859 }
while(
nullptr != ( pLast = aIter.
Next() ));
2887 case RndStdIds::FLY_AS_CHAR:
2888 case RndStdIds::FLY_AT_PARA:
2889 case RndStdIds::FLY_AT_CHAR:
2896 case RndStdIds::FLY_AT_FLY:
2907 if ( pCNd ==
nullptr )
2919 if ( pModify ==
nullptr )
2923 for(
size_t i = 0;
i < rFormats.
size(); ++
i )
2929 pModify = pFlyFormat;
2937 case RndStdIds::FLY_AT_PAGE:
2945 for (
SwFrame* pFrame = aIter.
First(); pFrame !=
nullptr; pFrame = aIter.
Next() )
2980 bool bAdd = !pFrame->IsContentFrame() ||
2983 if ( RndStdIds::FLY_AT_FLY == aAnchorAttr.
GetAnchorId() && !pFrame->IsFlyFrame() )
2992 aAnchorAttr.
SetType( RndStdIds::FLY_AT_PARA );
3003 case RndStdIds::FLY_AS_CHAR:
3004 case RndStdIds::FLY_AT_PARA:
3005 case RndStdIds::FLY_AT_CHAR:
3007 assert(pFrame->IsTextFrame());
3016 if (bAdd && pFrame->GetDrawObjs())
3024 if( dynamic_cast<const SwFlyFrame*>( pObj) !=
nullptr &&
3025 (&pObj->GetFrameFormat()) ==
this )
3038 case RndStdIds::FLY_AT_FLY:
3042 case RndStdIds::FLY_AT_PARA:
3043 case RndStdIds::FLY_AT_CHAR:
3047 case RndStdIds::FLY_AS_CHAR:
3052 assert(
false &&
"New anchor type" );
3054 pFrame->AppendFly( pFly );
3066 std::pair<Point, bool> tmp;
3069 tmp.first = *pPoint;
3092 switch( rInfo.
Which() )
3112 OSL_ENSURE( pMasterObject,
"<SwFlyFrameFormat::SetObjTitle(..)> - missing <SdrObject> instance" );
3114 if ( !pMasterObject )
3131 OSL_ENSURE( pMasterObject,
"<SwFlyFrameFormat::GetObjTitle(..)> - missing <SdrObject> instance" );
3132 if ( !pMasterObject )
3136 if (!pMasterObject->
GetTitle().isEmpty())
3145 OSL_ENSURE( pMasterObject,
"<SwFlyFrameFormat::SetDescription(..)> - missing <SdrObject> instance" );
3147 if ( !pMasterObject )
3164 OSL_ENSURE( pMasterObject,
"<SwFlyFrameFormat::GetDescription(..)> - missing <SdrObject> instance" );
3165 if ( !pMasterObject )
3196 aBackground->GetColor().IsTransparent() &&
3204 const GraphicObject *pTmpGrf = aBackground->GetGraphicObject();
3237 !(aBackground->GetGraphicObject()) )
3249 : mrFlyFrameFormat( _rFlyFrameFormat ),
3250 mbAnchorNodeChanged( false ),
3255 if ( ((nNewAnchorType == RndStdIds::FLY_AT_PARA) ||
3256 (nNewAnchorType == RndStdIds::FLY_AT_CHAR)) &&
3260 if ( aOldAnchorFormat.GetAnchorId() == nNewAnchorType &&
3261 aOldAnchorFormat.GetContentAnchor() &&
3262 aOldAnchorFormat.GetContentAnchor()->nNode.GetNode().GetContentNode() &&
3263 aOldAnchorFormat.GetContentAnchor()->nNode !=
3267 sal_uInt32 nOldNumOfAnchFrame( 0 );
3269 *(aOldAnchorFormat.GetContentAnchor()->nNode.GetNode().GetContentNode()) );
3272 ++nOldNumOfAnchFrame;
3275 sal_uInt32 nNewNumOfAnchFrame( 0 );
3280 ++nNewNumOfAnchFrame;
3282 if ( nOldNumOfAnchFrame != nNewNumOfAnchFrame )
3290 if ( pFrame != _pKeepThisFlyFrame )
3295 }
while(
nullptr != ( pFrame = aIter.
Next() ));
3303 if (aOldAnchorFormat.GetContentAnchor()
3304 && aOldAnchorFormat.GetAnchorId() == RndStdIds::FLY_AT_CHAR)
3309 if (_pKeepThisFlyFrame)
3420 switch ( _nPositionLayoutDir )
3422 case text::PositionLayoutDir::PositionInHoriL2R:
3423 case text::PositionLayoutDir::PositionInLayoutDirOfAnchor:
3430 OSL_FAIL(
"<SwDrawFrameFormat::SetPositionLayoutDir(..)> - invalid attribute value." );
3451 aResult =
SwResId(STR_GRAPHIC);
3477 pRef = pFly->
Lower();
3489 Point aPos( rPoint );
3491 const MapMode aSrc ( MapUnit::MapTwip );
3492 const MapMode aDest( MapUnit::Map100thMM );
3498 sal_uInt32 nFlags = 0;
3502 GetMirrorGrf().GetValue();
3511 return const_cast<ImageMap*
>(rURL.
GetMap())->GetHitIMapObject( aOrigSz,
3512 aActSz, aPos, nFlags );
3531 OSL_ENSURE(
false,
"getSdrAllFillAttributesHelper() call only valid for RES_FLYFRMFMT and RES_FRMFMT (!)");
3554 if (!pFlyFrameFormat)
3568 if (pFrame == pHeader)
3578 #if OSL_DEBUG_LEVEL > 0 && !defined NDEBUG
3583 SwNode const*
const pNode(rNodes[
i]);
3584 std::vector<SwFrameFormat*>
const*
const pFlys(pNode->
GetAnchoredFlys());
3587 for (
const auto& rpFly : *pFlys)
3590 assert(&rAnchor.GetContentAnchor()->nNode.GetNode() == pNode);
3595 if (!pSpzFrameFormats)
3598 for (
auto it = pSpzFrameFormats->begin(); it != pSpzFrameFormats->end(); ++it)
3601 if (RndStdIds::FLY_AT_PAGE == rAnchor.GetAnchorId())
3603 assert(!rAnchor.GetContentAnchor()
3610 SwNode & rNode(rAnchor.GetContentAnchor()->nNode.GetNode());
3611 std::vector<SwFrameFormat*>
const*
const pFlys(rNode.GetAnchoredFlys());
3612 assert(std::find(pFlys->begin(), pFlys->end(), *it) != pFlys->end());
3613 switch (rAnchor.GetAnchorId())
3615 case RndStdIds::FLY_AT_FLY:
3616 assert(rNode.IsStartNode());
3618 case RndStdIds::FLY_AT_PARA:
3619 assert(rNode.IsTextNode() || rNode.IsTableNode());
3621 case RndStdIds::FLY_AS_CHAR:
3622 case RndStdIds::FLY_AT_CHAR:
3623 assert(rNode.IsTextNode());
OUString AsRGBHexString() const
sal_uInt16 m_nWish
Desired width, borders included.
const SwAttrSet * GetChgSet() const
What has changed.
#define MID_GRID_SNAPTOCHARS
virtual ~FindSdrObjectHint() override
SvxNumType GetNumberingType() const
void SetTextBox(bool bIsTextBox)
Starts a section of nodes in the document model.
const sw::BroadcastingModify * GetDefinedIn() const
Query / set where attribute is anchored.
const SwVirtFlyDrawObj * GetVirtDrawObj() const
Base class of the Writer layout elements.
tools::Long GetWidth() const
constexpr TypedWhichId< SwFormatPageDesc > RES_PAGEDESC(93)
const ::std::optional< sal_uInt16 > & GetNumOffset() const
constexpr TypedWhichId< SwFormatSurround > RES_SURROUND(101)
virtual void SwClientNotify(const SwModify &, const SfxHint &rHint) override
constexpr TypedWhichId< SwFormatFillOrder > RES_FILL_ORDER(RES_FRMATR_BEGIN)
SVX_NUM_CHARS_UPPER_LETTER_N
const size_t count(pCandidateA->getBorderLines().size())
sal_uLong GetIndex() const
void Add(SwClient *pDepend)
virtual const SwFlyFrameFormat * GetFormat() const override
#define MID_SURROUND_SURROUNDTYPE
Marks a position in the document model.
void dumpAsXml(xmlTextWriterPtr pWriter) const
constexpr TypedWhichId< SwStringMsgPoolItem > RES_NAME_CHANGED(185)
SwContentNode * GetNode(SwPaM &rPam, bool &rbFirst, SwMoveFnCollection const &fnMove, bool const bInReadOnly, SwRootFrame const *const i_pLayout)
This function returns the next node in direction of search.
Pagedescriptor Client of SwPageDesc that is "described" by the attribute.
void SetHeight(tools::Long n)
SwFlyFrameFormat & mrFlyFrameFormat
virtual SwFrameFormat * MakeLayoutFormat(RndStdIds eRequest, const SfxItemSet *pSet)=0
SwPageDesc * GetPageDesc()
void setWidth(tools::Long nWidth)
constexpr TypedWhichId< SwTableBoxNumFormat > RES_BOXATR_FORMAT(RES_BOXATR_BEGIN)
bool IsLowerOf(const SwLayoutFrame *pUpper) const
virtual const SwRootFrame * GetCurrentLayout() const =0
bool GetDisplayGrid() const
sal_uInt16 GetBaseWidth() const
constexpr TypedWhichId< SwStringMsgPoolItem > RES_TITLE_CHANGED(186)
constexpr TypedWhichId< SwFormatHeader > RES_HEADER(96)
Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
#define MID_FRMSIZE_SIZE_TYPE
constexpr TypedWhichId< SwFormatCol > RES_COL(109)
void SetLeft(sal_uInt16 nNew)
constexpr TypedWhichId< SwFormatFrameSize > RES_FRM_SIZE(89)
std::unique_ptr< SwPosition > mpCommentAnchor
If the fly frame has a comment, this points to the old comment anchor.
virtual SwFormatContent * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool HasMetrics() const
SwFrameType GetType() const
virtual ~GetZOrderHint() override
#define MID_FRMSIZE_IS_SYNC_WIDTH_TO_HEIGHT
#define MID_FRMSIZE_REL_WIDTH
virtual Size GetTwipSize() const =0
#define SAL_INFO_IF(condition, area, stream)
-""- and with own numberformat
constexpr::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
const SwRect & getFramePrintArea() const
OUString GetDescription() const
sal_uInt16 m_nLeft
Left border.
const SwPosition * GetMark() const
void SetRight(sal_uInt16 nNew)
bool Pop(SwCursorShell::PopMode=SwCursorShell::PopMode::DeleteStack)
virtual void ScaleMetrics(tools::Long lMult, tools::Long lDiv)
#define MID_VERTORIENT_RELATION
#define MID_URL_HYPERLINKNAME
void dumpAsXml(xmlTextWriterPtr pWriter) const
#define MID_PAGEDESC_PAGENUMOFFSET
const SfxPoolItem * m_pNew
void SetRubyHeight(sal_uInt16 nNew)
bool SvUnoImageMap_fillImageMap(const Reference< XInterface > &xImageMap, ImageMap &rMap)
#define MIN_TEXTGRID_SIZE
void dumpAsXml(xmlTextWriterPtr pWriter) const override
bool GetRubyTextBelow() const
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Content, content of frame (header, footer, fly).
void DestroyCursor()
transform TableCursor to normal cursor, nullify Tablemode
static void DestroyFrame(SwFrame *const pFrame)
this is the only way to delete a SwFrame instance
virtual ~SwTextGridItem() override
void Pos(const Point &rNew)
#define MID_SURROUND_ANCHORONLY
Dialog to specify the properties of date form field.
IDocumentUndoRedo & GetIDocumentUndoRedo()
constexpr::Color COL_LIGHTGRAY(0xC0, 0xC0, 0xC0)
Of course Writer needs its own rectangles.
#define MID_PAGEDESC_PAGEDESCNAME
SwClient * Remove(SwClient *pDepend)
IDocumentContentOperations const & getIDocumentContentOperations() const
virtual SwTextGridItem * Clone(SfxItemPool *pPool=nullptr) const override
EmbeddedObjectRef * pObject
virtual ~CreatePortionHint() override
SwHandleAnchorNodeChg(SwFlyFrameFormat &_rFlyFrameFormat, const SwFormatAnchor &_rNewAnchorFormat, SwFlyFrame const *_pKeepThisFlyFrame=nullptr)
checks, if re-creation of fly frames for an anchor node change at the given fly frame format is neces...
virtual bool GetInfo(SfxPoolItem &) const override
#define MID_ANCHOR_PAGENUM
const SwFrameFormats * GetSpzFrameFormats() const
void SetNewContentIdx(const SwNodeIndex *pIdx)
void SetDisplayGrid(bool bNew)
Value in Var-direction gives minimum (can be exceeded but not be less).
const OUString & GetName() const
sal_uInt16 GetPhyPageNum() const
void AddAnchoredFly(SwFrameFormat *)
constexpr auto convertTwipToMm100(N n)
constexpr TypedWhichId< SwPtrMsgPoolItem > RES_CONTENT_VISIBLE(183)
Used by the UI to modify the document model.
virtual bool operator==(SfxPoolItem const &other) const override
void SetSquaredMode(bool bNew)
constexpr TypedWhichId< SwFormatVertOrient > RES_VERT_ORIENT(102)
#define MID_FRMSIZE_HEIGHT
bool GetSnapToChars() const
wrapper class for the positioning of Writer fly frames and drawing objects
void SetRubyTextBelow(bool bNew)
void SetBaseWidth(sal_uInt16 nNew)
constexpr TypedWhichId< SwFormatHoriOrient > RES_HORI_ORIENT(103)
virtual ~RestoreFlyAnchorHint() override
const SwRect & getFrameArea() const
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
#define MID_GRID_STANDARD_MODE
void dumpAsXml(xmlTextWriterPtr pWriter) const override
sal_uLong GetIndex() const
std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr
constexpr TypedWhichId< SwAttrSetChg > RES_ATTRSET_CHG(161)
constexpr TypedWhichId< SwFormatChg > RES_FMT_CHG(160)
std::vector< SwFrameFormat * > const * GetAnchoredFlys() const
static sal_Int16 lcl_IntToRelation(const uno::Any &rVal)
virtual ~CollectTextObjectsHint() override
virtual void DeleteSection(SwNode *pNode)=0
Delete section containing the node.
const SwFormatField & GetFormatField() const
#define MID_LINENUMBER_STARTVALUE
bool IsTransparent() const
SwFlyFrame * FindFlyFrame()
void SetColor(const Color &rCol)
virtual SwFormatEndAtTextEnd * Clone(SfxItemPool *pPool=nullptr) const override
constexpr TypedWhichId< SwStringMsgPoolItem > RES_DESCRIPTION_CHANGED(187)
#define MID_COLUMN_SEPARATOR_LINE
#define MID_SURROUND_CONTOUR
void PlaceFly(SwFlyFrame *pFly, SwFlyFrameFormat *pFormat)
sw::BroadcastingModify * m_pDefinedIn
Points to the object in which the attribute was set (ContentNode/Format).
bool GetAtPageRelOrientation(sal_Int16 &rOrientation, bool const isIgnorePrintArea)
#define MID_FRMSIZE_WIDTH
#define MID_CHAIN_NEXTNAME
PaM is Point and Mark: a selection of the document model.
struct _xmlTextWriter * xmlTextWriterPtr
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
#define MID_ANCHOR_ANCHORTYPE
virtual SwPaM & GetCurrentShellCursor() override
Return the current shell cursor.
#define MID_HORIORIENT_POSITION
#define MID_URL_CLIENTMAP
#define MID_GRID_BASEHEIGHT
void Broadcast(const SfxHint &rHint)
SwPaM * CreateCursor()
delete the current cursor and make the following into the current
const SwPosition * GetPoint() const
#define MID_FRMSIZE_WIDTH_TYPE
void SetValue(EnumT nTheValue)
#define MID_GRID_RUBYHEIGHT
const GraphicAttr & GetAttr() const
virtual ~SwFormatPageDesc() override
SwPageFrame * FindPageFrame()
void Push()
store a copy of the current cursor on the cursor stack
void ParkCursor(const SwNodeIndex &rIdx)
Remove selections and additional cursors of all shells.
constexpr TypedWhichId< SwFormatURL > RES_URL(111)
#define MID_VERTORIENT_POSITION
const SwFrame * Lower() const
virtual bool operator==(const SfxPoolItem &) const override
"Pure virtual methods" of SfxPoolItem.
SwContentNode * GetContentNode()
SwNoTextNode * GetNoTextNode()
SwLayoutFrame * GetUpper()
constexpr sal_uInt16 XATTR_FILL_FIRST(XATTRSET_LINE+1)
tools::Long Width() const
OUString GetTitle() const
SwFormatPageDesc(const SwPageDesc *pDesc=nullptr)
constexpr auto convertMm100ToTwip(N n)
bool KnowsPageDesc() const
void SetBaseHeight(sal_uInt16 nNew)
Marks a node in the document model.
#define MID_SURROUND_CONTOUROUTSIDE
const SwAttrSet * GetTheChgdSet() const
Where it has changed.
static void lcl_DelHFFormat(SwClient *pToRemove, SwFrameFormat *pFormat)
OUString SwResId(const char *pId)
SwTextField * GetFieldTextAttrAt(const sal_Int32 nIndex, const bool bIncludeInputFieldAtStart=false) const
#define MID_FRMSIZE_IS_AUTO_HEIGHT
void SSize(const Size &rNew)
tools::Long GetHeight() const
A page of the document layout.
SVX_NUM_CHARS_LOWER_LETTER_N
Frame cannot be moved in Var-direction.
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
constexpr TypedWhichId< SwFormatContent > RES_CNTNT(95)
constexpr TypedWhichId< SwPtrMsgPoolItem > RES_REMOVE_UNO_OBJECT(179)
sal_uInt16 GetLines() const
virtual bool operator==(const SfxPoolItem &) const override
void SetWidth(tools::Long n)
SwFieldType * GetTyp() const
at end of the current text end
const SwNodeIndex * GetContentIdx() const
bool Delete()
Delete content of all ranges.
sal_uInt16 const aFrameFormatSetRange[]
SvtBroadcaster & GetNotifier()
sal_uLong EndOfSectionIndex() const
virtual ~SwFormatContent() override
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
SwFormatContent(const SwStartNode *pStartNode=nullptr)
SwTextNode is a paragraph in the document model.
#define MID_HORIORIENT_ORIENT
bool IsFlyFrameFormatInHeader(const SwFrameFormat &rFormat)
#define MID_FRMSIZE_REL_HEIGHT_RELATION
virtual ~WW8AnchorConvHint() override
constexpr TypedWhichId< SwFormatChain > RES_CHAIN(114)
sal_uInt16 GetWishWidth() const
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
void SetWishWidth(sal_uInt16 nNew)
constexpr TypedWhichId< SwTextGridItem > RES_TEXTGRID(115)
virtual ~GetObjectConnectedHint() override
#define MID_ANCHOR_ANCHORFRAME
#define MID_CHAIN_PREVNAME
general base class for all free-flowing frames
sal_uInt16 GetRight() const
SwPageFrame * FindPageFrameOfAnchor()
method to determine the page frame, on which the 'anchor' of the given anchored object is...
void SwitchPaperMode(bool bNew)
#define MID_VERTORIENT_ORIENT
void SetSnapToChars(bool bNew)
const o3tl::enumarray< SvxAdjust, unsigned short > aSvxToUnoAdjust USHRT_MAX
#define MID_FRMSIZE_IS_SYNC_HEIGHT_TO_WIDTH
#define MID_FRMSIZE_REL_WIDTH_RELATION
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
#define MID_GRID_BASEWIDTH
const Color & GetColor() const
bool IsNoTextFrame() const
static void FillProgName(const OUString &rName, OUString &rFillName, SwGetPoolIdFromName)
void RemoveAnchoredFly(SwFrameFormat *)
std::unique_ptr< SwNodeIndex > m_pStartNode
const SwModify * GetRegisteredIn() const
static SW_DLLPUBLIC css::uno::Reference< css::text::XTextFrame > CreateXTextFrame(SwDoc &rDoc, SwFrameFormat *pFrameFormat)
void SetDescription(const OUString &rStr)
tools::Long Height() const
SwTableBox is one table cell in the document model.
void SetSize(const Size &rSize)
bool operator==(const SwColumn &) const
constexpr TypedWhichId< SwDrawFrameFormat > RES_DRAWFRMFMT(157)
SwFormatPageDesc & operator=(const SwFormatPageDesc &rCpy)
constexpr TypedWhichId< SwFlyFrameFormat > RES_FLYFRMFMT(154)
const SwAttrSet & GetSwAttrSet() const
Does node has already its own auto-attributes? Access to SwAttrSet.
virtual void CallSwClientNotify(const SfxHint &rHint) const override
-""- and with own number sequence
#define MID_HORIORIENT_PAGETOGGLE
#define MID_HORIORIENT_RELATION
sal_uInt16 GetLeft() const
void setHeight(tools::Long nHeight)
#define MID_FRMSIZE_REL_HEIGHT
constexpr TypedWhichId< SwFormatFooter > RES_FOOTER(97)
Reference< XInterface > SvUnoImageMap_createInstance()
::std::optional< sal_uInt16 > m_oNumOffset
Offset page number.
#define SAL_WARN(area, stream)
void SetNumOffset(const ::std::optional< sal_uInt16 > &oNum)
constexpr TypedWhichId< SwFormatLineNumber > RES_LINENUMBER(116)
constexpr sal_uInt16 XATTR_FILL_LAST(XATTR_FILLBACKGROUND)
bool GetSquaredMode() const
virtual OUString GetComment() const override
SwTextGrid GetGridType() const
SwSectionNode * GetSectionNode()
virtual bool operator==(const SfxPoolItem &) const override
"Pure virtual methods" of SfxPoolItem.
virtual void SetMark()
Unless this is called, the getter method of Mark will return Point.
#define MID_GRID_RUBY_BELOW
const SwFrame * GetAnchorFrame() const
#define MID_URL_SERVERMAP
void SetPrintGrid(bool bNew)
void SetNumberingType(SvxNumType nSet)
SwFormatEndAtTextEnd(SwFootnoteEndPosEnum ePos=FTNEND_ATPGORDOCEND)
Frame is variable in Var-direction.
bool IsInvalidItem(const SfxPoolItem *pItem)
sal_uInt16 GetBaseHeight() const
const SfxPoolItem * GetItem(sal_uInt16 nWhich, bool bSearchInParent=true) const
virtual SwFormatPageDesc * Clone(SfxItemPool *pPool=nullptr) const override
SwViewShell * GetCurrShell() const
void RegisterToPageDesc(SwPageDesc &)
class for collecting anchored objects
const SvEventDescription * sw_GetSupportedMacroItems()
const SwFormatContent & GetContent(bool=true) const
void SetTitle(const OUString &rStr)
SwContentNode * GoNext(SwNodeIndex *) const
sal_uInt16 GetRubyHeight() const
bool GetPrintGrid() const
SwRootFrame * getRootFrame()
sal_Int32 GetEnumAsInt32(const css::uno::Any &rVal)
void SetGridType(SwTextGrid eNew)
constexpr TypedWhichId< SwPtrMsgPoolItem > RES_OBJECTDYING(RES_MSG_BEGIN)
const Size & GetSize() const
~SwHandleAnchorNodeChg() COVERITY_NOEXCEPT_FALSE
calls , if re-creation of fly frames is necessary.
void SetLines(sal_uInt16 nNew)
constexpr TypedWhichId< SwFormatAnchor > RES_ANCHOR(104)
sal_uInt16 m_nRight
Right border.
void CheckAnchoredFlyConsistency(SwDoc const &rDoc)
Base class of the Writer document model elements.
#define MID_LINENUMBER_COUNT