diff options
author | Eike Rathke <erack@redhat.com> | 2014-05-23 17:17:18 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-05-23 17:51:03 +0200 |
commit | fcf07f67958672088c346fe0ed5f41130c905721 (patch) | |
tree | 76052170087a2c75d3a6e4bc861a5f09e77eceaf /svx | |
parent | 0f867f052d2672fdb91ee3be9e056ae97a8e642c (diff) |
feedback color indicator for invalid tags
Change-Id: I235e32587779369c139aedd1961b37d8fcad8f53
(cherry picked from commit 04ccece7299ac1e57488e5ef36af122edeec2aae)
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/langbox.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/svx/source/dialog/langbox.cxx b/svx/source/dialog/langbox.cxx index 028e33df15ba..fc6262c0ffa0 100644 --- a/svx/source/dialog/langbox.cxx +++ b/svx/source/dialog/langbox.cxx @@ -704,6 +704,7 @@ sal_Int32 SvxLanguageComboBox::ImplGetSavedValue() const IMPL_LINK( SvxLanguageComboBox, EditModifyHdl, SvxLanguageComboBox*, /*pEd*/ ) { + EditedAndValid eOldState = meEditedAndValid; OUString aStr( vcl::I18nHelper::filterFormattingChars( GetText())); if (aStr.isEmpty()) meEditedAndValid = EDITED_INVALID; @@ -741,6 +742,24 @@ IMPL_LINK( SvxLanguageComboBox, EditModifyHdl, SvxLanguageComboBox*, /*pEd*/ ) } } } + if (eOldState != meEditedAndValid) + { + if (meEditedAndValid == EDITED_INVALID) + { +#if 0 + //! Gives white on white!?! instead of white on reddish. + SetControlBackground( ::Color( RGB_COLORDATA( 0xff, 0x65, 0x63))); + SetControlForeground( ::Color( COL_WHITE)); +#else + SetControlForeground( ::Color( RGB_COLORDATA( 0xf0, 0, 0))); +#endif + } + else + { + SetControlForeground(); + SetControlBackground(); + } + } return 0; } |