#ifndef FUNC_STATUS_H
#define FUNC_STATUS_H
-#include <string>
+#include "support/docstring.h"
+
+
+namespace lyx {
/// The status of a function.
unsigned int v_;
- std::string message_;
+ docstring message_;
public:
///
///
void clear();
///
- void operator|=(FuncStatus const & f);
- ///
- void unknown(bool b);
+ void setUnknown(bool b);
///
bool unknown() const;
///
- void enabled(bool b);
+ void setEnabled(bool b);
/// tells whether it can be invoked (otherwise it will be grayed-out).
bool enabled() const;
void setOnOff(bool b);
/// tells whether the menu item should have a check mark
/// (or the toolbar icon should be pushed).
- bool onoff(bool b) const;
+ bool onOff(bool b) const;
///
- void message(std::string const & m);
+ void message(docstring const & m);
///
- std::string const & message() const;
+ docstring const & message() const;
};
+
+} // namespace lyx
+
#endif