diff options
author | Samuel Mehrbrodt <s.mehrbrodt@gmail.com> | 2012-12-05 20:48:43 +0100 |
---|---|---|
committer | Bosdonnat Cedric <cedric.bosdonnat@free.fr> | 2012-12-06 09:36:21 +0000 |
commit | b22881c8166708d6fd42fbadad47ff880ba19ed4 (patch) | |
tree | 536163050d16c11f26567f6426b60bdd6199b487 /svx | |
parent | rm intermediate files that are input of helpindexer and should not be packaged (diff) | |
download | core-b22881c8166708d6fd42fbadad47ff880ba19ed4.tar.gz core-b22881c8166708d6fd42fbadad47ff880ba19ed4.zip |
Modify the default Style list in Writer, give them a custom order.
Asking on UX-Advise, there were no negative voices for this change:
http://nabble.documentfoundation.org/Libreoffice-ux-advise-Default-Styles-in-Writer-td4020441.html
Change-Id: I780eaecc29c88493f09194399dfc00be1484c549
Reviewed-on: https://gerrit.libreoffice.org/1248
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index fab046635950..05f2b0891907 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -1681,11 +1681,13 @@ struct SvxStyleToolBoxControl::Impl xParaStyles; static const sal_Char* aWriterStyles[] = { - "Standard", + "Text body", + "Quotations", + "Title", + "Subtitle", "Heading 1", "Heading 2", - "Heading 3", - "Text body" + "Heading 3" }; for( sal_uInt32 nStyle = 0; nStyle < sizeof( aWriterStyles ) / sizeof( sal_Char*); ++nStyle ) { @@ -1946,6 +1948,11 @@ void SvxStyleToolBoxControl::FillStyleBox() if( pImpl->bSpecModeWriter || pImpl->bSpecModeCalc ) { + // disable sort to preserve special order + WinBits nWinBits = pBox->GetStyle(); + nWinBits &= ~WB_SORT; + pBox->SetStyle( nWinBits ); + // insert default styles sal_uInt16 _i; sal_uInt32 nCnt = pImpl->aDefaultStyles.size(); @@ -1956,11 +1963,6 @@ void SvxStyleToolBoxControl::FillStyleBox() ++nPos; } - // disable sort to preserve special order - WinBits nWinBits = pBox->GetStyle(); - nWinBits &= ~WB_SORT; - pBox->SetStyle( nWinBits ); - pBox->InsertEntry( pImpl->aClearForm, 0 ); pBox->SetSeparatorPos( 0 ); |