20 #include <editeng/editids.hrc>
24 #include <strings.hrc>
29 #include <unoprnms.hxx>
35 #include <lineinfo.hxx>
40 #include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
41 #include <com/sun/star/text/FootnoteNumbering.hpp>
42 #include <com/sun/star/text/HoriOrientation.hpp>
43 #include <com/sun/star/style/LineNumberPosition.hpp>
44 #include <com/sun/star/awt/FontDescriptor.hpp>
45 #include <com/sun/star/awt/XBitmap.hpp>
46 #include <com/sun/star/graphic/XGraphic.hpp>
47 #include <com/sun/star/beans/PropertyAttribute.hpp>
51 #include <vcl/font.hxx>
62 #include <com/sun/star/text/PositionAndSpaceMode.hpp>
63 #include <com/sun/star/text/LabelFollow.hpp>
92 #define WID_NUMBERING_TYPE 2
93 #define WID_START_AT 3
94 #define WID_FOOTNOTE_COUNTING 4
95 #define WID_PARAGRAPH_STYLE 5
96 #define WID_PAGE_STYLE 6
97 #define WID_CHARACTER_STYLE 7
98 #define WID_POSITION_END_OF_DOC 8
99 #define WID_END_NOTICE 9
100 #define WID_BEGIN_NOTICE 10
101 #define WID_ANCHOR_CHARACTER_STYLE 11
102 #define WID_NUM_ON 12
103 #define WID_SEPARATOR_INTERVAL 13
104 #define WID_NUMBER_POSITION 14
105 #define WID_DISTANCE 15
106 #define WID_INTERVAL 16
107 #define WID_SEPARATOR_TEXT 17
108 #define WID_COUNT_EMPTY_LINES 18
109 #define WID_COUNT_LINES_IN_FRAMES 19
110 #define WID_RESTART_AT_EACH_PAGE 20
129 {
u"", 0, css::uno::Type(), 0, 0 }
132 return &aFootnoteSet_Impl;
147 {
u"", 0, css::uno::Type(), 0, 0 }
150 return &aEndnoteSet_Impl;
163 {
u"", 0, css::uno::Type(), 0, 0 }
166 return &aNumberingRulesSet_Impl;
184 {
u"", 0, css::uno::Type(), 0, 0 }
187 return &aLineNumberingSet_Impl;
195 OUString sCharFormat;
197 if (sCharFormat !=
SwResId(STR_POOLCHR_STANDARD))
220 if( USHRT_MAX != nId )
245 text::HoriOrientation::LEFT,
246 text::HoriOrientation::RIGHT,
248 text::HoriOrientation::CENTER,
256 static_cast<unsigned short>(SvxAdjust::Right),
257 static_cast<unsigned short>(SvxAdjust::Center),
258 static_cast<unsigned short>(SvxAdjust::Left),
265 return "SwXFootnoteProperties";
300 throw uno::RuntimeException();
304 throw beans::UnknownPropertyException(
"Unknown property: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
306 if ( pEntry->
nFlags & PropertyAttribute::READONLY)
307 throw PropertyVetoException(
"Property is read-only: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
315 aFootnoteInfo.SetPrefix(uTmp);
322 aFootnoteInfo.SetSuffix(uTmp);
332 throw lang::IllegalArgumentException();
334 aFootnoteInfo.m_aFormat.SetNumberingType(static_cast<SvxNumType>(nTmp));
342 aFootnoteInfo.m_nFootnoteOffset = nTmp;
351 case FootnoteNumbering::PER_PAGE:
354 case FootnoteNumbering::PER_CHAPTER:
357 case FootnoteNumbering::PER_DOCUMENT:
367 aFootnoteInfo.SetFootnoteTextColl(*pColl);
374 aFootnoteInfo.ChgPageDesc( pDesc );
384 aFootnoteInfo.SetAnchorCharFormat(pFormat);
386 aFootnoteInfo.SetCharFormat(pFormat);
392 bool bVal = *o3tl::doAccess<bool>(aValue);
400 aFootnoteInfo.m_aQuoVadis = uTmp;
407 aFootnoteInfo.m_aErgoSum = uTmp;
421 throw uno::RuntimeException();
425 throw UnknownPropertyException(
"Unknown property: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
451 switch(rFootnoteInfo.
m_eNum)
454 nRet = FootnoteNumbering::PER_PAGE;
457 nRet = FootnoteNumbering::PER_CHAPTER;
460 nRet = FootnoteNumbering::PER_DOCUMENT;
520 const OUString& ,
const uno::Reference< beans::XPropertyChangeListener > & )
522 OSL_FAIL(
"not implemented");
526 const OUString& ,
const uno::Reference< beans::XPropertyChangeListener > & )
528 OSL_FAIL(
"not implemented");
532 const OUString& ,
const uno::Reference< beans::XVetoableChangeListener > & )
534 OSL_FAIL(
"not implemented");
538 const OUString& ,
const uno::Reference< beans::XVetoableChangeListener > & )
540 OSL_FAIL(
"not implemented");
545 return "SwXEndnoteProperties";
583 throw UnknownPropertyException(
"Unknown property: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
585 if ( pEntry->
nFlags & PropertyAttribute::READONLY)
586 throw PropertyVetoException(
"Property is read-only: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
594 aEndInfo.SetPrefix(uTmp);
601 aEndInfo.SetSuffix(uTmp);
608 aEndInfo.m_aFormat.SetNumberingType(static_cast<SvxNumType>(nTmp));
615 aEndInfo.m_nFootnoteOffset = nTmp;
622 aEndInfo.SetFootnoteTextColl(*pColl);
629 aEndInfo.ChgPageDesc( pDesc );
639 aEndInfo.SetAnchorCharFormat(pFormat);
641 aEndInfo.SetCharFormat(pFormat);
657 throw UnknownPropertyException(
"Unknown property: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
723 const OUString& ,
const uno::Reference< beans::XPropertyChangeListener > & )
725 OSL_FAIL(
"not implemented");
729 const uno:: Reference< beans::XPropertyChangeListener > & )
731 OSL_FAIL(
"not implemented");
735 const uno:: Reference< beans::XVetoableChangeListener > & )
737 OSL_FAIL(
"not implemented");
742 OSL_FAIL(
"not implemented");
747 return "SwXLineNumberingProperties";
778 const OUString& rPropertyName,
const Any& aValue)
782 throw uno::RuntimeException();
786 throw UnknownPropertyException(
"Unknown property: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
788 if ( pEntry->
nFlags & PropertyAttribute::READONLY)
789 throw PropertyVetoException(
"Property is read-only: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
795 bool bVal = *o3tl::doAccess<bool>(aValue);
796 aFontMetric.SetPaintLineNumbers(bVal);
803 aFontMetric.SetCharFormat(pFormat);
812 aFontMetric.SetNumType(aNumType);
821 case style::LineNumberPosition::LEFT:
824 case style::LineNumberPosition::RIGHT :
827 case style::LineNumberPosition::INSIDE:
830 case style::LineNumberPosition::OUTSIDE:
843 aFontMetric.SetPosFromLeft(nTmp);
851 aFontMetric.SetCountBy(nTmp);
858 aFontMetric.SetDivider(uTmp);
866 aFontMetric.SetDividerCountBy(nTmp);
871 bool bVal = *o3tl::doAccess<bool>(aValue);
872 aFontMetric.SetCountBlankLines(bVal);
877 bool bVal = *o3tl::doAccess<bool>(aValue);
878 aFontMetric.SetCountInFlys(bVal);
883 bool bVal = *o3tl::doAccess<bool>(aValue);
884 aFontMetric.SetRestartEachPage(bVal);
896 throw uno::RuntimeException();
900 throw UnknownPropertyException(
"Unknown property: " + rPropertyName, static_cast < cppu::OWeakObject * > (
this ) );
932 nRet = style::LineNumberPosition::LEFT;
935 nRet = style::LineNumberPosition::RIGHT ;
938 nRet = style::LineNumberPosition::INSIDE ;
941 nRet = style::LineNumberPosition::OUTSIDE ;
950 if(USHRT_MAX == nPos)
956 aRet <<= static_cast<sal_Int16>(rInfo.
GetCountBy());
979 OSL_FAIL(
"not implemented");
984 OSL_FAIL(
"not implemented");
989 OSL_FAIL(
"not implemented");
994 OSL_FAIL(
"not implemented");
1020 return theSwXNumberingRulesUnoTunnelId.
getSeq();
1031 return "SwXNumberingRules";
1048 m_pDocShell(nullptr),
1051 m_bOwnNumRuleCreated(true)
1061 m_pDoc = pCharFormat->GetDoc();
1077 m_pDocShell(&rDocSh),
1078 m_pNumRule(nullptr),
1080 m_bOwnNumRuleCreated(
false)
1088 m_pDocShell(nullptr),
1089 m_pNumRule(nullptr),
1091 m_bOwnNumRuleCreated(
false)
1093 m_pImpl->StartListening(GetPageDescNotifier(&rDoc));
1112 if(nIndex < 0 ||
MAXLEVEL <= nIndex)
1113 throw lang::IndexOutOfBoundsException();
1115 auto rProperties = o3tl::tryAccess<uno::Sequence<beans::PropertyValue>>(
1118 throw lang::IllegalArgumentException();
1122 *rProperties, nIndex);
1128 *rProperties, nIndex);
1132 const size_t nChCount = pFormats->
size();
1141 for(
size_t j = 0; j< nChCount; ++j)
1154 SfxStyleFamily::Char);
1160 aFormat.SetCharFormat( pCharFormat );
1161 aNumRule.
Set(
i, aFormat );
1170 *rProperties, nIndex);
1175 throw uno::RuntimeException();
1186 if(nIndex < 0 ||
MAXLEVEL <= nIndex)
1187 throw lang::IndexOutOfBoundsException();
1207 throw uno::RuntimeException();
1223 STR_POOLCOLL_HEADLINE1,
1224 STR_POOLCOLL_HEADLINE2,
1225 STR_POOLCOLL_HEADLINE3,
1226 STR_POOLCOLL_HEADLINE4,
1227 STR_POOLCOLL_HEADLINE5,
1228 STR_POOLCOLL_HEADLINE6,
1229 STR_POOLCOLL_HEADLINE7,
1230 STR_POOLCOLL_HEADLINE8,
1231 STR_POOLCOLL_HEADLINE9,
1232 STR_POOLCOLL_HEADLINE10
1236 const SwNumRule& rNumRule, sal_Int32 nIndex)
const
1239 OSL_ENSURE( 0 <= nIndex && nIndex <
MAXLEVEL,
"index out of range" );
1241 const SwNumFormat& rFormat = rNumRule.
Get( o3tl::narrowing<sal_uInt16>(nIndex) );
1244 OUString CharStyleName;
1246 CharStyleName = pCharFormat->
GetName();
1262 for(
size_t i = 0;
i < nCount; ++
i)
1271 if ( nOutLevel == nIndex )
1276 else if( sValue==rTextColl.
GetName() )
1289 if (sh !=
nullptr && sh->HasName()) {
1294 rFormat, CharStyleName,
m_pDocShell ? & aUString :
nullptr, referer);
1299 const SwNumFormat& rFormat, OUString
const& rCharFormatName,
1300 OUString
const*
const pHeadingStyleName, OUString
const & referer)
1302 bool bChapterNum = pHeadingStyleName !=
nullptr;
1305 aPropertyValues.reserve(32);
1318 OUString aUString = rFormat.
GetPrefix();
1356 nINT16 = PositionAndSpaceMode::LABEL_WIDTH_AND_POSITION;
1359 nINT16 = PositionAndSpaceMode::LABEL_ALIGNMENT;
1366 nINT16 = LabelFollow::LISTTAB;
1369 nINT16 = LabelFollow::SPACE;
1373 nINT16 = LabelFollow::NOTHING;
1377 nINT16 = LabelFollow::NEWLINE;
1411 aUString = OUString(&cBullet, 1);
1415 aUString = pFont ? pFont->GetStyleName() : OUString();
1421 awt::FontDescriptor aDesc;
1433 uno::Reference<awt::XBitmap> xBitmap(pGraphic->
GetXGraphic(), uno::UNO_QUERY);
1448 aPropertyValues.emplace_back(
1455 aUString = *pHeadingStyleName;
1459 return ::comphelper::containerToSequence(aPropertyValues);
1464 const uno::Sequence<beans::PropertyValue>& rProperties, sal_Int32 nIndex)
1467 OSL_ENSURE( 0 <= nIndex && nIndex <
MAXLEVEL,
"index out of range" );
1469 SwNumFormat aFormat(rNumRule.
Get( o3tl::narrowing<sal_uInt16>(nIndex) ));
1471 OUString sHeadingStyleName;
1472 OUString sParagraphStyleName;
1476 &sHeadingStyleName, &sParagraphStyleName,
1480 if (
m_pDoc && !sParagraphStyleName.isEmpty())
1484 for (
size_t k = 0; k < nCount; ++k)
1487 if (rTextColl.
GetName() == sParagraphStyleName)
1492 if (!sHeadingStyleName.isEmpty())
1497 for (
size_t k = 0; k < nCount; ++k)
1504 rTextColl.
GetName() != sHeadingStyleName)
1508 else if (rTextColl.
GetName() == sHeadingStyleName)
1515 rNumRule.
Set(o3tl::narrowing<sal_uInt16>(nIndex), aFormat);
1520 OUString & rCharStyleName, OUString *
const pBulletFontName,
1521 OUString *
const pHeadingStyleName,
1522 OUString *
const pParagraphStyleName,
1525 const uno::Sequence<beans::PropertyValue>& rProperties)
1527 assert(pDoc ==
nullptr || pDocShell ==
nullptr);
1529 bool bWrongArg =
false;
1530 std::unique_ptr<SvxBrushItem> pSetBrush;
1531 std::unique_ptr<Size> pSetSize;
1532 std::unique_ptr<SwFormatVertOrient> pSetVOrient;
1533 bool bCharStyleNameSet =
false;
1535 for (
const beans::PropertyValue& rProp : rProperties)
1540 rProp.Value >>= nValue;
1542 nValue <= text::HoriOrientation::LEFT &&
1543 USHRT_MAX != aUnoToSvxAdjust[nValue])
1545 aFormat.
SetNumAdjust(static_cast<SvxAdjust>(aUnoToSvxAdjust[nValue]));
1553 rProp.Value >>= nSet;
1560 rProp.Value >>= uTmp;
1566 rProp.Value >>= uTmp;
1571 bCharStyleNameSet =
true;
1573 rProp.Value >>= uTmp;
1574 OUString sCharFormatName;
1576 SwDoc *
const pLocalDoc = pDocShell ? pDocShell->
GetDoc() : pDoc;
1585 if (!sCharFormatName.isEmpty())
1593 pBase = pPool->
Find(sCharFormatName, SfxStyleFamily::Char);
1595 pBase = &pPool->
Make(sCharFormatName, SfxStyleFamily::Char);
1603 rCharStyleName.clear();
1606 rCharStyleName = sCharFormatName;
1611 rProp.Value >>= nVal;
1617 rProp.Value >>= nValue;
1624 rProp.Value >>= nValue;
1633 rProp.Value >>= nValue;
1641 rProp.Value >>= nValue;
1646 else if ( nValue == 1 )
1658 rProp.Value >>= nValue;
1659 if ( nValue == LabelFollow::LISTTAB )
1663 else if ( nValue == LabelFollow::SPACE )
1667 else if ( nValue == LabelFollow::NOTHING )
1671 else if ( nValue == LabelFollow::NEWLINE )
1683 rProp.Value >>= nValue;
1697 rProp.Value >>= nValue;
1704 rProp.Value >>= nValue;
1711 rProp.Value >>= nSet;
1719 if (pParagraphStyleName)
1722 rProp.Value >>= uTmp;
1723 OUString sStyleName;
1725 *pParagraphStyleName = sStyleName;
1731 if( rProp.Value >>= nSet )
1738 awt::FontDescriptor desc;
1739 if (rProp.Value >>= desc)
1743 if (!desc.Name.isEmpty())
1756 rProp.Value >>= sBulletFontName;
1758 if (!sBulletFontName.isEmpty() && pLclDocShell)
1762 ->
GetItem( SID_ATTR_CHAR_FONTLIST ));
1769 else if (pBulletFontName)
1770 *pBulletFontName = sBulletFontName;
1775 rProp.Value >>= aChar;
1776 if (aChar.isEmpty())
1783 sal_Int32 nIndexUtf16 = 0;
1784 sal_UCS4 cBullet = aChar.iterateCodePoints(&nIndexUtf16);
1785 if (aChar.getLength() == nIndexUtf16)
1793 uno::Reference<graphic::XGraphic> xGraphic;
1794 if (rProp.Value >>= xGraphic)
1805 pSetBrush->SetGraphic(aGraphic);
1812 uno::Reference<awt::XBitmap> xBitmap;
1813 if (rProp.Value >>= xBitmap)
1824 uno::Reference<graphic::XGraphic> xGraphic(xBitmap, uno::UNO_QUERY);
1826 pSetBrush->SetGraphic(aGraphic);
1834 pSetSize.reset(
new Size);
1836 if (rProp.Value >>= size)
1858 if (pHeadingStyleName)
1861 rProp.Value >>= uTmp;
1862 OUString sStyleName;
1864 *pHeadingStyleName = sStyleName;
1878 if (rProp.Value >>= aURL)
1891 pSetBrush->SetGraphic(aGraphic);
1899 rProp.Value >>= uTmp;
1905 SAL_WARN(
"sw.uno",
"Unknown/incorrect property " << rProp.Name <<
", failing");
1906 throw uno::RuntimeException(
"Unknown/incorrect property " + rProp.Name);
1909 if(!bWrongArg && (pSetBrush || pSetSize || pSetVOrient))
1911 if(!pSetBrush && aFormat.
GetBrush())
1922 if(!pSetSize->Width() || !pSetSize->Height())
1924 const Graphic* pGraphic = pSetBrush->GetGraphic();
1929 sal_Int16 eOrient = pSetVOrient ?
1934 if ((!bCharStyleNameSet || rCharStyleName.isEmpty())
1941 rCharStyleName = tmp;
1945 throw lang::IllegalArgumentException();
1957 std::unique_ptr<SwNumRule> pDocRule;
1971 if(!
m_pNumRule && !pDocRule && !pCreatedRule)
1976 bool bVal = *o3tl::doAccess<bool>(rValue);
1982 bool bVal = *o3tl::doAccess<bool>(rValue);
1983 pDocRule ? pDocRule->SetContinusNum(bVal) :
1988 throw IllegalArgumentException();
1992 bool bVal = *o3tl::doAccess<bool>(rValue);
1993 pDocRule ? pDocRule->SetAbsSpaces(bVal) :
1998 bool bVal = *o3tl::doAccess<bool>(rValue);
2000 pDocRule ? pDocRule->SetRuleType(eNumRuleType) :
2005 throw IllegalArgumentException();
2008 throw UnknownPropertyException(rPropertyName);
2016 else if(pCreatedRule)
2054 "<SwXNumberingRules::getPropertyValue(..)> - no default list id found. Serious defect." );
2058 throw UnknownPropertyException(rPropertyName);
2063 const OUString& ,
const uno::Reference< XPropertyChangeListener >& )
2068 const OUString& ,
const uno::Reference< XPropertyChangeListener >& )
2073 const OUString& ,
const uno::Reference< XVetoableChangeListener >& )
2078 const OUString& ,
const uno::Reference< XVetoableChangeListener >& )
2104 aExcept.Message =
"readonly";
2110 if(rHint.
GetId() == SfxHintId::Dying)
2121 return "SwXChapterNumbering";
2131 return {
"com.sun.star.text.ChapterNumbering",
"com.sun.star.text.NumberingRules" };
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
virtual SwCharFormat * GetCharFormatFromPool(sal_uInt16 nId)=0
SvxNumType GetNumberingType() const
#define UNO_NAME_CHARACTER_FORMAT_NONE
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
static SwTextFormatColl * lcl_GetParaStyle(SwDoc *pDoc, const uno::Any &aValue)
#define UNO_NAME_POSITION_AND_SPACE_MODE
int GetAssignedOutlineStyleLevel() const
const TranslateId STR_POOLCOLL_HEADLINE_ARY[]
Represents the style of a paragraph.
virtual OUString SAL_CALL getImplementationName() override
#define WID_COUNT_LINES_IN_FRAMES
void SetFootnoteInfo(const SwFootnoteInfo &rInfo)
constexpr auto toTwips(N number, Length from)
SwCharFormat * GetCurrentCharFormat(const bool bAnchor) const
const SwLineNumberInfo & GetLineNumberInfo() const
SwDocShell * GetDocShell()
void SetAutoRule(bool bFlag)
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
SwTextFormatColl * FindTextFormatCollByName(const OUString &rName) const
#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
css::beans::PropertyValue makePropertyValue(const OUString &rName, T &&rValue)
#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
constexpr sal_uInt8 MAXLEVEL
void SetContinusNum(bool bFlag)
SwXEndnoteProperties(SwDoc *pDoc)
#define UNO_NAME_NUMBER_POSITION
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
void Validate(const SwDoc &rDoc)
#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)
#define UNO_NAME_FIRST_LINE_INDENT
const OUString & GetName() const
SwTextFormatColl * GetFootnoteTextColl() const
const SfxItemPropertyMapEntry * getByName(std::u16string_view rName) const
constexpr auto convertTwipToMm100(N n)
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
OUString SwResId(TranslateId aId)
constexpr tools::Long Width() const
#define UNO_NAME_IS_CONTINUOUS_NUMBERING
#define UNO_NAME_START_WITH
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
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
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)
Impl(SwXNumberingRules &rParent)
constexpr OUStringLiteral UNO_NAME_BULLET_CHAR
const Graphic * GetGraphic(OUString const &referer=OUString()) const
virtual OUString GetName() const override
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
const css::uno::Sequence< sal_Int8 > & getSeq() const
#define UNO_NAME_NUMBERING_IS_OUTLINE
virtual ~SwXChapterNumbering() override
bool IsContinusNum() const
static const SfxItemPropertySet * GetNumberingRulesSet()
SwDoc * GetDoc()
returns Doc. But be careful!
const SfxPoolItem * GetItem(sal_uInt16 nSlotId) const
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]
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
const o3tl::enumarray< SvxAdjust, unsigned short > aSvxToUnoAdjust
bool HasCharFormat() const
SwXChapterNumbering(SwDocShell &rDocSh)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
#define UNO_NAME_FOOTNOTE_COUNTING
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
virtual SfxStyleSheetBasePool * GetStyleSheetPool() override
For Style PI.
#define UNO_NAME_DEFAULT_LIST_ID
const SfxItemPropertyMap & getPropertyMap() const
void SetRuleType(SwNumRuleType eNew)
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
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
static const SfxItemPropertySet * GetLineNumberingSet()
static void SetPropertiesToNumFormat(SwNumFormat &aFormat, OUString &rCharStyleName, OUString *const pBulletFontName, OUString *const pHeadingStyleName, OUString *const pParagraphStyleName, SwDoc *const pDoc, SwDocShell *const pDocShell, css::uno::Sequence< css::beans::PropertyValue > const &rProperties)
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
#define UNO_NAME_SEPARATOR_INTERVAL
#define UNO_NAME_INTERVAL
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
static void ConvertFromFont(const vcl::Font &rFont, css::awt::FontDescriptor &rDesc)
constexpr OUStringLiteral aInvalidStyle
SvtBroadcaster & GetNotifier()
SwXLineNumberingProperties(SwDoc *pDoc)
#define UNO_NAME_SEPARATOR_TEXT
virtual sal_Int32 SAL_CALL getCount() override
const OUString & GetPrefix() const
const SwNumFormat & Get(sal_uInt16 i) const
SwCharFormat * FindCharFormatByName(const OUString &rName) const
void SetEndNoteInfo(const SwEndNoteInfo &rInfo)
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 *)
#define WID_NUMBER_POSITION
virtual sal_Bool SAL_CALL hasElements() override
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
#define UNO_NAME_LEFT_MARGIN
constexpr OUStringLiteral UNO_NAME_SUFFIX
bool IsPaintLineNumbers() const
const SwTextFormatColls * GetTextFormatColls() const
constexpr tools::Long Height() const
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
#define MID_VERTORIENT_ORIENT
const SfxItemPropertySet * m_pPropertySet
sal_Int64 getSomethingImpl(const css::uno::Sequence< sal_Int8 > &rId, T *pThis, FallbackToGetSomethingOf< Base >={})
#define WID_ANCHOR_CHARACTER_STYLE
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
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
#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
#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)
void SetLineNumberInfo(const SwLineNumberInfo &rInfo)
#define UNO_NAME_BULLET_COLOR
css::uno::Reference< css::graphic::XGraphic > GetXGraphic() const
#define UNO_NAME_COUNT_EMPTY_LINES
const unsigned short aUnoToSvxAdjust[]
#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
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)
virtual SfxStyleSheetBase * Find(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
#define WID_RESTART_AT_EACH_PAGE
#define UNO_NAME_RESTART_AT_EACH_PAGE
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
#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
bool m_bDetectedRangeSegmentation false
virtual ~SwXEndnoteProperties() override
OUString m_sCreatedNumRuleName
Size GetGraphicSizeTwip(const Graphic &rGraphic, vcl::RenderContext *pOutDev)
SfxMedium * GetMedium() const