20 #include <editeng/editids.hrc>
24 #include <strings.hrc>
30 #include <unoprnms.hxx>
36 #include <lineinfo.hxx>
42 #include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
43 #include <com/sun/star/text/FootnoteNumbering.hpp>
44 #include <com/sun/star/text/HoriOrientation.hpp>
45 #include <com/sun/star/style/LineNumberPosition.hpp>
46 #include <com/sun/star/awt/FontDescriptor.hpp>
47 #include <com/sun/star/awt/XBitmap.hpp>
48 #include <com/sun/star/graphic/XGraphic.hpp>
49 #include <com/sun/star/beans/PropertyAttribute.hpp>
50 #include <com/sun/star/style/VerticalAlignment.hpp>
65 #include <com/sun/star/text/PositionAndSpaceMode.hpp>
66 #include <com/sun/star/text/LabelFollow.hpp>
94 #define API_COL_LINE_NONE 0
95 #define API_COL_LINE_SOLID 1
96 #define API_COL_LINE_DOTTED 2
97 #define API_COL_LINE_DASHED 3
101 #define WID_NUMBERING_TYPE 2
102 #define WID_START_AT 3
103 #define WID_FOOTNOTE_COUNTING 4
104 #define WID_PARAGRAPH_STYLE 5
105 #define WID_PAGE_STYLE 6
106 #define WID_CHARACTER_STYLE 7
107 #define WID_POSITION_END_OF_DOC 8
108 #define WID_END_NOTICE 9
109 #define WID_BEGIN_NOTICE 10
110 #define WID_ANCHOR_CHARACTER_STYLE 11
111 #define WID_NUM_ON 12
112 #define WID_SEPARATOR_INTERVAL 13
113 #define WID_NUMBER_POSITION 14
114 #define WID_DISTANCE 15
115 #define WID_INTERVAL 16
116 #define WID_SEPARATOR_TEXT 17
117 #define WID_COUNT_EMPTY_LINES 18
118 #define WID_COUNT_LINES_IN_FRAMES 19
119 #define WID_RESTART_AT_EACH_PAGE 20
138 {
u"", 0, css::uno::Type(), 0, 0 }
141 return &aFootnoteSet_Impl;
156 {
u"", 0, css::uno::Type(), 0, 0 }
159 return &aEndnoteSet_Impl;
172 {
u"", 0, css::uno::Type(), 0, 0 }
175 return &aNumberingRulesSet_Impl;
193 {
u"", 0, css::uno::Type(), 0, 0 }
196 return &aLineNumberingSet_Impl;
204 OUString sCharFormat;
206 if (sCharFormat !=
SwResId(STR_POOLCHR_STANDARD))
254 text::HoriOrientation::LEFT,
255 text::HoriOrientation::RIGHT,
257 text::HoriOrientation::CENTER,
265 static_cast<unsigned short>(SvxAdjust::Right),
266 static_cast<unsigned short>(SvxAdjust::Center),
267 static_cast<unsigned short>(SvxAdjust::Left),
274 return "SwXFootnoteProperties";
309 throw uno::RuntimeException();
313 throw beans::UnknownPropertyException(
"Unknown property: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
315 if ( pEntry->
nFlags & PropertyAttribute::READONLY)
316 throw PropertyVetoException(
"Property is read-only: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
324 aFootnoteInfo.SetPrefix(uTmp);
331 aFootnoteInfo.SetSuffix(uTmp);
341 throw lang::IllegalArgumentException();
343 aFootnoteInfo.m_aFormat.SetNumberingType(static_cast<SvxNumType>(nTmp));
351 aFootnoteInfo.m_nFootnoteOffset = nTmp;
360 case FootnoteNumbering::PER_PAGE:
363 case FootnoteNumbering::PER_CHAPTER:
366 case FootnoteNumbering::PER_DOCUMENT:
376 aFootnoteInfo.SetFootnoteTextColl(*pColl);
383 aFootnoteInfo.ChgPageDesc( pDesc );
393 aFootnoteInfo.SetAnchorCharFormat(pFormat);
395 aFootnoteInfo.SetCharFormat(pFormat);
401 bool bVal = *o3tl::doAccess<bool>(aValue);
409 aFootnoteInfo.m_aQuoVadis = uTmp;
416 aFootnoteInfo.m_aErgoSum = uTmp;
430 throw uno::RuntimeException();
434 throw UnknownPropertyException(
"Unknown property: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
460 switch(rFootnoteInfo.
m_eNum)
463 nRet = FootnoteNumbering::PER_PAGE;
466 nRet = FootnoteNumbering::PER_CHAPTER;
469 nRet = FootnoteNumbering::PER_DOCUMENT;
529 const OUString& ,
const uno::Reference< beans::XPropertyChangeListener > & )
531 OSL_FAIL(
"not implemented");
535 const OUString& ,
const uno::Reference< beans::XPropertyChangeListener > & )
537 OSL_FAIL(
"not implemented");
541 const OUString& ,
const uno::Reference< beans::XVetoableChangeListener > & )
543 OSL_FAIL(
"not implemented");
547 const OUString& ,
const uno::Reference< beans::XVetoableChangeListener > & )
549 OSL_FAIL(
"not implemented");
554 return "SwXEndnoteProperties";
592 throw UnknownPropertyException(
"Unknown property: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
594 if ( pEntry->
nFlags & PropertyAttribute::READONLY)
595 throw PropertyVetoException(
"Property is read-only: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
603 aEndInfo.SetPrefix(uTmp);
610 aEndInfo.SetSuffix(uTmp);
617 aEndInfo.m_aFormat.SetNumberingType(static_cast<SvxNumType>(nTmp));
624 aEndInfo.m_nFootnoteOffset = nTmp;
631 aEndInfo.SetFootnoteTextColl(*pColl);
638 aEndInfo.ChgPageDesc( pDesc );
648 aEndInfo.SetAnchorCharFormat(pFormat);
650 aEndInfo.SetCharFormat(pFormat);
666 throw UnknownPropertyException(
"Unknown property: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
732 const OUString& ,
const uno::Reference< beans::XPropertyChangeListener > & )
734 OSL_FAIL(
"not implemented");
738 const uno:: Reference< beans::XPropertyChangeListener > & )
740 OSL_FAIL(
"not implemented");
744 const uno:: Reference< beans::XVetoableChangeListener > & )
746 OSL_FAIL(
"not implemented");
751 OSL_FAIL(
"not implemented");
756 return "SwXLineNumberingProperties";
787 const OUString& rPropertyName,
const Any& aValue)
791 throw uno::RuntimeException();
795 throw UnknownPropertyException(
"Unknown property: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
797 if ( pEntry->
nFlags & PropertyAttribute::READONLY)
798 throw PropertyVetoException(
"Property is read-only: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
804 bool bVal = *o3tl::doAccess<bool>(aValue);
805 aFontMetric.SetPaintLineNumbers(bVal);
812 aFontMetric.SetCharFormat(pFormat);
821 aFontMetric.SetNumType(aNumType);
830 case style::LineNumberPosition::LEFT:
833 case style::LineNumberPosition::RIGHT :
836 case style::LineNumberPosition::INSIDE:
839 case style::LineNumberPosition::OUTSIDE:
852 aFontMetric.SetPosFromLeft( static_cast< sal_uInt16 >(nTmp) );
860 aFontMetric.SetCountBy(nTmp);
867 aFontMetric.SetDivider(uTmp);
875 aFontMetric.SetDividerCountBy(nTmp);
880 bool bVal = *o3tl::doAccess<bool>(aValue);
881 aFontMetric.SetCountBlankLines(bVal);
886 bool bVal = *o3tl::doAccess<bool>(aValue);
887 aFontMetric.SetCountInFlys(bVal);
892 bool bVal = *o3tl::doAccess<bool>(aValue);
893 aFontMetric.SetRestartEachPage(bVal);
905 throw uno::RuntimeException();
909 throw UnknownPropertyException(
"Unknown property: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
941 nRet = style::LineNumberPosition::LEFT;
944 nRet = style::LineNumberPosition::RIGHT ;
947 nRet = style::LineNumberPosition::INSIDE ;
950 nRet = style::LineNumberPosition::OUTSIDE ;
965 aRet <<= static_cast<sal_Int16>(rInfo.
GetCountBy());
988 OSL_FAIL(
"not implemented");
993 OSL_FAIL(
"not implemented");
998 OSL_FAIL(
"not implemented");
1003 OSL_FAIL(
"not implemented");
1024 class theSwXNumberingRulesUnoTunnelId :
public rtl::Static< UnoTunnelIdInit, theSwXNumberingRulesUnoTunnelId > {};
1035 if( isUnoTunnelId<SwXNumberingRules>(rId) )
1037 return sal::static_int_cast< sal_Int64 >(
reinterpret_cast< sal_IntPtr
>(
this) );
1044 return "SwXNumberingRules";
1061 m_pDocShell(nullptr),
1064 m_bOwnNumRuleCreated(true)
1074 m_pDoc = pCharFormat->GetDoc();
1090 m_pDocShell(&rDocSh),
1091 m_pNumRule(nullptr),
1093 m_bOwnNumRuleCreated(false)
1101 m_pDocShell(nullptr),
1102 m_pNumRule(nullptr),
1104 m_bOwnNumRuleCreated(false)
1106 m_pImpl->StartListening(GetPageDescNotifier(&rDoc));
1125 if(nIndex < 0 ||
MAXLEVEL <= nIndex)
1126 throw lang::IndexOutOfBoundsException();
1128 auto rProperties = o3tl::tryAccess<uno::Sequence<beans::PropertyValue>>(
1131 throw lang::IllegalArgumentException();
1135 *rProperties, nIndex);
1141 *rProperties, nIndex);
1144 const size_t nChCount = pFormats->
size();
1153 for(
size_t j = 0; j< nChCount; ++j)
1166 SfxStyleFamily::Char);
1172 aFormat.SetCharFormat( pCharFormat );
1173 aNumRule.
Set(
i, aFormat );
1182 *rProperties, nIndex);
1187 throw uno::RuntimeException();
1198 if(nIndex < 0 ||
MAXLEVEL <= nIndex)
1199 throw lang::IndexOutOfBoundsException();
1219 throw uno::RuntimeException();
1235 STR_POOLCOLL_HEADLINE1,
1236 STR_POOLCOLL_HEADLINE2,
1237 STR_POOLCOLL_HEADLINE3,
1238 STR_POOLCOLL_HEADLINE4,
1239 STR_POOLCOLL_HEADLINE5,
1240 STR_POOLCOLL_HEADLINE6,
1241 STR_POOLCOLL_HEADLINE7,
1242 STR_POOLCOLL_HEADLINE8,
1243 STR_POOLCOLL_HEADLINE9,
1244 STR_POOLCOLL_HEADLINE10
1248 const SwNumRule& rNumRule, sal_Int32 nIndex)
const
1251 OSL_ENSURE( 0 <= nIndex && nIndex <
MAXLEVEL,
"index out of range" );
1253 const SwNumFormat& rFormat = rNumRule.
Get( static_cast<sal_uInt16>(nIndex) );
1256 OUString CharStyleName;
1258 CharStyleName = pCharFormat->
GetName();
1274 for(
size_t i = 0;
i < nCount; ++
i)
1283 if ( nOutLevel == nIndex )
1288 else if( sValue==rTextColl.
GetName() )
1301 if (sh !=
nullptr && sh->HasName()) {
1306 rFormat, CharStyleName,
m_pDocShell ? & aUString :
nullptr, referer);
1311 const SwNumFormat& rFormat, OUString
const& rCharFormatName,
1312 OUString
const*
const pHeadingStyleName, OUString
const & referer)
1314 bool bChapterNum = pHeadingStyleName !=
nullptr;
1317 aPropertyValues.reserve(32);
1330 OUString aUString = rFormat.
GetPrefix();
1368 nINT16 = PositionAndSpaceMode::LABEL_WIDTH_AND_POSITION;
1371 nINT16 = PositionAndSpaceMode::LABEL_ALIGNMENT;
1378 nINT16 = LabelFollow::LISTTAB;
1381 nINT16 = LabelFollow::SPACE;
1385 nINT16 = LabelFollow::NOTHING;
1389 nINT16 = LabelFollow::NEWLINE;
1423 aUString = OUString(&cBullet, 1);
1433 awt::FontDescriptor aDesc;
1445 uno::Reference<awt::XBitmap> xBitmap(pGraphic->
GetXGraphic(), uno::UNO_QUERY);
1460 aPropertyValues.emplace_back(
1467 aUString = *pHeadingStyleName;
1471 return ::comphelper::containerToSequence(aPropertyValues);
1476 const uno::Sequence<beans::PropertyValue>& rProperties, sal_Int32 nIndex)
1479 OSL_ENSURE( 0 <= nIndex && nIndex <
MAXLEVEL,
"index out of range" );
1481 SwNumFormat aFormat(rNumRule.
Get( static_cast<sal_uInt16>(nIndex) ));
1483 OUString sHeadingStyleName;
1484 OUString sParagraphStyleName;
1488 &sHeadingStyleName, &sParagraphStyleName,
1492 if (
m_pDoc && !sParagraphStyleName.isEmpty())
1496 for (
size_t k = 0; k < nCount; ++k)
1499 if (rTextColl.
GetName() == sParagraphStyleName)
1504 if (!sHeadingStyleName.isEmpty())
1509 for (
size_t k = 0; k < nCount; ++k)
1516 rTextColl.
GetName() != sHeadingStyleName)
1520 else if (rTextColl.
GetName() == sHeadingStyleName)
1527 rNumRule.
Set(static_cast<sal_uInt16>(nIndex), aFormat);
1532 OUString & rCharStyleName, OUString *
const pBulletFontName,
1533 OUString *
const pHeadingStyleName,
1534 OUString *
const pParagraphStyleName,
1536 const uno::Sequence<beans::PropertyValue>& rProperties)
1538 bool bWrongArg =
false;
1539 std::unique_ptr<SvxBrushItem> pSetBrush;
1540 std::unique_ptr<Size> pSetSize;
1541 std::unique_ptr<SwFormatVertOrient> pSetVOrient;
1542 bool bCharStyleNameSet =
false;
1544 for (
const beans::PropertyValue& rProp : rProperties)
1549 rProp.Value >>= nValue;
1551 nValue <= text::HoriOrientation::LEFT &&
1554 aFormat.
SetNumAdjust(static_cast<SvxAdjust>(aUnoToSvxAdjust[nValue]));
1562 rProp.Value >>= nSet;
1569 rProp.Value >>= uTmp;
1575 rProp.Value >>= uTmp;
1580 bCharStyleNameSet =
true;
1582 rProp.Value >>= uTmp;
1583 OUString sCharFormatName;
1593 const size_t nChCount = pFormats->
size();
1596 if (!sCharFormatName.isEmpty())
1598 for(
size_t j = 0; j< nChCount; ++j)
1601 if(pTmp->
GetName() == sCharFormatName)
1612 pBase = pPool->
Find(sCharFormatName, SfxStyleFamily::Char);
1614 pBase = &pPool->
Make(sCharFormatName, SfxStyleFamily::Char);
1622 rCharStyleName.clear();
1625 rCharStyleName = sCharFormatName;
1630 rProp.Value >>= nVal;
1636 rProp.Value >>= nValue;
1643 rProp.Value >>= nValue;
1652 rProp.Value >>= nValue;
1660 rProp.Value >>= nValue;
1665 else if ( nValue == 1 )
1677 rProp.Value >>= nValue;
1678 if ( nValue == LabelFollow::LISTTAB )
1682 else if ( nValue == LabelFollow::SPACE )
1686 else if ( nValue == LabelFollow::NOTHING )
1690 else if ( nValue == LabelFollow::NEWLINE )
1702 rProp.Value >>= nValue;
1716 rProp.Value >>= nValue;
1723 rProp.Value >>= nValue;
1730 rProp.Value >>= nSet;
1738 if (pParagraphStyleName)
1741 rProp.Value >>= uTmp;
1742 OUString sStyleName;
1744 *pParagraphStyleName = sStyleName;
1750 if( rProp.Value >>= nSet )
1757 awt::FontDescriptor desc;
1758 if (rProp.Value >>= desc)
1762 if (!desc.Name.isEmpty())
1775 rProp.Value >>= sBulletFontName;
1777 if( !sBulletFontName.isEmpty() && pDoc && (pLclDocShell = pDoc->
GetDocShell()) )
1781 ->GetItem( SID_ATTR_CHAR_FONTLIST ));
1788 else if (pBulletFontName)
1789 *pBulletFontName = sBulletFontName;
1794 rProp.Value >>= aChar;
1795 if (aChar.isEmpty())
1802 sal_Int32 nIndexUtf16 = 0;
1803 sal_UCS4 cBullet = aChar.iterateCodePoints(&nIndexUtf16);
1804 if (aChar.getLength() == nIndexUtf16)
1812 uno::Reference<graphic::XGraphic>
xGraphic;
1813 if (rProp.Value >>= xGraphic)
1824 pSetBrush->SetGraphic(aGraphic);
1831 uno::Reference<awt::XBitmap> xBitmap;
1832 if (rProp.Value >>= xBitmap)
1843 uno::Reference<graphic::XGraphic>
xGraphic(xBitmap, uno::UNO_QUERY);
1845 pSetBrush->SetGraphic(aGraphic);
1853 pSetSize.reset(
new Size);
1855 if (rProp.Value >>= size)
1859 pSetSize->setWidth( size.Width );
1860 pSetSize->setHeight( size.Height );
1878 if (pHeadingStyleName)
1881 rProp.Value >>= uTmp;
1882 OUString sStyleName;
1884 *pHeadingStyleName = sStyleName;
1898 if (rProp.Value >>= aURL)
1911 pSetBrush->SetGraphic(aGraphic);
1919 rProp.Value >>= uTmp;
1925 SAL_WARN(
"sw.uno",
"Unknown/incorrect property " << rProp.Name <<
", failing");
1926 throw uno::RuntimeException(
"Unknown/incorrect property " + rProp.Name);
1929 if(!bWrongArg && (pSetBrush || pSetSize || pSetVOrient))
1931 if(!pSetBrush && aFormat.
GetBrush())
1942 if(!pSetSize->Width() || !pSetSize->Height())
1944 const Graphic* pGraphic = pSetBrush->GetGraphic();
1949 sal_Int16 eOrient = pSetVOrient ?
1954 if ((!bCharStyleNameSet || rCharStyleName.isEmpty())
1961 rCharStyleName = tmp;
1965 throw lang::IllegalArgumentException();
1977 std::unique_ptr<SwNumRule> pDocRule;
1991 if(!
m_pNumRule && !pDocRule && !pCreatedRule)
1996 bool bVal = *o3tl::doAccess<bool>(rValue);
2002 bool bVal = *o3tl::doAccess<bool>(rValue);
2003 pDocRule ? pDocRule->SetContinusNum(bVal) :
2008 throw IllegalArgumentException();
2012 bool bVal = *o3tl::doAccess<bool>(rValue);
2013 pDocRule ? pDocRule->SetAbsSpaces(bVal) :
2018 bool bVal = *o3tl::doAccess<bool>(rValue);
2020 pDocRule ? pDocRule->SetRuleType(eNumRuleType) :
2025 throw IllegalArgumentException();
2028 throw UnknownPropertyException(rPropertyName);
2036 else if(pCreatedRule)
2074 "<SwXNumberingRules::getPropertyValue(..)> - no default list id found. Serious defect." );
2078 throw UnknownPropertyException(rPropertyName);
2083 const OUString& ,
const uno::Reference< XPropertyChangeListener >& )
2088 const OUString& ,
const uno::Reference< XPropertyChangeListener >& )
2093 const OUString& ,
const uno::Reference< XVetoableChangeListener >& )
2098 const OUString& ,
const uno::Reference< XVetoableChangeListener >& )
2124 aExcept.Message =
"readonly";
2130 if(rHint.
GetId() == SfxHintId::Dying)
2141 return "SwXChapterNumbering";
2151 return {
"com.sun.star.text.ChapterNumbering",
"com.sun.star.text.NumberingRules" };
2165 return "SwXTextColumns";
2181 m_bIsAutomaticWidth(true),
2186 m_nSepLineHeightRelative(100),
2187 m_nSepLineVertAlign(
style::VerticalAlignment_MIDDLE),
2188 m_bSepLineIsOn(false),
2195 m_aTextColumns(rFormatCol.GetNumCols()),
2196 m_bIsAutomaticWidth(rFormatCol.IsOrtho()),
2261 throw uno::RuntimeException();
2269 for(sal_Int16
i = 0;
i < nColumns;
i++)
2271 pCols[
i].Width = nWidth;
2272 pCols[
i].LeftMargin =
i == 0 ? 0 : nDist;
2273 pCols[
i].RightMargin =
i == nColumns - 1 ? 0 : nDist;
2275 pCols[nColumns - 1].Width += nDiff;
2287 sal_Int32 nReferenceTemp = std::accumulate(rColumns.begin(), rColumns.end(), sal_Int32(0),
2288 [](
const sal_Int32 nSum,
const TextColumn& rCol) {
return nSum + rCol.Width; });
2304 throw UnknownPropertyException(
"Unknown property: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
2305 if ( pEntry->
nFlags & PropertyAttribute::READONLY)
2306 throw PropertyVetoException(
"Property is read-only: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
2308 switch(pEntry->
nWID)
2315 throw IllegalArgumentException();
2332 throw IllegalArgumentException();
2338 style::VerticalAlignment eAlign;
2339 if(!(aValue >>= eAlign) )
2342 if (! ( aValue >>= nTmp ) )
2343 throw IllegalArgumentException();
2358 throw IllegalArgumentException();
2363 for(sal_Int32
i = 0;
i < nColumns;
i++)
2365 pCols[
i].LeftMargin =
i == 0 ? 0 : nDist;
2366 pCols[
i].RightMargin =
i == nColumns - 1 ? 0 : nDist;
2377 throw UnknownPropertyException(
"Unknown property: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
2380 switch(pEntry->
nWID)
2411 const OUString& ,
const uno::Reference< XPropertyChangeListener >& )
2416 const OUString& ,
const uno::Reference< XPropertyChangeListener >& )
2421 const OUString& ,
const uno::Reference< XVetoableChangeListener >& )
2426 const OUString& ,
const uno::Reference< XVetoableChangeListener >& )
2432 class theSwXTextColumnsUnoTunnelId :
public rtl::Static< UnoTunnelIdInit, theSwXTextColumnsUnoTunnelId > {};
2442 if( isUnoTunnelId<SwXTextColumns>(rId) )
2444 return sal::static_int_cast< sal_Int64 >(
reinterpret_cast< sal_IntPtr
>(
this) );
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
virtual SwCharFormat * GetCharFormatFromPool(sal_uInt16 nId)=0
#define WID_TXTCOL_LINE_IS_ON
SvxNumType GetNumberingType() const
#define UNO_NAME_CHARACTER_FORMAT_NONE
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual OUString SAL_CALL getImplementationName() override
const SfxItemPropertySimpleEntry * getByName(std::u16string_view rName) const
static SwTextFormatColl * lcl_GetParaStyle(SwDoc *pDoc, const uno::Any &aValue)
virtual ~SwXTextColumns() override
#define UNO_NAME_POSITION_AND_SPACE_MODE
const char16_t aInvalidStyle[]
int GetAssignedOutlineStyleLevel() const
Represents the style of a paragraph.
virtual OUString SAL_CALL getImplementationName() override
#define WID_COUNT_LINES_IN_FRAMES
std::vector< SwColumn > SwColumns
virtual void SAL_CALL setColumns(const css::uno::Sequence< css::text::TextColumn > &Columns) override
void SetFootnoteInfo(const SwFootnoteInfo &rInfo)
SwCharFormat * FindCharFormatByName(std::u16string_view rName) const
SwCharFormat * GetCurrentCharFormat(const bool bAnchor) const
const SwLineNumberInfo & GetLineNumberInfo() const
#define WID_TXTCOL_LINE_STYLE
SwDocShell * GetDocShell()
void SetAutoRule(bool bFlag)
const OUString & GetStyleName() const
const OUString & GetSuffix() const
static void FillUIName(const OUString &rName, OUString &rFillName, SwGetPoolIdFromName)
sal_uInt16 GetCountBy() const
#define UNO_NAME_BULLET_ID
#define UNO_NAME_GRAPHIC_BITMAP
#define WID_CHARACTER_STYLE
#define UNO_NAME_FIRST_LINE_OFFSET
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
const OUString & GetName() const
#define WID_SEPARATOR_INTERVAL
#define UNO_NAME_START_AT
#define UNO_NAME_INDENT_AT
const OUString & GetDefaultListId() const
#define UNO_NAME_PARA_STYLE_NAME
#define WID_SEPARATOR_TEXT
#define UNO_NAME_POSITION_END_OF_DOC
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
constexpr OUStringLiteral UNO_NAME_CHAR_STYLE_NAME
void SetContinusNum(bool bFlag)
SwXEndnoteProperties(SwDoc *pDoc)
#define UNO_NAME_NUMBER_POSITION
#define API_COL_LINE_SOLID
const OUString & GetName() const
#define UNO_NAME_BEGIN_NOTICE
const SfxItemPropertySet * m_pPropertySet
OUString GetUniqueNumRuleName(const OUString *pChkStr=nullptr, bool bAutoNum=true) const
#define WID_PARAGRAPH_STYLE
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
#define UNO_NAME_VERT_ORIENT
#define WID_NUMBERING_TYPE
#define UNO_NAME_PARAGRAPH_STYLE_NAME
#define UNO_NAME_LABEL_FOLLOWED_BY
virtual bool SetFormatAttr(const SfxPoolItem &rAttr) override
Override to recognize changes on the and register/unregister the paragragh style at t...
bool IsCountBlankLines() const
bool IsCountInFlys() const
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
Graphic loadFromURL(OUString const &rURL, weld::Window *pParentWin)
css::uno::Reference< css::beans::XPropertySetInfo > const & getPropertySetInfo() const
void SetAbsSpaces(bool bFlag)
css::uno::Reference< css::graphic::XGraphic > GetXGraphic() const
#define UNO_NAME_FIRST_LINE_INDENT
const OUString & GetName() const
SwTextFormatColl * GetFootnoteTextColl() const
#define WID_TXTCOL_LINE_WIDTH
#define WID_TXTCOL_LINE_COLOR
constexpr auto convertTwipToMm100(N n)
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
#define UNO_NAME_IS_CONTINUOUS_NUMBERING
sal_Int32 m_nAutoDistance
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
#define UNO_NAME_START_WITH
#define API_COL_LINE_NONE
bool IsAssignedToListLevelOfOutlineStyle() const
constexpr OUStringLiteral UNO_NAME_NUMBERING_TYPE
bool IsRestartEachPage() const
virtual ~SwXNumberingRules() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
virtual sal_Int64 SAL_CALL getSomething(const css::uno::Sequence< sal_Int8 > &aIdentifier) override
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
IDocumentStylePoolAccess const & getIDocumentStylePoolAccess() const
static const SfxItemPropertySet * GetFootnoteSet()
#define UNO_NAME_GRAPHIC_SIZE
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
bool m_bOwnNumRuleCreated
#define API_COL_LINE_DASHED
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
const SfxItemPropertySet * m_pPropertySet
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual void SAL_CALL replaceByIndex(sal_Int32 Index, const css::uno::Any &Element) override
FontMetric Get(const OUString &rName, const OUString &rStyleName) const
static SW_DLLPUBLIC sal_uInt16 GetPoolIdFromUIName(const OUString &rName, SwGetPoolIdFromName)
virtual void SAL_CALL setColumnCount(sal_Int16 nColumns) override
Impl(SwXNumberingRules &rParent)
constexpr OUStringLiteral UNO_NAME_BULLET_CHAR
const Graphic * GetGraphic(OUString const &referer=OUString()) const
void SetNumberingRuleByIndex(SwNumRule &rNumRule, const css::uno::Sequence< css::beans::PropertyValue > &rProperties, sal_Int32 nIndex)
#define UNO_NAME_IS_ABSOLUTE_MARGINS
virtual void Notify(const SfxHint &) override
bool KnowsPageDesc() const
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
#define UNO_NAME_HEADING_STYLE_NAME
virtual SwPageDesc * GetPageDescFromPool(sal_uInt16 nId, bool bRegardLanguage=true)=0
Return required automatic page style.
#define WID_FOOTNOTE_COUNTING
SwPageDesc * FindPageDesc(const OUString &rName, size_t *pPos=nullptr) const
#define UNO_NAME_NUMBERING_IS_OUTLINE
virtual ~SwXChapterNumbering() override
css::style::VerticalAlignment m_nSepLineVertAlign
bool IsContinusNum() const
virtual sal_Int64 SAL_CALL getSomething(const css::uno::Sequence< sal_Int8 > &aIdentifier) override
static const SfxItemPropertySet * GetNumberingRulesSet()
SwDoc * GetDoc()
returns Doc. But be careful!
virtual void SAL_CALL setName(const OUString &Name_) override
sal_uInt16 GetPosFromLeft() const
SwNumRule * FindNumRulePtr(const OUString &rName) const
static SwCharFormat * lcl_getCharFormat(SwDoc *pDoc, const uno::Any &aValue)
#define UNO_NAME_ANCHOR_CHAR_STYLE_NAME
OUString m_sNewCharStyleNames[MAXLEVEL]
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
constexpr OUStringLiteral UNO_NAME_PARENT_NUMBERING
OUString m_sNewBulletFontNames[MAXLEVEL]
#define WID_TXTCOL_AUTO_DISTANCE
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
#define UNO_NAME_DISTANCE
virtual SfxStyleSheetBase & Make(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits nMask=SfxStyleSearchBits::All)
#define UNO_NAME_BULLET_FONT
sal_uInt16 m_nFootnoteOffset
bool HasCharFormat() const
SwXChapterNumbering(SwDocShell &rDocSh)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
#define UNO_NAME_FOOTNOTE_COUNTING
#define PROPERTY_MAP_TEXT_COLUMS
virtual OUString SAL_CALL getName() override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
#define UNO_NAME_LIST_FORMAT
tools::Long Width() const
virtual SfxStyleSheetBasePool * GetStyleSheetPool() override
For Style PI.
#define UNO_NAME_DEFAULT_LIST_ID
const SfxItemPropertyMap & getPropertyMap() const
void SetRuleType(SwNumRuleType eNew)
constexpr auto convertMm100ToTwip(N n)
void DeleteAssignmentToListLevelOfOutlineStyle()
virtual OUString SAL_CALL getImplementationName() override
css::uno::Type const & get()
constexpr OUStringLiteral UNO_NAME_PREFIX
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual OUString SAL_CALL getImplementationName() override
OUString SwResId(const char *pId)
static css::uno::Sequence< css::beans::PropertyValue > GetPropertiesForNumFormat(const SwNumFormat &rFormat, OUString const &rCharFormatName, OUString const *pHeadingStyleName, OUString const &referer)
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId()
PropertyValueVector_t aPropertyValues
const SfxItemPropertySet * m_pPropSet
static const SfxItemPropertySet * GetLineNumberingSet()
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
#define UNO_NAME_SEPARATOR_INTERVAL
exports com.sun.star. style
#define WID_TXTCOL_LINE_ALIGN
#define UNO_NAME_INTERVAL
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId()
void SetOutlineNumRule(const SwNumRule &rRule)
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
< purpose of derivation from SwClient: character style for displaying the numbers.
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
#define UNO_NAME_END_NOTICE
virtual OUString SAL_CALL getImplementationName() override
void AssignToListLevelOfOutlineStyle(const int nAssignedListLevel)
static void ConvertToFont(const css::awt::FontDescriptor &rDesc, vcl::Font &rFont)
#define UNO_NAME_COUNT_LINES_IN_FRAMES
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
#define WID_TXTCOL_IS_AUTOMATIC
static void ConvertFromFont(const vcl::Font &rFont, css::awt::FontDescriptor &rDesc)
SvtBroadcaster & GetNotifier()
SwXLineNumberingProperties(SwDoc *pDoc)
#define UNO_NAME_SEPARATOR_TEXT
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual sal_Int32 SAL_CALL getCount() override
const OUString & GetPrefix() const
const SwNumFormat & Get(sal_uInt16 i) const
virtual sal_Int32 SAL_CALL getReferenceValue() override
const o3tl::enumarray< SvxAdjust, unsigned short > aSvxToUnoAdjust
virtual css::uno::Sequence< css::text::TextColumn > SAL_CALL getColumns() override
void SetEndNoteInfo(const SwEndNoteInfo &rInfo)
#define API_COL_LINE_DOTTED
SwTextFormatColl * FindTextFormatCollByName(std::u16string_view rName) const
virtual css::uno::Type SAL_CALL getElementType() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
void Set(sal_uInt16 i, const SwNumFormat *)
sal_uInt16 GetWishWidth() const
#define WID_NUMBER_POSITION
#define WID_TXTCOL_LINE_REL_HGT
virtual sal_Bool SAL_CALL hasElements() override
css::beans::PropertyValue makePropertyValue(const OUString &rName, T &&rValue)
const SwCharFormats * GetCharFormats() const
constexpr TypedWhichId< SvxBrushItem > RES_BACKGROUND(105)
SvxNumberFormat::SvxNumPositionAndSpaceMode GetDefaultPositionAndSpaceMode()
SwPageDesc * GetPageDesc(SwDoc &rDoc) const
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
SwXNumberingRules & m_rParent
sal_uInt16 GetRight() const
#define UNO_NAME_LEFT_MARGIN
constexpr OUStringLiteral UNO_NAME_SUFFIX
bool IsPaintLineNumbers() const
const SwTextFormatColls * GetTextFormatColls() const
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
#define MID_VERTORIENT_ORIENT
const SfxItemPropertySet * m_pPropertySet
const o3tl::enumarray< SvxAdjust, unsigned short > aSvxToUnoAdjust USHRT_MAX
static void SetPropertiesToNumFormat(SwNumFormat &aFormat, OUString &rCharStyleName, OUString *const pBulletFontName, OUString *const pHeadingStyleName, OUString *const pParagraphStyleName, SwDoc *const pDoc, css::uno::Sequence< css::beans::PropertyValue > const &rProperties)
#define WID_ANCHOR_CHARACTER_STYLE
css::uno::Sequence< css::text::TextColumn > m_aTextColumns
static void FillProgName(const OUString &rName, OUString &rFillName, SwGetPoolIdFromName)
virtual SwTextFormatColl * GetTextCollFromPool(sal_uInt16 nId, bool bRegardLanguage=true)=0
Return "Auto-Collection with ID.
virtual ~SwXLineNumberingProperties() override
LineNumberPosition GetPos() const
static const SfxItemPropertySet * GetEndnoteSet()
SfxObjectShell * GetPersist() const
SwCharFormat * GetCharFormat(IDocumentStylePoolAccess &rIDSPA) const
tools::Long Height() const
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
SwUnoPropertyMapProvider aSwMapProvider
#define UNO_NAME_IS_AUTOMATIC
sal_uInt16 MakeNumRule(const OUString &rName, const SwNumRule *pCpy=nullptr, bool bBroadcast=false, const SvxNumberFormat::SvxNumPositionAndSpaceMode eDefaultNumberFormatPositionAndSpaceMode=SvxNumberFormat::LABEL_WIDTH_AND_POSITION)
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual sal_Int16 SAL_CALL getColumnCount() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
#define UNO_NAME_BULLET_FONT_NAME
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
#define UNO_NAME_SYMBOL_TEXT_DISTANCE
static SwPageDesc * lcl_GetPageDesc(SwDoc *pDoc, const uno::Any &aValue)
sal_uInt16 GetLeft() const
void SetLineNumberInfo(const SwLineNumberInfo &rInfo)
#define UNO_NAME_BULLET_COLOR
#define UNO_NAME_COUNT_EMPTY_LINES
const unsigned short aUnoToSvxAdjust[]
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
#define SAL_WARN(area, stream)
#define UNO_NAME_GRAPHIC_URL
css::uno::Sequence< css::beans::PropertyValue > GetNumberingRuleByIndex(const SwNumRule &rNumRule, sal_Int32 nIndex) const
const OUString & GetDivider() const
#define WID_POSITION_END_OF_DOC
#define WID_COUNT_EMPTY_LINES
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
bool DelNumRule(const OUString &rName, bool bBroadCast=false)
const FontList * GetFontList() const
static bool isInvalidStyle(std::u16string_view rName)
::sw::UnoImplPtr< Impl > m_pImpl
const SvxNumberType & GetNumType() const
static const char * STR_POOLCOLL_HEADLINE_ARY[]
sal_uInt16 GetDividerCountBy() const
void SetNumberingType(SvxNumType nSet)
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
#define UNO_NAME_BULLET_REL_SIZE
SwXNumberingRules(SwDocShell &rDocSh)
sal_Int8 m_nSepLineHeightRelative
virtual SfxStyleSheetBase * Find(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
#define WID_RESTART_AT_EACH_PAGE
#define UNO_NAME_RESTART_AT_EACH_PAGE
Reference< XGraphic > xGraphic
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
sal_Int32 m_nSepLineWidth
#define UNO_NAME_PAGE_STYLE_NAME
const SwFootnoteInfo & GetFootnoteInfo() const
#define WID_IS_ABS_MARGINS
#define UNO_NAME_LISTTAB_STOP_POSITION
const SwEndNoteInfo & GetEndNoteInfo() const
bool IsOutlineRule() const
#define WID_DEFAULT_LIST_ID
SwNumRule * GetOutlineNumRule() const
virtual ~SwXEndnoteProperties() override
OUString m_sCreatedNumRuleName
Size GetGraphicSizeTwip(const Graphic &rGraphic, vcl::RenderContext *pOutDev)
SfxMedium * GetMedium() const