Introduce MSWordStyles::GetSwNumRule()

This is similar to GetSwFmt(), but for list styles.

Change-Id: I5c198c786e0c73c83430bd60b91d0ef85c7a49fc
This commit is contained in:
Miklos Vajna
2013-11-08 14:06:38 +01:00
parent 53163026ef
commit d632598049
2 changed files with 9 additions and 0 deletions

View File

@@ -718,6 +718,13 @@ void MSWordStyles::OutputStylesTable()
m_rExport.bStyDef = false;
}
const SwNumRule* MSWordStyles::GetSwNumRule(sal_uInt16 nId) const
{
std::map<sal_uInt16, const SwNumRule*>::const_iterator it = m_aNumRules.find(nId);
assert(it != m_aNumRules.end());
return it->second;
}
//---------------------------------------------------------------------------
// Fonts
//---------------------------------------------------------------------------

View File

@@ -1559,6 +1559,8 @@ public:
OString GetStyleId(sal_uInt16 nId) const;
const SwFmt* GetSwFmt(sal_uInt16 nId) const { return pFmtA[nId]; }
/// Get numbering rule of the nId-th style
const SwNumRule* GetSwNumRule(sal_uInt16 nId) const;
};
sal_Int16 GetWordFirstLineOffset(const SwNumFmt &rFmt);