Kaydet (Commit) 9f030d08 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

use Families instead of the generic 'Container'

Change-Id: I009002621a5481b91e14a215237278d56d742579
üst 2056e312
...@@ -66,7 +66,7 @@ class SwXStyleFamilies : public cppu::WeakImplHelper ...@@ -66,7 +66,7 @@ class SwXStyleFamilies : public cppu::WeakImplHelper
{ {
SwDocShell* m_pDocShell; SwDocShell* m_pDocShell;
std::map<SfxStyleFamily, css::uno::Reference<css::container::XNameContainer>> m_vContainers; std::map<SfxStyleFamily, css::uno::Reference<css::container::XNameContainer>> m_vFamilies;
protected: protected:
virtual ~SwXStyleFamilies(); virtual ~SwXStyleFamilies();
public: public:
......
...@@ -303,10 +303,10 @@ uno::Any SwXStyleFamilies::getByIndex(sal_Int32 nIndex) ...@@ -303,10 +303,10 @@ uno::Any SwXStyleFamilies::getByIndex(sal_Int32 nIndex)
throw uno::RuntimeException(); throw uno::RuntimeException();
auto eFamily = our_vStyleFamilyEntries[nIndex].m_eFamily; auto eFamily = our_vStyleFamilyEntries[nIndex].m_eFamily;
assert(eFamily != SFX_STYLE_FAMILY_ALL); assert(eFamily != SFX_STYLE_FAMILY_ALL);
auto& rxContainer = m_vContainers[eFamily]; auto& rxFamily = m_vFamilies[eFamily];
if(!rxContainer.is()) if(!rxFamily.is())
rxContainer = new XStyleFamily(m_pDocShell, eFamily); rxFamily = new XStyleFamily(m_pDocShell, eFamily);
return uno::makeAny(rxContainer); return uno::makeAny(rxFamily);
} }
uno::Type SwXStyleFamilies::getElementType() uno::Type SwXStyleFamilies::getElementType()
......
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