+1999-12-01 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * images/sqrt.xpm: change name of the sqrt icon to sqrt_xpm.
+ * src/mathed/math_panel.C (mathed_get_pixmap_from_icon): ditto
+ (create_math_panel): ditto
+
+ * src/lyxfunc.C (getStatus): re-activate the code which gets
+ current font and cursor; add test for export to html.
+
+ * src/lyxrc.C (read): remove unreachable break statements; add a
+ few "using".
+
+ * src/bmtable.C (fl_set_bmtable_data): add a const_cast.
+
1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/mathed/formula.C (LocalDispatch): fix small whitspace bug
/* XPM */
-static char const * sqrt[] = {
+static char const * sqrt_xpm[] = {
/* width height num_colors chars_per_pixel */
" 20 20 3 1",
/* colors */
}
+#ifdef WITH_WARNINGS
#warning Not working as it should.
+#endif
int LyXAction::getApproxFunc(string const & func) const
// This func should perhaps also be able to return a list of all
// actions that has func as a prefix. That should actually be quite
sp->maxi = sp->nx * sp->ny;
sp->bw = bw;
sp->bh = bh;
- sp->bdata = bdata;
+ sp->bdata = const_cast<unsigned char *>(bdata);
}
}
void InsetFig::GetPSSizes()
{
+#ifdef WITH_WARNINGS
#warning rewrite this method to use ifstream
+#endif
/* get %%BoundingBox: from postscript file */
char * p = 0;
tmppar->readSimpleWholeFile(myfile);
// set the end of the string
+#ifdef WITH_WARNINGS
#warning why do we do this?
+#endif
// I don't think this is needed. Actually it might be plain wrong.
tmppar->InsertChar(tmppar->text.size() - 1, '\0');
case LFUN_EXPORT:
if (argument == "dvi" || argument == "postscript")
disable = noLaTeX;
+ if (argument == "html")
+ disable = lyxrc->html_command == "none";
break;
case LFUN_UNDO:
disable = buf->undostack.empty();
disable = lyxrc->chktex_command == "none";
break;
case LFUN_LAYOUT_TABLE:
-#warning change this and font code once it is possible to get to cursor
- // disable = ! buf->text->cursor.par->table;
+ disable = ! buf->text->cursor.par->table;
break;
default:
break;
flag |= LyXFunc::Disabled;
func_status box = LyXFunc::ToggleOff;
- // LyXFont font = buf->text->real_current_font;
- LyXFont font;
+ LyXFont font = buf->text->real_current_font;
switch (action) {
case LFUN_EMPH:
if (font.emph() == LyXFont::ON)
#include <fstream>
#include <iomanip>
+using std::ofstream;
+using std::cout;
+using std::ios;
#include "debug.h"
switch(le) {
case LyXLex::LEX_UNDEF:
lexrc.printError("Unknown tag `$$Token'");
- continue; break;
+ continue;
case LyXLex::LEX_FEOF:
- continue; break;
+ continue;
default: break;
}
switch (static_cast<LyXRCTags>(le)) {
{
switch (d) {
case MM_FRAC: return frac;
- case MM_SQRT: return sqrt;
+ case MM_SQRT: return sqrt_xpm;
case MM_DELIM: return delim;
case MM_MATRIX: return matrix;
case MM_EQU: return equation;
delim_bits);
fl_set_bmtable_maxitems(fd_delim->menu, 23);
- fl_set_pixmap_data(fd_panel->sqrt, const_cast<char**>(sqrt));
+ fl_set_pixmap_data(fd_panel->sqrt, const_cast<char**>(sqrt_xpm));
fl_set_pixmap_data(fd_panel->frac, const_cast<char**>(frac));
fl_set_pixmap_data(fd_panel->delim, const_cast<char**>(delim));
fl_set_pixmap_data(fd_panel->deco, const_cast<char**>(deco));