Introduce MSWordStyles::GetSwNumRule()
This is similar to GetSwFmt(), but for list styles. Change-Id: I5c198c786e0c73c83430bd60b91d0ef85c7a49fc
This commit is contained in:
@@ -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
|
||||
//---------------------------------------------------------------------------
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user