20#include <editeng/editids.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
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
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
131 return &aFootnoteSet_Impl;
148 return &aEndnoteSet_Impl;
163 return &aNumberingRulesSet_Impl;
183 return &aLineNumberingSet_Impl;
191 OUString sCharFormat;
193 if (sCharFormat !=
SwResId(STR_POOLCHR_STANDARD))
216 if( USHRT_MAX !=
nId )
241 text::HoriOrientation::LEFT,
242 text::HoriOrientation::RIGHT,
244 text::HoriOrientation::CENTER,
251 return "SwXFootnoteProperties";
261 Sequence<OUString> aRet {
"com.sun.star.text.FootnoteSettings" };
286 throw uno::RuntimeException();
290 throw beans::UnknownPropertyException(
"Unknown property: " + rPropertyName,
static_cast < cppu::OWeakObject *
> (
this ) );
292 if ( pEntry->
nFlags & PropertyAttribute::READONLY)
293 throw PropertyVetoException(
"Property is read-only: " + rPropertyName,
static_cast < cppu::OWeakObject *
> (
this ) );
318 throw lang::IllegalArgumentException();
337 case FootnoteNumbering::PER_PAGE:
340 case FootnoteNumbering::PER_CHAPTER:
343 case FootnoteNumbering::PER_DOCUMENT:
378 bool bVal = *o3tl::doAccess<bool>(aValue);
407 throw uno::RuntimeException();
411 throw UnknownPropertyException(
"Unknown property: " + rPropertyName,
static_cast < cppu::OWeakObject *
> (
this ) );
437 switch(rFootnoteInfo.
m_eNum)
440 nRet = FootnoteNumbering::PER_PAGE;
443 nRet = FootnoteNumbering::PER_CHAPTER;
446 nRet = FootnoteNumbering::PER_DOCUMENT;
506 const OUString& ,
const uno::Reference< beans::XPropertyChangeListener > & )
508 OSL_FAIL(
"not implemented");
512 const OUString& ,
const uno::Reference< beans::XPropertyChangeListener > & )
514 OSL_FAIL(
"not implemented");
518 const OUString& ,
const uno::Reference< beans::XVetoableChangeListener > & )
520 OSL_FAIL(
"not implemented");
524 const OUString& ,
const uno::Reference< beans::XVetoableChangeListener > & )
526 OSL_FAIL(
"not implemented");
531 return "SwXEndnoteProperties";
541 Sequence<OUString> aRet {
"com.sun.star.text.FootnoteSettings" };
569 throw UnknownPropertyException(
"Unknown property: " + rPropertyName,
static_cast < cppu::OWeakObject *
> (
this ) );
571 if ( pEntry->
nFlags & PropertyAttribute::READONLY)
572 throw PropertyVetoException(
"Property is read-only: " + rPropertyName,
static_cast < cppu::OWeakObject *
> (
this ) );
643 throw UnknownPropertyException(
"Unknown property: " + rPropertyName,
static_cast < cppu::OWeakObject *
> (
this ) );
709 const OUString& ,
const uno::Reference< beans::XPropertyChangeListener > & )
711 OSL_FAIL(
"not implemented");
715 const uno:: Reference< beans::XPropertyChangeListener > & )
717 OSL_FAIL(
"not implemented");
721 const uno:: Reference< beans::XVetoableChangeListener > & )
723 OSL_FAIL(
"not implemented");
728 OSL_FAIL(
"not implemented");
733 return "SwXLineNumberingProperties";
743 Sequence<OUString> aRet {
"com.sun.star.text.LineNumberingProperties" };
764 const OUString& rPropertyName,
const Any& aValue)
768 throw uno::RuntimeException();
772 throw UnknownPropertyException(
"Unknown property: " + rPropertyName,
static_cast < cppu::OWeakObject *
> (
this ) );
774 if ( pEntry->
nFlags & PropertyAttribute::READONLY)
775 throw PropertyVetoException(
"Property is read-only: " + rPropertyName,
static_cast < cppu::OWeakObject *
> (
this ) );
781 bool bVal = *o3tl::doAccess<bool>(aValue);
807 case style::LineNumberPosition::LEFT:
810 case style::LineNumberPosition::RIGHT :
813 case style::LineNumberPosition::INSIDE:
816 case style::LineNumberPosition::OUTSIDE:
857 bool bVal = *o3tl::doAccess<bool>(aValue);
863 bool bVal = *o3tl::doAccess<bool>(aValue);
869 bool bVal = *o3tl::doAccess<bool>(aValue);
882 throw uno::RuntimeException();
886 throw UnknownPropertyException(
"Unknown property: " + rPropertyName,
static_cast < cppu::OWeakObject *
> (
this ) );
918 nRet = style::LineNumberPosition::LEFT;
921 nRet = style::LineNumberPosition::RIGHT ;
924 nRet = style::LineNumberPosition::INSIDE ;
927 nRet = style::LineNumberPosition::OUTSIDE ;
936 if(USHRT_MAX ==
nPos)
942 aRet <<= static_cast<sal_Int16>(rInfo.
GetCountBy());
965OSL_FAIL(
"not implemented");
970OSL_FAIL(
"not implemented");
975OSL_FAIL(
"not implemented");
980OSL_FAIL(
"not implemented");
1001 return "SwXNumberingRules";
1011 Sequence<OUString> aRet {
"com.sun.star.text.NumberingRules" };
1018 m_pDocShell(nullptr),
1021 m_bOwnNumRuleCreated(true)
1047 m_pDocShell(&rDocSh),
1048 m_pNumRule(nullptr),
1050 m_bOwnNumRuleCreated(false)
1058 m_pDocShell(nullptr),
1059 m_pNumRule(nullptr),
1061 m_bOwnNumRuleCreated(false)
1063 m_pImpl->StartListening(GetPageDescNotifier(&rDoc));
1083 throw lang::IndexOutOfBoundsException();
1085 auto rProperties = o3tl::tryAccess<uno::Sequence<beans::PropertyValue>>(
1088 throw lang::IllegalArgumentException();
1102 const size_t nChCount = pFormats->
size();
1110 for(
size_t j = 0; j< nChCount; ++j)
1123 SfxStyleFamily::Char);
1130 aNumRule.
Set(
i, aFormat );
1144 throw uno::RuntimeException();
1156 throw lang::IndexOutOfBoundsException();
1176 throw uno::RuntimeException();
1192 STR_POOLCOLL_HEADLINE1,
1193 STR_POOLCOLL_HEADLINE2,
1194 STR_POOLCOLL_HEADLINE3,
1195 STR_POOLCOLL_HEADLINE4,
1196 STR_POOLCOLL_HEADLINE5,
1197 STR_POOLCOLL_HEADLINE6,
1198 STR_POOLCOLL_HEADLINE7,
1199 STR_POOLCOLL_HEADLINE8,
1200 STR_POOLCOLL_HEADLINE9,
1201 STR_POOLCOLL_HEADLINE10
1205 const SwNumRule& rNumRule, sal_Int32 nIndex)
const
1213 OUString CharStyleName;
1215 CharStyleName = pCharFormat->
GetName();
1240 if ( nOutLevel ==
nIndex )
1245 else if( sValue==rTextColl.
GetName() )
1258 if (sh !=
nullptr && sh->HasName()) {
1263 rFormat, CharStyleName,
m_pDocShell ? & aUString :
nullptr, referer);
1268 const SwNumFormat& rFormat, OUString
const& rCharFormatName,
1269 OUString
const*
const pHeadingStyleName, OUString
const & referer)
1271 bool bChapterNum = pHeadingStyleName !=
nullptr;
1287 OUString aUString = rFormat.
GetPrefix();
1328 nINT16 = PositionAndSpaceMode::LABEL_WIDTH_AND_POSITION;
1331 nINT16 = PositionAndSpaceMode::LABEL_ALIGNMENT;
1338 nINT16 = LabelFollow::LISTTAB;
1341 nINT16 = LabelFollow::SPACE;
1345 nINT16 = LabelFollow::NOTHING;
1349 nINT16 = LabelFollow::NEWLINE;
1383 aUString = OUString(&cBullet, 1);
1387 aUString = pFont ? pFont->GetStyleName() : OUString();
1393 awt::FontDescriptor aDesc;
1405 uno::Reference<awt::XBitmap> xBitmap(pGraphic->
GetXGraphic(), uno::UNO_QUERY);
1427 aUString = *pHeadingStyleName;
1436 const uno::Sequence<beans::PropertyValue>& rProperties, sal_Int32 nIndex)
1443 OUString sHeadingStyleName;
1444 OUString sParagraphStyleName;
1448 &sHeadingStyleName, &sParagraphStyleName,
1452 if (
m_pDoc && !sParagraphStyleName.isEmpty())
1456 for (
size_t k = 0; k <
nCount; ++k)
1459 if (rTextColl.
GetName() == sParagraphStyleName)
1464 if (!sHeadingStyleName.isEmpty())
1469 for (
size_t k = 0; k <
nCount; ++k)
1476 rTextColl.
GetName() != sHeadingStyleName)
1480 else if (rTextColl.
GetName() == sHeadingStyleName)
1487 rNumRule.
Set(o3tl::narrowing<sal_uInt16>(
nIndex), aFormat);
1492 OUString & rCharStyleName, OUString *
const pBulletFontName,
1493 OUString *
const pHeadingStyleName,
1494 OUString *
const pParagraphStyleName,
1497 const uno::Sequence<beans::PropertyValue>& rProperties)
1499 assert(pDoc ==
nullptr || pDocShell ==
nullptr);
1501 bool bWrongArg =
false;
1502 std::unique_ptr<SvxBrushItem> pSetBrush;
1503 std::unique_ptr<Size> pSetSize;
1504 std::unique_ptr<SwFormatVertOrient> pSetVOrient;
1505 bool bCharStyleNameSet =
false;
1507 for (
const beans::PropertyValue& rProp : rProperties)
1514 case text::HoriOrientation::RIGHT:
1517 case text::HoriOrientation::CENTER:
1520 case text::HoriOrientation::LEFT:
1531 rProp.Value >>= nSet;
1538 rProp.Value >>= uTmp;
1544 rProp.Value >>= uTmp;
1549 bCharStyleNameSet =
true;
1551 rProp.Value >>= uTmp;
1552 OUString sCharFormatName;
1554 SwDoc *
const pLocalDoc = pDocShell ? pDocShell->
GetDoc() : pDoc;
1555 if (sCharFormatName.isEmpty())
1557 rCharStyleName.clear();
1564 if (!sCharFormatName.isEmpty())
1572 pBase = pPool->
Find(sCharFormatName, SfxStyleFamily::Char);
1574 pBase = &pPool->
Make(sCharFormatName, SfxStyleFamily::Char);
1582 rCharStyleName.clear();
1585 rCharStyleName = sCharFormatName;
1590 rProp.Value >>= nVal;
1638 if (
nValue == LabelFollow::LISTTAB )
1642 else if (
nValue == LabelFollow::SPACE )
1646 else if (
nValue == LabelFollow::NOTHING )
1650 else if (
nValue == LabelFollow::NEWLINE )
1690 rProp.Value >>= nSet;
1698 if (pParagraphStyleName)
1701 rProp.Value >>= uTmp;
1702 OUString sStyleName;
1704 *pParagraphStyleName = sStyleName;
1710 if( rProp.Value >>= nSet )
1717 awt::FontDescriptor desc;
1718 if (rProp.Value >>= desc)
1722 if (!desc.Name.isEmpty())
1741 ->
GetItem( SID_ATTR_CHAR_FONTLIST ));
1748 else if (pBulletFontName)
1754 rProp.Value >>= aChar;
1755 if (aChar.isEmpty())
1762 sal_Int32 nIndexUtf16 = 0;
1763 sal_UCS4 cBullet = aChar.iterateCodePoints(&nIndexUtf16);
1764 if (aChar.getLength() == nIndexUtf16)
1772 uno::Reference<graphic::XGraphic> xGraphic;
1773 if (rProp.Value >>= xGraphic)
1784 pSetBrush->SetGraphic(aGraphic);
1791 uno::Reference<awt::XBitmap> xBitmap;
1792 if (rProp.Value >>= xBitmap)
1803 uno::Reference<graphic::XGraphic> xGraphic(xBitmap, uno::UNO_QUERY);
1805 pSetBrush->SetGraphic(aGraphic);
1813 pSetSize.reset(
new Size);
1815 if (rProp.Value >>=
size)
1837 if (pHeadingStyleName)
1840 rProp.Value >>= uTmp;
1841 OUString sStyleName;
1843 *pHeadingStyleName = sStyleName;
1857 if (rProp.Value >>=
aURL)
1870 pSetBrush->SetGraphic(aGraphic);
1878 rProp.Value >>= uTmp;
1883 if (
bool bVal; rProp.Value >>= bVal)
1889 throw beans::UnknownPropertyException(
"Unknown property " + rProp.Name);
1892 if(!bWrongArg && (pSetBrush || pSetSize || pSetVOrient))
1894 if(!pSetBrush && aFormat.
GetBrush())
1905 if(!pSetSize->Width() || !pSetSize->Height())
1907 const Graphic* pGraphic = pSetBrush->GetGraphic();
1912 sal_Int16 eOrient = pSetVOrient ?
1917 if ((!bCharStyleNameSet || rCharStyleName.isEmpty())
1924 rCharStyleName = tmp;
1928 throw lang::IllegalArgumentException();
1940 std::unique_ptr<SwNumRule> pDocRule;
1954 if(!
m_pNumRule && !pDocRule && !pCreatedRule)
1959 bool bVal = *o3tl::doAccess<bool>(rValue);
1965 bool bVal = *o3tl::doAccess<bool>(rValue);
1966 pDocRule ? pDocRule->SetContinusNum(bVal) :
1971 throw IllegalArgumentException();
1975 bool bVal = *o3tl::doAccess<bool>(rValue);
1976 pDocRule ? pDocRule->SetAbsSpaces(bVal) :
1981 bool bVal = *o3tl::doAccess<bool>(rValue);
1983 pDocRule ? pDocRule->SetRuleType(eNumRuleType) :
1988 throw IllegalArgumentException();
1991 throw UnknownPropertyException(rPropertyName);
1999 else if(pCreatedRule)
2037 "<SwXNumberingRules::getPropertyValue(..)> - no default list id found. Serious defect." );
2041 throw UnknownPropertyException(rPropertyName);
2046 const OUString& ,
const uno::Reference< XPropertyChangeListener >& )
2051 const OUString& ,
const uno::Reference< XPropertyChangeListener >& )
2056 const OUString& ,
const uno::Reference< XVetoableChangeListener >& )
2061 const OUString& ,
const uno::Reference< XVetoableChangeListener >& )
2087 aExcept.Message =
"readonly";
2093 if(rHint.
GetId() == SfxHintId::Dying)
2104 return "SwXChapterNumbering";
2114 return {
"com.sun.star.text.ChapterNumbering",
"com.sun.star.text.NumberingRules" };
PropertyValueVector_t aPropertyValues
constexpr auto convertTwipToMm100(N n)
FontMetric Get(const OUString &rName, const OUString &rStyleName) const
css::uno::Reference< css::graphic::XGraphic > GetXGraphic() const
virtual SwPageDesc * GetPageDescFromPool(sal_uInt16 nId, bool bRegardLanguage=true)=0
Return required automatic page style.
virtual SwCharFormat * GetCharFormatFromPool(sal_uInt16 nId)=0
virtual SwTextFormatColl * GetTextCollFromPool(sal_uInt16 nId, bool bRegardLanguage=true)=0
Return "Auto-Collection with ID.
const SfxItemPropertyMapEntry * getByName(std::u16string_view rName) const
const SfxItemPropertyMap & getPropertyMap() const
css::uno::Reference< css::beans::XPropertySetInfo > const & getPropertySetInfo() const
const OUString & GetName() const
SfxMedium * GetMedium() const
const SfxPoolItem * GetItem(sal_uInt16 nSlotId) const
virtual SfxStyleSheetBase & Make(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits nMask=SfxStyleSearchBits::All)
virtual SfxStyleSheetBase * Find(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
constexpr tools::Long Height() const
constexpr tools::Long Width() const
const Graphic * GetGraphic(OUString const &referer=OUString()) const
const FontList * GetFontList() const
void SetNumberingType(SvxNumType nSet)
SvxNumType GetNumberingType() const
static void ConvertFromFont(const vcl::Font &rFont, css::awt::FontDescriptor &rDesc)
static void ConvertToFont(const css::awt::FontDescriptor &rDesc, vcl::Font &rFont)
virtual SfxStyleSheetBasePool * GetStyleSheetPool() override
For Style PI.
SwDoc * GetDoc()
returns Doc. But be careful!
SwPageDesc * FindPageDesc(const OUString &rName, size_t *pPos=nullptr) const
const SwFootnoteInfo & GetFootnoteInfo() const
OUString GetUniqueNumRuleName(const OUString *pChkStr=nullptr, bool bAutoNum=true) const
SwNumRule * FindNumRulePtr(const OUString &rName) const
SwNumRule * GetOutlineNumRule() const
SwCharFormat * FindCharFormatByName(const OUString &rName) const
const SwCharFormats * GetCharFormats() const
const SwLineNumberInfo & GetLineNumberInfo() const
void SetFootnoteInfo(const SwFootnoteInfo &rInfo)
SfxObjectShell * GetPersist() const
const SwTextFormatColls * GetTextFormatColls() const
const SwEndNoteInfo & GetEndNoteInfo() const
IDocumentStylePoolAccess const & getIDocumentStylePoolAccess() const
void SetEndNoteInfo(const SwEndNoteInfo &rInfo)
SwTextFormatColl * FindTextFormatCollByName(const OUString &rName) const
void SetLineNumberInfo(const SwLineNumberInfo &rInfo)
bool DelNumRule(const OUString &rName, bool bBroadCast=false)
SwDocShell * GetDocShell()
sal_uInt16 MakeNumRule(const OUString &rName, const SwNumRule *pCpy=nullptr, bool bBroadcast=false, const SvxNumberFormat::SvxNumPositionAndSpaceMode eDefaultNumberFormatPositionAndSpaceMode=SvxNumberFormat::LABEL_WIDTH_AND_POSITION)
void SetOutlineNumRule(const SwNumRule &rRule)
void SetPrefix(const OUString &rSet)
void SetCharFormat(SwCharFormat *)
SwCharFormat * GetCurrentCharFormat(const bool bAnchor) const
SwPageDesc * GetPageDesc(SwDoc &rDoc) const
const OUString & GetPrefix() const
void ChgPageDesc(SwPageDesc *pDesc)
void SetSuffix(const OUString &rSet)
sal_uInt16 m_nFootnoteOffset
bool KnowsPageDesc() const
const OUString & GetSuffix() const
void SetFootnoteTextColl(SwTextFormatColl &rColl)
SwTextFormatColl * GetFootnoteTextColl() const
void SetAnchorCharFormat(SwCharFormat *)
< purpose of derivation from SwClient: character style for displaying the numbers.
void SetPaintLineNumbers(bool b)
void SetPos(LineNumberPosition eP)
const OUString & GetDivider() const
void SetDividerCountBy(sal_uInt16 n)
sal_uInt16 GetCountBy() const
const SvxNumberType & GetNumType() const
void SetDivider(const OUString &r)
bool IsRestartEachPage() const
void SetCharFormat(SwCharFormat *)
void SetCountBlankLines(bool b)
SwCharFormat * GetCharFormat(IDocumentStylePoolAccess &rIDSPA) const
void SetRestartEachPage(bool b)
bool IsPaintLineNumbers() const
bool HasCharFormat() const
void SetNumType(SvxNumberType aNew)
void SetCountBy(sal_uInt16 n)
bool IsCountBlankLines() const
void SetPosFromLeft(sal_uInt16 n)
sal_uInt16 GetPosFromLeft() const
bool IsCountInFlys() const
sal_uInt16 GetDividerCountBy() const
void SetCountInFlys(bool b)
LineNumberPosition GetPos() const
void SetAutoRule(bool bFlag)
void SetRuleType(SwNumRuleType eNew)
void SetAbsSpaces(bool bFlag)
bool IsOutlineRule() const
bool IsContinusNum() const
const OUString & GetDefaultListId() const
const SwNumFormat & Get(sal_uInt16 i) const
void Set(sal_uInt16 i, const SwNumFormat *)
const OUString & GetName() const
void SetContinusNum(bool bFlag)
void Validate(const SwDoc &rDoc)
const OUString & GetName() const
static SW_DLLPUBLIC sal_uInt16 GetPoolIdFromUIName(const OUString &rName, SwGetPoolIdFromName)
static void FillProgName(const OUString &rName, OUString &rFillName, SwGetPoolIdFromName)
static void FillUIName(const OUString &rName, OUString &rFillName, SwGetPoolIdFromName)
Represents the style of a paragraph.
bool IsAssignedToListLevelOfOutlineStyle() const
void DeleteAssignmentToListLevelOfOutlineStyle()
virtual bool SetFormatAttr(const SfxPoolItem &rAttr) override
Override to recognize changes on the <SwNumRuleItem> and register/unregister the paragragh style at t...
void AssignToListLevelOfOutlineStyle(const int nAssignedListLevel)
int GetAssignedOutlineStyleLevel() const
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
SwXChapterNumbering(SwDocShell &rDocSh)
virtual ~SwXChapterNumbering() override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual ~SwXEndnoteProperties() override
const SfxItemPropertySet * m_pPropertySet
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual OUString SAL_CALL getImplementationName() override
SwXEndnoteProperties(SwDoc *pDoc)
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual ~SwXLineNumberingProperties() override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
SwXLineNumberingProperties(SwDoc *pDoc)
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
const SfxItemPropertySet * m_pPropertySet
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void Notify(const SfxHint &) override
Impl(SwXNumberingRules &rParent)
SwXNumberingRules & m_rParent
bool m_bOwnNumRuleCreated
virtual OUString SAL_CALL getImplementationName() override
virtual OUString SAL_CALL getName() override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual ~SwXNumberingRules() override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual sal_Bool SAL_CALL hasElements() override
virtual css::uno::Type SAL_CALL getElementType() override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
const SfxItemPropertySet * m_pPropertySet
void SetNumberingRuleByIndex(SwNumRule &rNumRule, const css::uno::Sequence< css::beans::PropertyValue > &rProperties, sal_Int32 nIndex)
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL setName(const OUString &Name_) override
css::uno::Sequence< css::beans::PropertyValue > GetNumberingRuleByIndex(const SwNumRule &rNumRule, sal_Int32 nIndex) const
static bool isInvalidStyle(std::u16string_view rName)
OUString m_sNewBulletFontNames[MAXLEVEL]
static css::uno::Sequence< css::beans::PropertyValue > GetPropertiesForNumFormat(const SwNumFormat &rFormat, OUString const &rCharFormatName, OUString const *pHeadingStyleName, OUString const &referer)
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_Int32 SAL_CALL getCount() override
OUString m_sNewCharStyleNames[MAXLEVEL]
::sw::UnoImplPtr< Impl > m_pImpl
OUString m_sCreatedNumRuleName
virtual void SAL_CALL replaceByIndex(sal_Int32 Index, const css::uno::Any &Element) override
SwXNumberingRules(SwDocShell &rDocSh)
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
css::uno::Type const & get()
constexpr TypedWhichId< SvxBrushItem > RES_BACKGROUND(111)
css::beans::PropertyValue makePropertyValue(const OUString &rName, T &&rValue)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
SvxNumberFormat::SvxNumPositionAndSpaceMode GetDefaultPositionAndSpaceMode()
constexpr auto toTwips(N number, Length from)
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
Graphic loadFromURL(OUString const &rURL, weld::Window *pParentWin)
@ RES_POOLPAGE_STANDARD
Standard page.
@ RES_POOLCHR_BULLET_LEVEL
Bullets.
OUString SwResId(TranslateId aId)
Size GetGraphicSizeTwip(const Graphic &rGraphic, vcl::RenderContext *pOutDev)
constexpr sal_uInt8 MAXLEVEL
#define WID_DEFAULT_LIST_ID
#define WID_IS_ABS_MARGINS
#define MID_VERTORIENT_ORIENT
constexpr OUStringLiteral UNO_NAME_BULLET_ID
constexpr OUStringLiteral UNO_NAME_POSITION_AND_SPACE_MODE
constexpr OUStringLiteral UNO_NAME_INDENT_AT
constexpr OUStringLiteral UNO_NAME_HEADING_STYLE_NAME
constexpr OUStringLiteral UNO_NAME_BULLET_REL_SIZE
constexpr OUStringLiteral UNO_NAME_INTERVAL
constexpr OUStringLiteral UNO_NAME_COUNT_LINES_IN_FRAMES
constexpr OUStringLiteral UNO_NAME_IS_ABSOLUTE_MARGINS
constexpr OUStringLiteral UNO_NAME_NUMBER_POSITION
constexpr OUStringLiteral UNO_NAME_IS_ON
constexpr OUStringLiteral UNO_NAME_FOOTNOTE_COUNTING
constexpr OUStringLiteral UNO_NAME_LIST_FORMAT
constexpr OUStringLiteral UNO_NAME_LEFT_MARGIN
constexpr OUStringLiteral UNO_NAME_NUMBERING_IS_OUTLINE
constexpr OUStringLiteral UNO_NAME_SEPARATOR_TEXT
constexpr OUStringLiteral UNO_NAME_POSITION_END_OF_DOC
constexpr OUStringLiteral UNO_NAME_COUNT_EMPTY_LINES
constexpr OUStringLiteral UNO_NAME_VERT_ORIENT
constexpr OUStringLiteral UNO_NAME_BULLET_FONT_NAME
constexpr OUStringLiteral UNO_NAME_IS_AUTOMATIC
constexpr OUStringLiteral UNO_NAME_FIRST_LINE_INDENT
constexpr OUStringLiteral UNO_NAME_LEVEL_IS_LEGAL
constexpr OUStringLiteral UNO_NAME_NAME
constexpr OUStringLiteral UNO_NAME_PARA_STYLE_NAME
constexpr OUStringLiteral UNO_NAME_GRAPHIC_BITMAP
constexpr OUStringLiteral UNO_NAME_SYMBOL_TEXT_DISTANCE
constexpr OUStringLiteral UNO_NAME_BULLET_COLOR
constexpr OUStringLiteral UNO_NAME_BULLET_FONT
constexpr OUStringLiteral UNO_NAME_DISTANCE
constexpr OUStringLiteral UNO_NAME_FIRST_LINE_OFFSET
constexpr OUStringLiteral UNO_NAME_PAGE_STYLE_NAME
constexpr OUStringLiteral UNO_NAME_LABEL_FOLLOWED_BY
constexpr OUStringLiteral UNO_NAME_ANCHOR_CHAR_STYLE_NAME
constexpr OUStringLiteral UNO_NAME_GRAPHIC_URL
constexpr OUStringLiteral UNO_NAME_RESTART_AT_EACH_PAGE
constexpr OUStringLiteral UNO_NAME_GRAPHIC_SIZE
constexpr OUStringLiteral UNO_NAME_BEGIN_NOTICE
constexpr OUStringLiteral UNO_NAME_PARAGRAPH_STYLE_NAME
constexpr OUStringLiteral UNO_NAME_DEFAULT_LIST_ID
constexpr OUStringLiteral UNO_NAME_START_AT
constexpr OUStringLiteral UNO_NAME_GRAPHIC
constexpr OUStringLiteral UNO_NAME_LISTTAB_STOP_POSITION
constexpr OUStringLiteral UNO_NAME_END_NOTICE
constexpr OUStringLiteral UNO_NAME_IS_CONTINUOUS_NUMBERING
constexpr OUStringLiteral UNO_NAME_SEPARATOR_INTERVAL
constexpr OUStringLiteral UNO_NAME_ADJUST
constexpr OUStringLiteral UNO_NAME_START_WITH
static SwTextFormatColl * lcl_GetParaStyle(SwDoc *pDoc, const uno::Any &aValue)
#define WID_SEPARATOR_TEXT
static const SfxItemPropertySet * GetLineNumberingSet()
#define WID_NUMBERING_TYPE
#define WID_CHARACTER_STYLE
#define WID_RESTART_AT_EACH_PAGE
const TranslateId STR_POOLCOLL_HEADLINE_ARY[]
static const SfxItemPropertySet * GetNumberingRulesSet()
#define WID_FOOTNOTE_COUNTING
static SwCharFormat * lcl_getCharFormat(SwDoc *pDoc, const uno::Any &aValue)
#define WID_POSITION_END_OF_DOC
#define WID_NUMBER_POSITION
#define WID_ANCHOR_CHARACTER_STYLE
#define WID_COUNT_LINES_IN_FRAMES
static const SfxItemPropertySet * GetEndnoteSet()
static const SfxItemPropertySet * GetFootnoteSet()
const o3tl::enumarray< SvxAdjust, sal_Int16 > aSvxToUnoAdjust
#define WID_PARAGRAPH_STYLE
#define WID_SEPARATOR_INTERVAL
#define WID_COUNT_EMPTY_LINES
static SwPageDesc * lcl_GetPageDesc(SwDoc *pDoc, const uno::Any &aValue)
constexpr OUStringLiteral aInvalidStyle
constexpr OUStringLiteral UNO_NAME_NUMBERING_TYPE
constexpr OUStringLiteral UNO_NAME_SUFFIX
constexpr OUStringLiteral UNO_NAME_CHAR_STYLE_NAME
constexpr OUStringLiteral UNO_NAME_PARENT_NUMBERING
constexpr OUStringLiteral UNO_NAME_BULLET_CHAR
constexpr OUStringLiteral UNO_NAME_PREFIX