mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
made insetlatex.[Ch] not used, white-space changes, some enum changes becuse of ridance of definitions.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@312 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
94a6d7ed67
commit
188833d864
@ -27,8 +27,6 @@ insets_o_SOURCES = \
|
||||
insetinfo.h \
|
||||
insetlabel.C \
|
||||
insetlabel.h \
|
||||
insetlatex.C \
|
||||
insetlatex.h \
|
||||
insetlatexaccent.C \
|
||||
insetlatexaccent.h \
|
||||
insetloa.C \
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* Form definition file generated with fdesign. */
|
||||
|
||||
#include FORMS_H_LOCATION
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
#include "form_url.h"
|
||||
|
||||
FD_form_url *create_form_form_url(void)
|
||||
|
@ -14,7 +14,6 @@
|
||||
#pragma implementation
|
||||
#endif
|
||||
|
||||
#include "definitions.h"
|
||||
#include "inseterror.h"
|
||||
#include "lyxdraw.h"
|
||||
#include "gettext.h"
|
||||
@ -162,7 +161,8 @@ void InsetError::Edit(int, int)
|
||||
strobj = fl_add_box(FL_FRAME_BOX, 10, 10, 380, 180, "");
|
||||
fl_set_object_color(strobj, FL_MCOL, FL_MCOL);
|
||||
fl_set_object_gravity(strobj, FL_NorthWest, FL_SouthEast);
|
||||
obj = fl_add_button(FL_RETURN_BUTTON,140,200,120,30,_("Close"));
|
||||
obj = fl_add_button(FL_RETURN_BUTTON, 140, 200, 120, 30,
|
||||
_("Close"));
|
||||
fl_set_object_callback(obj, C_InsetError_CloseErrorCB, 0);
|
||||
obj->u_vdata = this;
|
||||
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
||||
@ -174,8 +174,8 @@ void InsetError::Edit(int, int)
|
||||
if (form->visible) {
|
||||
fl_raise_form(form);
|
||||
} else {
|
||||
fl_show_form(form,FL_PLACE_MOUSE | FL_FREE_SIZE, FL_FULLBORDER,
|
||||
_("LaTeX Error"));
|
||||
fl_show_form(form, FL_PLACE_MOUSE | FL_FREE_SIZE,
|
||||
FL_FULLBORDER, _("LaTeX Error"));
|
||||
fl_set_form_minsize(form, ow, oh);
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,6 @@
|
||||
#pragma implementation
|
||||
#endif
|
||||
|
||||
#include "definitions.h"
|
||||
#include "insetlatex.h"
|
||||
#include "lyxdraw.h"
|
||||
|
||||
|
@ -78,8 +78,9 @@ InsetQuotes::InsetQuotes(char c, BufferParams const & params)
|
||||
// Decide whether left or right
|
||||
switch(c) {
|
||||
case ' ': case '(': case '{': case '[': case '-': case ':':
|
||||
case LYX_META_HFILL: case LYX_META_PROTECTED_SEPARATOR:
|
||||
case LYX_META_NEWLINE:
|
||||
case LyXParagraph::META_HFILL:
|
||||
case LyXParagraph::META_PROTECTED_SEPARATOR:
|
||||
case LyXParagraph::META_NEWLINE:
|
||||
side = InsetQuotes::LeftQ; // left quote
|
||||
break;
|
||||
default:
|
||||
|
@ -16,7 +16,6 @@
|
||||
#pragma interface
|
||||
#endif
|
||||
|
||||
#include "definitions.h"
|
||||
#include "gettext.h"
|
||||
#include "lyxfont.h"
|
||||
#include "lyxlex.h"
|
||||
@ -28,11 +27,11 @@ struct LaTeXFeatures;
|
||||
/// Insets
|
||||
class Inset {
|
||||
public:
|
||||
/** This is not quite the correct place for this enum, but it is
|
||||
better than definitions.h. I think the correct would be to let
|
||||
each subclass of Inset declare its own enum code. Actually the
|
||||
notion of an Inset::Code should be avoided, but I am not sure how
|
||||
this could be done in a cleaner way. */
|
||||
/** This is not quite the correct place for this enum. I think
|
||||
the correct would be to let each subclass of Inset declare
|
||||
its own enum code. Actually the notion of an Inset::Code
|
||||
should be avoided, but I am not sure how this could be done
|
||||
in a cleaner way. */
|
||||
enum Code {
|
||||
///
|
||||
NO_CODE,
|
||||
@ -91,8 +90,6 @@ public:
|
||||
///
|
||||
virtual void Draw(LyXFont font, LyXScreen & scr,
|
||||
int baseline, float & x) = 0;
|
||||
///
|
||||
//virtual void setBuffer(Buffer const&) {;}
|
||||
/// what appears in the minibuffer when opening
|
||||
virtual char const * EditMessage() {return _("Opened inset");}
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user