// -*- C++ -*-
/**
- * \file Toolbar_pimpl.h
- * Copyright 2002 the LyX Team
+ * \file xforms/Toolbar_pimpl.h
* Copyright 1996-2001 Lars Gullik Bjønnes
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author Lars Gullik Bjønnes, larsbj@lyx.org
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef TOOLBAR_PIMPL_H
#include "frontends/Toolbar.h"
-#ifdef __GNUG__
-#pragma interface
-#endif
class XFormsView;
class Tooltips;
-class Dialogs;
-class Combox;
/** The LyX xforms toolbar class
- */
+ */
struct Toolbar::Pimpl {
public:
- /// called when user selects a layout from combox
- static void layoutSelectedCB(int, void *, Combox *);
-
/// create an empty toolbar
- Pimpl(LyXView * o, Dialogs &, int x, int y);
+ Pimpl(LyXView * o, int x, int y);
~Pimpl();
void openLayoutList();
/// Erase the layout list
void clearLayoutList();
- /// the non-static version of layoutSelectedCB
+ ///
void layoutSelected();
/// an item on the toolbar
toolbarItem();
~toolbarItem();
-
+
toolbarItem & operator=(toolbarItem const & ti);
-
+
/// deallocate icon
void kill_icon();
-
+
/// lyx action number
int action;
/// icon for this item
};
typedef std::vector<toolbarItem> ToolbarList;
-
+
/// The list containing all the buttons
ToolbarList toollist_;
/// owning view
/// tooltips manager
Tooltips * tooltip_;
/// layout combo
- Combox * combox_;
+ FL_OBJECT * combox_;
/// x position of end of toolbar
int xpos;
/// y position of end of toolbar
int ypos;
};
-
+
#endif // TOOLBAR_PIMPL_H