diff options
author | jp <jp@openoffice.org> | 2001-08-17 11:35:59 +0000 |
---|---|---|
committer | jp <jp@openoffice.org> | 2001-08-17 11:35:59 +0000 |
commit | 0542a837a42f7c8ec8a3f0551876f8a8e71dbeae (patch) | |
tree | 23d90e3097f1664cc13d7073069fd0e0c838687a /svx/source/dialog/chardlg.cxx | |
parent | c06d0c9714fbf91d0cc040fa42b730c26369d671 (diff) |
Bug #88544#: disable autocolor
Diffstat (limited to 'svx/source/dialog/chardlg.cxx')
-rw-r--r-- | svx/source/dialog/chardlg.cxx | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/svx/source/dialog/chardlg.cxx b/svx/source/dialog/chardlg.cxx index 3825be7c5fdd..d456959c7f2b 100644 --- a/svx/source/dialog/chardlg.cxx +++ b/svx/source/dialog/chardlg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: chardlg.cxx,v $ * - * $Revision: 1.58 $ + * $Revision: 1.59 $ * - * last change: $Author: fs $ $Date: 2001-08-15 14:55:43 $ + * last change: $Author: jp $ $Date: 2001-08-17 12:35:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -85,6 +85,12 @@ #ifndef _SFXVIEWSH_HXX #include <sfx2/viewsh.hxx> #endif +#ifndef _SFX_BINDINGS_HXX +#include <sfx2/bindings.hxx> +#endif +#ifndef _SFXVIEWFRM_HXX +#include <sfx2/viewfrm.hxx> +#endif #ifndef _SV_MSGBOX_HXX #include <vcl/msgbox.hxx> #endif @@ -420,7 +426,14 @@ void SvxCharNamePage::Initialize() m_pColorLB->SetUpdateMode( FALSE ); - m_pColorLB->InsertEntry(Color(COL_AUTO), SVX_RESSTR( RID_SVXSTR_AUTOMATIC )); + { + SfxPoolItem* pDummy; + SfxViewFrame* pFrame = SfxViewFrame::GetFirst( pDocSh ); + if( !pFrame || SFX_ITEM_DEFAULT > pFrame->GetBindings().QueryState( + SID_ATTR_AUTO_COLOR_INVALID, pDummy )) + m_pColorLB->InsertEntry( Color( COL_AUTO ), + SVX_RESSTR( RID_SVXSTR_AUTOMATIC )); + } for ( long i = 0; i < pColorTable->Count(); i++ ) { XColorEntry* pEntry = pColorTable->Get(i); @@ -1438,7 +1451,13 @@ void SvxCharEffectsPage::Initialize() } m_aColorLB.SetUpdateMode( FALSE ); - m_aColorLB.InsertAutomaticEntry(); + { + SfxPoolItem* pDummy; + SfxViewFrame* pFrame = SfxViewFrame::GetFirst( pDocSh ); + if( !pFrame || SFX_ITEM_DEFAULT > pFrame->GetBindings().QueryState( + SID_ATTR_AUTO_COLOR_INVALID, pDummy )) + m_aColorLB.InsertAutomaticEntry(); + } for ( long i = 0; i < pColorTable->Count(); i++ ) { XColorEntry* pEntry = pColorTable->Get(i); |