summaryrefslogtreecommitdiff
path: root/formula/inc
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-01-12 14:04:03 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-01-12 14:04:58 -0500
commit19e769e697ef3cc16065a766fc037a26e525f839 (patch)
tree45ee5271a4f42787d9a4980243f168e7354d34a1 /formula/inc
parent81d22042d20aa479df9bc97566b7f3477de41d17 (diff)
Add bits to change appearance of the edit box upon invalid references.
Diffstat (limited to 'formula/inc')
-rw-r--r--formula/inc/formula/funcutl.hxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/formula/inc/formula/funcutl.hxx b/formula/inc/formula/funcutl.hxx
index 110084dd6419..6f7d23d3d3f7 100644
--- a/formula/inc/formula/funcutl.hxx
+++ b/formula/inc/formula/funcutl.hxx
@@ -34,10 +34,9 @@
#include <vcl/edit.hxx>
#include "formula/formuladllapi.h"
+namespace formula {
-namespace formula
-{
- class IControlReferenceHandler;
+class IControlReferenceHandler;
class FORMULA_DLLPUBLIC RefEdit : public Edit
{
@@ -59,6 +58,13 @@ public:
virtual ~RefEdit();
void SetRefString( const XubString& rStr );
+
+ /**
+ * Flag reference valid or invalid, which in turn changes the visual
+ * appearance of the control accordingly.
+ */
+ void SetRefValid(bool bValid);
+
using Edit::SetText;
virtual void SetText( const XubString& rStr );
virtual void Modify();
@@ -100,6 +106,7 @@ public:
};
} // formula
+
#endif // FORMULA_FUNCUTL_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */