class BufferView;
class LyXView;
-class LColor_color;
+class Color_color;
struct RGBColor;
namespace frontend {
* The function returns true if successful.
* It returns false on failure and sets r, g, b to 0.
*/
- virtual bool getRgbColor(LColor_color col, RGBColor & rgbcol) = 0;
+ virtual bool getRgbColor(Color_color col, RGBColor & rgbcol) = 0;
- /** Eg, passing LColor::black returns "000000",
- * passing LColor::white returns "ffffff".
+ /** Eg, passing Color::black returns "000000",
+ * passing Color::white returns "ffffff".
*/
- virtual std::string const hexName(LColor_color col) = 0;
+ virtual std::string const hexName(Color_color col) = 0;
/**
* update an altered GUI color
*/
- virtual void updateColor(LColor_color col) = 0;
+ virtual void updateColor(Color_color col) = 0;
/**
* add a callback for socket read notification
* remove a I/O read callback
* @param fd socket descriptor (file/socket/etc)
*/
- template<class T>
- void unregisterSocketCallback(T fd);
+ virtual void unregisterSocketCallback(int fd) = 0;
/// Create the main window with given geometry settings.
LyXView & createView(unsigned int width, unsigned int height,
- int posx, int posy, bool maximize, unsigned int iconSizeXY,
- const std::string & geometryArg);
+ int posx, int posy, int maximized,
+ unsigned int iconSizeXY, const std::string & geometryArg);
///
- LyXView const & currentView() const;
+ LyXView const * currentView() const;
///
- LyXView & currentView();
+ LyXView * currentView();
///
void setCurrentView(LyXView & current_view);