Kaydet (Commit) d6325980 authored tarafından Miklos Vajna's avatar Miklos Vajna

Introduce MSWordStyles::GetSwNumRule()

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

Change-Id: I5c198c786e0c73c83430bd60b91d0ef85c7a49fc
üst 53163026
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment