diff options
-rw-r--r-- | sw/source/ui/misc/outline.cxx | 3 | ||||
-rw-r--r-- | sw/source/uibase/inc/outline.hxx | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/ui/misc/outline.cxx b/sw/source/ui/misc/outline.cxx index 8aa522fc0d87..f58153e81672 100644 --- a/sw/source/ui/misc/outline.cxx +++ b/sw/source/ui/misc/outline.cxx @@ -307,6 +307,9 @@ IMPL_LINK( SwOutlineTabDialog, MenuSelectHdl, Menu *, pMenu, bool ) { xNumRule.reset(pRules->MakeNumRule(rWrtSh)); xNumRule->SetRuleType( OUTLINE_RULE ); + SfxTabPage* pOutlinePage = GetTabPage(m_nOutlineId); + assert(pOutlinePage); + static_cast<SwOutlineSettingsTabPage*>(pOutlinePage)->SetNumRule(xNumRule.get()); } else *xNumRule = *rWrtSh.GetOutlineNumRule(); diff --git a/sw/source/uibase/inc/outline.hxx b/sw/source/uibase/inc/outline.hxx index b45ca7f26a90..7154dd394cc4 100644 --- a/sw/source/uibase/inc/outline.hxx +++ b/sw/source/uibase/inc/outline.hxx @@ -133,6 +133,11 @@ public: virtual void Reset( const SfxItemSet* rSet ) override; static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rAttrSet); + void SetNumRule(SwNumRule *pRule) + { + pNumRule = pRule; + m_pPreviewWIN->SetNumRule(pNumRule); + } }; #endif |