22#include <com/sun/star/style/VerticalAlignment.hpp>
23#include <com/sun/star/text/ColumnSeparatorStyle.hpp>
24#include <com/sun/star/text/WrapTextMode.hpp>
25#include <com/sun/star/text/TextContentAnchorType.hpp>
26#include <com/sun/star/container/XIndexContainer.hpp>
27#include <com/sun/star/text/TextGridMode.hpp>
28#include <com/sun/star/text/XTextColumns.hpp>
32#include <osl/diagnose.h>
94#include <unoprnms.hxx>
110 switch (rOrientation)
112 case text::RelOrientation::CHAR:
113 case text::RelOrientation::FRAME:
114 rOrientation = text::RelOrientation::PAGE_FRAME;
116 case text::RelOrientation::PRINT_AREA:
117 if (isIgnorePrintArea)
123 rOrientation = text::RelOrientation::PAGE_PRINT_AREA;
126 case text::RelOrientation::FRAME_LEFT:
127 rOrientation = text::RelOrientation::PAGE_LEFT;
129 case text::RelOrientation::FRAME_RIGHT:
130 rOrientation = text::RelOrientation::PAGE_RIGHT;
143 sal_Int16 nVal = text::RelOrientation::FRAME;
144 if (!(rVal >>= nVal))
145 SAL_WARN(
"sw.core",
"lcl_IntToRelation: read from Any failed!");
154 pFormat->Remove( pToRemove );
168 if (
dynamic_cast<const SwFrame*
>(pLast) ==
nullptr)
191 while ( aIdx < nEnd )
213 OSL_ENSURE( pNode,
"A big problem." );
236 m_eFrameHeightType( eSize ),
239 m_nWidthPercent = m_eWidthPercentRelation = m_nHeightPercent = m_eHeightPercentRelation = 0;
244 assert(SfxPoolItem::operator==(rAttr));
247 SvxSizeItem::operator==(rAttr)&&
262 nMemberId &= ~CONVERT_TWIPS;
317 nMemberId &= ~CONVERT_TWIPS;
328 Size aTmp(aVal.Width, aVal.Height);
374 bool bSet = *o3tl::doAccess<bool>(rVal);
383 bool bSet = *o3tl::doAccess<bool>(rVal);
433 bool bSet = *o3tl::doAccess<bool>(rVal);
456 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatFrameSize"));
457 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(Which()).getStr()));
459 std::stringstream aSize;
461 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"size"), BAD_CAST(aSize.str().c_str()));
463 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eFrameHeightType"), BAD_CAST(OString::number(
static_cast<int>(
m_eFrameHeightType)).getStr()));
464 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eFrameWidthType"), BAD_CAST(OString::number(
static_cast<int>(
m_eFrameWidthType)).getStr()));
465 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nWidthPercent"), BAD_CAST(OString::number(
m_nWidthPercent).getStr()));
466 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eWidthPercentRelation"), BAD_CAST(OString::number(
m_eWidthPercentRelation).getStr()));
467 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nHeightPercent"), BAD_CAST(OString::number(
m_nHeightPercent).getStr()));
468 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eHeightPercentRelation"), BAD_CAST(OString::number(
m_eHeightPercentRelation).getStr()));
470 (void)xmlTextWriterEndElement(pWriter);
492 m_bActive( pHeaderFormat )
498 SwClient( const_cast<
sw::BroadcastingModify*>(static_cast<const
sw::BroadcastingModify*>(rCpy.GetRegisteredIn())) ),
499 m_bActive( rCpy.IsActive() )
518 assert(SfxPoolItem::operator==(rAttr));
537 m_bActive( pFooterFormat )
543 SwClient( const_cast<
sw::BroadcastingModify*>(static_cast<const
sw::BroadcastingModify*>(rCpy.GetRegisteredIn())) ),
544 m_bActive( rCpy.IsActive() )
568 assert(SfxPoolItem::operator==(rAttr));
581 , m_oStartNode( rCpy.m_oStartNode )
606 assert(SfxPoolItem::operator==(rAttr));
617 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatContent"));
618 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
621 (void)xmlTextWriterWriteAttribute(
622 pWriter, BAD_CAST(
"startNode"),
623 BAD_CAST(OString::number(sal_Int32(
m_oStartNode->GetNode().GetIndex())).getStr()));
624 (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"startNodePtr"),
"%p",
627 (void)xmlTextWriterEndElement(pWriter);
634 m_oNumOffset( rCpy.m_oNumOffset ),
635 m_pDefinedIn( nullptr )
642 m_pDefinedIn( nullptr )
668 assert(SfxPoolItem::operator==(rAttr));
689 if(
auto pContentNode =
dynamic_cast<const SwContentNode*
>(pMod))
691 else if(
auto pFormat =
dynamic_cast<const SwFormat*
>(pMod))
695 SAL_WARN(
"sw.core",
"SwFormatPageDesc registered at " <<
typeid(pMod).
name() <<
".");
703 else if (rHint.
GetId() == SfxHintId::SwLegacyModify)
722 nMemberId &= ~CONVERT_TWIPS;
731 rVal <<= static_cast<sal_Int16>(*oOffset);
754 OSL_ENSURE(
false,
"unknown MemberId" );
763 nMemberId &= ~CONVERT_TWIPS;
769 sal_Int16 nOffset = 0;
774 else if (rVal >>= nOffset)
787 OSL_ENSURE(
false,
"unknown MemberId" );
795 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatPageDesc"));
796 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
798 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"oNumOffset"), BAD_CAST(OString::number(*m_oNumOffset).getStr()));
800 (
void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"oNumOffset"), BAD_CAST(
"none"));
801 (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"pPageDesc"),
"%p",
GetPageDesc());
803 (
void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"presentation"), BAD_CAST(pPageDesc->GetName().toUtf8().getStr()));
804 (void)xmlTextWriterEndElement(pWriter);
826 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwColumn"));
827 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nWish"), BAD_CAST(OString::number(
m_nWish).getStr()));
828 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nUpper"), BAD_CAST(OString::number(0).getStr()));
829 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nLower"), BAD_CAST(OString::number(0).getStr()));
830 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nLeft"), BAD_CAST(OString::number(
m_nLeft).getStr()));
831 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nRight"), BAD_CAST(OString::number(
m_nRight).getStr()));
832 (void)xmlTextWriterEndElement(pWriter);
837 m_eLineStyle( rCpy.m_eLineStyle ),
838 m_nLineWidth( rCpy.m_nLineWidth),
839 m_aLineColor( rCpy.m_aLineColor),
840 m_nLineHeight( rCpy.GetLineHeight() ),
841 m_eAdj( rCpy.GetLineAdj() ),
842 m_nWidth( rCpy.GetWishWidth() ),
843 m_aWidthAdjustValue( rCpy.m_aWidthAdjustValue ),
844 m_bOrtho( rCpy.IsOrtho() )
882 m_nLineHeight( 100 ),
884 m_nWidth( USHRT_MAX ),
885 m_aWidthAdjustValue( 0 ),
892 assert(SfxPoolItem::operator==(rAttr));
955 sal_uInt16 nHalf = nNew / 2;
974 for ( sal_uInt16
i = 0;
i < nNumCols; ++
i )
981 Calc( nGutterWidth, nAct );
988 Calc( nGutterWidth, nAct );
999 return sal_uInt16(nW);
1010 nRet = nRet - pCol->
GetLeft();
1022 const sal_uInt16 nGutterHalf = nGutterWidth ? nGutterWidth / 2 : 0;
1025 sal_uInt16 nSpacings;
1026 bool bFail = o3tl::checked_multiply<sal_uInt16>(
GetNumCols() - 1, nGutterWidth, nSpacings);
1029 SAL_WARN(
"sw.core",
"SwFormatVertOrient::Calc: overflow");
1033 const sal_uInt16 nPrtWidth = (nAct - nSpacings) /
GetNumCols();
1034 sal_uInt16 nAvail = nAct;
1037 const sal_uInt16 nLeftWidth = nPrtWidth + nGutterHalf;
1042 nAvail = nAvail - nLeftWidth;
1045 const sal_uInt16 nMidWidth = nPrtWidth + nGutterWidth;
1053 nAvail = nAvail - nMidWidth;
1060 rLastCol.
SetLeft(nGutterHalf);
1069 nTmp = nAct == 0 ? nTmp : nTmp / nAct;
1070 rCol.SetWishWidth(sal_uInt16(nTmp));
1077 nMemberId &= ~CONVERT_TWIPS;
1080 OSL_FAIL(
"not implemented");
1085 css::uno::UNO_QUERY_THROW);
1086 uno::Reference<beans::XPropertySet> xProps(xCols, css::uno::UNO_QUERY_THROW);
1092 sal_Int32 nAutoDistance =
IsOrtho() ? USHRT_MAX == nItemGutterWidth
1094 :
static_cast<sal_Int32
>(nItemGutterWidth)
1101 auto aTextColumns = xCols->getColumns();
1102 text::TextColumn* pColumns = aTextColumns.getArray();
1104 for (sal_Int32
i = 0;
i < aTextColumns.getLength(); ++
i)
1112 xCols->setColumns(aTextColumns);
1116 aVal <<= o3tl::narrowing<sal_Int32>(
1128 case SvxBorderLineStyle::SOLID:
1129 nStyle = css::text::ColumnSeparatorStyle::SOLID;
1131 case SvxBorderLineStyle::DOTTED:
1132 nStyle = css::text::ColumnSeparatorStyle::DOTTED;
1134 case SvxBorderLineStyle::DASHED:
1135 nStyle = css::text::ColumnSeparatorStyle::DASHED;
1137 case SvxBorderLineStyle::NONE:
1144 style::VerticalAlignment eAlignment;
1148 eAlignment = style::VerticalAlignment_TOP;
1151 eAlignment = style::VerticalAlignment_BOTTOM;
1156 eAlignment = style::VerticalAlignment_MIDDLE;
1158 aVal <<= eAlignment;
1168 nMemberId &= ~CONVERT_TWIPS;
1172 OSL_FAIL(
"not implemented");
1176 uno::Reference< text::XTextColumns > xCols;
1180 uno::Sequence<text::TextColumn> aSetColumns = xCols->getColumns();
1181 const text::TextColumn* pArray = aSetColumns.getConstArray();
1184 sal_uInt16
nCount =
std::min( o3tl::narrowing<sal_uInt16>(aSetColumns.getLength()),
1185 sal_uInt16(0x3fff) );
1186 sal_uInt16 nWidthSum = 0;
1194 nWidthSum = nWidthSum + pArray[
i].Width;
1203 if (uno::Reference<beans::XPropertySet> xProps{ xCols, css::uno::UNO_QUERY })
1209 if (sal_Int32 nHeight;
1218 case css::text::ColumnSeparatorStyle::SOLID:
1221 case css::text::ColumnSeparatorStyle::DOTTED:
1224 case css::text::ColumnSeparatorStyle::DASHED:
1235 default: OSL_ENSURE(
false,
"unknown alignment" );
break;
1245 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatCol"));
1246 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
1247 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eLineStyle"), BAD_CAST(OString::number(
static_cast<sal_Int16
>(
m_eLineStyle)).getStr()));
1248 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nLineWidth"), BAD_CAST(OString::number(
m_nLineWidth).getStr()));
1249 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"aLineColor"), BAD_CAST(
m_aLineColor.
AsRGBHexString().toUtf8().getStr()));
1250 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nLineHeight"), BAD_CAST(OString::number(
m_nLineHeight).getStr()));
1251 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eAdj"), BAD_CAST(OString::number(
m_eAdj).getStr()));
1252 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nWidth"), BAD_CAST(OString::number(
m_nWidth).getStr()));
1253 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nWidthAdjustValue"), BAD_CAST(OString::number(
m_aWidthAdjustValue).getStr()));
1254 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"bOrtho"), BAD_CAST(OString::boolean(
m_bOrtho).getStr()));
1256 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"aColumns"));
1258 rColumn.dumpAsXml(pWriter);
1259 (void)xmlTextWriterEndElement(pWriter);
1261 (void)xmlTextWriterEndElement(pWriter);
1273 assert(SfxPoolItem::operator==(rAttr));
1293 nMemberId &= ~CONVERT_TWIPS;
1295 switch ( nMemberId )
1310 OSL_ENSURE(
false,
"unknown MemberId" );
1319 nMemberId &= ~CONVERT_TWIPS;
1321 switch ( nMemberId )
1326 if( eVal >= css::text::WrapTextMode_NONE && eVal <= css::text::WrapTextMode_RIGHT )
1345 OSL_ENSURE(
false,
"unknown MemberId" );
1353 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatSurround"));
1354 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
1355 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"), BAD_CAST(OString::number(
static_cast<sal_Int32
>(
GetValue())).getStr()));
1357 OUString aPresentation;
1359 GetPresentation(SfxItemPresentation::Nameless, MapUnit::Map100thMM, MapUnit::Map100thMM, aPresentation, aIntlWrapper);
1360 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"presentation"), BAD_CAST(aPresentation.toUtf8().getStr()));
1362 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"bAnchorOnly"), BAD_CAST(OString::boolean(
m_bAnchorOnly).getStr()));
1363 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"bContour"), BAD_CAST(OString::boolean(
m_bContour).getStr()));
1364 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"bOutside"), BAD_CAST(OString::boolean(
m_bOutside).getStr()));
1366 (void)xmlTextWriterEndElement(pWriter);
1380 assert(SfxPoolItem::operator==(rAttr));
1394 nMemberId &= ~CONVERT_TWIPS;
1396 switch ( nMemberId )
1410 OSL_ENSURE(
false,
"unknown MemberId" );
1419 nMemberId &= ~CONVERT_TWIPS;
1421 switch ( nMemberId )
1445 OSL_ENSURE(
false,
"unknown MemberId" );
1453 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatVertOrient"));
1454 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
1455 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nYPos"), BAD_CAST(OString::number(
m_nYPos).getStr()));
1456 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eOrient"), BAD_CAST(OString::number(
m_eOrient).getStr()));
1457 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eRelation"), BAD_CAST(OString::number(
m_eRelation).getStr()));
1458 (void)xmlTextWriterEndElement(pWriter);
1463 sal_Int16 eRel,
bool bPos )
1467 m_eRelation( eRel ),
1468 m_bPosToggle( bPos )
1473 assert(SfxPoolItem::operator==(rAttr));
1488 nMemberId &= ~CONVERT_TWIPS;
1490 switch ( nMemberId )
1507 OSL_ENSURE(
false,
"unknown MemberId" );
1516 nMemberId &= ~CONVERT_TWIPS;
1518 switch ( nMemberId )
1535 if(!(rVal >>= nVal))
1546 OSL_ENSURE(
false,
"unknown MemberId" );
1554 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatHoriOrient"));
1555 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
1556 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"nXPos"), BAD_CAST(OString::number(
m_nXPos).getStr()));
1557 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eOrient"), BAD_CAST(OString::number(
m_eOrient).getStr()));
1558 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"eRelation"), BAD_CAST(OString::number(
m_eRelation).getStr()));
1559 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"bPosToggle"), BAD_CAST(OString::boolean(
m_bPosToggle).getStr()));
1560 (void)xmlTextWriterEndElement(pWriter);
1565 m_eAnchorId( nRnd ),
1566 m_nPageNumber( nPage ),
1568 m_nOrder( ++s_nOrderCounter )
1576 assert(
m_eAnchorId == RndStdIds::FLY_AT_PAGE || nPage == 0 );
1581 , m_oContentAnchor( rCpy.m_oContentAnchor )
1582 , m_eAnchorId( rCpy.m_eAnchorId )
1583 , m_nPageNumber( rCpy.m_nPageNumber )
1585 , m_nOrder( ++s_nOrderCounter )
1642 if (
this != &rAnchor)
1655 assert(SfxPoolItem::operator==(rAttr));
1678 nMemberId &= ~CONVERT_TWIPS;
1680 switch ( nMemberId )
1684 text::TextContentAnchorType eRet;
1687 case RndStdIds::FLY_AT_CHAR:
1688 eRet = text::TextContentAnchorType_AT_CHARACTER;
1690 case RndStdIds::FLY_AT_PAGE:
1691 eRet = text::TextContentAnchorType_AT_PAGE;
1693 case RndStdIds::FLY_AT_FLY:
1694 eRet = text::TextContentAnchorType_AT_FRAME;
1696 case RndStdIds::FLY_AS_CHAR:
1697 eRet = text::TextContentAnchorType_AS_CHARACTER;
1701 eRet = text::TextContentAnchorType_AT_PARAGRAPH;
1706 rVal <<= static_cast<sal_Int16>(
GetPageNum());
1715 uno::Reference<text::XTextFrame>
const xRet(
1723 OSL_ENSURE(
false,
"unknown MemberId" );
1732 nMemberId &= ~CONVERT_TWIPS;
1734 switch ( nMemberId )
1741 case text::TextContentAnchorType_AS_CHARACTER:
1742 eAnchor = RndStdIds::FLY_AS_CHAR;
1744 case text::TextContentAnchorType_AT_PAGE:
1745 eAnchor = RndStdIds::FLY_AT_PAGE;
1754 case text::TextContentAnchorType_AT_FRAME:
1755 eAnchor = RndStdIds::FLY_AT_FLY;
1757 case text::TextContentAnchorType_AT_CHARACTER:
1758 eAnchor = RndStdIds::FLY_AT_CHAR;
1760 case text::TextContentAnchorType_AT_PARAGRAPH:
1761 eAnchor = RndStdIds::FLY_AT_PARA;
1764 eAnchor = RndStdIds::FLY_AT_PARA;
1773 if((rVal >>= nVal) && nVal > 0)
1787 assert(
false &&
"cannot set page number on this anchor type");
1798 OSL_ENSURE(
false,
"unknown MemberId" );
1806 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatAnchor"));
1807 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
1811 std::stringstream aContentAnchor;
1813 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"m_pContentAnchor"), BAD_CAST(aContentAnchor.str().c_str()));
1816 (
void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"m_pContentAnchor"), BAD_CAST(
"(nil)"));
1817 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"m_eAnchorType"), BAD_CAST(OString::number(
static_cast<int>(
m_eAnchorId)).getStr()));
1818 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"m_nPageNumber"), BAD_CAST(OString::number(
m_nPageNumber).getStr()));
1819 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"m_nOrder"), BAD_CAST(OString::number(
m_nOrder).getStr()));
1820 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"s_nOrderCounter"), BAD_CAST(OString::number(
s_nOrderCounter).getStr()));
1821 OUString aPresentation;
1823 GetPresentation(SfxItemPresentation::Nameless, MapUnit::Map100thMM, MapUnit::Map100thMM, aPresentation, aIntlWrapper);
1824 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"presentation"), BAD_CAST(aPresentation.toUtf8().getStr()));
1826 (void)xmlTextWriterEndElement(pWriter);
1832 m_bIsServerMap( false )
1838 m_sTargetFrameName( rURL.GetTargetFrameName() ),
1841 m_bIsServerMap( rURL.IsServerMap() )
1853 assert(SfxPoolItem::operator==(rAttr));
1888 nMemberId &= ~CONVERT_TWIPS;
1890 switch ( nMemberId )
1903 uno::Reference< uno::XInterface > xInt;
1913 uno::Reference< container::XIndexContainer > xCont(xInt, uno::UNO_QUERY);
1921 OSL_ENSURE(
false,
"unknown MemberId" );
1930 nMemberId &= ~CONVERT_TWIPS;
1932 switch ( nMemberId )
1957 uno::Reference<container::XIndexContainer> xCont;
1960 else if(rVal >>= xCont)
1974 OSL_ENSURE(
false,
"unknown MemberId" );
2002 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatNoBalancedColumns"));
2003 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
2004 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"), BAD_CAST(OString::boolean(
GetValue()).getStr()));
2005 (void)xmlTextWriterEndElement(pWriter);
2038 nMemberId &= ~CONVERT_TWIPS;
2054 default:
return false;
2062 nMemberId &= ~CONVERT_TWIPS;
2067 bool bVal = *o3tl::doAccess<bool>(rVal);
2076 bool bVal = *o3tl::doAccess<bool>(rVal);
2095 bool bVal = *o3tl::doAccess<bool>(rVal);
2117 OUString sVal; rVal >>= sVal;
2123 OUString sVal; rVal >>= sVal;
2127 default: bRet =
false;
2150 assert(SfxPoolItem::operator==(rAttr));
2190 nMemberId &= ~CONVERT_TWIPS;
2193 switch ( nMemberId )
2204 OSL_ENSURE(
false,
"unknown MemberId" );
2224 assert(SfxPoolItem::operator==(rAttr));
2238 nMemberId &= ~CONVERT_TWIPS;
2240 switch ( nMemberId )
2249 OSL_ENSURE(
false,
"unknown MemberId" );
2258 nMemberId &= ~CONVERT_TWIPS;
2260 switch ( nMemberId )
2275 OSL_ENSURE(
false,
"unknown MemberId" );
2283 , m_nBaseHeight( 400 ), m_nRubyHeight( 200 ), m_eGridType(
GRID_NONE )
2284 , m_bRubyTextBelow( false ), m_bPrintGrid( true ), m_bDisplayGrid( true )
2285 , m_nBaseWidth(400), m_bSnapToChars( true ), m_bSquaredMode(true)
2295 assert(SfxPoolItem::operator==(rAttr));
2338 "This value needs TWIPS-MM100 conversion" );
2343 "This value needs TWIPS-MM100 conversion" );
2348 "This value needs TWIPS-MM100 conversion" );
2358 rVal <<= text::TextGridMode::LINES;
2361 rVal <<= text::TextGridMode::LINES_AND_CHARS;
2364 OSL_FAIL(
"unknown SwTextGrid value");
2376 OSL_FAIL(
"Unknown SwTextGridItem member");
2392 bRet = (rVal >>= nTmp);
2400 bRet = (rVal >>= nTmp);
2401 if( bRet && (nTmp >= 0) )
2421 "This value needs TWIPS-MM100 conversion" );
2423 bRet = (rVal >>= nTmp);
2430#define MIN_TEXTGRID_SIZE 100
2451 bRet = (rVal >>= nTmp);
2459 case text::TextGridMode::LINES:
2462 case text::TextGridMode::LINES_AND_CHARS:
2477 bool bStandard = *o3tl::doAccess<bool>(rVal);
2482 OSL_FAIL(
"Unknown SwTextGridItem member");
2557 const char* pFormatNm,
2559 sal_uInt16 nFormatWhich,
2561:
SwFormat(rPool, pFormatNm, pWhichRange, pDrvdFrame, nFormatWhich),
2568 const OUString &rFormatNm,
2570 sal_uInt16 nFormatWhich,
2572:
SwFormat(rPool, rFormatNm, pWhichRange, pDrvdFrame, nFormatWhich),
2579 if( !
GetDoc()->IsInDtor())
2584 pAnchorNode->RemoveAnchoredFly(
this);
2615 GetNotifier().Broadcast(aHint);
2629 if (rHint.
GetId() != SfxHintId::SwLegacyModify)
2632 const sal_uInt16 nNewWhich = pLegacy->
m_pNew ? pLegacy->m_pNew->
Which() : 0;
2636 SwNode* pNewAnchorNode =
nullptr;
2641 pNewAttrSetChg =
static_cast<const SwAttrSetChg*
>(pLegacy->m_pNew);
2662 assert(pNewAnchorNode ==
nullptr ||
2681 pNewAnchorNode =
static_cast<const SwFormatAnchor*
>(pLegacy->m_pNew)->GetAnchorNode();
2684 const sal_uInt16 nOldWhich = pLegacy->m_pOld ? pLegacy->m_pOld->
Which() : 0;
2685 SwNode* pOldAnchorNode =
nullptr;
2691 pOldAttrSetChg =
static_cast<const SwAttrSetChg*
>(pLegacy->m_pOld);
2696 assert(pOldAnchorNode ==
nullptr ||
2702 pOldAnchorNode =
static_cast<const SwFormatAnchor*
>(pLegacy->m_pOld)->GetAnchorNode();
2705 SetXObject(uno::Reference<uno::XInterface>(
nullptr));
2709 assert(nOldWhich == nNewWhich || !nOldWhich || !nNewWhich);
2721 if(pOldAnchorNode !=
nullptr && (pNewAnchorNode ==
nullptr || pOldAnchorNode->
GetIndex() != pNewAnchorNode->
GetIndex()))
2723 if(pNewAnchorNode !=
nullptr && (pOldAnchorNode ==
nullptr || pOldAnchorNode->
GetIndex() != pNewAnchorNode->
GetIndex()))
2729 rFormat.Add(
this );
2741 }
while(
nullptr != ( pLast = aIter.
Next() ));
2753 if(
auto pSectionFormat =
dynamic_cast<const SwSectionFormat*
>(
this ))
2774 aRet.
Pos().AdjustY( -1 );
2783 std::pair<Point, bool> tmp;
2786 tmp.first = *pPoint;
2789 pFrame =
::GetFrameOfModify(
nullptr, *
this, nFrameType,
nullptr, pPoint ? &tmp :
nullptr);
2807 std::pair<Point, bool>
const tmp(aNullPt,
false);
2844 const SwNodeIndex* pIdx = pFormat->GetContent().GetContentIdx();
2845 if( pIdx && pFlyNd == &pIdx->
GetNode() )
2847 if( pFormat ==
this )
2850 pAnchor = &pFormat->GetAnchor();
2851 if ((RndStdIds::FLY_AT_PAGE == pAnchor->
GetAnchorId()) ||
2880 return text::PositionLayoutDir::PositionInLayoutDirOfAnchor;
2894 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFrameFormat"));
2895 (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"ptr"),
"%p",
this);
2896 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"name"), BAD_CAST(
GetName().toUtf8().getStr()));
2897 (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"whichId"),
"%d",
Which());
2899 const char* pWhich =
nullptr;
2903 pWhich =
"fly frame format";
2906 pWhich =
"draw frame format";
2910 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"which"), BAD_CAST(pWhich));
2914 (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"OtherTextBoxFormat"),
"%p",
m_pOtherTextBoxFormats.get());
2920 pSdrObject->dumpAsXml(pWriter);
2922 (void)xmlTextWriterEndElement(pWriter);
2926 :
sw::SpzFrameFormat(rPool, rFormatName, pDerivedFrame,
RES_FLYFRMFMT)
2937 }
while(
nullptr != ( pLast = aIter.
Next() ));
2960 sw::BroadcastingModify *pModify =
nullptr;
2965 case RndStdIds::FLY_AS_CHAR:
2966 case RndStdIds::FLY_AT_PARA:
2967 case RndStdIds::FLY_AT_CHAR:
2974 case RndStdIds::FLY_AT_FLY:
2985 if ( pCNd ==
nullptr )
2997 if ( pModify ==
nullptr )
3002 if( pFlyFormat->GetContent().GetContentIdx() &&
3003 rNd == pFlyFormat->GetContent().GetContentIdx()->GetNode() )
3005 pModify = pFlyFormat;
3013 case RndStdIds::FLY_AT_PAGE:
3021 for (
SwFrame* pFrame = aIter.
First(); pFrame !=
nullptr; pFrame = aIter.
Next() )
3056 bool bAdd = !pFrame->IsContentFrame() ||
3059 if ( RndStdIds::FLY_AT_FLY == aAnchorAttr.
GetAnchorId() && !pFrame->IsFlyFrame() )
3068 aAnchorAttr.
SetType( RndStdIds::FLY_AT_PARA );
3079 case RndStdIds::FLY_AS_CHAR:
3080 case RndStdIds::FLY_AT_PARA:
3081 case RndStdIds::FLY_AT_CHAR:
3083 assert(pFrame->IsTextFrame());
3092 if (bAdd && pFrame->GetDrawObjs())
3100 if( pObj->DynCastFlyFrame() !=
nullptr &&
3101 (&pObj->GetFrameFormat()) ==
this )
3114 case RndStdIds::FLY_AT_FLY:
3118 case RndStdIds::FLY_AT_PARA:
3119 case RndStdIds::FLY_AT_CHAR:
3123 case RndStdIds::FLY_AS_CHAR:
3128 assert(
false &&
"New anchor type" );
3130 pFrame->AppendFly( pFly );
3142 std::pair<Point, bool> tmp;
3145 tmp.first = *pPoint;
3169 OSL_ENSURE( pMasterObject,
"<SwFlyFrameFormat::SetObjTitle(..)> - missing <SdrObject> instance" );
3171 if ( !pMasterObject )
3180 GetNotifier().Broadcast(aHint);
3187 OSL_ENSURE( pMasterObject,
"<SwFlyFrameFormat::GetObjTitle(..)> - missing <SdrObject> instance" );
3188 if ( !pMasterObject )
3192 if (!pMasterObject->
GetTitle().isEmpty())
3211 OSL_ENSURE( pMasterObject,
"<SwFlyFrameFormat::SetDescription(..)> - missing <SdrObject> instance" );
3213 if ( !pMasterObject )
3222 GetNotifier().Broadcast(aHint);
3229 OSL_ENSURE( pMasterObject,
"<SwFlyFrameFormat::GetDescription(..)> - missing <SdrObject> instance" );
3230 if ( !pMasterObject )
3243 OSL_ENSURE( pMasterObject,
"<SwFlyFrameFormat::SetDescription(..)> - missing <SdrObject> instance" );
3244 if ( !pMasterObject )
3275 if ( aBackground->GetColor().IsTransparent() &&
3283 const GraphicObject *pTmpGrf = aBackground->GetGraphicObject();
3315 !(aBackground->GetGraphicObject()) )
3327 : mrFlyFrameFormat( _rFlyFrameFormat ),
3328 mbAnchorNodeChanged( false ),
3333 if ( ((nNewAnchorType == RndStdIds::FLY_AT_PARA) ||
3334 (nNewAnchorType == RndStdIds::FLY_AT_CHAR)) &&
3338 if ( aOldAnchorFormat.
GetAnchorId() == nNewAnchorType &&
3345 sal_uInt32 nOldNumOfAnchFrame( 0 );
3350 ++nOldNumOfAnchFrame;
3353 sal_uInt32 nNewNumOfAnchFrame( 0 );
3358 ++nNewNumOfAnchFrame;
3360 if ( nOldNumOfAnchFrame != nNewNumOfAnchFrame )
3368 if ( pFrame != _pKeepThisFlyFrame )
3373 }
while(
nullptr != ( pFrame = aIter.
Next() ));
3382 && aOldAnchorFormat.
GetAnchorId() == RndStdIds::FLY_AT_CHAR)
3387 if (_pKeepThisFlyFrame)
3503 switch ( _nPositionLayoutDir )
3505 case text::PositionLayoutDir::PositionInHoriL2R:
3506 case text::PositionLayoutDir::PositionInLayoutDirOfAnchor:
3513 OSL_FAIL(
"<SwDrawFrameFormat::SetPositionLayoutDir(..)> - invalid attribute value." );
3534 aResult =
SwResId(STR_GRAPHIC);
3560 pRef = pFly->
Lower();
3572 Point aPos( rPoint );
3581 sal_uInt32 nFlags = 0;
3585 GetMirrorGrf().GetValue();
3613 OSL_ENSURE(
false,
"getSdrAllFillAttributesHelper() call only valid for RES_FLYFRMFMT and RES_FRMFMT (!)");
3641 if (!pFlyFrameFormat)
3655 if (pFrame == pHeader)
3665#if OSL_DEBUG_LEVEL > 0 && !defined NDEBUG
3670 SwNode const*
const pNode(rNodes[
i]);
3672 for (
const auto& rpFly : rFlys)
3684 if (RndStdIds::FLY_AT_PAGE == rAnchor.
GetAnchorId())
3695 assert(std::find(rFlys.begin(), rFlys.end(), pSpz) != rFlys.end());
3698 case RndStdIds::FLY_AT_FLY:
3701 case RndStdIds::FLY_AT_PARA:
3704 case RndStdIds::FLY_AS_CHAR:
3705 case RndStdIds::FLY_AT_CHAR:
SVXCORE_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvxXTextColumns_createInstance() noexcept
constexpr auto convertTwipToMm100(N n)
#define MIN_TEXTGRID_SIZE
static void lcl_DelHFFormat(SwClient *pToRemove, SwFrameFormat *pFormat)
static sal_Int16 lcl_IntToRelation(const uno::Any &rVal)
OUString AsRGBHexString() const
bool IsTransparent() const
const GraphicAttr & GetAttr() const
virtual void DeleteSection(SwNode *pNode)=0
Delete section containing the node.
virtual const SwRootFrame * GetCurrentLayout() const =0
virtual SwFrameFormat * MakeLayoutFormat(RndStdIds eRequest, const SfxItemSet *pSet)=0
IMapObject * GetHitIMapObject(const Size &rOriginalSize, const Size &rDisplaySize, const Point &rRelHitPoint, sal_uLong nFlags=0) const
virtual OUString GetTitle() const
virtual void SetTitle(const OUString &rStr)
virtual void SetDescription(const OUString &rStr)
virtual OUString GetDescription() const
virtual void SetDecorative(bool isDecorative)
virtual OUString GetComment() const override
void SetValue(EnumT nTheValue)
virtual bool operator==(SfxPoolItem const &other) const override
const SfxPoolItem * GetCurItem() const
const SfxPoolItem * NextItem()
void dumpAsXml(xmlTextWriterPtr pWriter) const
const SfxPoolItem * GetItem(sal_uInt16 nWhich, bool bSearchInParent=true) const
SfxObjectCreateMode GetCreateMode() const
virtual void ScaleMetrics(tools::Long lMult, tools::Long lDiv)
virtual bool HasMetrics() const
constexpr tools::Long Height() const
void setWidth(tools::Long nWidth)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
void SetNumberingType(SvxNumType nSet)
SvxNumType GetNumberingType() const
tools::Long GetHeight() const
tools::Long GetWidth() const
void SetHeight(tools::Long n)
const Size & GetSize() const
void SetSize(const Size &rSize)
void SetWidth(tools::Long n)
wrapper class for the positioning of Writer fly frames and drawing objects
const SwFrame * GetAnchorFrame() const
SwPageFrame * FindPageFrameOfAnchor()
method to determine the page frame, on which the 'anchor' of the given anchored object is.
const SwAttrSet * GetTheChgdSet() const
Where it has changed.
const SwAttrSet * GetChgSet() const
What has changed.
const SwModify * GetRegisteredIn() const
sal_uInt16 GetLeft() const
void dumpAsXml(xmlTextWriterPtr pWriter) const
void SetRight(sal_uInt16 nNew)
sal_uInt16 GetRight() const
sal_uInt16 m_nRight
Right border.
void SetLeft(sal_uInt16 nNew)
bool operator==(const SwColumn &) const
sal_uInt16 m_nWish
Desired width, borders included.
sal_uInt16 GetWishWidth() const
void SetWishWidth(sal_uInt16 nNew)
sal_uInt16 m_nLeft
Left border.
SwContentFrame is the layout for content nodes: a common base class for text (paragraph) and non-text...
const SwContentNode * GetContentNode() const
const SwAttrSet & GetSwAttrSet() const
Does node has already its own auto-attributes? Access to SwAttrSet.
void Push()
store a copy of the current cursor on the cursor stack
void ParkCursor(const SwNode &rIdx)
Remove selections and additional cursors of all shells.
virtual SwCursor & GetCurrentShellCursor() override
Return the current shell cursor.
SwPaM * CreateCursor()
delete the current cursor and make the following into the current
void DestroyCursor()
transform TableCursor to normal cursor, nullify Tablemode
IDocumentContentOperations const & getIDocumentContentOperations() const
IDocumentUndoRedo & GetIDocumentUndoRedo()
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
const sw::FrameFormats< sw::SpzFrameFormat * > * GetSpzFrameFormats() const
SwDocShell * GetDocShell()
bool Delete(bool isArtificialSelection=false)
Delete content of all ranges.
SwFieldType * GetTyp() const
Flys that are anchored to content (at-para, at-char) but not in content (as-char).
general base class for all free-flowing frames
const SwVirtFlyDrawObj * GetVirtDrawObj() const
virtual const SwFlyFrameFormat * GetFormat() const override
bool IsLowerOf(const SwLayoutFrame *pUpper) const
Flys that are anchored as a character in the content.
Flys that are bound to layout frames (to-frame) and not to/as content.
Content, content of frame (header, footer, fly).
virtual SwFormatContent * Clone(SfxItemPool *pPool=nullptr) const override
void SetNewContentIdx(const SwNodeIndex *pIdx)
const SwNodeIndex * GetContentIdx() const
void dumpAsXml(xmlTextWriterPtr pWriter) const override
std::optional< SwNodeIndex > m_oStartNode
SwFormatContent(const SwStartNode *pStartNode=nullptr)
virtual bool operator==(const SfxPoolItem &) const override
"Pure virtual methods" of SfxPoolItem.
virtual ~SwFormatContent() override
SwFormatEndAtTextEnd(SwFootnoteEndPosEnum ePos=FTNEND_ATPGORDOCEND)
virtual SwFormatEndAtTextEnd * Clone(SfxItemPool *pPool=nullptr) const override
Pagedescriptor Client of SwPageDesc that is "described" by the attribute.
const sw::BroadcastingModify * GetDefinedIn() const
Query / set where attribute is anchored.
void SetNumOffset(const ::std::optional< sal_uInt16 > &oNum)
virtual ~SwFormatPageDesc() override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
void dumpAsXml(xmlTextWriterPtr pWriter) const override
bool KnowsPageDesc() const
virtual bool operator==(const SfxPoolItem &) const override
"Pure virtual methods" of SfxPoolItem.
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
SwFormatPageDesc(const SwPageDesc *pDesc=nullptr)
SwFormatPageDesc & operator=(const SwFormatPageDesc &rCpy)
void RegisterToPageDesc(SwPageDesc &)
virtual void SwClientNotify(const SwModify &, const SfxHint &rHint) override
SwPageDesc * GetPageDesc()
virtual SwFormatPageDesc * Clone(SfxItemPool *pPool=nullptr) const override
::std::optional< sal_uInt16 > m_oNumOffset
Offset page number.
const ::std::optional< sal_uInt16 > & GetNumOffset() const
sw::BroadcastingModify * m_pDefinedIn
Points to the object in which the attribute was set (ContentNode/Format).
const SwRect & getFrameArea() const
const SwRect & getFramePrintArea() const
Base class of the Writer layout elements.
SwFlyFrame * FindFlyFrame()
SwFrameType GetType() const
bool KnowsFormat(const SwFormat &rFormat) const
SwLayoutFrame * GetUpper()
SwRootFrame * getRootFrame()
bool IsNoTextFrame() const
SwPageFrame * FindPageFrame()
static void DestroyFrame(SwFrame *const pFrame)
this is the only way to delete a SwFrame instance
std::optional< SwPosition > moCommentAnchor
If the fly frame has a comment, this points to the old comment anchor.
SwFlyFrameFormat & mrFlyFrameFormat
~SwHandleAnchorNodeChg()
calls <SwFlyFrameFormat::MakeFrames>, if re-creation of fly frames is necessary.
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...
const SwFrame * Lower() const
Layout frame for SwNoTextNode, i.e. graphics and OLE nodes (including charts).
virtual Size GetTwipSize() const =0
Marks a node in the document model.
Base class of the Writer document model elements.
SwStartNode * GetStartNode()
void AddAnchoredFly(SwFrameFormat *)
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
SwSectionNode * GetSectionNode()
SwNodeOffset GetIndex() const
bool IsContentNode() const
void RemoveAnchoredFly(SwFrameFormat *)
const SwStartNode * FindFlyStartNode() const
SwNodeOffset EndOfSectionIndex() const
SwContentNode * GetContentNode()
SwNoTextNode * GetNoTextNode()
SwTableNode * GetTableNode()
std::vector< SwFrameFormat * > const & GetAnchoredFlys() const
SwContentNode * GoNext(SwNodeIndex *) const
SwNodeOffset Count() const
PaM is Point and Mark: a selection of the document model.
const SwPosition * GetMark() const
virtual void SetMark()
Unless this is called, the getter method of Mark will return Point.
const SwPosition * GetPoint() const
const OUString & GetName() const
A page of the document layout.
void PlaceFly(SwFlyFrame *pFly, SwFlyFrameFormat *pFormat)
sal_uInt16 GetPhyPageNum() const
Of course Writer needs its own rectangles.
void Pos(const Point &rNew)
void SSize(const Size &rNew)
SwViewShell * GetCurrShell() const
A section node represents the start of a section on the UI, i.e.
class for collecting anchored objects
Starts a section of nodes in the document model.
static void FillProgName(const OUString &rName, OUString &rFillName, SwGetPoolIdFromName)
SwTableBox is one table cell in the document model.
const SwFormatField & GetFormatField() const
Represents the visualization of a paragraph.
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
bool GetSnapToChars() const
virtual ~SwTextGridItem() override
void SwitchPaperMode(bool bNew)
sal_uInt16 GetBaseHeight() const
void SetSnapToChars(bool bNew)
virtual bool operator==(const SfxPoolItem &) const override
void SetRubyHeight(sal_uInt16 nNew)
sal_uInt16 GetBaseWidth() const
virtual SwTextGridItem * Clone(SfxItemPool *pPool=nullptr) const override
void SetBaseHeight(sal_uInt16 nNew)
void SetSquaredMode(bool bNew)
void SetPrintGrid(bool bNew)
bool GetRubyTextBelow() const
bool GetSquaredMode() const
sal_uInt16 GetRubyHeight() const
void SetColor(const Color &rCol)
bool GetPrintGrid() const
void SetBaseWidth(sal_uInt16 nNew)
void SetGridType(SwTextGrid eNew)
SwTextGrid GetGridType() const
bool GetDisplayGrid() const
const Color & GetColor() const
void SetRubyTextBelow(bool bNew)
void SetDisplayGrid(bool bNew)
void SetLines(sal_Int32 nNew)
sal_Int32 GetLines() const
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
SwTextNode is a paragraph in the document model.
SwTextField * GetFieldTextAttrAt(const sal_Int32 nIndex, ::sw::GetTextAttrMode const eMode=::sw::GetTextAttrMode::Expand) const
Used by the UI to modify the document model.
bool Pop(SwCursorShell::PopMode, ::std::optional< SwCallLink > &roLink)
static SW_DLLPUBLIC rtl::Reference< SwXTextFrame > CreateXTextFrame(SwDoc &rDoc, SwFrameFormat *pFrameFormat)
constexpr ::Color COL_LIGHTGRAY(0xC0, 0xC0, 0xC0)
constexpr ::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
@ RightMargin
at right margin
@ LeftMargin
at left margin
struct _xmlTextWriter * xmlTextWriterPtr
#define suppress_fun_call_w_exception(expr)
virtual OUString GetName() const override
virtual OUString GetURL() const override
std::vector< SwColumn > SwColumns
@ Fixed
Frame cannot be moved in Var-direction.
@ Variable
Frame is variable in Var-direction.
@ Minimum
Value in Var-direction gives minimum (can be exceeded but not be less).
@ FTNEND_ATTXTEND
at end of the current text end
@ FTNEND_ATTXTEND_OWNNUMANDFMT
-""- and with own numberformat
@ FTNEND_ATTXTEND_OWNNUMSEQ
-""- and with own number sequence
@ FTNEND_ATPGORDOCEND
at page or document end
constexpr TypedWhichId< SwPtrMsgPoolItem > RES_REMOVE_UNO_OBJECT(181)
constexpr TypedWhichId< SwFormatURL > RES_URL(117)
constexpr TypedWhichId< SwFormatHeader > RES_HEADER(102)
constexpr TypedWhichId< SwFormatFrameSize > RES_FRM_SIZE(89)
constexpr TypedWhichId< SwFormatCol > RES_COL(115)
constexpr TypedWhichId< SwFormatHoriOrient > RES_HORI_ORIENT(109)
constexpr TypedWhichId< SwFormatVertOrient > RES_VERT_ORIENT(108)
constexpr TypedWhichId< SwFormatPageDesc > RES_PAGEDESC(99)
constexpr TypedWhichId< SwFormatFillOrder > RES_FILL_ORDER(RES_FRMATR_BEGIN)
constexpr TypedWhichId< SwTextGridItem > RES_TEXTGRID(121)
constexpr TypedWhichId< SwAttrSetChg > RES_ATTRSET_CHG(169)
constexpr TypedWhichId< SwFlyFrameFormat > RES_FLYFRMFMT(162)
constexpr TypedWhichId< SwFormatLineNumber > RES_LINENUMBER(122)
constexpr TypedWhichId< SwFormatFooter > RES_FOOTER(103)
constexpr TypedWhichId< SwTableBoxNumFormat > RES_BOXATR_FORMAT(RES_BOXATR_BEGIN)
constexpr TypedWhichId< SwDrawFrameFormat > RES_DRAWFRMFMT(165)
constexpr TypedWhichId< SwFormatAnchor > RES_ANCHOR(110)
constexpr TypedWhichId< SfxBoolItem > RES_DECORATIVE(140)
constexpr TypedWhichId< SwFormatChain > RES_CHAIN(120)
constexpr TypedWhichId< SwFormatSurround > RES_SURROUND(107)
constexpr TypedWhichId< SwFormatContent > RES_CNTNT(101)
constexpr TypedWhichId< SwPtrMsgPoolItem > RES_OBJECTDYING(RES_FORMAT_MSG_BEGIN)
constexpr TypedWhichId< SwFormatChg > RES_FMT_CHG(168)
#define SAL_INFO_IF(condition, area, stream)
#define SAL_WARN(area, stream)
sal_Int32 GetEnumAsInt32(const css::uno::Any &rVal)
std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr
constexpr auto toTwips(N number, Length from)
constexpr Point convert(const Point &rPoint, o3tl::Length eFrom, o3tl::Length eTo)
Dialog to specify the properties of date form field.
void CheckAnchoredFlyConsistency(SwDoc const &rDoc)
bool IsFlyFrameFormatInHeader(const SwFrameFormat &rFormat)
bool GetAtPageRelOrientation(sal_Int16 &rOrientation, bool const isIgnorePrintArea)
SwNodeOffset min(const SwNodeOffset &a, const SwNodeOffset &b)
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.
bool IsInvalidItem(const SfxPoolItem *pItem)
Marks a position in the document model.
void AdjustContent(sal_Int32 nDelta)
Adjust content index, only valid to call this if the position points to a SwContentNode subclass.
virtual ~CollectTextObjectsHint() override
virtual ~CreatePortionHint() override
virtual ~FindSdrObjectHint() override
virtual ~GetObjectConnectedHint() override
virtual ~GetZOrderHint() override
const SfxPoolItem * m_pNew
virtual ~RestoreFlyAnchorHint() override
virtual ~WW8AnchorConvHint() override
SVX_NUM_CHARS_LOWER_LETTER_N
SVX_NUM_CHARS_UPPER_LETTER_N
OUString SwResId(TranslateId aId)
constexpr SwTwips DEF_GUTTER_WIDTH
const SvEventDescription * sw_GetSupportedMacroItems()
SVT_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvUnoImageMap_createInstance()
SVT_DLLPUBLIC bool SvUnoImageMap_fillImageMap(const css::uno::Reference< css::uno::XInterface > &xImageMap, ImageMap &rMap)
#define MID_HORIORIENT_RELATION
#define MID_FRMSIZE_REL_WIDTH_RELATION
#define MID_PAGEDESC_PAGEDESCNAME
#define MID_FRMSIZE_REL_HEIGHT_RELATION
#define MID_ANCHOR_ANCHORFRAME
#define MID_GRID_BASEWIDTH
#define MID_GRID_SNAPTOCHARS
#define MID_VERTORIENT_RELATION
#define MID_FRMSIZE_IS_SYNC_HEIGHT_TO_WIDTH
#define MID_GRID_STANDARD_MODE
#define MID_SURROUND_ANCHORONLY
#define MID_FRMSIZE_REL_WIDTH
#define MID_FRMSIZE_SIZE_TYPE
#define MID_GRID_RUBYHEIGHT
#define MID_HORIORIENT_PAGETOGGLE
#define MID_VERTORIENT_POSITION
#define MID_FRMSIZE_WIDTH
#define MID_PAGEDESC_PAGENUMOFFSET
#define MID_URL_CLIENTMAP
#define MID_URL_SERVERMAP
#define MID_FRMSIZE_WIDTH_TYPE
#define MID_SURROUND_SURROUNDTYPE
#define MID_VERTORIENT_ORIENT
#define MID_ANCHOR_PAGENUM
#define MID_HORIORIENT_POSITION
#define MID_URL_HYPERLINKNAME
#define MID_FRMSIZE_REL_HEIGHT
#define MID_LINENUMBER_COUNT
#define MID_ANCHOR_ANCHORTYPE
#define MID_GRID_BASEHEIGHT
#define MID_CHAIN_PREVNAME
#define MID_SURROUND_CONTOUR
#define MID_CHAIN_NEXTNAME
#define MID_FRMSIZE_HEIGHT
#define MID_FRMSIZE_IS_AUTO_HEIGHT
#define MID_SURROUND_CONTOUROUTSIDE
#define MID_GRID_RUBY_BELOW
#define MID_LINENUMBER_STARTVALUE
#define MID_HORIORIENT_ORIENT
#define MID_FRMSIZE_IS_SYNC_WIDTH_TO_HEIGHT
#define MID_COLUMN_SEPARATOR_LINE
constexpr OUStringLiteral UNO_NAME_SEPARATOR_LINE_VERTIVAL_ALIGNMENT
constexpr OUStringLiteral UNO_NAME_AUTOMATIC_DISTANCE
constexpr OUStringLiteral UNO_NAME_IS_AUTOMATIC
constexpr OUStringLiteral UNO_NAME_SEPARATOR_LINE_STYLE
constexpr OUStringLiteral UNO_NAME_SEPARATOR_LINE_COLOR
constexpr OUStringLiteral UNO_NAME_SEPARATOR_LINE_WIDTH
constexpr OUStringLiteral UNO_NAME_SEPARATOR_LINE_IS_ON
constexpr OUStringLiteral UNO_NAME_SEPARATOR_LINE_RELATIVE_HEIGHT
constexpr sal_uInt16 XATTR_FILL_FIRST(XATTRSET_LINE+1)
constexpr sal_uInt16 XATTR_FILL_LAST(XATTR_FILLUSESLIDEBACKGROUND)