diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-01-12 14:04:03 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-01-12 14:04:58 -0500 |
commit | 19e769e697ef3cc16065a766fc037a26e525f839 (patch) | |
tree | 45ee5271a4f42787d9a4980243f168e7354d34a1 /formula/source | |
parent | 81d22042d20aa479df9bc97566b7f3477de41d17 (diff) |
Add bits to change appearance of the edit box upon invalid references.
Diffstat (limited to 'formula/source')
-rw-r--r-- | formula/source/ui/dlg/funcutl.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/formula/source/ui/dlg/funcutl.cxx b/formula/source/ui/dlg/funcutl.cxx index 527f9f4d9ef1..52c8d59c894b 100644 --- a/formula/source/ui/dlg/funcutl.cxx +++ b/formula/source/ui/dlg/funcutl.cxx @@ -954,6 +954,20 @@ void RefEdit::SetRefString( const XubString& rStr ) Edit::SetText( rStr ); } +void RefEdit::SetRefValid(bool bValid) +{ + if (bValid) + { + SetControlForeground(); + SetControlBackground(); + } + else + { + SetControlForeground(COL_WHITE); + SetControlBackground(0xff6563); + } +} + void RefEdit::SetText( const XubString& rStr ) { Edit::SetText( rStr ); |