Michael's latest minipage cleanup patch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8282 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2003-12-29 13:55:45 +00:00
parent e113eaeb70
commit 038032fefd
11 changed files with 31 additions and 36 deletions

View File

@ -1,3 +1,14 @@
2003-12-28 Michael Schmitt <michael.schmitt@teststep.org>
* LaTeXFeatures.C:
* lyx_sty.[Ch]: remove minipageindent_def
* LyXAction.C:
* factory.C:
* lfuns.h:
* lyxfunc.C:
* text3.C: remove LFUN_INSET_MINIPAGE
2003-12-28 Angus Leeming <leeming@lyx.org> 2003-12-28 Angus Leeming <leeming@lyx.org>
* text3.C (dispatch): output useful info on receipt of LFUN_GETLAYOUT. * text3.C (dispatch): output useful info on receipt of LFUN_GETLAYOUT.

View File

@ -357,8 +357,6 @@ string const LaTeXFeatures::getMacros() const
macros << mathcircumflex_def << '\n'; macros << mathcircumflex_def << '\n';
// other // other
if (isRequired("NeedLyXMinipageIndent"))
macros << minipageindent_def;
if (isRequired("ParagraphLeftIndent")) if (isRequired("ParagraphLeftIndent"))
macros << paragraphleftindent_def; macros << paragraphleftindent_def;
if (isRequired("NeedLyXFootnoteCode")) if (isRequired("NeedLyXFootnoteCode"))

View File

@ -224,7 +224,6 @@ void LyXAction::init()
{ LFUN_MENU_OPEN_BY_NAME, "menu-open", NoBuffer }, { LFUN_MENU_OPEN_BY_NAME, "menu-open", NoBuffer },
{ LFUN_MENU_SEPARATOR, "menu-separator-insert", Noop }, { LFUN_MENU_SEPARATOR, "menu-separator-insert", Noop },
{ LFUN_META_FAKE, "meta-prefix", NoBuffer }, { LFUN_META_FAKE, "meta-prefix", NoBuffer },
{ LFUN_INSET_MINIPAGE, "minipage-insert", Noop },
{ LFUN_INSERT_BRANCH, "branch-insert", Noop }, { LFUN_INSERT_BRANCH, "branch-insert", Noop },
{ LFUN_INSERT_CHARSTYLE, "charstyle-insert", Noop }, { LFUN_INSERT_CHARSTYLE, "charstyle-insert", Noop },
{ LFUN_INSERT_NOTE, "note-insert", Noop }, { LFUN_INSERT_NOTE, "note-insert", Noop },

View File

