84 SfxMedium aStrm( sNm, StreamMode::STD_READ );
162 size_t const nIndex,
SwNumFormat const*& rpNumFormat, OUString
const*& rpName)
const
169 size_t const nIndex,
SwNumFormat const& rNumFormat, OUString
const& rName)
178 : m_aFormat( rFormat ), m_nCharPoolId( USHRT_MAX )
194 m_Items.push_back(std::unique_ptr<SfxPoolItem>(pCurr->
Clone()));
204 m_aFormat( rFormat.m_aFormat ),
205 m_sCharFormatName( rFormat.m_sCharFormatName ),
206 m_nCharPoolId( rFormat.m_nCharPoolId )
208 for (
size_t n = rFormat.
m_Items.size();
n; )
210 m_Items.push_back(std::unique_ptr<SfxPoolItem>(rFormat.
m_Items[ --
n ]->Clone()));
221 if( !m_sCharFormatName.isEmpty() )
225 for( sal_uInt16
i = 1;
i < nArrLen; ++
i )
228 if (pFormat->
GetName()==m_sCharFormatName)
244 if( !pFormat->HasWriterListeners() )
246 for (
size_t n = m_Items.size();
n; )
253 const_cast<SwNumFormat&
>(m_aFormat).SetCharFormat(pFormat);
256 const_cast<SwNumFormat&
>(m_aFormat).SetCharFormat(
nullptr);
const SfxPoolItem * GetCurItem() const
const SfxPoolItem * NextItem()
SvStream * GetOutStream()
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const=0
bool SearchFile(OUString &rIniFile, Paths ePath=Paths::UserConfig)
const OUString & GetUserConfigPath() const
void CreateEmptyNumRule(sal_uInt16 nIdx)
void ApplyNumRules(const SwNumRulesWithName &rCopy, sal_uInt16 nIdx)
std::unique_ptr< SwNumRulesWithName > m_pNumRules[MAX_NUM_RULES]
SwCharFormat * GetCharFormatFromPool(sal_uInt16 nId)
SwCharFormat * MakeCharFormat(const OUString &rName)
sal_uInt16 GetCharFormatCount() const
CHAR.
SwCharFormat & GetCharFormat(sal_uInt16 nFormat) const
void SetAutoRule(bool bFlag)
const SwNumFormat * GetNumFormat(sal_uInt16 i) const
void Set(sal_uInt16 i, const SwNumFormat *)
void Reset(const OUString &rName)
void ResetNumRule(SwWrtShell &rSh, SwNumRule &) const
void GetNumFormat(size_t, SwNumFormat const *&, OUString const *&) const
std::unique_ptr< SwNumFormatGlobal > m_aFormats[MAXLEVEL]
SwNumRulesWithName()=default
SwNumRulesWithName & operator=(const SwNumRulesWithName &)
void SetNumFormat(size_t, SwNumFormat const &, OUString const &)
Used by the UI to modify the document model.
void ExportStoredChapterNumberingRules(SwChapterNumRules &rRules, SvStream &rStream, OUString const &rFileName)
void ImportStoredChapterNumberingRules(SwChapterNumRules &rRules, SvStream &rStream, OUString const &rFileName)
bool IsPoolUserFormat(sal_uInt16 nId)
constexpr sal_uInt8 MAXLEVEL
constexpr OUStringLiteral CHAPTER_FILENAME