diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-13 11:23:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-13 17:06:06 +0100 |
commit | 8a5b3971057237b178f7e65437deec766b56f9c4 (patch) | |
tree | a5215a4193ef8ff34b0da5f638de361af26714d9 /sd/inc/stlpool.hxx | |
parent | 05f90a9afe72c0fa7bcd7dbd30c27d4c41a556c4 (diff) |
Resolves: fdo#78151 change style on toggling bullets on master page outliners
"do what I mean"
In master pages prior to this if we toggle bullets on and off the that changes
the *level* of the paragraph. And because the paragraph is effectively a
preview of the equivalent style level, changing the level disconnects it from
the style which is useless for us.
So instead turn the numbering off at the given outline level. In order to
toggle the numbering back split the defaults-setting into a reusable piece that
sets the numbering indent which we can call to toggle numbering back on
Also split out the broadcast style change *and explicit child* broadcast code
into a reusable method, the absence of which left me stumped for well over an
hour as to why my changes only worked on level 1
Change-Id: I311c7f35f1ca7dff1d151c6141ff5faa7f15c5a2
Diffstat (limited to 'sd/inc/stlpool.hxx')
-rw-r--r-- | sd/inc/stlpool.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/inc/stlpool.hxx b/sd/inc/stlpool.hxx index 31cb81438cd0..7af9fe980c5e 100644 --- a/sd/inc/stlpool.hxx +++ b/sd/inc/stlpool.hxx @@ -42,6 +42,7 @@ class SdStyleSheet; class SdDrawDocument; class SdPage; class SfxStyleSheetBase; +class SvxNumberFormat; typedef std::map< const SdPage*, SdStyleFamilyRef > SdStyleFamilyMap; @@ -92,6 +93,7 @@ public: static SdStyleSheetVector CreateChildList( SdStyleSheet* pSheet ); + static void setDefaultOutlineNumberFormatBulletAndIndent(sal_uInt16 i, SvxNumberFormat &rNumberFormat); public: void throwIfDisposed() throw(::com::sun::star::uno::RuntimeException); |