@ -84,9 +84,6 @@ InsetOld * createInset(FuncRequest const & cmd)
case LFUN_INSERT_PAGEBREAK: case LFUN_INSERT_PAGEBREAK:
return new InsetPagebreak; return new InsetPagebreak;
case LFUN_INSET_MINIPAGE:
return new InsetBox(params, "Frameless");
case LFUN_INSERT_CHARSTYLE: { case LFUN_INSERT_CHARSTYLE: {
string s = cmd.getArg(0); string s = cmd.getArg(0);
CharStyles::iterator found_cs = params.getLyXTextClass().charstyle(s); CharStyles::iterator found_cs = params.getLyXTextClass().charstyle(s);
@ -443,8 +440,6 @@ InsetOld * readInset(LyXLex & lex, Buffer const & buf)
inset.reset(new InsetMarginal(buf.params())); inset.reset(new InsetMarginal(buf.params()));
} else if (tmptok == "OptArg") { } else if (tmptok == "OptArg") {
inset.reset(new InsetOptArg(buf.params())); inset.reset(new InsetOptArg(buf.params()));
} else if (tmptok == "Minipage") {
inset.reset(new InsetBox(buf.params(), "Frameless"));
} else if (tmptok == "Float") { } else if (tmptok == "Float") {
lex.next(); lex.next();
string tmptok = lex.getString(); string tmptok = lex.getString();

View File

@ -1,4 +1,8 @@
2003-12-22 Michael Schmitt <michael.schmitt@teststep.org>
* insetbox.C: Use term "Box" in button label
2003-12-16 Martin Vermeer <martin.vermeer@hut.fi> 2003-12-16 Martin Vermeer <martin.vermeer@hut.fi>
* insetcharstyle.C: get getDrawFont working again * insetcharstyle.C: get getDrawFont working again

View File

@ -139,11 +139,11 @@ void InsetBox::setButtonLabel()
BoxType btype = boxtranslator().find(params_.type); BoxType btype = boxtranslator().find(params_.type);
if (btype == Frameless) { if (btype == Frameless) {
if (params_.use_parbox) if (params_.use_parbox)
setLabel(_("Parbox")); setLabel(_("Box") + " (" + _("Parbox") + ")");
else else
setLabel(_("Minipage")); setLabel(_("Box") + " (" + _("Minipage") + ")");
} else } else
setLabel(boxtranslator_loc().find(btype)); setLabel(_("Box") + " (" + boxtranslator_loc().find(btype) + ")");
font.setColor(LColor::foreground); font.setColor(LColor::foreground);
setBackgroundColor(LColor::background); setBackgroundColor(LColor::background);

View File

@ -259,81 +259,80 @@ enum kb_action {
LFUN_LOAVIEW, // Dekel 20000519 LFUN_LOAVIEW, // Dekel 20000519
LFUN_SET_COLOR, // SLior 20000611 LFUN_SET_COLOR, // SLior 20000611
LFUN_INSET_MARGINAL, // Lgb 20000626 LFUN_INSET_MARGINAL, // Lgb 20000626
LFUN_INSET_MINIPAGE, // Lgb 20000627
// 195
LFUN_INSET_FLOAT, // Lgb 20000627 LFUN_INSET_FLOAT, // Lgb 20000627
// 195
LFUN_INSET_WIDE_FLOAT, // Lgb 20010531 LFUN_INSET_WIDE_FLOAT, // Lgb 20010531
LFUN_INSET_CAPTION, // Lgb 20000718 LFUN_INSET_CAPTION, // Lgb 20000718
LFUN_SWITCHBUFFER, LFUN_SWITCHBUFFER,
LFUN_TABULAR_FEATURE, // Jug 20000728 LFUN_TABULAR_FEATURE, // Jug 20000728
// 200
LFUN_LAYOUT_TABULAR, // Jug 20000731 LFUN_LAYOUT_TABULAR, // Jug 20000731
// 200
LFUN_SCROLL_INSET, // Jug 20000801 LFUN_SCROLL_INSET, // Jug 20000801
LFUN_UPDATE, // Dekel 20000805 LFUN_UPDATE, // Dekel 20000805
LFUN_INDEX_INSERT, // Angus 20000803 LFUN_INDEX_INSERT, // Angus 20000803
LFUN_SCREEN_FONT_UPDATE, // ARRae 20000813 LFUN_SCREEN_FONT_UPDATE, // ARRae 20000813
// 205
LFUN_GOTO_PARAGRAPH, // Dekel 20000826 LFUN_GOTO_PARAGRAPH, // Dekel 20000826
// 205
LFUN_REFERENCE_GOTO, // Dekel 20010114 LFUN_REFERENCE_GOTO, // Dekel 20010114
LFUN_BOOKMARK_SAVE, // Dekel 20010127 LFUN_BOOKMARK_SAVE, // Dekel 20010127
LFUN_BOOKMARK_GOTO, // Dekel 20010127 LFUN_BOOKMARK_GOTO, // Dekel 20010127
LFUN_SELECT_FILE_SYNC, // Levon 20010214 LFUN_SELECT_FILE_SYNC, // Levon 20010214
// 210
LFUN_MESSAGE, // Lgb 20010408 LFUN_MESSAGE, // Lgb 20010408
// 210
LFUN_TRANSPOSE_CHARS, // Lgb 20010425 LFUN_TRANSPOSE_CHARS, // Lgb 20010425
LFUN_ESCAPE, // Lgb 20010517 LFUN_ESCAPE, // Lgb 20010517
LFUN_THESAURUS_ENTRY, // Levon 20010720 LFUN_THESAURUS_ENTRY, // Levon 20010720
LFUN_FORKS_KILL, // Angus 16 Feb 2002 LFUN_FORKS_KILL, // Angus 16 Feb 2002
// 215
LFUN_TOOLTIPS_TOGGLE, // Angus 8 Mar 2002 LFUN_TOOLTIPS_TOGGLE, // Angus 8 Mar 2002
// 215
LFUN_INSET_OPTARG, // Martin 12 Aug 2002 LFUN_INSET_OPTARG, // Martin 12 Aug 2002
LFUN_MOUSE_PRESS, // André 9 Aug 2002 LFUN_MOUSE_PRESS, // André 9 Aug 2002
LFUN_MOUSE_MOTION, // André 9 Aug 2002 LFUN_MOUSE_MOTION, // André 9 Aug 2002
LFUN_MOUSE_RELEASE, // André 9 Aug 2002 LFUN_MOUSE_RELEASE, // André 9 Aug 2002
// 220
LFUN_MOUSE_DOUBLE, // André 9 Aug 2002 LFUN_MOUSE_DOUBLE, // André 9 Aug 2002
// 220
LFUN_MOUSE_TRIPLE, // André 9 Aug 2002 LFUN_MOUSE_TRIPLE, // André 9 Aug 2002
LFUN_INSET_WRAP, // Dekel 7 Apr 2002 LFUN_INSET_WRAP, // Dekel 7 Apr 2002
LFUN_TRACK_CHANGES, // Levon 20021001 (cool date !) LFUN_TRACK_CHANGES, // Levon 20021001 (cool date !)
LFUN_MERGE_CHANGES, // Levon 20021016 LFUN_MERGE_CHANGES, // Levon 20021016
// 225
LFUN_ACCEPT_CHANGE, // Levon 20021016 LFUN_ACCEPT_CHANGE, // Levon 20021016
// 225
LFUN_REJECT_CHANGE, // Levon 20021016 LFUN_REJECT_CHANGE, // Levon 20021016
LFUN_ACCEPT_ALL_CHANGES, // Levon 20021016 LFUN_ACCEPT_ALL_CHANGES, // Levon 20021016
LFUN_REJECT_ALL_CHANGES, // Levon 20021016 LFUN_REJECT_ALL_CHANGES, // Levon 20021016
LFUN_INSERT_BIBITEM, // André 14 Feb 2003 LFUN_INSERT_BIBITEM, // André 14 Feb 2003
// 230
LFUN_DIALOG_SHOW, LFUN_DIALOG_SHOW,
// 230
LFUN_DIALOG_SHOW_NEW_INSET, LFUN_DIALOG_SHOW_NEW_INSET,
LFUN_DIALOG_SHOW_NEXT_INSET, LFUN_DIALOG_SHOW_NEXT_INSET,
LFUN_DIALOG_UPDATE, LFUN_DIALOG_UPDATE,
LFUN_DIALOG_HIDE, LFUN_DIALOG_HIDE,
// 235
LFUN_DIALOG_DISCONNECT_INSET, LFUN_DIALOG_DISCONNECT_INSET,
// 235
LFUN_INSET_APPLY, LFUN_INSET_APPLY,
LFUN_INSET_INSERT, LFUN_INSET_INSERT,
LFUN_INSET_MODIFY, LFUN_INSET_MODIFY,
LFUN_INSET_DIALOG_UPDATE, LFUN_INSET_DIALOG_UPDATE,
// 240
LFUN_INSET_SETTINGS, LFUN_INSET_SETTINGS,
// 240
LFUN_PARAGRAPH_APPLY, LFUN_PARAGRAPH_APPLY,
LFUN_PARAGRAPH_UPDATE, LFUN_PARAGRAPH_UPDATE,
LFUN_EXTERNAL_EDIT, LFUN_EXTERNAL_EDIT,
LFUN_INSERT_BRANCH, LFUN_INSERT_BRANCH,
// 245
LFUN_INSET_DIALOG_SHOW, LFUN_INSET_DIALOG_SHOW,
// 245
LFUN_INSERT_BOX, LFUN_INSERT_BOX,
LFUN_INSERT_LINE, LFUN_INSERT_LINE,
LFUN_INSERT_PAGEBREAK, LFUN_INSERT_PAGEBREAK,
LFUN_REPEAT, LFUN_REPEAT,
// 250
LFUN_FINISHED_LEFT, LFUN_FINISHED_LEFT,
// 250
LFUN_FINISHED_RIGHT, LFUN_FINISHED_RIGHT,
LFUN_FINISHED_UP, LFUN_FINISHED_UP,
LFUN_FINISHED_DOWN, LFUN_FINISHED_DOWN,
LFUN_INSERT_CHARSTYLE, LFUN_INSERT_CHARSTYLE,
// 255
LFUN_LASTACTION // end of the table LFUN_LASTACTION // end of the table
// 255
}; };
std::ostream & operator<<(std::ostream &, kb_action); std::ostream & operator<<(std::ostream &, kb_action);

View File

@ -107,11 +107,6 @@ string const floatingfootnote_def =
" \\expandafter\\noexpand\\csname SF@gobble@opt \\endcsname}\n" " \\expandafter\\noexpand\\csname SF@gobble@opt \\endcsname}\n"
"\\def\\SF@gobble@twobracket[#1]#2{}\n"; "\\def\\SF@gobble@twobracket[#1]#2{}\n";
string const minipageindent_def =
"%% This length is the backup for minipages of the \\parindent\n"
"\\newlength{\\LyXMinipageIndent}\n"
"\\setlength{\\LyXMinipageIndent}{\\parindent}\n";
string const boldsymbol_def = string const boldsymbol_def =
"%% Bold symbol macro for standard LaTeX users\n" "%% Bold symbol macro for standard LaTeX users\n"
"\\newcommand{\\boldsymbol}[1]{\\mbox{\\boldmath $#1$}}\n"; "\\newcommand{\\boldsymbol}[1]{\\mbox{\\boldmath $#1$}}\n";

View File

@ -43,8 +43,6 @@ extern std::string const paragraphleftindent_def;
/// ///
extern std::string const floatingfootnote_def; extern std::string const floatingfootnote_def;
/// ///
extern std::string const minipageindent_def;
///
extern std::string const boldsymbol_def; extern std::string const boldsymbol_def;
/// ///
extern std::string const binom_def; extern std::string const binom_def;

View File

@ -609,9 +609,6 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & ev) const
case LFUN_INSET_MARGINAL: case LFUN_INSET_MARGINAL:
code = InsetOld::MARGIN_CODE; code = InsetOld::MARGIN_CODE;
break; break;
case LFUN_INSET_MINIPAGE:
code = InsetOld::BOX_CODE;
break;
case LFUN_INSET_FLOAT: case LFUN_INSET_FLOAT:
case LFUN_INSET_WIDE_FLOAT: case LFUN_INSET_WIDE_FLOAT:
code = InsetOld::FLOAT_CODE; code = InsetOld::FLOAT_CODE;

View File

@ -1387,7 +1387,6 @@ DispatchResult LyXText::dispatch(FuncRequest const & cmd)
case LFUN_INSET_FLOAT: case LFUN_INSET_FLOAT:
case LFUN_INSET_FOOTNOTE: case LFUN_INSET_FOOTNOTE:
case LFUN_INSET_MARGINAL: case LFUN_INSET_MARGINAL:
case LFUN_INSET_MINIPAGE:
case LFUN_INSET_OPTARG: case LFUN_INSET_OPTARG:
case LFUN_INSET_WIDE_FLOAT: case LFUN_INSET_WIDE_FLOAT:
case LFUN_INSET_WRAP: case LFUN_INSET_WRAP: