diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-11-30 11:51:46 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-11-30 18:07:12 +0100 |
commit | 715d79bcc59d68c77dc84a1038998dd873df92e9 (patch) | |
tree | ea5d16b5cf2f62a3c252d6b559bc6f36ff1692d3 /sfx2 | |
parent | 2fd9c2bf9af0c50dae3af3dbe5e22965ccdb4ae7 (diff) |
Styles & Formatting: added SFXSTYLEBIT_ALL_VISIBLE and show hidden styles
Change-Id: Ie74ec3c15ba270afd0a6864bd5824a5bc0e3ea8b
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index 25ea1ba1ff33..cb19f5017f1d 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -1064,7 +1064,7 @@ void SfxCommonTemplateDialog_Impl::SelectStyle(const String &rStr) if ( !pItem ) return; const SfxStyleFamily eFam = pItem->GetFamily(); - SfxStyleSheetBase* pStyle = pStyleSheetPool->Find( rStr, eFam, SFXSTYLEBIT_ALL | SFXSTYLEBIT_HIDDEN ); + SfxStyleSheetBase* pStyle = pStyleSheetPool->Find( rStr, eFam, SFXSTYLEBIT_ALL ); if( pStyle ) { bool bReadWrite = !(pStyle->GetMask() & SFXSTYLEBIT_READONLY); @@ -1170,7 +1170,7 @@ void SfxCommonTemplateDialog_Impl::FillTreeBox() if(pStyleSheetPool && nActFamily != 0xffff) { const SfxStyleFamilyItem *pItem = GetFamilyItem_Impl(); - pStyleSheetPool->SetSearchMask(pItem->GetFamily(), SFXSTYLEBIT_ALL); + pStyleSheetPool->SetSearchMask(pItem->GetFamily(), SFXSTYLEBIT_ALL_VISIBLE); StyleTreeArr_Impl aArr; SfxStyleSheetBase *pStyle = pStyleSheetPool->First(); if(pStyle && pStyle->HasParentSupport() && bTreeDrag ) @@ -1589,7 +1589,7 @@ void SfxCommonTemplateDialog_Impl::Notify(SfxBroadcaster& /*rBC*/, const SfxHint const SfxStyleFamily eFam = pItem->GetFamily(); SfxStyleSheetBase *pStyle = pStyleSheetPool->Find( - aStr, eFam, SFXSTYLEBIT_ALL | SFXSTYLEBIT_HIDDEN ); + aStr, eFam, SFXSTYLEBIT_ALL ); if( pStyle ) { bool bReadWrite = !(pStyle->GetMask() & SFXSTYLEBIT_READONLY); @@ -2090,7 +2090,7 @@ void SfxCommonTemplateDialog_Impl::EnableDelete() if(!nFilter) // automatic nFilter = nAppFilter; const SfxStyleSheetBase *pStyle = - pStyleSheetPool->Find(aTemplName,eFam, pTreeBox? SFXSTYLEBIT_ALL | SFXSTYLEBIT_HIDDEN : nFilter); + pStyleSheetPool->Find(aTemplName,eFam, pTreeBox? SFXSTYLEBIT_ALL : nFilter); OSL_ENSURE(pStyle, "Style ot found"); if(pStyle && pStyle->IsUserDefined()) |